arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1810.04825cs.SE
收藏

基于GitHub知识库的器官移植初步研究

An Initial Step Towards Organ Transplantation Based on GitHub Repository

Shangwen Wang, Xiaoguang Mao, Yue Yu

摘要:

器官移植是利用与特定功能直接相关的代码来完成自己的程序,比传统的组件复用为开发人员提供了更多的便利。然而,最近的技术受到缺乏器官移植的挑战。因此,我们进行了一项从GitHub存储库中提取器官的实证研究,以探索基于大规模数据集的移植。我们统计了12个有代表性的GitHub项目,得出的结论是:1)以add为关键词的commits中存在丰富的实用器官; 2)该仓库中的器官主要包含四种内容; 3)约70%的器官易于移植。针对不同类型的器官实施我们的移植策略,我们用三种不同的程序设计语言,即Java,Python和C手动提取30个器官,并使用四种测试工具(两种用于Java,一种用于Python,一种用于C)对它们进行单元测试。最后,我们将三个Java器官移植到一个特定的平台上进行性能测试,以验证它们是否能够在新的系统中正常工作。采用该策略提取的30个器官在单元测试中均表现良好,最高通过率达到97%,最低也能通过80%,三个Java器官在新系统中运行良好,为主机提供了三个新功能。结果表明基于开源知识库的器官移植系统的可行性,为代码重用提供了新的思路。

英文摘要:

Organ transplantation, which is the utilization of codes directly related to some specific functionalities to complete ones own program, provides more convenience for developers than traditional component reuse. However, recent techniques are challenged with the lack of organs for transplantation. Hence, we conduct an empirical study on extracting organs from GitHub repository to explore transplantation based on large-scale dataset. We analyze statistics from 12 representative GitHub projects and get the conclusion that 1) there are abundant practical organs existing in commits with add as a key word in the comments; 2) organs in this repository mainly possess four kinds of contents; 3) approximately 70% of the organs are easy-to-transplant. Implementing our transplantation strategy for different kinds of organs, we manually extract 30 organs in three different programming languages, namely Java, Python, and C, and make unit tests for them utilizing four testing tools (two for Java, one for Python, and one for C). At last, we transplant three Java organs into a specific platform for a performance check to verify whether they can work well in the new system. All the 30 organs extracted by our strategy possess good performances in unit test with the highest passing rate reaching 97% and the lowest one still passing 80% and the three Java organs work well in the new system, providing three new functionalities for the host. All the results indicate the feasibility of organ transplantation based on open-source repository, bringing new idea for code reuse.

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

↑