A Study of Potential Code Borrowing and License Violations in Java Projects on GitHub
Yaroslav Golubev, Maria Eliseeva, Nikita Povarov, and Timofey Bryksin
June, 2020. Published in the proceedings of MSR'20 (A).
Abstract. With an ever-increasing amount of open source software, the popularity of services like GitHub that facilitate code reuse, and common misconceptions about the licensing of open source software, the problem of license violations in the code is getting more and more prominent. In this study, we compile an extensive corpus of popular Java projects from GitHub, search it for code clones and perform an original analysis of possible code borrowing and license violations on the level of code fragments. We chose Java as a language because of its popularity in industry, where the plagiarism problem is especially relevant because of possible legal action. We analyze and discuss distribution of 94 different discovered and manually evaluated licenses in files and projects, differences in the licensing of files, distribution of potential code borrowing between licenses, various types of possible license violations, most violated licenses, etc. Studying possible license violations in specific blocks of code, we have discovered that 29.6% of them might be involved in potential code borrowing and 9.4% of them could potentially violate original licenses.
Paper Pre-print VideoCiting publications
- Towards Effective Supply Chain Management for Software Systems
TW Stalnaker · 2026 - Detection of LLM-assisted Code Plagiarism Using k-gram Software Birthmarks
N Fedorov, A Monden, H Inayoshi, H Tamada · arXiv preprint arXiv … · 2026 - File-Level Copying Is an Implicit Dependency in Open Source
R He, A Mockus, W Yang, M Zhou · arXiv preprint arXiv:2607.02059 · 2026 - From License Understanding to Copyright Violation Detection: A Study of Libraries in GitHub Python Projects
W Yang, Y Liu, M Pan · Journal of Software: Evolution and … · 2026 - Project-wise Comparison of Software Birthmarks Using Weighted Partial Similarity
N Fedorov, A Monden, H Inayoshi, H Tamada · arXiv preprint arXiv … · 2026 - Diversidad de licencias en software libre
SRM León, JMG Barahona, GR Martínez · 2025 - Trustworthy Reuse in the Machine Learning Model Supply Chain
W Jiang · 2025 - License Compatibility Detection for OpenJavaWorks Open-Source Projects Based on Code Similarity
X Wang, H Yu, G Fan, Y Liang · 2025 IEEE 49th Annual … · 2025 - Insights and Analysis of Open-source License Violation Risks in LLMs Generated Code.
Y Wang, Y Wang, Y Yu, C Xu, H Yu · International Journal of … · 2025 - Securing software ecosystems through repository mining
AD Islam, S Jansen · CEUR Workshop Proceedings · 2025 - Identification and classification of free, open source software licenses: A systematic literature review
S Montes-Leon, G Robles · Journal of Systems and … · 2025 - Full line code completion: Bringing ai to desktop
A Semenkin, V Bibaev, Y Sokolov · 2025 IEEE/ACM 47th … · 2025 - Automated Program Repair: Emerging trends pose and expose problems for benchmarks
J Renzullo, P Reiter, W Weimer, S Forrest · ACM Computing Surveys · 2025 - Open source, hidden costs: A systematic literature review on oss license management
B Li, C Liu, L Fan, S Chen, Z Zhang · IEEE Transactions on … · 2025 - CloneIRD: 面向代码溯源的克隆代码 继承关系判定方法.
姜智文, 任怡, 杨立明, 管剑波, 李宝 · Journal of Zhengzhou … · 2024 - Work in Progress Paper: Detecting Method Level License Conflicts in the Worldwide Software Ecosystem.
AD Islam, K Kaipa, S Jansen · BENEVOL · 2024 - Empirical Quantitative Analyses of Research Software Engineering Projects in Scientific Computing
SD Schwartz · 2024 - William & Mary Law School Scholarship Repositor y
N Wintersgill, T Stalnaker, LA Heymann, O Chaparro · 2024 - Newly created assignments and the first repository effect on inter-semester plagiarism
K Adkins, DA Joyner · Proceedings of the Eleventh ACM Conference on … · 2024 - Your “Notice” Is Missing: Detecting and Fixing Violations of Modification Terms in Open Source Licenses during Forking
K Huang, Y Xia, B Chen, S He, H Zeng, Z Zhou · Proceedings of the 33rd … · 2024 - Analyzing FOSS license usage in publicly available software at scale via the SWH-analytics framework: A. Antelmi et al.
A Antelmi, M Torquati, G Corridori, D Gregori · The Journal of … · 2024 - The origin and opportunities of developers' perceived code accountability in open source ai software development
SC Bartsch, M Lother, JH Schmidt, M Adam · Proceedings of the … · 2024 - “The law doesn't work like a computer”: Exploring software licensing issues faced by legal practitioners
N Wintersgill, T Stalnaker, LA Heymann · Proceedings of the … · 2024 - Peatmoss: A dataset and initial analysis of pre-trained models in open-source software
W Jiang, J Yasmin, J Jones, N Synovic, J Kuo · Proceedings of the 21st … · 2024 - Untangling knots: Leveraging llm for error resolution in computational notebooks
K Grotov, S Titov, Y Zharov, T Bryksin · arXiv preprint arXiv:2405.01559 · 2024 - コンテナ開発における OSS の法的リスク特定自動化に関する研究
東裕之輔 · 2023 - 4.1. 1 Author's Contributions
C Lopes, P Martins, V Saini, D Yang · Analyzing Large Code … · 2023 - Finding library substitutions for open-source license violations
CM Gohmann · 2023 - 开源软件供应链安全研究综述
纪守领, 王琴应, 陈安莹, 赵彬彬, 叶童, 张旭鸿 · 软件学报 · 2023 - A five-year survey of literature in software engineering and repository mining research
SD Schwartz · Res. Rep., Dept. of Comput. Sci., Univ. of Oregon · 2023 - Survey on open-source software supply chain security
SL JI, QY WANG, AY CHEN, BB ZHAO, T Ye · Journal of … · 2023 - The uphill journey of FaaS in the open-source community
N Eskandani, G Salvaneschi · Journal of Systems and Software · 2023 - Where to go now? Finding alternatives for declining packages in the npm ecosystem
S Mujahid, DE Costa, R Abdalkareem · 2023 38th IEEE/ACM … · 2023 - Towards automated detection of unethical behavior in open-source software projects
HM Win, H Wang, SH Tan · Proceedings of the 31st ACM joint European … · 2023 - Analyzing Software Evolution Datasets and Their Use Cases
S Kittan · 2023 - ery-Analysis on Git-A ributes in Relational and Graph-DB
G Saake, D Broneske, J Krüger · 2022 - Learning Just-in-Time Code Duplicates Extraction
EA AlOmar, A Ivanov, Z Kurbatova · Available at SSRN … · 2022 - A preliminary analysis of gpl-related license violations in docker images
Y Higashi, K Fukui, K Yutaro · 2022 IEEE international … · 2022 - AntiCopyPaster: extracting code duplicates as soon as they are introduced in the IDE
EA AlOmar, A Ivanov, Z Kurbatova, Y Golubev · Proceedings of the 37th … · 2022 - Pitfalls and guidelines for using time-based Git data
SW Flint, J Chauhan, R Dyer · Empirical Software Engineering · 2022 - A large-scale comparison of Python code in Jupyter notebooks and scripts
K Grotov, S Titov, V Sotnikov, Y Golubev · Proceedings of the 19th … · 2022 - Coprotector: Protect open-source code against unauthorized training usage with data poisoning
Z Sun, X Du, F Song, M Ni, L Li · … of the ACM Web Conference 2022 · 2022 - Data-Driven Software Engineering
VV Kovalenko · 2021 - Comparison of Siamese neural network architectures in the problem of similar code sequences search
A Yumaganov · 2021 International Conference on Information … · 2021 - Effective dependency management for the javascript software ecosystem
S Mujahid · 2021 - Vulnerability analysis of similar code
A Piran, CP Chang, AM Fard · 2021 IEEE 21st International … · 2021 - Tool support for open source software license compliance: The first two decades of the millennium
T Tuunanen · 2021 - On the nature of code cloning in open-source java projects
Y Golubev, T Bryksin · 2021 IEEE 15th International Workshop … · 2021 - Sorrel: an IDE plugin for managing licenses and detecting license incompatibilities
D Pogrebnoy, I Kuznetsov, Y Golubev · 2021 IEEE … · 2021 - Multi-threshold token-based code clone detection
Y Golubev, V Poletansky, N Povarov · … on Software Analysis … · 2021 - Authorship attribution of source code: A language-agnostic approach and applicability in software engineering
E Bogomolov, V Kovalenko, Y Rebryk · Proceedings of the 29th … · 2021
