AI Writes, We Analyze: The ChatGPT Python Code Saga.

IEEE/ACM International Conference on Mining Software Repositories(2024)

引用 0|浏览0
暂无评分
摘要
In this study, we quantitatively analyze 1,756 AI-written Python code snippets in the DevGPT dataset and evaluate them for quality and security issues. We systematically distinguish the code snippets as either generated by ChatGPT from scratch (ChatGPT-generated) or modified user-provided code (ChatGPT-modified). The results reveal that ChatGPT-modified code more frequently displays quality issues compared to ChatGPT-generated code. The findings provide insights into the inherent limitations of AI-written code and emphasize the need for scrutiny before integrating such pieces of code into software systems.
更多
查看译文
关键词
Code quality,Code security,ChatGPT,Python,CWE,Analysis
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要