{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,13]],"date-time":"2026-11-13T17:53:16Z","timestamp":1794592396012,"version":"4.9.1"},"reference-count":74,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","license":[{"start":{"date-parts":[[2024,7,12]],"date-time":"2024-07-12T00:00:00Z","timestamp":1720742400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["61825201,62332001"],"award-info":[{"award-number":["61825201,62332001"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2024,7,12]]},"abstract":"<jats:p>A package\u2019s source code repository records the package\u2019s development history, which is critical for the use and risk monitoring of the package. However, a package release often misses its source code repository due to the separation of the package\u2019s development platform from its distribution platform. To establish the link, existing tools retrieve the release\u2019s repository information from its metadata, which suffers from two limitations: the metadata may not contain or contain wrong information. Our analysis shows that existing tools can only retrieve repository information for up to 70.5% of PyPI releases. To address the limitations, this paper proposes PyRadar, a novel framework that utilizes the metadata and source distribution to retrieve and validate the repository information for PyPI releases. We start with an empirical study to compare four existing tools on 4,227,425 PyPI releases and analyze phantom files (files appearing in the release\u2019s distribution but not in the release\u2019s repository) in 14,375 correct and 2,064 incorrect package-repository links. Based on the findings, we design PyRadar with three components, i.e., Metadata-based Retriever, Source Code Repository Validator, and Source Code-based Retriever, that progressively retrieves correct source code repository information for PyPI releases. In particular, the Metadata-based Retriever combines best practices of existing tools and successfully retrieves repository information from the metadata for 72.1% of PyPI releases. The Source Code Repository Validator applies common machine learning algorithms on six crafted features and achieves an AUC of up to 0.995. The Source Code-based Retriever queries World of Code with the SHA-1 hashes of all Python files in the release\u2019s source distribution and retrieves repository information for 90.2% of packages in our dataset with an accuracy of 0.970. Both practitioners and researchers can employ the PyRadar to better use PyPI packages.<\/jats:p>","DOI":"10.1145\/3660822","type":"journal-article","created":{"date-parts":[[2024,7,12]],"date-time":"2024-07-12T10:22:09Z","timestamp":1720779729000},"page":"2608-2631","source":"Crossref","is-referenced-by-count":11,"title":["PyRadar: Towards Automatically Retrieving and Validating Source Code Repository Information for PyPI Packages"],"prefix":"10.1145","volume":"1","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-0942-7890","authenticated-orcid":false,"given":"Kai","family":"Gao","sequence":"first","affiliation":[{"name":"Peking University, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0004-3493-102X","authenticated-orcid":false,"given":"Weiwei","family":"Xu","sequence":"additional","affiliation":[{"name":"Peking University, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1005-1974","authenticated-orcid":false,"given":"Wenhao","family":"Yang","sequence":"additional","affiliation":[{"name":"Peking University, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6324-3964","authenticated-orcid":false,"given":"Minghui","family":"Zhou","sequence":"additional","affiliation":[{"name":"Peking University, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2024,7,12]]},"reference":[{"key":"e_1_3_1_2_1","doi-asserted-by":"publisher","unstructured":"Mahmoud Alfadel Diego Elias Costa and Emad Shihab. 2021. Empirical Analysis of Security Vulnerabilities in Python Packages. In 2021 IEEE International Conference on Software Analysis Evolution and Reengineering (SANER). 446\u2013457. https:\/\/doi.org\/10.1109\/SANER50967.2021.00048 10.1109\/SANER50967.2021.00048","DOI":"10.1109\/SANER50967.2021.00048"},{"key":"e_1_3_1_3_1","doi-asserted-by":"publisher","unstructured":"Christian Bird Peter C. Rigby Earl T. Barr David J. Hamilton Daniel M. German and Prem Devanbu. 2009. The promises and perils of mining git. In 2009 6th IEEE International Working Conference on Mining Software Repositories. 1\u201310. https:\/\/doi.org\/10.1109\/MSR.2009.5069475 10.1109\/MSR.2009.5069475","DOI":"10.1109\/MSR.2009.5069475"},{"key":"e_1_3_1_4_1","doi-asserted-by":"publisher","unstructured":"Hudson Borges Andre Hora and Marco Tulio Valente. 2016. Understanding the Factors That Impact the Popularity of GitHub Repositories. In 2016 IEEE International Conference on Software Maintenance and Evolution (ICSME). 334\u2013344. https:\/\/doi.org\/10.1109\/ICSME.2016.31 10.1109\/ICSME.2016.31","DOI":"10.1109\/ICSME.2016.31"},{"key":"e_1_3_1_5_1","doi-asserted-by":"publisher","DOI":"10.1023\/A:1010933404324"},{"key":"e_1_3_1_6_1","unstructured":"Scott Chacon and Ben Straub. 2023. Git - Git Objects. https:\/\/git-scm.com\/book\/en\/v2\/Git-Internals-Git-Objects. (Accessed on 09\/14\/2023)."},{"key":"e_1_3_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/2939672.2939785"},{"key":"e_1_3_1_8_1","unstructured":"Roberto Di Cosmo and Stefano Zacchiroli. 2017. Software Heritage: Why and How to Preserve Software Source Code. In Proceedings of the 14th International Conference on Digital Preservation iPRES 2017 Kyoto Japan September 25-29 2017 Shoichiro Hara Shigeo Sugimoto and Makoto Goto (Eds.). https:\/\/hdl.handle.net\/11353\/10.931064"},{"key":"e_1_3_1_9_1","unstructured":"coursera-dl. 2016. Rename PyPI package name from \"coursera\" to \"coursera-dl\" \u00b7 coursera-dl\/coursera-dl@c2f318a. https:\/\/github.com\/coursera-dl\/coursera-dl\/commit\/c2f318a57183800a8fb9360761651690d7db3e5a. (Accessed on 04\/25\/2024)."},{"key":"e_1_3_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/2145204.2145396"},{"key":"e_1_3_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/3196398.3196401"},{"key":"e_1_3_1_12_1","volume-title":"28th Annual Network and Distributed System Security Symposium, NDSS 2021, virtually, February 21-25, 2021","author":"Duan Ruian","year":"2021","unstructured":"Ruian Duan, Omar Alrawi, Ranjita Pai Kasturi, Ryan Elder, Brendan Saltaformaggio, and Wenke Lee. 2021. Towards Measuring Supply Chain Attacks on Package Managers for Interpreted Languages. In 28th Annual Network and Distributed System Security Symposium, NDSS 2021, virtually, February 21-25, 2021. The Internet Society. https:\/\/www.ndss-symposium.org\/ndss-paper\/towards-measuring-supply-chain-attacks-on-package-managers-for-interpreted-languages\/"},{"key":"e_1_3_1_13_1","unstructured":"Edward2. 2019. Move Edward2 from google-research\/google-research to google\/edward2. \u00b7 google-research\/google-research@f26db54. https:\/\/github.com\/google-research\/google-research\/commit\/f26db5490fa147a6052a78b2e479361833c3fd41. (Accessed on 04\/25\/2024)."},{"key":"e_1_3_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/3379597.3387466"},{"key":"e_1_3_1_15_1","unstructured":"Python Software Foundation. 2023a. Help \u00b7 PyPI. https:\/\/pypi.org\/help\/#collaborator-roles. (Accessed on 09\/21\/2023)."},{"key":"e_1_3_1_16_1","unstructured":"Python Software Foundation. 2023b. PEP 527 \u2013 Removing Un(der)used file types\/extensions on PyPI | peps.python.org. https:\/\/peps.python.org\/pep-0527\/. (Accessed on 09\/24\/2023)."},{"key":"e_1_3_1_17_1","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1997.1504"},{"key":"e_1_3_1_18_1","doi-asserted-by":"crossref","unstructured":"Jerome H Friedman. 2001. Greedy function approximation: a gradient boosting machine. Annals of statistics (2001) 1189\u20131232.","DOI":"10.1214\/aos\/1013203451"},{"key":"e_1_3_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/3640336"},{"key":"e_1_3_1_20_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2022.3163576"},{"key":"e_1_3_1_21_1","unstructured":"GitHub. 2023. About the dependency graph - GitHub Docs. https:\/\/docs.github.com\/en\/code-security\/supply-chain-security\/understanding-your-software-supply-chain\/about-the-dependency-graph. (Accessed on 09\/21\/2023)."},{"key":"e_1_3_1_22_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2013.11.021"},{"key":"e_1_3_1_23_1","unstructured":"Google. 2021a. BigQuery dataset | Open Source Insights. https:\/\/docs.deps.dev\/bigquery\/v1\/#packageversiontoproject. (Accessed on 04\/24\/2024)."},{"key":"e_1_3_1_24_1","unstructured":"Google. 2021b. Frequently Asked Questions | Open Source Insights. https:\/\/docs.deps.dev\/faq\/. (Accessed on 04\/24\/2024)."},{"key":"e_1_3_1_25_1","unstructured":"Google. 2021c. Open Source Insights. https:\/\/deps.dev\/. (Accessed on 09\/01\/2023)."},{"issue":"1","key":"e_1_3_1_26_1","doi-asserted-by":"crossref","first-page":"29","DOI":"10.1148\/radiology.143.1.7063747","article-title":"use of the area under a receiver Operating Characteristics (ROC) curves","volume":"143","author":"Hanley James A","year":"1982","unstructured":"James A Hanley, Barbara J Mc Neil, and A Meaning. 1982. use of the area under a receiver Operating Characteristics (ROC) curves. Radiology 143, 1 (1982), 29\u201336.","journal-title":"Radiology"},{"key":"e_1_3_1_27_1","doi-asserted-by":"publisher","unstructured":"Hideaki Hata Raula Gaikovina Kula Takashi Ishio and Christoph Treude. 2021. Same File Different Changes: The Potential of Meta-Maintenance on GitHub. In 2021 IEEE\/ACM 43rd International Conference on Software Engineering (ICSE). 773\u2013784. https:\/\/doi.org\/10.1109\/ICSE43902.2021.00076 10.1109\/ICSE43902.2021.00076","DOI":"10.1109\/ICSE43902.2021.00076"},{"key":"e_1_3_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3468264.3468571"},{"key":"e_1_3_1_29_1","doi-asserted-by":"publisher","DOI":"10.1109\/SP46215.2023.10179304"},{"key":"e_1_3_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/3368089.3409711"},{"key":"e_1_3_1_31_1","first-page":"707","volume-title":"Soviet physics doklady","author":"Levenshtein Vladimir I","year":"1966","unstructured":"Vladimir I Levenshtein et al. 1966. Binary codes capable of correcting deletions, insertions, and reversals. In Soviet physics doklady, Vol. 10. Soviet Union, 707\u2013710."},{"key":"e_1_3_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/3510003.3510142"},{"key":"e_1_3_1_33_1","doi-asserted-by":"publisher","DOI":"10.1109\/MSR.2019.00031"},{"key":"e_1_3_1_34_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-020-09905-9"},{"key":"e_1_3_1_35_1","doi-asserted-by":"publisher","DOI":"10.1214\/aoms\/1177730491"},{"key":"e_1_3_1_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4419-9863-7_209"},{"key":"e_1_3_1_37_1","unstructured":"Microsoft. 2020. microsoft\/OSSGadget: Collection of tools for analyzing open source packages. https:\/\/github.com\/microsoft\/OSSGadget. (Accessed on 09\/01\/2023)."},{"key":"e_1_3_1_38_1","unstructured":"Microsoft. 2023. OSS Find Source \u00b7 microsoft\/OSSGadget Wiki. https:\/\/github.com\/microsoft\/OSSGadget\/wiki\/OSS-Find-Source. (Accessed on 09\/20\/2023)."},{"key":"e_1_3_1_39_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2019.110460"},{"key":"e_1_3_1_40_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-52683-2_2"},{"key":"e_1_3_1_41_1","unstructured":"OpenSSF. 2023. OpenSSF Scorecard. https:\/\/securityscorecards.dev\/. (Accessed on 09\/20\/2023)."},{"key":"e_1_3_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/3540250.3549156"},{"key":"e_1_3_1_43_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.infsof.2021.106665"},{"key":"e_1_3_1_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/3239235.3268920"},{"key":"e_1_3_1_45_1","unstructured":"Ansible project contributors. 2023. Releases and maintenance \u2014 Ansible Documentation. https:\/\/docs.ansible.com\/ansible\/devel\/reference_appendices\/release_and_maintenance.html. (Accessed on 09\/22\/2023)."},{"key":"e_1_3_1_46_1","unstructured":"PyPA. 2023a. Core metadata specifications \u2014 Python Packaging User Guide. https:\/\/packaging.python.org\/en\/latest\/specifications\/core-metadata\/. (Accessed on 09\/13\/2023)."},{"key":"e_1_3_1_47_1","unstructured":"PyPA. 2023b. Glossary \u2014 Python Packaging User Guide. https:\/\/packaging.python.org\/en\/latest\/glossary\/. (Accessed on 09\/16\/2023)."},{"key":"e_1_3_1_48_1","unstructured":"PyPA. 2023c. Packaging and distributing projects \u2014 Python Packaging User Guide. https:\/\/packaging.python.org\/en\/latest\/guides\/distributing-packages-using-setuptools\/#packaging-and-distributing-projects. (Accessed on 09\/13\/2023)."},{"key":"e_1_3_1_49_1","unstructured":"PyPI. 2023. Warehouse documentation. https:\/\/warehouse.pypa.io\/. (Accessed on 09\/01\/2023)."},{"key":"e_1_3_1_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/3510003.3510216"},{"key":"e_1_3_1_51_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-020-09828-5"},{"key":"e_1_3_1_52_1","unstructured":"Chacon Scott and Straub Ben. 2023. Git - Submodules. https:\/\/git-scm.com\/book\/en\/v2\/Git-Tools-Submodules. (Accessed on 09\/19\/2023)."},{"key":"e_1_3_1_53_1","unstructured":"Giuseppe Silvestri Jie Yang Alessandro Bozzon Andrea Tagarelli et al. 2015. Linking Accounts across Social Networks: the Case of StackOverflow Github and Twitter.. In KDWeb. 41\u201352."},{"key":"e_1_3_1_54_1","unstructured":"Snyk. 2023. Snyk Open Source Advisor | Snyk. https:\/\/snyk.io\/advisor\/python. (Accessed on 09\/01\/2023)."},{"key":"e_1_3_1_55_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-023-10317-8"},{"key":"e_1_3_1_56_1","unstructured":"swsc. 2023. swsc \/ overview \u2014 Bitbucket. https:\/\/bitbucket.org\/swsc\/overview\/src\/master\/. (Accessed on 09\/18\/2023)."},{"key":"e_1_3_1_57_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-65745-1_7"},{"key":"e_1_3_1_58_1","doi-asserted-by":"publisher","DOI":"10.1145\/3510003.3510205"},{"key":"e_1_3_1_59_1","unstructured":"Tidelift. 2015. Libraries.io - The Open Source Discovery Service. https:\/\/libraries.io\/. (Accessed on 09\/01\/2023)."},{"key":"e_1_3_1_60_1","doi-asserted-by":"publisher","DOI":"10.1145\/2568225.2568315"},{"key":"e_1_3_1_61_1","doi-asserted-by":"publisher","DOI":"10.1145\/3236024.3236062"},{"key":"e_1_3_1_62_1","doi-asserted-by":"publisher","unstructured":"Bogdan Vasilescu Vladimir Filkov and Alexander Serebrenik. 2013. StackOverflow and GitHub: Associations between Software Development and Crowdsourced Knowledge. In 2013 International Conference on Social Computing. 188\u2013195. https:\/\/doi.org\/10.1109\/SocialCom.2013.35 10.1109\/SocialCom.2013.35","DOI":"10.1109\/SocialCom.2013.35"},{"key":"e_1_3_1_63_1","doi-asserted-by":"publisher","unstructured":"Duc-Ly Vu. 2021. py2src: Towards the Automatic (and Reliable) Identification of Sources for PyPI Package. In 2021 36th IEEE\/ACM International Conference on Automated Software Engineering (ASE). 1394\u20131396. https:\/\/doi.org\/10.1109\/ASE51524.2021.9678526 10.1109\/ASE51524.2021.9678526","DOI":"10.1109\/ASE51524.2021.9678526"},{"key":"e_1_3_1_64_1","doi-asserted-by":"publisher","DOI":"10.1145\/3468264.3468592"},{"key":"e_1_3_1_65_1","doi-asserted-by":"publisher","unstructured":"Duc-Ly Vu Ivan Pashchenko Fabio Massacci Henrik Plate and Antonino Sabetta. 2020. Typosquatting and Combosquatting Attacks on the Python Ecosystem. In 2020 IEEE European Symposium on Security and Privacy Workshops (EuroS&PW). 509\u2013514. https:\/\/doi.org\/10.1109\/EuroSPW51379.2020.00074 10.1109\/EuroSPW51379.2020.00074","DOI":"10.1109\/EuroSPW51379.2020.00074"},{"key":"e_1_3_1_66_1","doi-asserted-by":"publisher","DOI":"10.1145\/3377811.3380426"},{"key":"e_1_3_1_67_1","doi-asserted-by":"publisher","unstructured":"Jianyu Wu Weiwei Xu Kai Gao Jingyue Li and Minghui Zhou. 2023. Characterize Software Release Notes of GitHub Projects: Structure Writing Style and Content. In 2023 IEEE International Conference on Software Analysis Evolution and Reengineering (SANER). 473\u2013484. https:\/\/doi.org\/10.1109\/SANER56733.2023.00051 10.1109\/SANER56733.2023.00051","DOI":"10.1109\/SANER56733.2023.00051"},{"key":"e_1_3_1_68_1","doi-asserted-by":"publisher","DOI":"10.1145\/3510003.3510168"},{"key":"e_1_3_1_69_1","doi-asserted-by":"publisher","DOI":"10.1145\/3510003.3510196"},{"key":"e_1_3_1_70_1","doi-asserted-by":"publisher","DOI":"10.1145\/3540250.3549125"},{"key":"e_1_3_1_71_1","doi-asserted-by":"publisher","DOI":"10.1109\/ASE56229.2023.00175"},{"key":"e_1_3_1_72_1","doi-asserted-by":"publisher","unstructured":"Minghui Zhou and Audris Mockus. 2012. What make long term contributors: Willingness and opportunity in OSS community. In 2012 34th International Conference on Software Engineering (ICSE). 518\u2013528. https:\/\/doi.org\/10.1109\/ICSE.2012.6227164 10.1109\/ICSE.2012.6227164","DOI":"10.1109\/ICSE.2012.6227164"},{"key":"e_1_3_1_73_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2014.2349496"},{"key":"e_1_3_1_74_1","doi-asserted-by":"publisher","DOI":"10.1145\/2950290.2950364"},{"key":"e_1_3_1_75_1","first-page":"995","volume-title":"28th USENIX Security Symposium (USENIX Security 19)","author":"Zimmermann Markus","year":"2019","unstructured":"Markus Zimmermann, Cristian-Alexandru Staicu, Cam Tenny, and Michael Pradel. 2019. Small World with High Risks: A Study of Security Threats in the npm Ecosystem. In 28th USENIX Security Symposium (USENIX Security 19). USENIX Association, Santa Clara, CA, 995\u20131010. https:\/\/www.usenix.org\/conference\/usenixsecurity19\/presentation\/zimmerman"}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3660822","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3660822","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,2,4]],"date-time":"2026-02-04T07:57:36Z","timestamp":1770191856000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3660822"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,7,12]]},"references-count":74,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2024,7,12]]}},"alternative-id":["10.1145\/3660822"],"URL":"https:\/\/doi.org\/10.1145\/3660822","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,7,12]]}}}