paper-with-me

Papers

On Developers' Self-Declaration of AI-Generated Code: An Analysis of Practices

2025-04-23 · Syed Mohammad Kashif, Peng Liang, Amjed Tahir

AI code generation tools have gained significant popularity among developers, who use them to assist in software development due to their capability to generate code. Existing studies mainly explored the quality, e.g., correctness and security, of AI-generated code, while in real-world software development, the prerequisite is to distinguish AI-generated code from human-written code, which emphasizes the need to explicitly declare AI-generated code by developers. To this end, this study intends to understand the ways developers use to self-declare AI-generated code and explore the reasons why developers choose to self-declare or not. We conducted a mixed-methods study consisting of two phases. In the first phase, we mined GitHub repositories and collected 613 instances of AI-generated code snippets. In the second phase, we conducted a follow-up industrial survey, which received 111 valid responses. Our research revealed the practices followed by developers to self-declare AI-generated code. Most practitioners (76.6%) always or sometimes self-declare AI-generated code. In contrast, other practitioners (23.4%) noted that they never self-declare AI-generated code. The reasons for self-declaring AI-generated code include the need to track and monitor the code for future review and debugging, and ethical considerations. The reasons for not self-declaring AI-generated code include extensive modifications to AI-generated code and the developers' perception that self-declaration is an unnecessary activity. We finally provided guidelines for practitioners to self-declare AI-generated code, addressing ethical and code quality concerns.

📄 PDF Abstract BibTeX arXiv:2504.16485

Code (1)

kashifraz/sdagc 공식 구현

Tasks

Code Generation

Similar Papers 제목 키워드 기반

LeanExplore: A search engine for Lean 4 declarations

2025-06-04 · Justin Asher

The expanding Lean 4 ecosystem poses challenges for navigating its vast libraries. This paper introduces LeanExplore, a search engine for Lean 4 declarations. LeanExplore enables users to semantically search for statemen…

Automated Theorem Proving

PrivPRISM: Automatically Detecting Discrepancies Between Google Play Data Safety Declarations and Developer Privacy Policies

2026-03-10 · Bhanuka Silva, Dishanika Denipitiyage, Anirban Mahanti, Aruna Seneviratne 외 arxiv

End-users seldom read verbose privacy policies, leading app stores like Google Play to mandate simplified data safety declarations as a user-friendly alternative. However, these self-declared disclosures often contradict…

SWE-QA: A Dataset and Benchmark for Complex Code Understanding

2026-04-27 · Laïla Elkoussy, Julien Perez arxiv

In this paper, we introduce SWE-QA, a text and code corpus aimed at benchmarking multi-hop code comprehension, addressing the gap between simplified evaluation tasks and the complex reasoning required in real-world softw…

Bridging LLM-Generated Code and Requirements: Reverse Generation technique and SBC Metric for Developer Insights

2025-02-11 · Ahilan Ayyachamy Nadar Ponnusamy

The rise of Large Language Models (LLMs) in software engineering, particularly in code generation, has garnered significant attention. However, assessing the quality of AI-generated code remains a challenge due to the in…

Code GenerationSemantic SimilaritySemantic Textual SimilarityText Generation

CodeQueries: A Dataset of Semantic Queries over Code

2022-09-17 · Surya Prakash Sahu, Madhurima Mandal, Shikhar Bharadwaj, Aditya Kanade 외

Developers often have questions about semantic aspects of code they are working on, e.g., "Is there a class whose parent classes declare a conflicting attribute?". Answering them requires understanding code semantics suc…

AttributeExtractive Question-AnsweringLanguage ModellingLarge Language Model+1