def github_activity_timeseries(): """Timeseries visualizations of Github activity in a day """ archive = request.args.get('archive') template = 'github_activity_timeseries.html' archives = available_activity_csv() if archive not in [None, '']: archive_dataset = 'githubarchives/%s' % archive jsonfile = timeseries_activities(archive_dataset) return render_template(template, data=True, jsonfile=jsonfile, archives=archives) else: return render_template(template, archives=archives, data=False)
def github_activity_types(): """Types of activity on Github in a period """ archive = request.args.get('archive') template = 'github_activity_types.html' archives = available_activity_csv() if archive not in [None, '']: archive_dataset = 'githubarchives/%s' % archive jsonfile = activity_types(archive_dataset) return render_template(template, data=True, jsonfile=jsonfile, archives=archives) else: return render_template(template, archives=archives, data=False)