Year: 2025
Type: dissertation
Abstract: In software development, developers sometimes develop software by copying and reusing source code from existing repositories. Since this practice has challenges such as vulnerabilities and license issues, various code clone detection methods have been proposed. In identifying versions of reused libraries, filelevel comparisons have been employed. However, this approach is computationally expensive due to the large number of comparisons required. To overcome this limitation, this study proposes a method for identifying versions of reused libraries based on directory-level comparisons. The method summarizes the source code and documents as a HyperLogLog++ Sketch, a probabilistic data structure that calculates cardinalities. By comparing the target sketch with the sketches of each version, the method efficiently identifies the corresponding version. This approach does not require prior knowledge of directory structures, unlike previous studies that relied on narrowing down files. Furthermore, the number of hash functions used has been reduced from 1024 to just one. The method was evaluated using three libraries accurately recorded in Firefox, achieving 100%, 96%, and 100% precision, respectively. These results demonstrate that the method not only improves efficiency but also maintains high accuracy.
Author: 田中, 温人
Institution: Nara Institute of Science and Technology
Language: English
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7208470403
