Skip to content

Evaluation of Fault Localization using Entropy for GenProg4Java

Notifications You must be signed in to change notification settings

clegoues/EntropyLocalization

 
 

Repository files navigation

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.

About

Evaluation of Fault Localization using Entropy for GenProg4Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.3%
  • R 3.8%
  • Shell 1.9%