update the harry potter for morning lecture
[harrypotter-wikipedia-cdsw] / hpwp-minor.py
diff --git a/hpwp-minor.py b/hpwp-minor.py
deleted file mode 100644 (file)
index 79135a1..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-import encoding_fix
-
-from csv import DictReader
-
-input_file = open("hp_wiki.tsv", 'r', encoding="utf-8")
-
-num_edits = 0
-num_anon = 0
-for row in DictReader(input_file, delimiter="\t"):
-    num_edits = num_edits + 1
-    if row["anon"] == "True":
-        num_anon = num_anon + 1
-
-prop_anon = num_anon / num_edits
-
-print("total edits: {0}".format(num_edits))
-print("anon edits: {0}".format(num_anon))
-print("proportion anon: {0}".format(prop_anon))

Benjamin Mako Hill || Want to submit a patch?