Skip to content

Commit 94d42ee

Browse files
Custom dataset running
1 parent 20bfc63 commit 94d42ee

1 file changed

Lines changed: 17 additions & 19 deletions

File tree

docker/execute.sh

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,23 @@ if [ "$1" == '' ]; then
88
exit
99
fi
1010
cd /home/sherlock || exit
11-
if [ "$1" == 'replication' ] || [ "$1" == 'verification' ]; then
1211
cd holmes || exit
13-
if [ "$1" == 'replication' ]; then
14-
echo "Running full replication. Depending on your system, this will require several hours or even a few days."
15-
java -cp DiffDetective.jar org.variantsync.diffdetective.validation.Validation
16-
elif [ "$1" == 'verification' ]; then
17-
echo "Running a short verification."
18-
java -cp DiffDetective.jar org.variantsync.diffdetective.validation.Validation docs/verification/datasets.md
19-
fi
20-
echo "Collecting results."
21-
cp -r results/* ../results/
22-
java -cp DiffDetective.jar org.variantsync.diffdetective.validation.FindMedianCommitTime ../results/validation/current
23-
java -cp DiffDetective.jar org.variantsync.diffdetective.tablegen.MiningResultAccumulator ../results/validation/current ../results/validation/current
24-
echo "The results are located in the 'results' directory."
12+
13+
if [ "$1" == 'replication' ]; then
14+
echo "Running full replication. Depending on your system, this will require several hours or even a few days."
15+
java -cp DiffDetective.jar org.variantsync.diffdetective.validation.Validation
16+
elif [ "$1" == 'verification' ]; then
17+
echo "Running a short verification."
18+
java -cp DiffDetective.jar org.variantsync.diffdetective.validation.Validation docs/verification/datasets.md
2519
else
26-
echo "INVALID ARGUMENT: $1"
27-
echo "Either fully run DiffDetective as presented in the paper (replication) or a do quick setup verification (verification)."
28-
echo "-- Examples --"
29-
echo "Run replication: './execute.sh replication'"
30-
echo "Validate the setup: './execute.sh verification'"
31-
exit
20+
echo ""
21+
echo "Running detection on a custom dataset with the input file $1"
22+
echo ""
23+
java -cp DiffDetective.jar org.variantsync.diffdetective.validation.Validation $1
3224
fi
25+
echo "Collecting results."
26+
cp -r results/* ../results/
27+
java -cp DiffDetective.jar org.variantsync.diffdetective.validation.FindMedianCommitTime ../results/validation/current
28+
java -cp DiffDetective.jar org.variantsync.diffdetective.tablegen.MiningResultAccumulator ../results/validation/current ../results/validation/current
29+
echo "The results are located in the 'results' directory."
30+

0 commit comments

Comments
 (0)