arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.09132cs.SEcs.LG
收藏

JEMMA:一个面向ML4Code应用的可扩展Java数据集

JEMMA: An Extensible Java Dataset for ML4Code Applications

Free University of Bozen-Bolzano(博尔扎诺自由大学);Microsoft Research(微软研究院);Google Research(谷歌研究院)

Anjan Karmakar, Miltiadis Allamanis, Romain Robbes

摘要:

源代码的机器学习(ML4Code)是一个活跃的研究领域,需要大量的实验来发现如何最好地使用源代码的丰富结构化信息。考虑到这一点,我们介绍了JEMMA,一个用于ML4Code应用程序的可扩展Java数据集,这是一个针对ML4Code的大规模,多样化和高质量的数据集。JEMMA的目标是通过提供构建块来试验源代码模型和任务,从而降低ML4Code的入门门槛。JEMMA带有大量的预处理信息,如元数据、表示(例如,代码令牌、AST、图),以及若干属性(例如,度量,静态分析结果),这些数据来自50 KC数据集的50,000个Java项目,其中包含超过120万个类和超过800万个方法。JEMMA也是可扩展的,允许用户向数据集添加新的属性和表示,并评估它们的任务。因此,JEMMA成为一个工作台,研究人员可以使用它来实验在源代码上操作的新表示和任务。为了证明数据集的实用性,我们还报告了对我们的数据进行的两项实证研究的结果,最终表明,在设计上下文感知的源代码模型方面还有重要的工作要做,这些模型可以在软件项目中的更广泛的源代码实体网络上进行推理,这正是JEMMA旨在帮助完成的任务。

英文摘要:

Machine Learning for Source Code (ML4Code) is an active research field in which extensive experimentation is needed to discover how to best use source code's richly structured information. With this in mind, we introduce JEMMA, an Extensible Java Dataset for ML4Code Applications, which is a large-scale, diverse, and high-quality dataset targeted at ML4Code. Our goal with JEMMA is to lower the barrier to entry in ML4Code by providing the building blocks to experiment with source code models and tasks. JEMMA comes with a considerable amount of pre-processed information such as metadata, representations (e.g., code tokens, ASTs, graphs), and several properties (e.g., metrics, static analysis results) for 50,000 Java projects from the 50KC dataset, with over 1.2 million classes and over 8 million methods. JEMMA is also extensible allowing users to add new properties and representations to the dataset, and evaluate tasks on them. Thus, JEMMA becomes a workbench that researchers can use to experiment with novel representations and tasks operating on source code. To demonstrate the utility of the dataset, we also report results from two empirical studies on our data, ultimately showing that significant work lies ahead in the design of context-aware source code models that can reason over a broader network of source code entities in a software project, the very task that JEMMA is designed to help with.

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

↑