ICPC 2023
Mon 15 - Tue 16 May 2023 Melbourne, Australia
co-located with ICSE 2023

Code comments are significantly helpful in comprehending software programs and also aid developers to save a great deal of time in software maintenance. Code comment generation aims to automatically predict comments in natural language given a code snippet. Several works investigate the effect of integrating external knowledge on the quality of generated comments. In this study, we propose a solution, namely APIContext2Com, to improve the effectiveness of generated comments by incorporating the pre-defined Application Programming Interface (API) context. The API context includes the definition and description of the pre-defined APIs that are used within the code snippets. As the detailed API information expresses the functionality of a code snippet, it can be helpful in better generating the code summary. We introduce a seq-2-seq encoder-decoder neural network model with different sets of multiple encoders to effectively transform distinct inputs into target comments. A ranking mechanism is also developed to exclude non-informative APIs, so that we can filter out unrelated APIs. We evaluate our approach using the Java dataset from CodeSearchNet. The findings reveal that the proposed model improves the best baseline by 1.88 (8.24%), 2.16 (17.58%), 1.38 (18.3%), 0.73 (14.17%), 1.58 (14.98 %) and 1.9 (6.92 %) for BLEU1, BLEU2, BLEU3, BLEU4, METEOR, ROUGE-L, respectively. Human evaluation and ablation studies confirm the quality of the generated comments and the effect of architecture and ranking APIs.

Mon 15 May

Displayed time zone: Hobart change

11:00 - 12:30
Keynote / Documentation and Stack OverflowTool Demonstration / Research / ICPC Keynotes / Replications and Negative Results (RENE) / Discussion at Meeting Room 106
Chair(s): Bonita Sharif University of Nebraska-Lincoln, USA, Raula Gaikovina Kula Nara Institute of Science and Technology, Chanchal K. Roy University of Saskatchewan
11:00
45m
Keynote
April Wensel: Applications of Emotional Intelligence in Program Comprehension
ICPC Keynotes

11:45
9m
Full-paper
APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentation
Research
Ramin Shahbazi , Fatemeh Hendijani Fard University of British Columbia
Pre-print
11:54
5m
Short-paper
PyVerDetector: A Chrome Extension Detecting the Python Version of Stack Overflow Code Snippets
Tool Demonstration
SHIYU YANG , Tetsuya Kanda Osaka University, Davide Pizzolotto Osaka University, Daniel M. German University of Victoria, Yoshiki Higo Osaka University
11:59
5m
Short-paper
RCGraph - A Tool to Integrate Readme and Commits through Temporal Knowledge Graphs
Tool Demonstration
Akhila Sri Manasa Venigalla IIT Tirupati, Mir Sameed Ali Indian Institute of Technology Tirupati, Nikhil Manjunath Indian Institute of Technology Tirupati, Sridhar Chimalakonda IIT Tirupati
12:04
9m
Full-paper
Performance Prediction From Source Code Is Task and Domain Specific
Replications and Negative Results (RENE)
Markus Böck TU Wien, Sarra Habchi Ubisoft, Mathieu Nayrolles Ubisoft Montreal, Jürgen Cito TU Wien
12:13
17m
Panel
Discussion 2
Discussion