forked from thelmuth/Clojush-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbatch_launcher_long_csv_simplification.py
executable file
·45 lines (39 loc) · 1.22 KB
/
batch_launcher_long_csv_simplification.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/python
import os, glob, re
from sys import maxint
# Set these before running:
######## For simplification and generalization paper
problems = [#"checksum",
# "collatz-numbers",
# "compare-string-lengths",
# "count-odds",
# "digits",
# "double-letters",
# "even-squares",
# "for-loop-index",
# "grade",
# "last-index-of-zero",
# "median",
# "mirror-image",
"negative-to-zero",
# "number-io",
# "pig-latin",
# "replace-space-with-newline",
# "scrabble-score",
# "smallest",
# "small-or-large",
# "string-differences",
# "string-lengths-backwards",
# "sum-of-squares",
# "super-anagrams",
# "syllables",
# "vector-average",
# "vectors-summed",
# "wallis-pi",
# "word-stats",
# "x-word-lines"
]
for namespace in problems:
print "Processing", namespace
os.system("python Tools/long_csv_simplification_generalization.py %s > simplification-data/long-simp-%s.csv" % (namespace, namespace))
print "\nDone!"