Skip to main content

detect

Function detect 

Source
pub fn detect(files: &[SourceFile], min_tokens: usize) -> Vec<CpdClone>
Expand description

Detect duplicate code clones across files using a rolling-hash sliding window.

Files are grouped by format; each format group is processed independently. Rayon is used for outer parallelism (one task per format group).