This is the replication package for IDEA in evaluation.
- Java17
- Mac OS or Linux
- IntelliJ IDEA >= 2022.3
- Defects4J
git clone https://github.com/Anonymous3202/ValExtractor.git
./Implementation/shell/evaluation.sh
Hint: considering the complexity of defects4j configuration, we provide the zip file of the example project under evaluation/projects/
.
Click File
... Open
, then select directory(path to Implementation/idea/EvalIdea) as root and Click Open
Open Gradle perspective and click Reload All Gradle Projects
Open Constrants.java
(Locate in exp.utils
package) and modify Project_Path
( Path2Implementation/ValExtractor), EXP2_ROOT
(the root path of the generated result in Evaluation part), Project_NAME
refers to the project you want to test.
//----------- need to configure -----------
public static final String Project_Path="***/Implementation/ValExtractor/";
public static final String EXP2_ROOT = "***/EvaluationPaper/";
public static final String Project_NAME = "Lang";
//-----------------------------------------
Note: please make sure all the paths end with /
Select Run Configurations
and run as Run Plugin
We take project Lang
as an example to show how to reproduce evaluation.
Click File
|open
to import Lang
project.
Click File
|MyAction
to test Lang
project.
After execution, the window will pop up as following.
All the results of idea execution are in Evaluation/patch/Lang/idea
folders, which are stored in the form of patch
.