Mining source code descriptions from developer communications
Sebastiano Panichella, Jairo Aponte, Massimiliano Di Penta et al. · IEEE International Conference on Program Comprehension (ICPC) · 2012
Very often, source code lacks comments that adequately describe its behavior. In such situations developers need to infer knowledge from the source code itself or to search for source code descriptions in external artifacts. We argue that messages exchanged among contributors/developers, in the form of bug reports and emails, are a useful source of information to help understanding source code. However, such communications are unstructured and usually not explicitly meant to describe specific parts of the source code. Developers searching for code descriptions within communications face the challenge of filtering large amount of data to extract what pieces of information are important to them. We propose an approach to automatically extract method descriptions from communications in bug tracking systems and mailing lists. We have evaluated the approach on bug reports and mailing lists from two open source systems (Lucene and Eclipse). The results indicate that mailing lists and bug reports contain relevant descriptions of about 36% of the methods from Lucene and 7% from Eclipse, and that the proposed approach is able to extract such descriptions with a precision of up to 79% for Eclipse and 87% for Lucene. The extracted method descriptions can help developers in understanding the code and could also be used as a starting point for source code re-documentation.
Cited by 91 works. doi:10.1109/icpc.2012.6240510
Authors
References
- Modern Information Retrieval
- An algorithm for suffix stripping
- Fast Exact Inference with a Factored Model for Natural Language Parsing
- Recovering traceability links between code and documentation
- An approach to detecting duplicate bug reports using natural language and execution information
- Recovering Documentation-to-Source-Code Traceability Links using Latent Semantic Indexing
- Hipikat: a project memory for software development
- Recovering documentation-to-source-code traceability links using latent semantic indexing
- Towards automatically generating summary comments for Java methods
- Recommendation Systems for Software Engineering