Martin Monperrus f5b22c979c Merge pull request #10 from SerVal-DTF/travis
chore: add Travis configuration
2020-03-25 11:15:46 +01:00
2019-09-06 18:41:04 +02:00
2019-09-06 18:41:04 +02:00
2019-03-26 20:26:04 +01:00
2020-03-20 11:40:32 +01:00
2019-03-03 11:42:44 +01:00
2019-03-26 20:26:04 +01:00
2019-09-06 18:41:04 +02:00
2019-12-20 08:14:29 +00:00

Code of FixMiner

Prerequisites

redis should be installed on the machine.

Build

Clone and install edu.lu.uni:simple-utils.

git clone https://github.com/SerVal-DTF/simple-utils
cd simple-utils
mvn install

Clone and install the modified version of Gumtree.

git clone https://github.com/SerVal-DTF/gumtree
cd gumtree
mvn install

Clone and install fixminer.

git clone https://github.com/SerVal-DTF/fixminer_source
cd fixminer_source
mvn install

Main classes

  • src/main/java/edu/lu/uni/serval/fixminer/Launcher.java computes the edit scripts from local file pairs and pushes them to a Redis database:
    • first run redis-server
    • edit app.properties in particular portInner, portDumps, inputPath
    • mvn exec:java -Dexec.mainClass=edu.lu.uni.serval.fixminer.Launcher -Dexec.args="../fixminer-core/python/data/app.properties RICHEDITSCRIPT dummy"
  • src/main/java/edu/lu/uni/serval/utils/ClusterToPattern.java extracts the Rich Edit Script from the Gumtree output from the database
  • src/main/java/edu/lu/uni/serval/utils/CallShell.java
  • src/main/java/edu/lu/uni/serval/fixminer/TestTreeLoader.java
  • src/main/java/edu/lu/uni/serval/fixminer/jobs/PatternExtractor.java
  • src/main/java/edu/lu/uni/serval/fixminer/akka/compare/CompareTrees.java
S
Description
Mining Relevant Fix Patterns for Automated Program Repair
Readme 312 MiB
Languages
C 69.3%
Java 26.9%
Python 2.9%
GAP 0.5%
CSS 0.1%
Other 0.2%