Codex comment: lexical and syntactic enhanced code comment generation
-
https://doi.org/10.14419/s00a4t09
-
Abstract
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.
-
References
- S. D. Fabiyi and O. Ajibuwa, "Automatic Code Commenting in Integrated Development Environments Based on Indirect Interaction with Chatbots," 2023 International Scientific Conference on Computer Science (COMSCI), Sozopol, Bulgaria, 2023, pp. 1-4, https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=10315818&isnumber=10315795.
- https://doi.org/10.1109/COMSCI59259.2023.10315818.
- Y. Park, A. Park and C. Kim, "ALSI-Transformer: Transformer-Based Code Comment Generation With Aligned Lexical and Syntactic Information," in IEEE Access, vol. 11, pp. 39037-39047, 2023,
- https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=10105196&isnumber=10005208.
- https://doi.org/10.1109/ACCESS.2023.3268638.
- M. A. E. Kilic and M. F. Adak, "Source Code Summarization & Comment Generation with NLP : A New Index Proposal," 2024 Inter-national Congress on Human-Computer Interaction, Optimization and Robotic Applications (HORA), Istanbul, Turkiye, 2024, pp. 1-6,
- https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=10550711&isnumber=10550449. https://doi.org/10.1109/HORA61326.2024.10550711.
- S. Saranya, S. Devi, R. M. Suruthi, N. M and S. B, "Comment Generator for Java using Deep Learning," 2023 International Conference on Intelligent Systems for Communication, IoT and Security (ICISCoIS), Coimbatore, India, 2023, pp. 50-54, https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=10100539&isnumber=10100336.
- https://doi.org/10.1109/ICISCoIS56541.2023.10100539.
- F. Mu, X. Chen, L. Shi, S. Wang and Q. Wang, "Developer-Intent Driven Code Comment Generation," 2023 IEEE/ACM 45th Interna-tional Conference on Software Engineering (ICSE), Melbourne, Australia, 2023, pp. 768-780,
- https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=10172531&isnumber=10172342.
- https://doi.org/10.1109/ICSE48619.2023.00073.
- B. Wei, "Retrieve and Refine: Exemplar-Based Neural Comment Generation," 2019 34th IEEE/ACM International Conference on Au-tomated Software Engineering (ASE), San Diego, CA, USA, 2019, pp. 1250-1252,
- https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8952536&isnumber=8952167.
- https://doi.org/10.1109/ASE.2019.00152.
-
Downloads
-
How to Cite
Ganage, P., Mahajan, S., Jadhav, S., Gupta, S., Dhere, M. J., & Bhagat, M. A. (2025). Codex comment: lexical and syntactic enhanced code comment generation. International Journal of Advanced Mathematical Sciences, 11(1), 49-54. https://doi.org/10.14419/s00a4t09