A tool of spotting and refactoring inconsistent method names learned from real-world code bases. This work will be presented at ICSE 2019.
- Java 1.8
- Maven 3.3.9
How to run debug-method-name
- Clone the PatchParser:
git clone https://github.com/SerVal-DTF/debug-method-name.git
- Collect the renamed methods from the commit history of Java programs. https://github.com/SerVal-DTF/debug-method-name/blob/master/RenamedMethodsCollector/src/main/java/edu/lu/uni/serval/renamed/methods/Main.java
- Prepare data: Note that: it will take a long time and a big space to prepare the data for this experiment, we recommend to use the data we already have to proceed the following steps.
- `./data_prepare.sh' -Code: https://github.com/SerVal-DTF/debug-method-name/blob/master/DebugMethodName/src/main/java/edu/lu/uni/serval/MainParser.java
- Model Learning: Note that: it will take a long time and a huge space to finish the learning process, we recommend to use our learned model to proceed the following step.
- Code: https://github.com/SerVal-DTF/debug-method-name/tree/master/LearningModel
- Spot and Refactor inconsistent method names: