forked from ariannab/replicomment-JSS21-experiments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexecute-full-JSS-pipeline.sh
executable file
·32 lines (23 loc) · 1.07 KB
/
execute-full-JSS-pipeline.sh
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
# JSS 2021 Experiments
# Get subjects sources and executables
./get_evaluation_project_subjects.bash
# Get RepliComment 2.0 and move in its folder
echo -e "[ cloning RepliComment 2.0 ]\n"
git clone -q https://github.com/ariannab/replicomment.git
mv subjects/ replicomment
cd replicomment/
# Assembly RepliComment 2.0 jar with dependencies
mvn clean compile assembly:single
# Launch RepliComment 2.0 to get outputs to be fed to upDoc
java -cp target/replicomment-2.0-all.jar org.replicomment.JavadocClonesFinder
cd ..
# Get upDoc 1.0
curl -L -o upDoc-1.0-all.jar https://github.com/ariannab/replicomment-JSS21-experiments/releases/download/upDoc1.0/upDoc-1.0-all.jar
# Prepare folders for upDoc and launch upDoc 1.0 on RepliComment outputs
mkdir JSS-outputs && mkdir JSS-outputs/fields
mv replicomment/output replicomment-csv
echo "\n[ running upDoc ]\n"
echo "(expect some WARNING messages, this is fine)\n"
echo "(expect some 'unexpected empty sentence: []' messages, this is fine too)\n"
java -cp "upDoc-1.0-all.jar" "parser.RepliCmntInterpreter"
echo "\n[ experiment end ]\n"