Repository Intelligence
Code Duplication Detector
Paste code and find repeated 4+ line blocks and the percentage of duplicated lines - a single-file preview of what repo-wide duplication analysis catches.
Paste code (one file)
75.0%
Duplicated lines
6
Duplicate blocks (4+ lines)
Repeated at lines 4, 17
if (!res.ok) {
throw new Error("Request failed: " + res.status);
}
return await res.json();Repeated at lines 5, 18
throw new Error("Request failed: " + res.status);
}
return await res.json();
} catch (err) {Repeated at lines 6, 19
}
return await res.json();
} catch (err) {
console.error("Failed to fetch:", err);Repeated at lines 7, 20
return await res.json();
} catch (err) {
console.error("Failed to fetch:", err);
return null;Repeated at lines 8, 21
} catch (err) {
console.error("Failed to fetch:", err);
return null;
}Exact-match block detection - catches literal copy-paste, not renamed-variable clones. The full Repository Analysis engine goes deeper across your whole codebase.
This is one question. ArchSetu answers it for a whole repository.
Call graph, dead code, blast radius and a health score, in about a minute.
Related tools
All Repository Intelligence tools →Dependency Graph VisualizerPaste package.json - dependencies grouped by type, plus packages listed twice with conflicting versions.Git-History Risk ScoringPaste a real GitHub repo - bus factor and ownership risk from its actual commit history, not a paste-one-file estimate.Blast Radius ExplorerPaste a real GitHub repo, pick a file, see exactly what breaks if you change it - the real reverse-dependency graph.Dead Code FinderPaste a real GitHub repo - functions with zero known callers, traced from the real call graph.Dependency Hygiene CheckerPaste a real GitHub repo - packages imported in code but never declared in any package.json.Cargo.toml Dependency AuditorPaste Cargo.toml - every dependency listed, with wildcard or bare-major version ranges flagged.
Was this tool helpful?