Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 1.02 KB

README.md

File metadata and controls

21 lines (19 loc) · 1.02 KB

Evaluation of Fault Localization using Entropy for GenProg4Java

Compare expressions from GenProg4Java to diff expressions from Defects4J

  1. Setup a configuration file called parse_defects4j.cfg in this repo with this format:
[Basic]
project = Chart
projectNum = 26
version = f
examplesPath = /Users/ashleychen/Desktop/reuse/defects4j/ExamplesCheckOut/
srcPath = source/
copiedFiles = /Users/ashleychen/Desktop/EntropyLocalization/Copies
projectPath =  /Users/ashleychen/Desktop/EntropyLocalization/Copies/Chart
genprogPath = /Users/ashleychen/Documents/workspace/GenProg4Java
jdk7 = /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin
jdk8 = /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/bin
  1. Run SourceCodeAggregation.py. Make sure directories are already existing
  2. Run DiffSourceCode.py. You may need to create a directory caleld DiffCode first
  3. Run src/clegoues/genprog4java/main/Run.java from Genprog4Java. Change the hard-coded variables, examplePath and outputPath.