arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1704.00135cs.PLcs.CL
收藏

使用source code中的名称对大规模公共知识库进行主题建模

Topic modeling of public repositories at scale using names in source code

source{d}

Vadim Markovtsev, Eiso Kant

摘要:

程序设计语言本身具有限定语言规范的有限数量的保留关键字和基于字符的标记。然而,程序员通过注释、文本文字和命名实体在代码中大量使用自然语言。程序员定义的名称可以在源代码中找到,这是一个丰富的信息源,可以帮助您对项目进行高层次的理解。本文的目标是将主题建模应用于超过1360万个存储库中使用的名称,并感知推断的主题。这样的研究中的一个问题是出现了没有正式标记为fork的重复存储库(模糊的fork)。我们展示了如何使用为主题建模提取的相同标识符来解决它。我们首先讨论源代码中的命名,然后详细说明我们使用词袋模型上的局部敏感哈希来删除精确重复和模糊重复存储库的方法,然后讨论我们在主题建模方面的工作;最后介绍我们的数据分析结果以及对源代码,工具和数据集的开放访问。

英文摘要:

Programming languages themselves have a limited number of reserved keywords and character based tokens that define the language specification. However, programmers have a rich use of natural language within their code through comments, text literals and naming entities. The programmer defined names that can be found in source code are a rich source of information to build a high level understanding of the project. The goal of this paper is to apply topic modeling to names used in over 13.6 million repositories and perceive the inferred topics. One of the problems in such a study is the occurrence of duplicate repositories not officially marked as forks (obscure forks). We show how to address it using the same identifiers which are extracted for topic modeling. We open with a discussion on naming in source code, we then elaborate on our approach to remove exact duplicate and fuzzy duplicate repositories using Locality Sensitive Hashing on the bag-of-words model and then discuss our work on topic modeling; and finally present the results from our data analysis together with open-access to the source code, tools and datasets.

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

↑