Codex comment: lexical and syntactic enhanced code comment generation
Insufficient or poor-quality code comments are the result of inexperience or intentional omission, which can hinder software comprehension and pose challenges, particularly in the context of maintenance within a team-programming environment. Here, the smart tools for a more detailed understanding, such as automatic generation of comprehensible code comments, can give insights about functionality and purpose of every element of the code. During the last few years, studies were conducted about this problem since code comments are the only way for human constructively to code is to be conveyed and are therefore highly important to developers. The most popular solutions are inspired by recent breakthroughs in NMT in casting the problem of generating code comments as an NMT problem consisting of translating code into sounding-the-best-of-human comments. With such a level of advancement, we will be introducing Codex Comment, the latest and more advanced deep learning-based approach, to automatically generate high-quality comments for any code. The following is based on the Transformer model first proposed by Google researchers, which achieved impressive results in solving diverse sequence-to-sequence tasks to achieve faithful code comment generation. Codex Comment generates hybrid codes, which carry both lexical as well as syntactic information, hence a more structure-sensitive representation of source code compared to others in sub-word-based approaches. As in the codex model, it generates the harmonic information from its tokens of operations.
Authors
- S.K. Mahajan
- Sachin B. Jadhav (ORCID: https://orcid.org/0000-0002-6849-9974)
- Samarth Gupta (ORCID: https://orcid.org/0000-0003-1080-9930)
- Manish Bhagat
- Pankaj Ganage
- Mrs. Jayashri Dhere
Institutions
- Dr. D. Y. Patil Medical College, Hospital and Research Centre (IN)
- Dr. D.Y. Patil Vidyapeeth, Pune (IN)
- D.Y. Patil University (IN)
Publication Details
- Journal
- International Journal of Advanced Mathematical Sciences
- Published
- 2025-03-20
- DOI
- https://doi.org/10.14419/s00a4t09
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00