paper-with-me

홈 › Papers

An Exploratory Study on LLM-Generated Code and Comments in Code Repositories

2026-07-02 · Yongyi Ji, Jiaji Wang, Yi Zhou, Fuxiang Chen, Hongji Yang arxiv

The use of LLMs in software development has become increasingly widespread on tasks such as code generation and summarization. Reports from large technology companies showed that around 20% to 30% of their code are generated by LLMs. However, there remains skepticism about the practical usage of LLM-generated code and comments, such as concerns on more time for debugging the generated code and the unnaturalness of the generated comments. In this paper, we study the code and comments detected as likely to be generated by LLMs and their characteristics, the differences between company- and community-maintained repositories, and how likely bugs are associated with LLM-generated code. We conduct extensive experiments on active company- and community-maintained repositories from 2021 to 2025 using various tools and techniques that detect code and comments generated by LLMs. Based on our detector-based proxy analysis, the results suggest that code detected as likely to be generated by LLMs decreased over time and appeared frequently in test cases, while that of comments remains relatively stable. Proxy results further suggest that code detected as likely to be generated by LLMs shows substantial intra-repository code clones, whereas comments exhibit a relatively low proportion of grammatically correct sentences. In addition, the company-maintained repositories show a higher percentage of code and comments detected as likely to be generated by LLMs, and only a small percentage of the human-labelled bugs are detected as being likely associated with LLM-generated code.

📄 PDF Abstract BibTeX arXiv:2607.01867

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

A Qualitative Investigation into LLM-Generated Multilingual Code Comments and Automatic Evaluation Metrics

2025-05-21 · Jonathan Katzy, Yongcheng Huang, Gopal-Raj Panchu, Maksym Ziemlewski 외

Large Language Models are essential coding assistants, yet their training is predominantly English-centric. In this study, we evaluate the performance of code language models in non-English contexts, identifying challeng…

Informativeness

Evaluating the Quality of Code Comments Generated by Large Language Models for Novice Programmers

2024-09-22 · Aysa Xuemo Fan, Arun Balajiee Lekshmi Narayanan, Mohammad Hassany, Jiaze Ke

Large Language Models (LLMs) show promise in generating code comments for novice programmers, but their educational effectiveness remains under-evaluated. This study assesses the instructional quality of code comments pr…

APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentation

2023-03-03 · Ramin Shahbazi, Fatemeh Fard

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 n…

Code Comment GenerationComment GenerationDecoder

Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Tasks

2025-04-28 · Kang Yang, XinJun Mao, Shangwen Wang, Yanlin Wang 외

Pre-trained code models rely heavily on high-quality pre-training data, particularly human-written reference comments that bridge code and natural language. However, these comments often become outdated as software evolv…

Code SearchCode Summarization

A study of the impact of generative AI-based data augmentation on software metadata classification

2023-10-14 · Tripti Kumari, Chakali Sai Charan, Ayan Das

This paper presents the system submitted by the team from IIT(ISM) Dhanbad in FIRE IRSE 2023 shared task 1 on the automatic usefulness prediction of code-comment pairs as well as the impact of Large Language Model(LLM) g…

Data AugmentationLanguage ModelingLanguage ModellingLarge Language Model