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
Items 101–200 of 525
How Good is Your Comment? A Study of Comments in Java Programs
Haouari, D., Sahraoui, H. A., & Langlais, P. (2011) · Proceedings of the ... ACM-IEEE International Symposium on Empirical Software Engineering and Measurement/International Symposium on Empirical Software Engineering and Measurement · doi:10.1109/esem.2011.22 · Cited by 63
“[12] proposed an automatic approach for generating comments from source code for Java methods.”
MethodDeveloper Reading Behavior While Summarizing Java Methods: Size and Context Matters
Abid, N. J., Sharif, B., Dragan, N., Alrasheed, H., & Maletic, J. I. (2019) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2019.00052 · Cited by 77
“Several approaches are proposed to generate automatic summaries using Natural Language Processing (NLP) [6, 7], text retrieval [8, 9], and static analysis [10, 11].”
BackgroundMethodInfluentialJSummarizer: An automatic generator of natural language summaries for Java classes
Moreno, L., Marcus, A., Pollock, L., & Vijay‐Shanker, K. (2013) · International Conference on Program Comprehension · doi:10.1109/icpc.2013.6613855 · Cited by 63
“[4-6], whereas the other components are unique to JSummarizer.”
BackgroundMethodSelf-citationModelling the ‘Hurried’ bug report reading process to summarize bug reports
Lotufo, R., Malik, Z. H., & Czarnecki, K. (2012) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsm.2012.6405303 · Cited by 62
Automatically Documenting Unit Test Cases
Li, B., Vendome, C., Linares‐Vásquez, M., Poshyvanyk, D., & Kraft, N. A. (2016) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst.2016.30 · Cited by 65
Automatic Detection and Repair Recommendation of Directive Defects in Java API Documentation
Zhou, Y., Wang, C., Yan, X., Chen, T., Panichella, S., & Gall, H. (2020) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2018.2872971 · Cited by 51
“previous work [29], [32], [33], [34], we primarily consider three aspects, i.”
BackgroundRastkar, S., & Murphy, G. C. (2013) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2013.6606676 · Cited by 72
“This includes efforts on producing summaries of source code, for example term-based summaries for methods and classes [9], natural language summary comments for arbitrary Java methods [10] and natural language summaries for crosscutting concerns [11].”
BackgroundTutorons: Generating context-relevant, on-demand explanations and demonstrations of online code
Head, A., Appachu, C., Hearst, M. A., & Hartmann, B. (2015) · 2015 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC) · doi:10.1109/vlhcc.2015.7356972 · Cited by 50
“This body of work aims to reduce the cost of searching and understanding code and specifications by automatically summarizing blocks of code [8], class diagrams [9], Java methods [10], unit test cases [11], method context [12], parameters [13], and classes [14].”
BackgroundAn empirical investigation of how and why developers rename identifiers
Peruma, A., Mkaouer, M. W., Decker, M. J., & Newman, C. D. (2018) · doi:10.1145/3242163.3242169 · Cited by 61
“Manytechniques to support comprehension rely on the analysis of identifiers [16, 17, 31, 32].”
BackgroundGenerating query-specific class API summaries
Liu, M., Peng, X., Marcus, A., Xing, Z., Xie, W., Xing, S., & Liu, Y. (2019) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3338906.3338971 · Cited by 61
“We perform an empirical intrinsic evaluation for assessing the API summaries generated by KG-APISumm , following the evaluation proposed in previous research [32, 45].”
MethodCPC: automatically classifying and propagating natural language comments via program analysis
Zhai, J., Xu, X., Shi, Y., Tao, G., Pan, M., Ma, S., Xu, L., Zhang, W., Tan, L., & Zhang, X. (2020) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3377811.3380427 · Cited by 67
Autofolding for Source Code Summarization
Fowkes, J., Chanthirasegaran, P., Ranca, R., Allamanis, M., Lapata, M., & Sutton, C. A. (2017) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2017.2664836 · Cited by 63
“Recent work has applied language modelling [20], [21], [22], [23], [24], natural language generation [12], [25], machine translation [26], and topic modelling [27] to the text of source code”
BackgroundMethodUsing stereotypes in the automatic generation of natural language summaries for C++ methods
Abid, N. J., Dragan, N., Collard, M. L., & Maletic, J. I. (2015) · 2015 IEEE International Conference on Software Maintenance and Evolution (ICSME) · doi:10.1109/icsm.2015.7332514 · Cited by 45
DeepTC-enhancer: improving the readability of automatically generated tests
Roy, D., Zhang, Z., Ma, M., Arnaoudova, V., Panichella, A., Panichella, S., Gonzalez, D., & Mirakhorli, M. T. (2020) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3324884.3416622 · Cited by 66
“At method level, Sridhara et al. [42] propose an approach that automatically generates natural language summary comments for Java methods.”
BackgroundMethodDistilled GPT for source code summarization
Su, C.-Y., & McMillan, C. (2024) · Automated Software Engineering · doi:10.1007/s10515-024-00421-4 · Cited by 49
“We designed our survey to be consistent with years of best-practice in evaluating summaries, namely from Sridhara et al (2010); McBurney et al (2016); Bansal et al (2021a), including the wording we use in the survey questions.”
Project-Level Encoding for Neural Source Code Summarization of Subroutines
Bansal, A., Haque, S., & McMillan, C. (2021) · 2021 IEEE/ACM 29th International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc52881.2021.00032 · Cited by 46
An Extractive-and-Abstractive Framework for Source Code Summarization
Sun, W., Fang, C., Chen, Y., Zhang, Q., Tao, G., You, Y., Han, T., Ge, Y., Hu, Y., Luo, B., et al. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3632742 · Cited by 69
“rization techniques [24, 25, 53, 65] are extractive methods.”
Calibration of Large Language Models on Code Summarization
Virk, Y., Dévanbu, P., & Ahmed, T. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3729400 · Cited by 59
“Code summarization is important for code understanding and maintenance [Sridhara et al. 2010]; building tools that can automatically summarize a given piece of code (method or snippet) is an important challenge that has received considerable attention [Zhang et al. 2022; Zhu and Pan 2019].”
Natural language generation from class diagrams
Burden, H., & Heldal, R. (2011) · doi:10.1145/2095654.2095665 · Cited by 52
“This can be done by transforming the Action language code into textual comments, adopting the results from [32] to xtUML and MDA.”
Developer-Intent Driven Code Comment Generation
Mu, F., Chen, X., Shi, L., Wang, S., & Wang, Q. (2023) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse48619.2023.00073 · Cited by 65
“Early studies typically utilize template-based approaches [45]–[47] and information retrieval (IR) based approaches [48]–[55] to generate comments.”
On the Significance of Category Prediction for Code-Comment Synchronization
Yang, Z., Keung, J., Yu, X., Xiao, Y., Jin, Z. G., & Zhang, J. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3534117 · Cited by 48
“Code comments give a clear natural language description for source code, which are critical for program comprehension and software maintenance [40, 45, 73].”
BackgroundMining API usage scenarios from stack overflow
Uddin, G., Khomh, F., & Roy, C. K. (2020) · Information and Software Technology · doi:10.1016/j.infsof.2020.106277 · Cited by 57
“, class [56], method [82, 83]), which takes as input source code (e.”
BackgroundImproving topic model source code summarization
McBurney, P. W., Liu, C., McMillan, C., & Weninger, T. (2014) · International Conference on Program Comprehension · doi:10.1145/2597008.2597793 · Cited by 52
“The expert did not interact with the user other than to briefly explain the interface, nor did the expert monitor the participants’ progress in the survey.”
BackgroundLabeling source code with information retrieval methods: an empirical study
Lucia, A. D., Penta, M. D., Oliveto, R., Panichella, A., & Panichella, S. (2013) · Empirical Software Engineering · doi:10.1007/s10664-013-9285-5 · Cited by 53
“used natural language processing techniques to automatically generate leading method comments [45], and comments for high-level actions [46].”
MethodThe Essence of Software Engineering
Gruhn, V., & Striemer, R. (2018) · Springer eBooks · doi:10.1007/978-3-319-73897-0 · Cited by 53
SeCNN: A semantic CNN parser for code comment generation
Li, Z., Wu, Y., Peng, B., Chen, X., Sun, Z., Liu, Y., & Yu, D. (2021) · Journal of Systems and Software · doi:10.1016/j.jss.2021.111036 · Cited by 48
Summarizing and measuring development activity
Treude, C., Figueira Filho, F., & Kulesza, U. (2015) · Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering · doi:10.1145/2786805.2786827 · Cited by 42
“Sridhara et al. [51] presented a technique that summarizes a method’s actions, which requires the detection of code fragments implementing high level actions within methods [52].”
BackgroundMethodTowards automatically generating descriptive names for unit tests
Zhang, B., Hill, E., & Clause, J. (2016) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/2970276.2970342 · Cited by 53
“proposed an approach for generating summary comments for Java methods based on structural and linguistic clues [26], automatically detecting and describing high level actions within methods [27], and generating comments for method parameters [28]; Haiduc et al.”
MethodSelf-citationBashExplainer: Retrieval-Augmented Bash Code Comment Generation based on Fine-tuned CodeBERT
Yu, C., Yang, G., Chen, X., Liu, K., & Zhou, Y. (2022) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsme55016.2022.00016 · Cited by 54
“High-quality code comments can improve the readability and comprehensibility of the code and play an important role during software development and maintenance [2], [3].”
BackgroundSupporting requirements to code traceability through refactoring
Mahmoud, A., & Niu, N. (2013) · Requirements Engineering · doi:10.1007/s00766-013-0197-0 · Cited by 46
“5a, the code clone does not include the method’s signatures, which has been found to add a significant information value to the generated summaries [22, 45, 84].”
MethodMining Unstructured Data in Software Repositories: Current and Future Trends
Bavota, G. (2016) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner.2016.47 · Cited by 54
“For example, comments left inside the code can be treated with NLP techniques to summarise code components [62] and the terms present in code comments and identifiers can be exploited via IR techniques to assess the quality of the code itself [16] or to link it to other software artefacts [37].”
MethodAboelnaga, A., Shaarawy, S., & Hassabo, A. G. (2018) · Colloids and Surfaces B Biointerfaces · doi:10.1016/j.colsurfb.2018.09.012 · Cited by 42
Understanding How and Why Developers Seek and Analyze API-Related Opinions
Uddin, G., Baysal, O., Guerrouj, L., & Khomh, F. (2019) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2903039 · Cited by 55
Yang, G., Chen, X., Cao, J., Xu, S., Cui, Z., Yu, C., & Liu, K. (2021) · International Conference on Dependable Systems and Their Applications (DSA) · doi:10.1109/dsa52907.2021.00013 · Cited by 44
A Review on Source Code Documentation
Rai, S., Belwal, R. C., & Gupta, A. (2022) · ACM Transactions on Intelligent Systems and Technology · doi:10.1145/3519312 · Cited by 27
“In the early time of the last decade, most research works [1, 70, 82, 90, 91] have applied template based approaches for documentation.”
BackgroundMethodInfluentialPollock, L., Shanker, V. K., & Hill, E. (2010) · Cited by 41
Self-citationSeTransformer: A Transformer-Based Code Semantic Parser for Code Comment Generation
Li, Z., Wu, Y., Peng, B., Chen, X., Sun, Z., Liu, Y., & Doyle, P. (2022) · IEEE Transactions on Reliability · doi:10.1109/tr.2022.3154773 · Cited by 47
“These methods were designed to generate code comments at the class [2] or function level [1], [3].”
BackgroundMethodContext-aware code summarization with multi-relational graph neural network
Wang, Y., Shi, E., Du, L., Yang, X., Hu, Y., Wang, Y., Guo, D., Han, S., Zhang, H., & Zhang, D. (2025) · Automated Software Engineering · doi:10.1007/s10515-025-00490-z · Cited by 45
An empirical study of the textual similarity between source code and source code summaries
McBurney, P. W., & McMillan, C. (2014) · Empirical Software Engineering · doi:10.1007/s10664-014-9344-6 · Cited by 45
“Then, it creates natural language sentences from the selected statements by placing keywords from the statements into predefined templates (Sridhara et al. 2010).”
InfluentialAutomatic source code summarization with graph attention networks
Zhou, Y., Shen, J., Zhang, X., Yang, W., Han, T., & Chen, T. (2022) · Journal of Systems and Software · doi:10.1016/j.jss.2022.111257 · Cited by 48
Source code fragment summarization with small-scale crowdsourcing based features
Nazar, N., Jiang, H., Gao, G., Zhang, T., Li, X., & Ren, Z. (2016) · Frontiers of Computer Science · doi:10.1007/s11704-015-4409-2 · Cited by 43
Extending Source Code Pre-Trained Language Models to Summarise Decompiled Binaries
Al-Kaswan, A., Ahmed, T., Izadi, M., Sawant, A. A., Dévanbu, P., & van Deursen, A. (2023) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner56733.2023.00033 · Cited by 74
“Source code summarisation is used to automatically generate short natural language descriptions of code, which support program comprehension and aid maintenance [12, 13].”
BackgroundMethodSemi-automatically extracting FAQs to improve accessibility of software development knowledge
Hens, S., Monperrus, M., & Mezini, M. (2012) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2012.6227139 · Cited by 39
“…intellectually challenging and time 1http://tldp.org/FAQ/Linux-FAQ/index.html 2http://wiki.apache.org/lucene-java/LuceneFAQ 3http://www.eclipse.org/swt/faq.php 4http://www.microsoft.com/silverlight/faq/ consuming endeavor, especially since it requires foreseeing potential questions of the reader.”
BackgroundDing, Z., Li, H., Shang, W., & Chen, T.-H. P. (2022) · Empirical Software Engineering · doi:10.1007/s10664-022-10118-5 · Cited by 46
“Code Comment Generation is a task to automatically generate code comments for a code snippet (McBurney and McMillan 2014; Sridhara et al. 2010; Moreno et al. 2013; Hu et al. 2018), which is helpful in program understanding and maintenance.”
BackgroundLightweight global and local contexts guided method name recommendation with prior knowledge
Wang, S., Wen, M., Lin, B., & Mao, X. (2021) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3468264.3468567 · Cited by 43
Just-In-Time Obsolete Comment Detection and Update
Liu, Z., Xia, X., Lo, D., Yan, M., & Li, S. (2023) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2021.3138909 · Cited by 33
“Many previous works proposed to generate code comments using rule-based and IR-based methods [34], [35], [36], [37], [38].”
MethodAutomatic Segmentation of Method Code into Meaningful Blocks to Improve Readability
Wang, X., Pollock, L., & Vijay‐Shanker, K. (2011) · Working Conference on Reverse Engineering (WCRE) · doi:10.1109/wcre.2011.15 · Cited by 47
“These include improving identifier naming [26], generating comments for Java methods [14], [27], refactoring code clones [28], refactoring long methods [29], instituting a readability group to ensure code readability [30], and even adding a development phase in which the program is made more readable [31].”
MethodSelf-citationTowards automatically generating block comments for code snippets
Huang, Y., Huang, S., Chen, H., Chen, X., Zheng, Z., Luo, X., Jia, N., Hu, X., & Zhou, X. (2020) · Information and Software Technology · doi:10.1016/j.infsof.2020.106373 · Cited by 41
Generating concept based API element comparison using a knowledge graph
Liu, Y., Liu, M., Peng, X., Treude, C., Xing, Z., & Zhang, X. (2020) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3324884.3416628 · Cited by 42
“In contrast, APIComp explicitly constructs a knowledge graph for extracted API statements and identifies corresponding and comparable API statements by combining conceptual distance and text similarity.”
BackgroundPRST: A PageRank-Based Summarization Technique for Summarizing Bug Reports with Duplicates
Jiang, H., Nazar, N., Zhang, J., Zhang, T., & Ren, Z. (2017) · International Journal of Software Engineering and Knowledge Engineering · doi:10.1142/s0218194017500322 · Cited by 39
“Similarly, Sridhara and colleagues [21] de ̄ned a technique to generate natural language summary comments for an arbitrary Java method by manipulating both structural and natural language evidences in the method based on heuristics.”
MethodDeepCommenter: a deep code comment generation tool with hybrid lexical and syntactical information
Li, B., Yan, M., Xia, X., Hu, X., Li, G., & Lo, D. (2020) · Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3368089.3417926 · Cited by 35
“Code comments are helpful for program comprehension [18, 22].”
BackgroundAPI2Com: On the Improvement of Automatically Generated Code Comments Using API Documentations
Shahbazi, R., Sharma, R., & Fard, F. H. (2021) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc52881.2021.00049 · Cited by 47
Proactive detection of inadequate diagnostic messages for software configuration errors
Zhang, S., & Ernst, M. D. (2015) · International Symposium on Software Testing and Analysis · doi:10.1145/2771783.2771817 · Cited by 48
“NLP techniques have been shown to be useful in requirements engineering [19, 43, 44], usability of API documents [69, 70], generation of program comments [23,34,47], code completion [22,37,41], and other tasks [50].”
Automatically generating natural language descriptions for object-related statement sequences
Wang, X., Pollock, L., & Vijay‐Shanker, K. (2017) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner.2017.7884622 · Cited by 44
“The closest related work to action unit identification is by Sridhara et al. who automatically detect and describe high-level actions within methods [1].”
MethodInfluentialSelf-citationCan a Chatbot Support Software Engineers with Load Testing? Approach and Experiences
Okanović, D., Beck, S., Merz, L., Zorn, C., Merino, L., van Hoorn, A., & Beck, F. (2020) · ACM/SPEC International Conference on Performance Engineering (ICPE) · doi:10.1145/3358960.3375792 · Cited by 40
“For instance, there are approaches that textually summarize source code [17, 18, 31], commits and releases [8, 19], or characteristics of executed tests [25].”
BackgroundOpiner: An opinion search and summarization engine for APIs
Uddin, G., & Khomh, F. (2017) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2017.8115715 · Cited by 47
Analyzing Code Comments to Boost Program Comprehension
Shinyama, Y., Arahori, Y., & Gondow, K. (2018) · Asia-Pacific Software Engineering Conference (APSEC) · doi:10.1109/apsec.2018.00047 · Cited by 35
“Sridhara et al. presented a framework for automatically generating a Java method description based on program analysis [24].”
MethodSelection and presentation practices for code example summarization
Ying, A. T. T., & Robillard, M. P. (2014) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/2635868.2635877 · Cited by 45
“[33] used heuristics for selecting statements within a method and templates for generating textual summaries.”
MethodCodeAttention: translating source code to comments by exploiting the code constructs
Zheng, W., Zhou, H.-Y., Li, M., & Wu, J. (2018) · Frontiers of Computer Science · doi:10.1007/s11704-018-7457-6 · Cited by 36
Commenting source code: is it worth it for small programming tasks?
Nielebock, S., Krolikowski, D., Krüger, J., Leich, T., & Ortmeier, F. (2018) · Empirical Software Engineering · doi:10.1007/s10664-018-9664-z · Cited by 41
“Moreover, Sridhara et al (2010) propose a technique to automatically generate summary comments for Java methods to provide up-to-date documentation in natural language.”
Augmenting Java method comments generation with context information based on neural networks
Zhou, Y., Yan, X. C., Yang, W., Chen, T., & Huang, Z. (2019) · Journal of Systems and Software · doi:10.1016/j.jss.2019.07.087 · Cited by 34
Learning Human-Written Commit Messages to Document Code Changes
Huang, Y., Jia, N., Zhou, H.-J., Chen, X., Zheng, Z., & Tang, M. (2020) · Journal of Computer Science and Technology · doi:10.1007/s11390-020-0496-0 · Cited by 43
“ARENA identifies different types of changes between two releases, and generates a comment for the code changes via code summarization methods [16,17] .”
MethodCorrelating Automated and Human Evaluation of Code Documentation Generation Quality
Hu, X., Chen, Q., Wang, H., Xia, X., Lo, D., & Zimmermann, T. (2022) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3502853 · Cited by 33
“We follow Sridhara et al. [44] and Mcburney et al. [35] to evaluate generated documentation by Content adequacy and Conciseness.”
BackgroundCoRA: Decomposing and Describing Tangled Code Changes for Reviewer
Wang, M., Lin, Z., Zou, Y., & Xie, B. (2019) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2019.00101 · Cited by 49
Composing Flexibly-Organized Step-by-Step Tutorials from Linked Source Code, Snippets, and Outputs
Head, A., Jiang, J., Smith, J., Hearst, M. A., & Hartmann, B. (2020) · CHI Conference on Human Factors in Computing Systems · doi:10.1145/3313831.3376798 · Cited by 41
Automated Comment Update: How Far are We?
Lin, B., Wang, S., Liu, K., Mao, X., & Bissyandé, T. F. (2021) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc52881.2021.00013 · Cited by 33
“[24] proposed an automatic approach that generates natural language summarization of the method’s overall actions via manually defined templates.”
MethodTranS^3: A Transformer-based Framework for Unifying Code Summarization and Code SearchPreprint
Wang, W., Zhang, Y., Zeng, Z., & Xu, G. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2003.03238 · Cited by 51
“Code summarization and code search have become increasingly popular in soware development and maintenance [1–6], because”
BackgroundEffects of heavy metals and pesticides on fish
Rani, R., Sharma, P., Kumar, R., & Hajam, Y. A. (2022) · Elsevier eBooks · doi:10.1016/b978-0-323-85624-9.00016-6 · Cited by 32
An Empirical Investigation of Relevant Changes and Automation Needs in Modern Code Review
Panichella, S., & Zaugg, N. (2020) · Empirical Software Engineering · doi:10.1007/s10664-020-09870-3 · Cited by 39
An Evolutionary Study of Configuration Design and Implementation in Cloud Systems
Zhang, Y., He, H., Legunsen, O., Li, S., Dong, W., & Xu, T. (2021) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse43902.2021.00029 · Cited by 43
“per-parameter comments and manual entries [101]–[103].”
STAN: Towards Describing Bytecodes of Smart Contract
Li, X., Chen, T., Luo, X., Zhang, T., Yu, L., & Zhou, X. (2020) · IEEE International Conference on Software Quality, Reliability and Security (QRS) · doi:10.1109/qrs51102.2020.00045 · Cited by 38
“SWUM (Software Word Usage Model) is used to extract linguistic information from program statements, including words in different parts of speech and the language relationship between them [32].”
MethodAutomatic Detection and Update Suggestion for Outdated API Names in Documentation
Lee, S., Wu, R., Cheung, S.-C., & Kang, S. (2019) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2901459 · Cited by 39
“Techniques in the first category analyze source code and generate documentation [72], [73], [74], [75].”
BackgroundMethodHow Far Have We Gone in Binary Code Understanding Using Large Language Models
Shang, X., Cheng, S., Chen, G., Zhang, Y., Hu, L. H., Yu, X., Li, G., Zhang, W., & Yu, N. (2024) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsme58944.2024.00012 · Cited by 45
“Besides, the function name alone is not enough to represent the complete behavior of the code [15].”
Automatic Detection of Five API Documentation Smells: Practitioners’ Perspectives
Khan, J. Y., Khondaker, M. T. I., Uddin, G., & Iqbal, A. (2021) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner50967.2021.00037 · Cited by 45
“A large body of research is devoted to automatically produce natural lanugage summary description of source code method [44], [47], [65], [71].”
Recommending verbs for rename method using association rule mining
Kashiwabara, Y., Onizuka, Y., Ishio, T., Hayase, Y., Yamamoto, T., & Inoue, K. (2014) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/csmr-wcre.2014.6747186 · Cited by 28
“The fourth condition prevents naming association rules from overfitting.”
How do Developers Document Database Usages in Source Code? (N)
Linares‐Vásquez, M., Li, B., Vendome, C., & Poshyvanyk, D. (2015) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2015.67 · Cited by 34
Towards Prioritizing Documentation Effort
McBurney, P. W., Jiang, S., Kessentini, M., Kraft, N. A., Armaly, A., Mkaouer, M. W., & McMillan, C. (2017) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2017.2716950 · Cited by 39
“Recently, researchers have developed tools that generate natural language summaries of sections source code, such as Java methods and classes [55], [63], [64], [65].”
BackgroundPredictive Comment Updating With Heuristics and AST-Path-Based Neural Learning: A Two-Phase Approach
Lin, B., Wang, S., Liu, Z., Xia, X., & Mao, X. (2023) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2022.3185458 · Cited by 27
“[70] proposed to generate natural language summarization for methods via manually defined templates.”
MethodTowards generating human-oriented summaries of unit test cases
Kamimura, M., & Murphy, G. C. (2013) · International Conference on Program Comprehension · doi:10.1109/icpc.2013.6613851 · Cited by 27
“Similar to studies that show how good comments can help programmers quickly understand what a method does [6] [7], we believe that test case descriptions can help support a developer to understand test cases more efficiently and more effectively.”
ResultA Comparative Study on Method Comment and Inline Comment
Huang, Y., Guo, H., Ding, X., Shu, J., Chen, X., Luo, X., Zheng, Z., & Zhou, X. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3582570 · Cited by 30
“[45] utilized the Software Word Usage Model (SWUM) and predeined some heuristic rules to identify keywords from code text and generated the templated comments for Java methods.”
BackgroundMethodAutomatic generation of descriptive summary comments for methods in object-oriented programs
Shanker, V. K., Pollock, L., & Sridhara, G. (2012) · Cited by 29
Self-citationSummarization techniques for code, change, testing, and user feedback (Invited paper)
Panichella, S. (2018) · 2018 IEEE Workshop on Validation, Analysis and Evolution of Software Tests (VST) · doi:10.1109/vst.2018.8327148 · Cited by 32
“TestDescriber generates summaries applying a template-based strategy [31], [32].”
MethodAutomatically detecting the scopes of source code comments
Chen, H., Huang, Y., Liu, Z., Chen, X., Zhou, F., & Luo, X. (2019) · Journal of Systems and Software · doi:10.1016/j.jss.2019.03.010 · Cited by 31
Learning Code Context Information to Predict Comment Locations
Huang, Y., Hu, X., Jia, N., Chen, X., Xiong, Y., & Zheng, Z. (2019) · IEEE Transactions on Reliability · doi:10.1109/tr.2019.2931725 · Cited by 32
“Another commenting practice concerns code comment generation [52], [53], [57], [58].”
BackgroundMethodSnippet Comment Generation Based on Code Context Expansion
Guo, H., Chen, X., Huang, Y., Wang, Y., Ding, X., Zheng, Z., Zhou, X., & Dai, H. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3611664 · Cited by 31
“There are two kinds of comments to annotate a method: (1) header comments [46] and (2) snippet comments [6].”
MethodAutomating User Notice Generation for Smart Contract Functions
Hu, X., Gao, Z., Xia, X., Lo, D., & Yang, X. (2021) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase51524.2021.9678552 · Cited by 36
“Manually-crafted templates [40], [41], [42], IR techniques [43], [7], [44], [45], and neural models [11], [8], [10], [46], [47] are widely used in automatic comment generation.”
BackgroundMethodFunction Call Graph Context Encoding for Neural Source Code Summarization
Bansal, A., Eberhart, Z., Karas, Z., Huang, Y., & McMillan, C. (2023) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2023.3279774 · Cited by 33
“Our methodology adheres closely to procedure recommended in earlier studies [76], [77].”
MethodAutomatically Generating Test Templates from Test Names (N)
Zhang, B., Hill, E., & Clause, J. (2015) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2015.68 · Cited by 26
“…have investigated identifier splitting techniques (e.g., [2, 7]); the technique for tagging words with their part of speech and identifying large semantic structures [3]; the technique for identifying programming-specific synonyms and antonyms [8]; and the comment generation technique [18].”
Self-citationANNE: Improving Source Code Search using Entity Retrieval Approach
Vinayakarao, V., Sarma, A., Purandare, R., Jain, S., & Jain, S. (2017) · ACM International Conference on Web Search and Data Mining (WSDM) · doi:10.1145/3018661.3018691 · Cited by 29
“Often: 80% (20); Not so often: 20% (5); ing [26], maintenance [25], summarization [30, 23] and program comprehension [22].”
BackgroundDo Pretrained Language Models Indeed Understand Software Engineering Tasks?
Li, Y., Zhang, T., Luo, X.-P., Cai, H., Fang, S., & Yuan, D.-W. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2023.3308952 · Cited by 23
“To demonstrate that overinterpretation is not task-dependent and is prevalent in pre-trained language models, we choose three representative PLMs (GPT, BERT, and XLNet) for evaluation.”
BackgroundMethodEsale: Enhancing Code-Summary Alignment Learning for Source Code Summarization
Fang, C., Sun, W., Chen, Y., Chen, X., Wei, Z., Zhang, Q., You, Y., Luo, B., Liu, Y., & Chen, Z. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3422274 · Cited by 40
“Keywords-based methods extract critical terms from code snippets to constitute their summaries [13], [24].”
MethodWhen not to comment: questions and tradeoffs with API documentation for C++ projects
Head, A., Sadowski, C., Murphy-Hill, E. R., & Knight, A. (2018) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3180155.3180176 · Cited by 31
“Such tools synthesize code examples [6, 21], generate method [19, 35] and parameter descriptions [36], mine API usage patterns (e.”
MethodHuang, Y., Jia, N., Shu, J., Hu, X., Chen, X., & Zhou, Q. (2019) · Software Practice and Experience · doi:10.1002/spe.2772 · Cited by 31
“In addition, Sridhara et al 48 presented a novel technique to automatically generate descriptive summary comments for Java methods.”
MethodAn Empirical Study of Abbreviations and Expansions in Software Artifacts
Newman, C. D., Decker, M. J., Alsuhaibani, R. S., Peruma, A., Kaushik, D., & Hill, E. (2019) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsme.2019.00040 · Cited by 25
“Researchers frequently use natural language processing techniques to analyze and normalize source code identifiers for numerous activities including bug detection [1], mining and analyzing software repositories [2]–[5], automated documentation [6], topic modeling [7], feature location [8] and more.”
BackgroundSelf-citationLeveraging Informal Documentation to Summarize Classes and Methods in Context
Guerrouj, L., Bourque, D., & Rigby, P. C. (2015) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2015.212 · Cited by 35
“then used to stitch the keywords into English sentences to form a method summary [21].”
MethodHierarchical Repository-Level Code Summarization for Business Applications Using Local LLMs
Dhulshette, N., Shah, S., & Kulkarni, V. (2025) · International Workshop on Large Language Models for Code (LLM4Code) · doi:10.1109/llm4code66737.2025.00023 · Cited by 28
“Code summarization has been extensively studied, with early research primarily focusing on rule-based or template-based methods [2], [3].”
Inferring specifications for resources from natural language API documentation
Zhong, H., Zhang, L., Xie, T., & Mei, H. (2011) · Automated Software Engineering · doi:10.1007/s10515-011-0082-3 · Cited by 24
“Sridhara et al. (2010) proposed an approach that infers comments of Java methods from API code.”
MethodAn Empirical Study on Code Comment Completion
Mastropaolo, A., Aghajani, E., Pascarella, L., & Bavota, G. (2021) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.26226/morressier.613b5418842293c031b5b5da · Cited by 34
COME: Commit Message Generation with Modification Embedding
He, Y., Wang, L., Wang, K., Zhang, Y., Zhang, H., & Li, Z. (2023) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3597926.3598096 · Cited by 36
“Sridhara et al.[55] design a framework that can identify significant statements from a Java method and then transform them into natural language using predefined templates.”
MethodInterpretation-based Code Summarization
Geng, M., Wang, S., Dong, D., Wang, H., Cao, S., Zhang, K., & Jin, Z. G. (2023) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc58990.2023.00026 · Cited by 29
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.