Write a Blog >>
ICPC 2021
Tue 18 - Thu 20 May 2021
co-located with ICSE 2021
Fri 21 May 2021 02:20 - 02:30 at ICPC Main Room - Inferring code evolution Chair(s): Shinpei Hayashi

High quality method names are descriptive and readable, which are helpful for code development and maintenance. The majority of recent research suggest method names based on the text summarization approach. They take the token sequence and abstract syntax tree of the source code as input, and generate method names through a powerful neural network based model. However, the tokens composing the method name are closely related to the entity name within its method implementation. Actually, high proportions of the tokens in method name can be found in its corresponding method implementation, which makes it possible for incorporating these common shared token information to improve the performance of method naming task. Inspired by this key observation, we propose a two-stage keywords guided method name generation approach to suggest method names. Specifically, we decompose the method naming task into two subtasks, including keywords extraction task and method name generation task. For the keywords extraction task, we apply a graph neural network based model to extract the keywords from source code. For the method name generation task, we utilize the extracted keywords to guide the method name generation model. We apply a dual selective gate in encoder to control the information flow, and a dual attention mechanism in decoder to combine the semantics of input code sequence and keywords. Experiment results on an open source dataset demonstrate that keywords guidance can facilitate method naming task, which enables our model to outperform the competitive state-of-the-art models by margins of 1.5%-3.5% in ROUGE metrics. Especially when programs share one common token with method names, our approach improves the absolute ROUGE-1 score by 7.8%.

Fri 21 May

Displayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change

02:00 - 02:40
Inferring code evolutionResearch at ICPC Main Room
Chair(s): Shinpei Hayashi Tokyo Institute of Technology
02:00
10m
Paper
ConfInLog: Leveraging Software Logs to Infer Configuration ConstraintsICPC 2021 Honorable Mention
Research
Shulin Zhou National University of Defense Technology, Xiaodong Liu National University of Defense Technology, Shanshan Li National University of Defense Technology, Zhouyang Jia National University of Defense Technology, Yuanliang Zhang National University of Defense Technology, Teng Wang National University of Defense Technology, China, Wang Li National University of Defense Technology, Liao Xiangke National University of Defense Technology, China
Pre-print Media Attached
02:10
10m
Paper
Using Grammar Patterns to Interpret Test Method Name Evolution
Research
Anthony Peruma Rochester Institute of Technology, Emily Hu , Jiajun Chen , Eman Abdullah AlOmar Rochester Institute of Technology, USA, Mohamed Wiem Mkaouer Rochester Institute of Technology, Christian D. Newman Rochester Institute of Technology
Pre-print Media Attached
02:20
10m
Paper
Keywords Guided Method Name Generation
Research
Pre-print Media Attached
02:30
10m
Paper
Automated Comment Update: How Far are We?
Research
Bo Lin National University of Defense Technology, Shangwen Wang National University of Defense Technology, Kui Liu Huawei Software Engineering Application Technology Lab, Xiaoguang Mao National University of Defense Technology, Tegawendé F. Bissyandé SnT, University of Luxembourg
Pre-print Media Attached

Information for Participants
Fri 21 May 2021 02:00 - 02:40 at ICPC Main Room - Inferring code evolution Chair(s): Shinpei Hayashi
Info for room ICPC Main Room:

Go directly to this room on Clowdr