Skip to content

Commit

Permalink
Revision to Process all script (#10)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
tushargr authored and bmcutler committed Jul 27, 2018
1 parent 10f027f commit 8f208f4
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions bin/process_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,41 @@
semester=$1
course=$2
gradeable=$3
language=$4
window=$5

prev_argument=""
prior_term_gradeables=()
ignore_submissions=()
for argument in "$@"
do
if [[ $argument == --* ]]
then
prev_argument=$argument
else
case $prev_argument in
"--language")
language=$argument
;;
"--window")
window=$argument
;;
"--threshold")
threshold=$argument
;;
"--regrex")
regrex=$argument
;;
"--provided_code_path")
provided_code_path=$argument
;;
"--prior_term_gradeables")
prior_term_gradeables+=("$argument")
;;
"--ignore_submissions")
ignore_submissions+=("$argument")
;;
esac
fi
done

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

0 comments on commit 8f208f4

Please sign in to comment.