arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.11732cs.SE
收藏

基于StackOverflow的代码重用研究--以J2EE笔记本为例

On Code Reuse from StackOverflow: An Exploratory Study on Jupyter Notebook

Mingke Yang, Yuming Zhou, Bixin Li, Yutian Tang

摘要:

笔记本电脑是数据分析师和科学家使用数据的流行工具。它提供了一种将代码、文档和可视化组合在一个交互式环境中的方法,从而促进了代码的重用。虽然代码重用可以提高编程效率,但它也会降低可读性,安全性和整体性能。我们在Stack Overflow平台上对Jumyter Notebook开发社区的代码重用实践进行了大规模的探索性研究,以了解代码重用的潜在负面影响。我们的研究发现了1,097,470个重复使用Stack Overflow代码片段的1097,470字节Notebook克隆对,平均每个代码片段有7.91个代码质量违规。通过我们的研究,我们深入了解了微软笔记本开发人员决定重用代码的原因以及这种做法的潜在缺点。

英文摘要:

Jupyter Notebook is a popular tool among data analysts and scientists for working with data. It provides a way to combine code, documentation, and visualizations in a single, interactive environment, facilitating code reuse. While code reuse can improve programming efficiency, it can also decrease readability, security, and overall performance. We conduct a large-scale exploratory study of code reuse practices in the Jupyter Notebook development community on the Stack Overflow platform to understand the potential negative impacts of code reuse. Our findings identified 1,097,470 Jupyter Notebook clone pairs that reuse Stack Overflow code snippets, and the average code snippet has 7.91 code quality violations. Through our research, we gain insight into the reasons behind Jupyter Notebook developers' decision to reuse code and the potential drawbacks of this practice.

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

↑