To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit fc476fff authored by scmalte's avatar scmalte
Browse files

aggr.py: Added plagiarist count

parent dff1239c
...@@ -114,7 +114,13 @@ def main( ...@@ -114,7 +114,13 @@ def main(
jinja2_rows.append((cluster, cluster_rows)) 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 = {} department_counts = {}
...@@ -162,6 +168,7 @@ def main( ...@@ -162,6 +168,7 @@ def main(
clusters=jinja2_rows, clusters=jinja2_rows,
edoz_count=edoz_csv.shape[0], edoz_count=edoz_csv.shape[0],
course_count=course_csv.shape[0], course_count=course_csv.shape[0],
plagiarist_count=plagiarist_count,
percentages=percentages percentages=percentages
).dump("clusters.html") ).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