An Initial Step Towards Organ Transplantation Based on GitHub Repository
Shangwen Wang, Xiaoguang Mao, Yue Yu

TL;DR
This paper explores the feasibility of 'organ transplantation' in software by extracting functional code segments from GitHub repositories, demonstrating successful reuse and integration across different programming languages.
Contribution
It introduces a novel approach to code reuse by extracting and transplanting functional code 'organs' from open-source repositories, validated through empirical analysis and practical transplantation.
Findings
Abundant practical organs found in commits with 'add' keyword
Most organs are easy-to-transplant, about 70%
Extracted organs show high performance in unit tests
Abstract
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,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
