New graphs

This commit is contained in:
Pieter Vander Vennet 2021-04-17 14:46:04 +02:00
parent bc4a5a7fe2
commit 6f75dfe697
87 changed files with 62 additions and 1 deletions

View file

@ -380,13 +380,27 @@ def clean_input(contents):
yield row
def contributor_count(stats):
seen_contributors = set()
for line in stats:
contributor = line[1]
if(contributor in seen_contributors):
continue
print("New contributor " + str(len(seen_contributors) + 1) + ": "+contributor)
seen_contributors.add(contributor)
print(line)
def main():
print("Creating graphs...")
with open('stats.csv', newline='') as csvfile:
stats = list(clean_input(csv.reader(csvfile, delimiter=',', quotechar='"')))
print("Found " + str(len(stats)) + " changesets")
# contributor_count(stats)
create_graphs(stats)
create_per_theme_graphs(stats, 15)
# create_per_theme_graphs(stats, 15)
# create_per_contributor_graphs(stats, 25)
print("All done!")