Catch Code Duplication
Before It Scales.
A smart, AST-powered static analysis tool that finds duplicated method logic in Java codebases. Eliminate false positives and technical debt.
npm install -g smart-duplicate-detectorSemantic AST Logic vs. Raw String Matching
The Problem with Traditional Detectors
Traditional duplicate detectors often rely on raw string matching or line tokenization. This leads to a massive amount of "false positive" noise—flagging standard boilerplate, imports, or basic getters and setters as duplicated code.
The SDD Two-Step Approach
Smart Duplicate Detector (SDD) solves this using a two-step semantic approach. By relying on Abstract Syntax Tree (AST) parsing, SDD isolates method logic to find real structural clones while ignoring variable renames and boilerplate.
Engineered with Modern Tech
Powered by robust static analysis libraries and a native desktop interface wrapper.
Semantic AST Parsing
Uses JavaParser and Java 17 to completely ignore boilerplate, imports, and field declarations, comparing only structural logic.
Tech: Java 17 + JavaParserSmart Scoring
Utilizes a sophisticated Weighted Levenshtein distance algorithm via Maven backend to calculate accurate similarity percentages.
Tech: Maven + Levenshtein EngineCLI & GUI Options
Run headlessly via CLI or launch the sleek FlatLaf (FlatDarkLaf) desktop Java Swing dashboard wrapped in an NPM global CLI.
Tech: Node.js/NPM + FlatLaf SwingSee It in Action
Follow the step-by-step process below to see how the Java Swing FlatLaf desktop interface handles target selection, scanning, and analysis.
1. Target Project Selection
Browse and select any local Java project directory using the native FlatDarkLaf file selector dialog to point the analyzer directly to your source code.

2. Configure Threshold & Run
Fine-tune the similarity slider (e.g., set to 80%) to control sensitivity, then execute the AST extraction engine with a single click.

3. Real-Time Structural Analysis
View immediate analysis output highlighting method signatures, similarity match percentages, and pinpointed structural duplicates.

Future Roadmap
What is coming next to make Smart Duplicate Detector even faster and more accessible.
VS Code Extension Integration
Bringing real-time duplicate method detection and inline diff highlighting directly inside VS Code as you write code.
Optimized Time Complexity
Implementing parallel AST processing and indexing to drastically minimize scan duration on large enterprise codebases.
CI/CD GitHub Action Support
Automated PR blocking when duplicate code ratio exceeds project threshold directly in your pull requests.