LiDetector : License Incompatibility Detection for Open Source Software
ACM Transactions on Software Engineering and Methodology · 31.01.2023 · 32 (1) · 1-28
DOI: 10.1145/3518994 ↗Kurz gefasst
Fachartikel in der Zeitschrift ACM Transactions on Software Engineering and Methodology, online erschienen am 13.02.2023. Verfasst von Sihan Xu und 5 weiteren Autor:innen. Die Arbeit wurde bisher 29-mal zitiert (Crossref) und nennt 70 Literaturangaben. Gefördert von: National Natural Science Foundation of China, National Key Research Project of China.
Abstract (Originalsprache)
Open-source software (OSS) licenses dictate the conditions, which should be followed to reuse, distribute, and modify software. Apart from widely-used licenses such as the MIT License, developers are also allowed to customize their own licenses (called custom license), whose descriptions are more flexible. The presence of such various licenses imposes challenges to understand licenses and their compatibility. To avoid financial and legal risks, it is essential to ensure license compatibility when integrating third-party packages or reusing code accompanied with licenses. In this work, we propose LiDetector , an effective tool that extracts and interprets OSS licenses (including both official licenses and custom licenses), and detects license incompatibility among these licenses. Specifically, LiDetector introduces a learning-based method to automatically identify meaningful license terms from an arbitrary license, and employs Probabilistic Context-Free Grammar (PCFG) to infer rights and obligations for incompatibility detection. Experiments demonstrate that LiDetector outperforms existing methods with 93.28% precision for term identification, and 91.09% accuracy for right and obligation inference, and can effectively detect incompatibility with 10.06% FP rate and 2.56% FN rate. Furthermore, with LiDetector , our large-scale empirical study on 1,846 projects reveals that 72.91% of the projects are suffering from license incompatibility, including popular ones such as the MIT License and the Apache License. We highlighted lessons learned from perspectives of different stakeholders and made all related data and the replication package publicly available to facilitate follow-up research.
Förderung
- National Natural Science Foundation of China
- National Key Research Project of China
Zitieren
APA
Xu, S., Gao, Y., Fan, L., Liu, Z., Liu, Y., & Ji, H. (2023). LiDetector : License Incompatibility Detection for Open Source Software. ACM Transactions on Software Engineering and Methodology, 32(1), 1-28. https://doi.org/10.1145/3518994
Vancouver
Xu S, Gao Y, Fan L, Liu Z, Liu Y, Ji H. LiDetector : License Incompatibility Detection for Open Source Software. ACM Transactions on Software Engineering and Methodology. 2023;32(1):1-28. doi:10.1145/3518994
BibTeX
@article{Xu2023,
author = {Xu, Sihan and Gao, Ya and Fan, Lingling and Liu, Zheli and Liu, Yang and Ji, Hua},
title = {LiDetector : License Incompatibility Detection for Open Source Software},
journal = {ACM Transactions on Software Engineering and Methodology},
year = {2023},
volume = {32},
number = {1},
pages = {1--28},
doi = {10.1145/3518994}
}
EUVIMED