Towards automatically generating summary comments for Java methods
The DOI matches its Crossref record; 33 of the 33 references it cites were found in a registry or an index.
Abstract
Studies have shown that good comments can help programmers quickly understand what a method does, aiding program comprehension and software maintenance. Unfortunately, few software projects adequately comment the code. One way to overcome the lack of human-written summary comments, and guard against obsolete comments, is to automatically generate them. In this paper, we present a novel technique to automatically generate descriptive summary comments for Java methods. Given the signature and body of a method, our automatic comment generator identifies the content for the summary and generates natural language text that summarizes the method's overall actions. According to programmers who judged our generated comments, the summaries are accurate, do not miss important content, and are reasonably concise.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Initially, template-based approaches were popular [17,26,27,56,61]; however, creating a list of templates with good coverage is very challenging.”
From Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization) (2024) · cites this paper as [61]
Citations
Cites
Refactoring: Improving the Design of Existing Code
Fowler, M. (2002) · Lecture Notes in Computer Science · doi:10.1007/3-540-45672-4_31 · Cited by 5,591
Knuth, D. E. (1984) · The Computer Journal · doi:10.1093/comjnl/27.2.97 · Cited by 1,467 · cited 1×
“Specifically, they use symbolic execution to identify under what conditions the exception is thrown, and then use a set of templates to generate the textual comment for these conditions.”
BackgroundBuilding Natural-Language Generation Systems
Reiter, E. (1996) · arXiv (Cornell University) · doi:10.48550/arxiv.cmp-lg/9605002 · Cited by 1,228 · cited 1×
“Similar to how an abstract provides a summary for a natural language document [18], a descriptive summary comment for a method can help programmers quickly understand what a method does, aiding program comprehension and software maintenance.”
BackgroundMani, I. (2001) · Natural Language Processing · doi:10.1075/nlp.3 · Cited by 834
A Survey on Shari’Ah Governance Practices in Malaysia, GCC Countries and the UKPreprint
Hasan, Z. (2011) · SSRN Electronic Journal · Cited by 452
A study of the documentation essential to software maintenance
de Souza, S. C. B., Anquetil, N., & de Oliveira, K. M. (2005) · Proceedings of the 23rd annual international conference on Design of communication: documenting & designing for pervasive information · doi:10.1145/1085313.1085331 · Cited by 305
Ball, T., & Larus, J. R. (1993) · Proceedings of the ACM SIGPLAN 1993 conference on Programming language design and implementation · doi:10.1145/155090.155119 · Cited by 289 · cited 1×
“In the future, we will improve content selection by excluding if blocks handling special cases and error return paths, by possibly leveraging branch execution frequency estimation [1].”
BackgroundPickerell, A. G., & Dornin, M. (1968) · University of California Press eBooks · doi:10.1525/9780520339668 · Cited by 266
A survey on Shari'ah governance practices in Malaysia, GCC countries and the UK: Critical appraisal
Hasan, Z. (2011) · International Journal of Islamic and Middle Eastern Finance and Management · doi:10.1108/17538391111122195 · Cited by 240
Using profile information to assist classic code optimizations
Chang, P. P., Mahlke, S. A., & Hwu, W. W. (1991) · Software: Practice and Experience · doi:10.1002/spe.4380211204 · Cited by 237 · cited 1×
“While useful in targeting optimization [4], these statements do not represent content for a summary.”
Background
Research works printed but not linked: 7
- Fowler M., 1999, Addison-Wesley
- 10.5555/882506.885157 · doi:10.5555/882506.885157
- Hill E., 2010, University of Delaware
- Marin D. P., 2005, University of California
- 10.5555/331955 · doi:10.5555/331955
- Seacord R. C., 2003, Inc.
- Takang A. A., 1996, J. Prog. Lang., 4
Cited by
Summarizing Source Code using a Neural Attention Model
Iyer, S., Konstas, I., Cheung, A., & Zettlemoyer, L. (2016) · Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/p16-1195 · Cited by 701
“Sridhara et al. (2010) present a pipeline that generates summaries of Java methods by selecting relevant content and generating phrases using templates to describe them.”
MethodHu, X., Li, G., Xia, X., Lo, D., & Jin, Z. (2018) · Proceedings of the 26th Conference on Program Comprehension · doi:10.1145/3196321.3196334 · Cited by 621
“Previ- ousstudieshaveshownthatgoodcommentsareimportanttopro-gramcomprehension,sincedeveloperscanunderstandthemeaning of a piece of code by using the natural language description of the comments [35].”
InfluentialOn the naturalness of software
Hindle, A., Barr, E. T., Su, Z., Gabel, M., & Dévanbu, P. (2012) · doi:10.5555/2337223.2337322 · Cited by 541
A Transformer-based Approach for Source Code Summarization
Ahmad, W., Chakraborty, S., Ray, B., & Chang, K.-W. (2020) · Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2020.acl-main.449 · Cited by 378
On the naturalness of software
Hindle, A., Barr, E. T., Su, Z., Gabel, M., & Devanbu, P. (2012) · 2012 34th International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2012.6227135 · Cited by 425
“This line of work aims to generate natural language descriptions (summaries) of code [15–17].”
BackgroundImproving automatic source code summarization via deep reinforcement learning
Wan, Y., Zhao, Z., Yang, M., Xu, G., Ying, H., Wu, J., & Yu, P. S. (2018) · Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering · doi:10.1145/3238147.3238206 · Cited by 385
“As far as we know, most of existing code summarization methods learn the semantic representation of source codes based on statistical language models [9], [4], and then generate comments based on templates or rules [10].”
BackgroundMethodInfluentialExploration and Explanation in Computational Notebooks
Rule, A., Tabard, A., & Hollan, J. D. (2018) · Proceedings of the 2018 CHI Conference on Human Factors in Computing Systems · doi:10.1145/3173574.3173606 · Cited by 335
Suggesting accurate method and class names
Allamanis, M., Barr, E. T., Bird, C., & Sutton, C. (2015) · Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering · doi:10.1145/2786805.2786849 · Cited by 369
“Sridhara also showed how to generate code summaries appropriate for comments within the code ( e.g. as method headers) [46, 45].”
BackgroundAutomatic generation of natural language summaries for Java classes
Moreno, L., Aponte, J., Sridhara, G., Marcus, A., Pollock, L., & Vijay-Shanker, K. (2013) · 2013 21st International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc.2013.6613830 · Cited by 331
“AUTOMATIC SUMMARIZATION OF CLASSES While automated techniques to summarize source code blocks within methods [9] and entire methods [4] have been proposed, they cannot be used to generate class summaries, as discussed in Section I. Class summaries (as any other code summaries, for that matter)…”
MethodInfluentialSelf-citationMeasuring Program Comprehension: A Large-Scale Field Study with Professionals
Xia, X., Bao, L., Lo, D., Xing, Z., Hassan, A. E., & Li, S. (2018) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2017.2734091 · Cited by 326
Improved Code Summarization via a Graph Neural Network
LeClair, A., Haque, S., Wu, L., & McMillan, C. (2020) · Proceedings of the 28th International Conference on Program Comprehension · doi:10.1145/3387904.3389268 · Cited by 312
“At first, the dominant strategy was based on sentence templates and heuristics derived from empirical studies [15, 36, 40, 44, 50, 51].”
MethodOn the naturalness of software
Hindle, A., Barr, E. T., Gabel, M., Su, Z., & Devanbu, P. (2016) · Communications of the ACM · doi:10.1145/2902362 · Cited by 307
“Summarization and Concern Location A line of work on code summarization 9, 47, 48 uses semantic properties inferred by static analysis, rather than the “natural” regularities of software corpora capturable in statistical models; it is complementary to ours: properties derived by static analysis (as…”
MethodA Neural Model for Generating Natural Language Summaries of Program Subroutines
LeClair, A., Jiang, S., & McMillan, C. (2019) · 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2019.00087 · Cited by 294
“Our scoping of our target problem is consistent with the problem definition in many papers on code summarization [1], [12], [13], [22], [25].”
MethodWhat would users change in my app? summarizing app reviews for recommending software changes
Di Sorbo, A., Panichella, S., Alexandru, C. V., Shimagaki, J., Visaggio, C. A., Canfora, G., & Gall, H. C. (2016) · Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering · doi:10.1145/2950290.2950299 · Cited by 294
“Our research represents a cross-section of the field of issue categorization [14] and classification/summarization of natural language corpora [6, 31, 35–37, 41, 44, 45] or source code [12,21,23,25,26,42,43] in the specific context of mobile app reviews.”
MethodDeep code comment generation with hybrid lexical and syntactical information
Hu, X., Li, G., Xia, X., Lo, D., & Jin, Z. (2020) · Empirical Software Engineering · doi:10.1007/s10664-019-09730-9 · Cited by 278
“Automatic code summarization approaches vary from manually-crafted template (Sridhara et al. 2011; Sridhara et al. 2010; McBurney and McMillan 2014), IR (Wong et al. 2013; Haiduc et al. 2010a, b) to learning-based approaches (Iyer et al. 2016; Movshovitz-Attias and Cohen 2013; Allamanis et al.…”
BackgroundMethodInfluentialRetrieval-based neural source code summarization
Zhang, J., Wang, X., Zhang, H., Sun, H., & Liu, X. (2020) · Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering · doi:10.1145/3377811.3380383 · Cited by 275
“In addition, Srid-hara et al. [52] design heuristics to choose statements from Java methods, and use the Software Word Usage Model (SWUM) to identify keywords from those statements and create summaries though manually-crafted templates.”
MethodLearning to Generate Pseudo-Code from Source Code Using Statistical Machine Translation
Oda, Y., Fudaba, H., Neubig, G., Hata, H., Sakti, S., Toda, T., & Nakamura, S. (2015) · 2015 30th IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2015.36 · Cited by 250
Automatically generating commit messages from diffs using neural machine translation
Jiang, S., Armaly, A., & McMillan, C. (2017) · 2017 32nd IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2017.8115626 · Cited by 255
Neural-machine-translation-based commit message generation: how far are we?
Liu, Z., Xia, X., Hassan, A. E., Lo, D., Xing, Z., & Wang, X. (2018) · Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering · doi:10.1145/3238147.3238190 · Cited by 247
“For example, to summarize Java method, the framework proposed by Sridhara et al. first identifies significant statements of a Java method according to structural and linguistic clues, then expresses extracted content in natural language using predefined text templates [56].”
MethodAutoComment: Mining question and answer sites for automatic comment generation
Wong, E., Yang, J., & Tan, L. (2013) · 2013 28th IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2013.6693113 · Cited by 245
Few-shot training LLMs for project-specific code-summarization
Ahmed, T., & Devanbu, P. (2022) · Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3551349.3559555 · Cited by 240
“Good quality comments can benefit the developers by contributing to both the development and maintenance process [20].”
BackgroundTu, Z., Su, Z., & Devanbu, P. (2014) · Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering · doi:10.1145/2635868.2635875 · Cited by 238
“on GitHub and BitBucket), software engineering researchers have turned to empirical methods to study the process of developing and maintaining software [11, 27, 38, 40, 42–45, 47, 49].”
MethodAutomatic documentation generation via source code summarization of method context
McBurney, P. W., & McMillan, C. (2014) · Proceedings of the 22nd International Conference on Program Comprehension · doi:10.1145/2597008.2597149 · Cited by 220
“The technique selects statements from the class based on this stereotype, and then uses the approach by Sridhara [46] to summarize those statements.”
BackgroundMethodInfluential@tComment: Testing Javadoc Comments to Detect Comment-Code Inconsistencies
Tan, S. H., Marinov, D., Tan, L., & Leavens, G. T. (2012) · 2012 IEEE Fifth International Conference on Software Testing, Verification and Validation · doi:10.1109/icst.2012.106 · Cited by 197
“Several recent projects infer comments for failed test cases [45], exceptions [14], API function cross-references [26], software changes [15], and semantically related code segments [35], [36].”
BackgroundImproving automated source code summarization via an eye-tracking study of programmers
Rodeghero, P., McMillan, C., McBurney, P. W., Bosch, N., & D'Mello, S. (2014) · Proceedings of the 36th International Conference on Software Engineering · doi:10.1145/2568225.2568247 · Cited by 198
“Categories and Subject Descriptors D.2 [Software]: Software Engineering; D.2.9 [Software Engineering]: Management—Productivity General Terms Algorithms, Documentation Keywords Source code summaries, program comprehension”
BackgroundMethodInfluentialSoftware Documentation Issues Unveiled
Aghajani, E., Nagy, C., Vega-Marquez, O. L., Linares-Vasquez, M., Moreno, L., Bavota, G., & Lanza, M. (2019) · 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2019.00122 · Cited by 195
Automatically detecting and describing high level actions within methods
Sridhara, G., Pollock, L., & Vijay-Shanker, K. (2011) · Proceedings of the 33rd International Conference on Software Engineering · doi:10.1145/1985793.1985808 · Cited by 182
Self-citationAutomatic Source Code Summarization of Context for Java Methods
McBurney, P. W., & McMillan, C. (2016) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2015.2465386 · Cited by 187
“RQ1 To what degree do the automated and manuallywritten summaries differ in overall accuracy? RQ2 To what degree do the automated and manuallywritten summaries differ in terms of missing important information? RQ3 To what degree do the automated and manuallywritten summaries differ in terms of including unnecessary in…”
BackgroundMethodInfluentialAutomatic Summarization of Bug Reports
Rastkar, S., Murphy, G. C., & Murray, G. (2014) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2013.2297712 · Cited by 178
“[25] proposed a technique to generate descriptive natural language sum-”
MethodCloCom: Mining existing source code for automatic comment generation
Wong, E., Liu, T., & Tan, L. (2015) · 2015 IEEE 22nd International Conference on Software Analysis, Evolution, and Reengineering (SANER) · doi:10.1109/saner.2015.7081848 · Cited by 162
“Amongst the reported code comments, seven have been confirmed by the developers as good and committable to the software repository while the rest await for developers’ confirmation.”
BackgroundNatural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Review
Wong, M.-F., Guo, S., Hang, C.-N., Ho, S.-W., & Tan, C.-W. (2023) · Entropy · doi:10.3390/e25060888 · Cited by 134
“For instance, an attacker may use a poisoned dataset to manipulate an LLM, resulting in the generation of malicious code that can be used to exploit vulnerabilities in the software system.”
MethodOn Automatically Generating Commit Messages via Summarization of Source Code Changes
Cortes-Coy, L. F., Linares-Vasquez, M., Aponte, J., & Poshyvanyk, D. (2014) · 2014 IEEE 14th International Working Conference on Source Code Analysis and Manipulation · doi:10.1109/scam.2014.14 · Cited by 164
“Since ChangeScribe uses code summarization techniques for generating commit messages, we decided to use an evaluation framework, which was previously used for assessing automatically generated code summaries [33][23].”
MethodSoftware documentation: the practitioners' perspective
Aghajani, E., Nagy, C., Linares-Vásquez, M., Moreno, L., Bavota, G., Lanza, M., & Shepherd, D. C. (2020) · Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering · doi:10.1145/3377811.3380405 · Cited by 124
Code Structure–Guided Transformer for Source Code Summarization
Gao, S., Gao, C., He, Y., Zeng, J., Nie, L., Xia, X., & Lyu, M. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3522674 · Cited by 113
“1 Source Code Summarization There have been extensive research in source code summarization, including template-based approaches [41, 43, 52], information-retrieval-based approaches [24, 44, 62] and deep-learning-based-approaches [4, 27, 31].”
BackgroundDeep learning-based software engineering: progress, challenges, and opportunities
Chen, X., Hu, X., Huang, Y., Jiang, H., Ji, W., Jiang, Y., Jiang, Y., Liu, B., Liu, H., Li, X., et al. (2024) · Science China Information Sciences · doi:10.1007/s11432-023-4127-5 · Cited by 152
Reinforcement-Learning-Guided Source Code Summarization Using Hierarchical Attention
Wang, W., Zhang, Y., Sui, Y., Wan, Y., Zhao, Z., Wu, J., Yu, P. S., & Xu, G. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2020.2979701 · Cited by 103
“and then generate comments based on templates or rules [32].”
BackgroundMethodAutomatic Generation of Pull Request Descriptions
Liu, Z., Xia, X., Treude, C., Lo, D., & Li, S. (2019) · 2019 34th IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2019.00026 · Cited by 106
“Concerning source code, some techniques have been proposed to summarize source code based on program analysis and manually-defined templates [45], [47], [49], information retrieval [46], [48], and learning-based methods [26], [30], [50].”
MethodRecommendations for Datasets for Source Code Summarization
LeClair, A., & McMillan, C. (2019) · Proceedings of the 2019 Conference of the North · doi:10.18653/v1/n19-1394 · Cited by 111
“Work by Haiduc et al. (Haiduc et al., 2010a,b) in 2010 coined the term “source code summarization”, and several heuristic/template-based techniques followed including work by Sridhara et al. (Sridhara et al., 2010, 2011), McBurney et al. (McBurney and McMillan, 2016), and Rodeghero et al. (Rodeghero et al., 2015).”
MethodSemantic similarity metrics for evaluating source code summarization
Haque, S., Eberhart, Z., Bansal, A., & McMillan, C. (2022) · Proceedings of the 30th IEEE/ACM International Conference on Program Comprehension · doi:10.1145/3524610.3527909 · Cited by 116
Improved Automatic Summarization of Subroutines via Attention to File Context
Haque, S., LeClair, A., Wu, L., & McMillan, C. (2020) · Proceedings of the 17th International Conference on Mining Software Repositories · doi:10.1145/3379597.3387449 · Cited by 102
“[32] describe code summarization in detail, including heuristic-based techniques [30, 39, 40].”
BackgroundMethodInfluentialAutomatic Semantic Augmentation of Language Model Prompts (for Code Summarization)
Ahmed, T., Pai, K. S., Devanbu, P., & Barr, E. (2024) · Proceedings of the IEEE/ACM 46th International Conference on Software Engineering · doi:10.1145/3597503.3639183 · Cited by 112
“Initially, template-based approaches were popular [17, 26, 27, 56, 61]; however, creating a list of templates with good coverage is very challenging.”
The impact of test case summaries on bug fixing performance: an empirical investigation
Panichella, S., Panichella, A., Beller, M., Zaidman, A., & Gall, H. C. (2016) · Proceedings of the 38th International Conference on Software Engineering · doi:10.1145/2884781.2884847 · Cited by 106
“We evaluate the quality according to three widely known dimensions [37, 48]:”
BackgroundMethodInfluentialOn-demand Developer Documentation
Robillard, M. P., Marcus, A., Treude, C., Bavota, G., Chaparro, O., Ernst, N., Gerosa, M. A., Godfrey, M., Lanza, M., Linares-Vasquez, M., et al. (2017) · 2017 IEEE International Conference on Software Maintenance and Evolution (ICSME) · doi:10.1109/icsme.2017.17 · Cited by 104
AUSUM: approach for unsupervised bug report summarization
Mani, S., Catherine, R., Sinha, V. S., & Dubey, A. (2012) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/2393596.2393607 · Cited by 135
“developed novel heuristics to automatically summarize a Java method in the form of natural language comments [38, 37].”
MethodAutomatic Generation of Text Descriptive Comments for Code Blocks
Liang, Y., & Zhu, K. (2018) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v32i1.11963 · Cited by 106
“[28] proposed an automatic comment generator that identifies the content for the summary and generates natural language text that summarizes the methods overall actions based on some templates.”
BackgroundCan LLMs Replace Manual Annotation of Software Engineering Artifacts?
Ahmed, T., Dévanbu, P., Treude, C., & Pradel, M. (2025) · International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr66628.2025.00086 · Cited by 162
“Haque et al. [5] considered four criteria: accuracy, adequacy, conciseness, and similarity—that should be considered when evaluating code summary quality.”
Omran, F. N. A. A., & Treude, C. (2017) · International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr.2017.42 · Cited by 107
Commit Message Generation for Source Code Changes
Xu, S., Yao, Y., Xu, F., Gu, T., Tong, H., & Lu, J. (2019) · Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2019/552 · Cited by 93
Wang, A. Y., Wang, D., Drozdal, J., Muller, M., Park, S., Weisz, J. D., Liu, X., Wu, L., & Dugan, C. (2022) · ACM Transactions on Computer-Human Interaction · doi:10.1145/3489465 · Cited by 81
Generating Parameter Comments and Integrating with Method Summaries
Sridhara, G., Pollock, L., & Vijay-Shanker, K. (2011) · 2011 IEEE 19th International Conference on Program Comprehension · doi:10.1109/icpc.2011.28 · Cited by 104
“When the signature does not provide enough details about a method to further distinguish relevance to the maintenance task, a high-level overview of the method’s functionality can be obtained from the leading summary comments, either manually written by the developer or automatically generated from the method source […”
InfluentialSelf-citationAutomatic generation of release notes
Moreno, L., Bavota, G., Di Penta, M., Oliveto, R., Marcus, A., & Canfora, G. (2014) · Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering · doi:10.1145/2635868.2635870 · Cited by 101
“It is important to point out that (i) the approach has been designed after manually analyzing 1,000 project release notes to identify what elements they typically contain; and (ii) ARENA produces detailed release notes, mainly intended to be used by developers and integrators .”
MethodCharacterizing the natural language descriptions in software logging statements
He, P., Chen, Z., He, S., & Lyu, M. R. (2018) · Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering · doi:10.1145/3238147.3238193 · Cited by 91
“All these studies provide insightful findings on logging practice, which shed lights into our study of the natural language descriptions in software logs.”
BackgroundThe Art and Science of Analyzing Software Data
(2015) · Elsevier eBooks · doi:10.1016/c2012-0-07289-4 · Cited by 107
Natural Language Models for Predicting Programming Comments
Movshovitz‐Attias, D., & Cohen, W. W. (2018) · Figshare · doi:10.1184/r1/6475913 · Cited by 100
A neural framework for retrieval and summarization of source code
Chen, Q., & Zhou, M. (2018) · Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering · doi:10.1145/3238147.3240471 · Cited by 98
“[26] presented an approach that generates summaries for Java methods automatically using content”
MethodClassifying Code Comments in Java Open-Source Software Systems
Pascarella, L., & Bacchelli, A. (2017) · International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr.2017.63 · Cited by 123
“This confirms the value of research efforts that attempt to generate summaries for functions and methods automatically, by analyzing the source code [26].”
BackgroundARENA: An Approach for the Automated Generation of Release Notes
Moreno, L., Bavota, G., Penta, M. D., Oliveto, R., Marcus, A., & Canfora, G. (2016) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2016.2591536 · Cited by 97
“…learn what has changed in the code, which features have been implemented and which features are left for future releases, which bugs have been fixed and which ones are still open, whether or not the latest release introduced new legal constraints, etc. Similarly, integrators, who are using a…”
BackgroundAutomatic Code Documentation Generation Using GPT-3
Khan, J. Y., & Uddin, G. (2022) · Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3551349.3559548 · Cited by 96
“utilized natural language templates to capture the key statements from a Java method and build a method level summary [47].”
BackgroundMethodCoaCor: Code Annotation for Code Retrieval with Reinforcement Learning
Yao, Z., Peddamail, J. R., & Sun, H. (2019) · The World Wide Web Conference · doi:10.1145/3308558.3313632 · Cited by 89
“ures the cosine similarity between them. Code Annotation. Code annotation/summarization has drawn a lot of attention in recent years. Earlier works tackled the problem using template-based approaches [37, 49] and topic n-grams models [38] while the recent techniques [2, 19–22, 31] are mostly built upon deep neural net…”
MethodConcept location using formal concept analysis and information retrieval
Poshyvanyk, D., Gethers, M., & Marcus, A. (2012) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/2377656.2377660 · Cited by 109
“With the emergence of various techniques to summarize software artifacts [Haiduc et al. 2010; Rastkar et al. 2010; Sridhara et al. 2010], we intend to explore the idea of replacing attribute labels with summaries of methods located in concept 23:30 D. Poshyvanyk et al. nodes of the lattice.”
MethodUsing IR methods for labeling source code artifacts: Is it worthwhile?
De Lucia, A., Di Penta, M., Oliveto, R., Panichella, A., & Panichella, S. (2012) · 2012 20th IEEE International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc.2012.6240488 · Cited by 94
“used natural language processing techniques to automatically generate leading method comments [42],”
MethodATOM: Commit Message Generation Based on Abstract Syntax Tree and Hybrid Ranking
Liu, S., Gao, C., Chen, S., Nie, L. Y., & Liu, Y. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2020.3038681 · Cited by 93
A Human Study of Comprehension and Code Summarization
Stapleton, S., Gambhir, Y., LeClair, A., Eberhart, Z., Weimer, W., Leach, K., & Huang, Y. (2020) · Proceedings of the 28th International Conference on Program Comprehension · doi:10.1145/3387904.3389258 · Cited by 77
“For this reason, many proposed code summarization techniques are accompanied by a human study, in which programmers are asked to judge the quality of generated comments [23, 46, 62].”
BackgroundMining source code descriptions from developer communications
Panichella, S., Aponte, J., Penta, M. D., Marcus, A., & Canfora, G. (2012) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc.2012.6240510 · Cited by 91
“[21] and information retrieval techniques [22] to generate method summaries.”
Method(2023) · doi:10.1145/3510003.3510060 · Cited by 88
“In the early stage of automatic source code summarization, templatebased approaches [14, 20, 21, 51, 56] are widely used.”
BackgroundMethodSummarizing Software Artifacts: A Literature Review
Nazar, N., Hu, Y. Z., & Jiang, H. (2016) · Journal of Computer Science and Technology · doi:10.1007/s11390-016-1671-1 · Cited by 95
“Her techniques set standards for studies afterwards and are complemented by future studies, e.g.,[3] [4].”
AUGER: automatically generating review comments with pre-training models
Li, L., Yang, L., Jiang, H., Yan, J., Luo, T., Hua, Z., Liang, G., & Zuo, C. (2022) · Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3540250.3549099 · Cited by 57
Improving Code Summarization with Block-wise Abstract Syntax Tree Splitting
Lin, C., Ouyang, Z., Zhuang, J., Chen, J., Li, H., & Wu, R. (2021) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc52881.2021.00026 · Cited by 97
Ratol, I. K., & Robillard, M. P. (2017) · 2017 32nd IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2017.8115624 · Cited by 70
A Systematic Comparison of search-Based approaches for LDA hyperparameter tuning
Panichella, A. (2020) · Information and Software Technology · doi:10.1016/j.infsof.2020.106411 · Cited by 87
“…used textual information in software documents (e.g., bug reports, use cases) to support software engineers performing various tasks, such as traceability link retrieval [1], identify bug report duplicates [2], automated summary generator [3,4], source code labeling [5], and bug localization [6].”
A Survey of Automatic Source Code Summarization
Zhang, C., Wang, J., Zhou, Q., Xu, T. X., Tang, K., Gui, H., & Liu, F. (2022) · Symmetry · doi:10.3390/sym14030471 · Cited by 103
Assessing the Generalizability of Code2vec Token Embeddings
Kang, H. J., Bissyandé, T. F., & Lo, D. (2019) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2019.00011 · Cited by 90
“of a method [11], [32], [33].”
A Multi-Modal Transformer-based Code Summarization Approach for Smart Contracts
Yang, Z., Keung, J., Yu, X., Gu, X., Wei, Z., Ma, X., & Zhang, M. (2021) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc52881.2021.00010 · Cited by 96
Generating natural language summaries for crosscutting source code concerns
Rastkar, S., Murphy, G. C., & Bradley, A. W. J. (2011) · 2011 27th IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsm.2011.6080777 · Cited by 80
A Survey of Automatic Generation of Source Code Comments: Algorithms and Techniques
Song, X., Sun, H., Wang, X., & Yan, J. (2019) · IEEE Access · doi:10.1109/access.2019.2931579 · Cited by 70
“First, measuring code comments with their contents: evaluating the generated comments on contents, such as adequacy, accuracy [46], [67], [69], conciseness, informativeness [33] and interpretability [89], etc.”
BackgroundMethodInfluentialEditSum: A Retrieve-and-Edit Framework for Source Code Summarization
Li, J. A., Li, Y., Li, G., Hu, X., Xia, X., & Jin, Z. (2021) · 2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase51524.2021.9678724 · Cited by 62
“A code summary provides a concise natural language description for a code snippet, which can help developers understand the program quickly and correctly [4].”
BackgroundMethodLeveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learning
Ye, W., Xie, R., Zhang, J., Hu, T., Wang, X., & Zhang, S. (2020) · Proceedings of The Web Conference 2020 · doi:10.1145/3366423.3380295 · Cited by 53
“[26] generated comments according to the keywords extracted from code.”
MethodCODES: mining source code descriptions from developers discussions
Vassallo, C., Panichella, S., Penta, M. D., & Canfora, G. (2014) · International Conference on Program Comprehension · doi:10.1145/2597008.2597799 · Cited by 71
“…in software engineering • Search Based Software Engineering for Program Comprehension • Case studies – clustering based Lecture 2 Machine learning in Software Engineering • Existing approaches • Reformulate software engineering problems • Evaluation criteria for search based software engineering”
MethodModelling the ‘hurried’ bug report reading process to summarize bug reports
Lotufo, R., Malik, Z., & Czarnecki, K. (2014) · Empirical Software Engineering · doi:10.1007/s10664-014-9311-2 · Cited by 71
Part-of-speech tagging of program identifiers for improved text-based software engineering tools
Gupta, S., Malik, S., Pollock, L., & Vijay‐Shanker, K. (2013) · International Conference on Program Comprehension · doi:10.1109/icpc.2013.6613828 · Cited by 71
“[4] leverage the natural language information generated by the Software Word Usage Model (SWUM) [13] to identify the action, theme and secondary arguments of a method name to automatically generate leading comments that describe a method’s intent.”
BackgroundMethodSelf-citationDetecting User Story Information in Developer-Client Conversations to Generate Extractive Summaries
Rodeghero, P., Jiang, S., Armaly, A., & McMillan, C. (2017) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2017.13 · Cited by 78
“Nevertheless, abstractive summarization techniques do exist in the software engineering literature, such as work by McBurney et al. [18], Sridhara et al. [19], [20], [21], Moreno et al [22], [23], [24], and Buse and Weimer [25], [26].”
MethodAn Empirical Study on Evolution of API Documentation
Shi, L., Zhong, H., Xie, T., & Li, M. (2011) · Lecture notes in computer science · doi:10.1007/978-3-642-19811-3_29 · Cited by 70
“[20] proposed an approach that infers comments of Java methods from API code.”
MethodRetrieve and refine: exemplar-based neural comment generation
Wei, B., Li, Y., Li, G., Xia, X., & Jin, Z. (2020) · Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3324884.3416578 · Cited by 69
“[37] developed the Software Word Usage Model (SWUM) to capture the occurrences of terms in source code and their linguistic and structural relationships and then defined different templates for different semantic segments in source code to generate readable natural language.”
BackgroundMethodInfluentialAn Eye-Tracking Study of Java Programmers and Application to Source Code Summarization
Rodeghero, P., Liu, C., McBurney, P. W., & McMillan, C. (2015) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2015.2442238 · Cited by 78
“designed heuristics to choose statements from Javamethods, and then used keywords from those statements to create a summary using sentence templates [20].”
MethodAutomatic summarization of API reviews
Uddin, G., & Khomh, F. (2017) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2017.8115629 · Cited by 83
Are we building on the rock? on the importance of data preprocessing for code summarization
Shi, L., Mu, F., Chen, X., Wang, S., Wang, J., Yang, Y., Li, G., Xia, X., & Wang, Q. (2022) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3540250.3549145 · Cited by 86
“Code summarization [49, 62] aims at generating a comment for a given block of source code that can help developers better understand and maintain source code.”
AST-trans: code summarization with efficient tree-structured attention
Tang, Z. J., Shen, X., Li, C., Ge, J., Huang, L., Zhu, Z., & Luo, B. (2022) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3510003.3510224 · Cited by 92
“The traditional methods utilized handcrafted rules like Software Word-Usage Model (SWUM) [43] or stereotypes [30] to synthesize the code summaries.”
BackgroundMethodRecommending insightful comments for source code using crowdsourced knowledge
Rahman, M. M., Roy, C. K., & Keivanloo, I. (2015) · IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) · doi:10.1109/scam.2015.7335404 · Cited by 67
“, one method body [29], groups of method calls [30]).”
BackgroundMethodInfluentialPractitioners' expectations on automated code comment generation
Hu, X., Xia, X., Lo, D., Wan, Z., Chen, Q., & Zimmermann, T. (2022) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3510003.3510152 · Cited by 85
“, [42]), and deep-learning-based code comment generation (e.”
BackgroundMethodInfluentialClassifying code comments in Java software systems
Pascarella, L., Bruntink, M., & Bacchelli, A. (2019) · Empirical Software Engineering · doi:10.1007/s10664-019-09694-w · Cited by 57
“TThis is in line with the value of research efforts that attempt to generate summaries for functions and methods automatically, by analyzing the source code (Sridhara et al. 2010).”
BackgroundResultYing, A. T. T., & Robillard, M. P. (2013) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/2491411.2494587 · Cited by 69
“Several efforts have investigated reduced representations of software artifacts, including summarizing bug reports [15, 12] and producing a succinct set of textual keywords [8] or textual summary [18, 19] given the source code of a method.”
BackgroundTowards Automatic Generation of Security-Centric Descriptions for Android Apps
Zhang, M., Duan, Y., Qian, F., & Yin, H. (2015) · ACM SIGSAC Conference on Computer and Communications Security (CCS) · doi:10.1145/2810103.2813669 · Cited by 61
“…[Software Engineering]: Distribution, Maintenance, and Enhancement—Documentation; D.4.6 [Operating Systems]: Security and Protection—Invasive software General Terms Security Keywords Android; Malware prevention; Textual description; Program analysis; Subgraph mining; Natural language generation”
BackgroundInfluentialRetrieve and Refine: Exemplar-Based Neural Comment Generation
Wei, B. (2019) · 2019 34th IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2019.00152 · Cited by 25
“Templatebased approaches [1], [12]–[14] generate comments based on manually defined rules and information from the source code.”
BackgroundMining Version Control System for Automatically Generating Commit Comment
Huang, Y., Zheng, Q., Chen, X., Xiong, Y., Liu, Z., & Luo, X. (2017) · 2017 ACM/IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM) · doi:10.1109/esem.2017.56 · Cited by 56
“[11] presented a novel technique to automatically generate descriptive summary for Java methods.”
Code to comment "translation": data, metrics, baselining & evaluation
Gros, D., Sezhiyan, H., Devanbu, P., & Yu, Z. (2020) · Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3324884.3416546 · Cited by 43
“wever, developers find it challenging to create & maintain useful comments [17, 19]. This has sparked a long line of research looking into the problem of comment generation. An early line of work [11, 40, 48, 49] was rule-based, combining some form analysis of the source code to extract specific information, which…”
BackgroundMethodAutomated documentation inference to explain failed tests
Zhang, S., Zhang, C., & Ernst, M. D. (2011) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2011.6100145 · Cited by 62
“Some techniques generate comments for exceptions [3], API function cross-references [11], software changes [4], [15], and descriptive summary comments for methods [24], [25].”
MethodAutomating just-in-time comment updating
Liu, Z., Xia, X., Yan, M., & Li, S. (2020) · Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3324884.3416581 · Cited by 56
“[40] proposed an approach to generate comments for Java methods using summary information in source code and manually defined templates.”
BackgroundMethodCORE: Automating Review Recommendation for Code Changes
Siow, J. K., Gao, C., Fan, L., Chen, S., & Liu, Y. (2020) · 2020 IEEE 27th International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner48275.2020.9054794 · Cited by 56
“Some papers [65], [66] also researched on heuristic-based and natural language techniques to provide comments for source code of small functions/methods.”
BackgroundM2TS: multi-scale multi-modal approach based on transformer for source code summarization
Gao, Y., & Lyu, C. (2022) · Proceedings of the 30th IEEE/ACM International Conference on Program Comprehension · doi:10.1145/3524610.3527907 · Cited by 43
“[14] applied a method for creating artificial templates where they used the SoftwareWord Usage Model (SWUM) to generate comments for Java methods.”
SWordNet: Inferring semantically related words from software context
Yang, J., & Tan, L. (2013) · Empirical Software Engineering · doi:10.1007/s10664-013-9264-x · Cited by 64
Metadata
- Authors
- Sridhara, G., Hill, E., Muppaneni, D., Pollock, L., & Vijay-Shanker, K.
- Affiliations
- University of Delaware (US)
- University of Delaware, Newark, DE, USA
- Venue
- Proceedings of the IEEE/ACM international conference on Automated software engineering
- Publisher
- ACM
- Published
- 2010-09-20
- Pages
- 43-52
- OpenAlex
- W2082160726
- Cited by
- 514
- References
- 32
- Citations by year
- 2026: 9 · 2025: 29 · 2024: 31 · 2023: 52 · 2022: 46 · 2021: 41 · 2020: 56 · 2019: 50 · 2018: 41 · 2017: 34 · 2016: 23 · 2015: 30 · 2014: 26 · 2013: 16 · 2012: 16
- FWCI
- 10.33
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- IEEE/ACM International Conference on Automated Software Engineering (ASE) (publishedVersion)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Information Systems › Software Engineering Techniques and Practices
- Physical Sciences › Computer Science › Software › Advanced Software Engineering Methodologies
- Keywords
- Java methods, program comprehension, software maintenance, natural language generation, source code documentation
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.