Skip to content

Commit ae74a92

Browse files
committed
Merge branch 'cleaning' of github.com:VariantSync/DiffDetective into cleaning
2 parents 9b91b89 + 20bfc63 commit ae74a92

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ WORKDIR /home/sherlock
4949
# Copy the compiled JAR file from the first stage into the second stage
5050
# Syntax: COPY --from=STAGE_ID SOURCE_PATH TARGET_PATH
5151
WORKDIR /home/sherlock/holmes
52-
COPY --from=0 /home/user/target/DiffDetectiveRunner.jar .
52+
COPY --from=0 /home/user/target/diffdetective-1.0.0-jar-with-dependencies.jar ./DiffDetective.jar
5353
WORKDIR /home/sherlock
5454

5555
# Copy the setup

docker/execute.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
#! /bin/bash
22

33
if [ "$1" == '' ]; then
4-
echo "Either fully run DiffDetective as presented in the paper (replication) or a do quick setup validation (validation)."
4+
echo "Either fully run DiffDetective as presented in the paper (replication) or a do quick setup verification (verification)."
55
echo "-- Examples --"
66
echo "Run replication: './execute.sh replication'"
7-
echo "Validate the setup: './execute.sh validation'"
7+
echo "Validate the setup: './execute.sh verification'"
88
exit
99
fi
1010
cd /home/sherlock || exit
11-
if [ "$1" == 'replication' ] || [ "$1" == 'validation' ]; then
11+
if [ "$1" == 'replication' ] || [ "$1" == 'verification' ]; then
1212
cd holmes || exit
1313
if [ "$1" == 'replication' ]; then
1414
echo "Running full replication. Depending on your system, this will require several hours or even a few days."
15-
java -jar DiffDetectiveRunner.jar docs/datasets.md
16-
elif [ "$1" == 'validation' ]; then
17-
echo "Running a short validation."
18-
java -jar DiffDetectiveRunner.jar docs/validation/datasets.md
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
1919
fi
20-
echo "Starting evaluation."
20+
echo "Collecting results."
2121
cp -r results/* ../results/
22-
java -cp DiffDetectiveRunner.jar mining.FindMedianCommitTime ../results/difftrees
23-
java -cp DiffDetectiveRunner.jar mining.tablegen.MiningResultAccumulator ../results/difftrees ../results/difftrees
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
2424
echo "The results are located in the 'results' directory."
2525
else
2626
echo "INVALID ARGUMENT: $1"
27-
echo "Either fully run DiffDetective as presented in the paper (replication) or a do quick setup validation (validation)."
27+
echo "Either fully run DiffDetective as presented in the paper (replication) or a do quick setup verification (verification)."
2828
echo "-- Examples --"
2929
echo "Run replication: './execute.sh replication'"
30-
echo "Validate the setup: './execute.sh validation'"
30+
echo "Validate the setup: './execute.sh verification'"
3131
exit
3232
fi
-151 KB
Binary file not shown.
File renamed without changes.

src/main/java/org/variantsync/diffdetective/validation/FindMedianCommitTime.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static void main(final String[] args) throws IOException {
6161
*/
6262
public static AutomationResult getResultOfDirectory(final Path directory) throws IOException {
6363
if (!Files.isDirectory(directory)) {
64-
throw new IllegalArgumentException("Expected path to directory but the given path is not a directory!");
64+
throw new IllegalArgumentException("Expected path to directory but "+ directory +" is not a directory!");
6565
}
6666

6767
// This stream needs {@code O(n log(n))} time (because of the sort) and {@code O(n)} space

0 commit comments

Comments
 (0)