Commit fc476fff authored by scmalte's avatar scmalte
Browse files

aggr.py: Added plagiarist count

parent dff1239c
......@@ -114,7 +114,13 @@ def main(
jinja2_rows.append((cluster, cluster_rows))
# break
## TODO: Support sorting clusters by max (or average) involved percentage
plagiarist_count = 0
for (_, cluster_rows) in jinja2_rows:
plagiarist_count += cluster_rows.shape[0]
department_counts = {}
......@@ -162,6 +168,7 @@ def main(
clusters=jinja2_rows,
edoz_count=edoz_csv.shape[0],
course_count=course_csv.shape[0],
plagiarist_count=plagiarist_count,
percentages=percentages
).dump("clusters.html")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment