About CIDE
Advanced code similarity analysis and plagiarism detection
AST Analysis
Uses Abstract Syntax Trees to understand code structure, not just compare text
Plagiarism Detection
Detects disguised plagiarism through variable renaming and formatting changes
Weighted Scoring
70% structure + 30% text analysis for accurate similarity assessment
How It Works
Upload Files
Upload two code files you want to compare. Supports Python, Java, JavaScript, C/C++, and more.
AST Parsing
Code is parsed into Abstract Syntax Trees, extracting structural information independent of naming.
Normalization
Variable names, function names, and constants are replaced with generic placeholders.
Structural Comparison
Normalized structures are compared to identify identical patterns and logic flow.
Weighted Scoring
Combined score calculated: 70% structural similarity + 30% text sequence similarity.
Results & Visualization
Detailed results with charts, metrics, and side-by-side diff view.
Detection Capabilities
What We Detect
- ✅ Renamed variables and functions
- ✅ Identical code structure
- ✅ Similar control flow patterns
- ✅ Matching algorithm implementations
- ✅ Code with added/removed comments
- ✅ Reformatted and whitespace changes
What We Ignore
- ❌ Comment differences
- ❌ Whitespace and indentation
- ❌ Variable naming conventions
- ❌ String literal values
- ❌ Numeric constant values
- ❌ Code formatting styles
Plagiarism Types Detected
Exact Copy
Identical code structure (100% structural match). Even with renamed variables.
Renamed Variables
Structural similarity > 90%. Variable/function names changed but logic identical.
Restructured Code
Structural similarity above threshold but < 90%. Code reorganized but similar.
Use Cases
Academic Integrity
Detect plagiarism in student assignments and projects
Code Review
Identify duplicate code in large codebases
Legal Analysis
Support copyright infringement investigations
Refactoring
Find similar code patterns for consolidation
Technical Details
Technology Stack
Supported Languages
Python (full AST support), Java, JavaScript, C/C++ (text-based analysis)
Scoring Algorithm
Weighted score = (0.7 × Structure Similarity) + (0.3 × Sequence Similarity)
Default Threshold
75% similarity considered potential plagiarism (configurable)