可泛化的Python代码变更模式数据集
A Data Set of Generalizable Python Code Change Patterns
AI总结:
本文针对Python缺乏重复代码变更模式数据集的问题,提出一个经人工审查的72个可泛化Python代码变更模式数据集,并制定了识别指南以推进开发者支持工具的构建。
摘要:
从版本控制历史中挖掘重复的代码变更是发现未知变更模式的常见方法。此类变更模式可用于代码推荐系统或自动化程序修复技术。虽然Java已有此类工具和数据集,但在Python中寻找和推荐此类变更的研究很少。本文提出了一个经过人工审查的可泛化Python重复代码变更模式数据集。我们创建了一套编码指南,以识别可用于自动化工具的可泛化变更模式。我们利用近期在Python项目中挖掘重复变更的工作所挖掘出的变更模式,并使用我们的编码指南对这些模式进行人工审查。对于每次变更,我们还记录了变更描述、应用原因及其出现的项目数等其他特征。通过这一审查过程,我们识别并分享了72个Python变更模式,可用于构建和推进Python开发者支持工具。
英文摘要:
Mining repetitive code changes from version control history is a common way of discovering unknown change patterns. Such change patterns can be used in code recommender systems or automated program repair techniques. While there are such tools and datasets exist for Java, there is little work on finding and recommending such changes in Python. In this paper, we present a data set of manually vetted generalizable Python repetitive code change patterns. We create a coding guideline to identify generalizable change patterns that can be used in automated tooling. We leverage the mined change patterns from recent work that mines repetitive changes in Python projects and use our coding guideline to manually review the patterns. For each change, we also record a description of the change and why it is applied along with other characteristics such as the number of projects it occurs in. This review process allows us to identify and share 72 Python change patterns that can be used to build and advance Python developer support tools.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。