首页> 外文会议>IEEE/ACM International Conference on Mining Software Repositories >Semantic Source Code Models Using Identifier Embeddings
【24h】

Semantic Source Code Models Using Identifier Embeddings

机译:使用标识符Embeddings的语义源代码模型

获取原文

摘要

The emergence of online open source repositories in the recent years has led to an explosion in the volume of openly available source code, coupled with metadata that relate to a variety of software development activities. As an effect, in line with recent advances in machine learning research, software maintenance activities are switching from symbolic formal methods to data-driven methods. In this context, the rich semantics hidden in source code identifiers provide opportunities for building semantic representations of code which can assist tasks of code search and reuse. To this end, we deliver in the form of pretrained vector space models, distributed code representations for six popular programming languages, namely, Java, Python, PHP, C, C++, and C#. The models are produced using fastText, a state-of-the-art library for learning word representations. Each model is trained on data from a single programming language; the code mined for producing all models amounts to over 13.000 repositories. We indicate dissimilarities between natural language and source code, as well as variations in coding conventions in between the different programming languages we processed. We describe how these heterogeneities guided the data preprocessing decisions we took and the selection of the training parameters in the released models. Finally, we propose potential applications of the models and discuss limitations of the models.
机译:近年来在线开源存储库的出现导致公开可用源代码的爆炸源,与多种软件开发活动相关的元数据。作为一种效果,符合机器学习研究的最新进步,软件维护活动正在从符号正式方法切换到数据驱动方法。在这种情况下,隐藏在源代码标识符中的丰富语义为构建代码的语义表示提供了可以帮助代码搜索和重用的任务的机会。为此,我们以佩带的矢量空间模型的形式提供,分布式代码表示六种流行的编程语言,即Java,Python,PHP,C,C ++和C#。这些模型是使用FastText生产的,用于学习词表示的最先进的库。每个模型都在从单个编程语言中培训数据;用于生产所有型号的代码将多到超过13,000多个存储库。我们表示自然语言和源代码之间的异化,以及我们处理的不同编程语言之间的编码约定的变化。我们描述了这些异质性如何引导我们采取的数据预处理决策以及在发布模型中选择培训参数。最后,我们提出了模型的潜在应用,并讨论了模型的局限性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号