From c0c4e80168a0fe23009e6b047f8c71faf0ec65b4 Mon Sep 17 00:00:00 2001 From: danglotb Date: Tue, 4 Jul 2017 14:42:18 +0200 Subject: [PATCH 1/3] add json dependecy and plugin to build jar with dependencies --- pom.xml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/pom.xml b/pom.xml index 90fab68..71ffe18 100644 --- a/pom.xml +++ b/pom.xml @@ -21,6 +21,11 @@ javax.servlet-api 3.1.0 + + org.json + json + 20160212 + fr.inria.spirals npefix @@ -93,7 +98,34 @@ 1.7 + + + + + maven-assembly-plugin + + + + fr.inria.lille.spirals.bikinirepair.Evaluation + + + + jar-with-dependencies + + + + + make-my-jar-with-dependencies + package + + single + + + + + + From 00f34b8b34cf1c9ae53135cac9a8269f196f3192 Mon Sep 17 00:00:00 2001 From: danglotb Date: Tue, 4 Jul 2017 14:43:41 +0200 Subject: [PATCH 2/3] isToHandle is not overriden anymore --- .../bikinirepair/regression/RegressionSelectorImpl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/fr/inria/lille/spirals/bikinirepair/regression/RegressionSelectorImpl.java b/src/main/java/fr/inria/lille/spirals/bikinirepair/regression/RegressionSelectorImpl.java index cbdc084..9b805a3 100644 --- a/src/main/java/fr/inria/lille/spirals/bikinirepair/regression/RegressionSelectorImpl.java +++ b/src/main/java/fr/inria/lille/spirals/bikinirepair/regression/RegressionSelectorImpl.java @@ -44,10 +44,6 @@ public Set getSearchSpace() throws RemoteException { public void setDecision(Decision decision) throws RemoteException { this.decision = decision; } - - @Override - public boolean isToHandle(Strategy.ACTION action, Object object, Location location) throws RemoteException { - return decision.getLocation().equals(location); - } + } From d07ef8bd95958fd9c9fa082acb1fafe7f603e963 Mon Sep 17 00:00:00 2001 From: danglotb Date: Tue, 4 Jul 2017 14:44:15 +0200 Subject: [PATCH 3/3] update README: steps by steps, commandline example, scenarios of bug --- README.md | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a676d07..4f1ac6c 100644 --- a/README.md +++ b/README.md @@ -31,11 +31,37 @@ Long paper: [Production-Driven Patch Generation and Validation](http://arxiv.org ## Getting Started - ### Run the evaluation 1. Gets the benchmark: https://github.com/Spirals-Team/BikiniRepair-benchmark -2. Builds each docker image on your system -3. Start Itzal/BikiniRepair `java -cp target/classes:target/test-classes fr.inria.lille.spirals.bikinirepair.Evaluation` +2. Builds each docker image on your system. + For example: + ``` + cd bugs/mayocat_231/ + docker build -t shadow-dataset:mayocat_231 . + ``` +default tags are: + * mayocat_231: shadow-dataset:mayocat_231 + * mayocat_231_patch: shadow-dataset:mayocat_231_patch + +3. compile Iztal: `mvn package -DskipTests` +4. Start Itzal/BikiniRepair + + starts both version: original and instrument by running: + `java -cp bikinirepair-1.0-SNAPSHOT-jar-with-dependencies.jar:target/test-classes fr.inria.lille.spirals.bikinirepair.Evaluation` + + and the shadower: + `java -cp bikinirepair-1.0-SNAPSHOT-jar-with-dependencies.jar:target/test-classes fr.inria.lille.spirals.bikinirepair.Evaluation2` + 4. The dashboard is now available at http://localhost:8080 5. Use the python script in the Dataset to reproduce the failure + +### Scenario of bugs + +#### Mayocat + +The null pointer exception occurs when an administrator selects a specific strategy to compute the shipping price of a cart. + +#### Broadleaf Ecommerce + +The null pointer exception occurs when a webmaster creates a new customer with an already registered email.