This site requires Cookies enabled in your browser for login.
WaterNet Home
WaterNet
for
pour le
Canada
Menu
WaterNet
Home
GWFO
Home
Master
List
Data
Centre
Collections
X
Defaults
Select All
Websites
X
Global Water Futures Observatories (GWFO) Global Water Futures (GWF) Global Institute for Water Security (GIWS) International Network of Alpine Research Catchment Hydrology
Legacy Research Programs
X
Changing Cold Regions Network (CCRN) Drought Research Initiative (DRI) International Network of Alpine Research Catchment Hydrology (Legacy Site) Improving Processes & Parameterization for Prediction in Cold Regions Hydrology (IP3) The Mackenzie Global Energy and Water Cycle Experiment (GEWEX) Study (MAGS)
Legacy sites
Map
Utilities
X
Account Settings Metadata Editor Record List Alias List Editor
Data Centre
Data Type Editor
. . .
X
Clear
Select All
Advanced Search
Related items loading ...
Fetching Chart ...
Publication Additional Information Download
Publication Type
Journal Article
Authorship
Li, G., Wu, Y., Roy, C. K., Sun, J., Peng, X., Zhan, N., Hu, B., & Ma, J.
Title
SAGA: Efficient and Large-Scale Detection of Near-Miss Clones with GPU Acceleration
Year
2020
Publication Outlet
In 2020 IEEE 27th International Conference on Software Analysis, Evolution and Reengineering (SANER) (pp. 272-283). IEEE
DOI
https://doi.org/10.1109/SANER48275.2020.9054832
Citation
Li, G., Wu, Y., Roy, C. K., Sun, J., Peng, X., Zhan, N., Hu, B., & Ma, J. (2020). SAGA: Efficient and Large-Scale Detection of Near-Miss Clones with GPU Acceleration. In 2020 IEEE 27th International Conference on Software Analysis, Evolution and Reengineering (SANER) (pp. 272-283). IEEE. https://doi.org/10.1109/SANER48275.2020.9054832
Abstract
Clone detection on large code repository is necessary for many big code analysis tasks. The goal is to provide rich information on identical and similar code across projects. Detecting near-miss code clones on big code is challenging since it requires intensive computing and memory resources as the scale of the source code increases. In this work, we propose SAGA, an efficient suffix-array based code clone detection tool designed with sophisticated GPU optimization. SAGA not only detects Type-l and Type-2 clones but also does so for cross-project large repositories and for the most computationally expensive Type-3 clones. Meanwhile, it also works at segment granularity, which is even more challenging. It detects code clones in 100 million lines of code within 11 minutes (with recall and precision comparable to state-of-the-art approaches), which is more than 10 times faster than state-of-the-art tools. It is the only tool that efficiently detects Type-3 near-miss clones at segment granularity in large code repository (e.g., within 11 hours on 1 billion lines of code). We conduct a preliminary case study on 85,202 GitHub Java projects with 1 billion lines of code and exhibit the distribution of clones across projects. We find about 1.23 million Type-3 clone groups, containing 28 million lines of code at arbitrary segment granularity, which are only detectable with SAGA. We believe SAGA is useful in many software engineering applications such as code provenance analysis, code completion, change impact analysis, and many more.
Program Affiliations
GWF: Global Water Futures
Publication Stage
Published
Download Links
https://doi.org/10.1109/SANER48275.2020.9054832
© 2026 - WaterNet Version 2026-06-01
Global Water Futures Observatories
Powered by
G W F Net
T-2022-12-05-C1tV3uVx1C10WLHdYoLC2I97Q Publication 1.0