Skip to content

Commit 8f208f4

Browse files
tushargrbmcutler
authored andcommitted
Revision to Process all script (#10)
* fix python_tokenizer tok_name error * remove import which is not required in python_tokenizer.py * remove empty value tokens * modified process_all.sh to take more argument
1 parent 10f027f commit 8f208f4

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

bin/process_all.sh

+34-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,41 @@
33
semester=$1
44
course=$2
55
gradeable=$3
6-
language=$4
7-
window=$5
86

7+
prev_argument=""
8+
prior_term_gradeables=()
9+
ignore_submissions=()
10+
for argument in "$@"
11+
do
12+
if [[ $argument == --* ]]
13+
then
14+
prev_argument=$argument
15+
else
16+
case $prev_argument in
17+
"--language")
18+
language=$argument
19+
;;
20+
"--window")
21+
window=$argument
22+
;;
23+
"--threshold")
24+
threshold=$argument
25+
;;
26+
"--regrex")
27+
regrex=$argument
28+
;;
29+
"--provided_code_path")
30+
provided_code_path=$argument
31+
;;
32+
"--prior_term_gradeables")
33+
prior_term_gradeables+=("$argument")
34+
;;
35+
"--ignore_submissions")
36+
ignore_submissions+=("$argument")
37+
;;
38+
esac
39+
fi
40+
done
941

1042
/usr/local/submitty/Lichen/bin/concatenate_all.py $semester $course $gradeable
1143
/usr/local/submitty/Lichen/bin/tokenize_all.py $semester $course $gradeable --${language}

0 commit comments

Comments
 (0)