Lune

AAAI2020Top-tier venue

Associating Natural Language Comment and Source Code Entities

Sheena Panthaplackel, Milos Gligoric, Raymond J. Mooney, Junyi Jessy Li

Abstract

Comments are an integral part of software development; they are natural language descriptions associated with source code elements. Understanding explicit associations can be useful in improving code comprehensibility and maintaining the consistency between code and comments. As an initial step towards this larger goal, we address the task of associating entities in Javadoc comments with elements in Java source code. We propose an approach for automatically extracting supervised data using revision histories of open source projects and present a manually annotated evaluation dataset for this task. We develop a binary classifier and a sequence labeling model by crafting a rich feature set which encompasses various aspects of code, comments, and the relationships between them. Experiments show that our systems outperform several baselines learning from the proposed supervision. / * * * Check the beanFactory to see whether the bean * named beanName already exists. Accounts for * the fact that the requested bean may be "in * creation", i.e.: we're in the middle of servicing * the initial request for this bean. From JavaConfig's * perspective, this means that the bean does not * actually yet exist, and that it is now our job to * create it for the first time by executing the logic * in the corresponding Bean method. Said another * way, this check repurposes * ConfigurableBeanFactory#isCurrentlyInCreation * to determine whether the container is calling this * method or the user is calling this method. * @param beanName name of bean to check for * @return true if beanName already exists in * the factory * / boolean factoryContainsBean(String beanName)

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • On the naturalness of hardware descriptions cites Learning to Update Natural Language Comments Based on Code Changes
  • Deep Just-In-Time Inconsistency Detection Between Comments and Source Code cites Learning to Update Natural Language Comments Based on Code Changes
  • Learning Deep Semantics for Test Completion cites On the naturalness of hardware descriptions
  • Learning Deep Semantics for Test Completion cites Learning to Update Natural Language Comments Based on Code Changes
  • Learning Deep Semantics for Test Completion cites Deep Just-In-Time Inconsistency Detection Between Comments and Source Code
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Deep Just-In-Time Inconsistency Detection Between Comments and Source CodeSheena Panthaplackel, Junyi Jessy Li, Milos Gligoric, Raymond J. MooneyAAAI 2021 · 62 citations
  2. Learning Deep Semantics for Test CompletionPengyu Nie, Rahul Banerjee, Junyi Jessy Li, Raymond J. Mooney et al.ICSE 2023 · 45 citations
  3. On the naturalness of hardware descriptionsJaeseong Lee, Pengyu Nie, Junyi Jessy Li, Milos GligoricFSE 2020 · 6 citations
  4. Learning to Update Natural Language Comments Based on Code ChangesSheena Panthaplackel, Pengyu Nie, Milos Gligoric, Junyi Jessy Li et al.ACL 2020 · 1 citation
  5. KaggleDBQA: Realistic Evaluation of Text-to-SQL ParsersChia-Hsuan Lee, Oleksandr Polozov, Matthew RichardsonACL 2021

Related papers

  1. On Indirectly Dependent Documentation in the Context of Code Evolution: A StudyDevika Sondhi, Avyakt Gupta, Salil Purandare, Ankit Rana et al.ICSE 2021 · 2 citations
  2. Retrieve and Refine: Exemplar-based Neural Comment GenerationBolin Wei, Yongmin Li, Ge Li, Xin Xia et al.ASE 2020 · 68 citations
  3. Automating Just-In-Time Comment UpdatingZhongxin Liu, Xin Xia, Meng Yan, Shanping LiASE 2020 · 46 citations
  4. Inferring and Applying Def-Use Like Configuration Couplings in Deployment DescriptorsChengyuan Wen, Yaxuan Zhang, Xiao He, Na MengASE 2020 · 3 citations
  5. Doc2OracLL: Investigating the Impact of Documentation on LLM-Based Test Oracle GenerationSoneya Binta Hossain, Raygan Taylor, Matthew B. DwyerFSE 2025 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines