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

用户定义标识符在Java source code作者身份识别中的意义

The significance of user-defined identifiers in Java source code authorship identification

Georgia Frantzeskou, Stephen G. MacDonell, Efstathios Stamatatos, Stelios Georgiou, Stefanos Gritzalis

摘要:

在编写源代码时,程序员在创建和使用标识符方面有不同程度的自由。他们是否习惯性地使用相同的标识符,与其他人使用的名称不同?那么,是否有可能通过检查这些标识符来判断一段代码的作者是谁呢?如果是这样,我们是否可以使用标识符的存在或不存在来帮助正确地将程序分类给作者?有没有可能通过重命名标识符来隐藏程序的出处?在这项研究中,我们评估了三种类型的标识符在源代码作者分类两个不同的Java程序数据集的重要性。我们通过一系列实验来做到这一点,在这些实验中,我们每次伪装一种类型的标识符。这些实验使用源代码作者配置文件(SCAP)方法作为工具进行。结果表明,虽然标识符作为一个整体进行检查时,似乎并不反映这些数据集的程序作者,当单独检查有证据表明,类名信号的程序的作者。相比之下,Java程序中使用的简单变量和方法名似乎并不反映程序的作者身份。相反,我们的分析表明,这种标识符是如此普遍,以掩盖作者。我们认为,这些结果具有适用性的鲁棒性的代码剽窃分析和潜在的方法可能是有价值的诉讼程序作者的纠纷所产生的情况下。

英文摘要:

When writing source code, programmers have varying levels of freedom when it comes to the creation and use of identifiers. Do they habitually use the same identifiers, names that are different to those used by others? Is it then possible to tell who the author of a piece of code is by examining these identifiers? If so, can we use the presence or absence of identifiers to assist in correctly classifying programs to authors? Is it possible to hide the provenance of programs by identifier renaming? In this study, we assess the importance of three types of identifiers in source code author classification for two different Java program data sets. We do this through a sequence of experiments in which we disguise one type of identifier at a time. These experiments are performed using as a tool the Source Code Author Profiles (SCAP) method. The results show that, although identifiers when examined as a whole do not seem to reflect program authorship for these data sets, when examined separately there is evidence that class names do signal the author of the program. In contrast, simple variables and method names used in Java programs do not appear to reflect program authorship. On the contrary, our analysis suggests that such identifiers are so common as to mask authorship. We believe that these results have applicability in relation to the robustness of code plagiarism analysis and that the underlying methods could be valuable in cases of litigation arising from disputes over program authorship.

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

↑