Back to Search
Start Over
Enhancing Source Code Refactoring Detection with Explanations from Commit Messages
- Source :
- SANER
- Publication Year :
- 2020
- Publisher :
- IEEE, 2020.
-
Abstract
- We investigate the extent to which code commit summaries provide rationales and descriptions of code refactorings. We present a refactoring description detection tool CMMiner that detects code commit messages containing refactoring information and differentiates between twelve different refactoring types. We further explore whether refactoring information mined from commit messages using CMMiner, can be combined with refactoring descriptions mined from source code using the well-known RMiner tool. For six refactoring types covered by both CMMiner and RMiner, we observed 21.96% to 38.59% overlap in refactorings detected across four diverse open-source systems. RMiner identified approximately 49.13% to 60.29% of refactorings missed by CMMiner, primarily because developers often failed to describe code refactorings that occurred alongside other code changes. However, CMMiner identified 10.30% to 19.51% of refactorings missed by RMiner, primarily when refactorings occurred across multiple commits. Our results suggest that integrating both approaches can enhance the completeness of refactoring detection and provide refactoring rationales.
- Subjects :
- Source code
Software_GENERAL
Programming language
Computer science
media_common.quotation_subject
020207 software engineering
02 engineering and technology
Commit
Software_PROGRAMMINGTECHNIQUES
computer.software_genre
Code refactoring
Software_SOFTWAREENGINEERING
TheoryofComputation_LOGICSANDMEANINGSOFPROGRAMS
020204 information systems
0202 electrical engineering, electronic engineering, information engineering
Code (cryptography)
Completeness (statistics)
computer
media_common
Subjects
Details
- Database :
- OpenAIRE
- Journal :
- 2020 IEEE 27th International Conference on Software Analysis, Evolution and Reengineering (SANER)
- Accession number :
- edsair.doi...........84798dda219f9559c326b45b8df2fb50
- Full Text :
- https://doi.org/10.1109/saner48275.2020.9054816