arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.16480cs.SE
收藏

揭示ChatGPT在开源项目中的使用情况:一项基于挖掘的研究

Unveiling ChatGPT's Usage in Open Source Projects: A Mining-based Study

Rosalia Tufano, Antonio Mastropaolo, Federica Pepe, Ozren Dabić, Massimiliano Di Penta, Gabriele Bavota

AI总结:

本研究通过挖掘并手动分析1,501个开源项目中的提交、PR和问题,识别出467个ChatGPT实际使用实例,构建了包含45项自动化任务的分类体系,为开发者和研究者提供了LLMs实际应用场景的系统性实证依据。

摘要:

大型语言模型(LLMs)已在软件工程领域引起了广泛关注。如今,开发者可以通过工业级工具来利用这些模型,这些工具为LLMs提供了便捷的接口,例如OpenAI的ChatGPT。尽管LLMs在协助开发者完成多项任务方面的潜力已在文献中得到记载,但缺乏实证证据来描绘LLMs在软件项目中的实际使用情况。在本工作中,我们旨在填补这一空白。首先,我们通过匹配可能表明使用ChatGPT完成任务的正则表达式,从开源项目中挖掘了1,501个提交(commits)、拉取请求(PRs)和问题(issues)。然后,我们手动分析这些实例,剔除假阳性(即提到了ChatGPT但并未实际使用的实例),并对467个真阳性实例(165个提交、159个PR、143个问题)中所自动化的任务进行分类。由此形成了一个包含45项开发者通过ChatGPT实现自动化的任务的分类体系。该分类体系附有代表性示例,为(i)开发者提供了关于如何在其工作流程中利用LLMs的宝贵见解,并为(ii)研究人员提供了关于根据开发者反馈可能受益于自动化解决方案的任务的清晰概览。

英文摘要:

Large Language Models (LLMs) have gained significant attention in the software engineering community. Nowadays developers have the possibility to exploit these models through industrial-grade tools providing a handy interface toward LLMs, such as OpenAI's ChatGPT. While the potential of LLMs in assisting developers across several tasks has been documented in the literature, there is a lack of empirical evidence mapping the actual usage of LLMs in software projects. In this work, we aim at filling such a gap. First, we mine 1,501 commits, pull requests (PRs), and issues from open-source projects by matching regular expressions likely to indicate the usage of ChatGPT to accomplish the task. Then, we manually analyze these instances, discarding false positives (i.e., instances in which ChatGPT was mentioned but not actually used) and categorizing the task automated in the 467 true positive instances (165 commits, 159 PRs, 143 issues). This resulted in a taxonomy of 45 tasks which developers automate via ChatGPT. The taxonomy, accompanied with representative examples, provides (i) developers with valuable insights on how to exploit LLMs in their workflow and (ii) researchers with a clear overview of tasks that, according to developers, could benefit from automated solutions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑