aws-samples / aws-step-functions-plagiarism-demo-dotnetcore
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 8% duplication:
    • 4,587 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 374 duplicated lines
  • 56 duplicates
system8% (374 lines)
Duplication per Extension
js7% (254 lines)
yaml23% (86 lines)
cs6% (18 lines)
vue5% (16 lines)
Duplication per Component (primary)
src/frontend/admin7% (254 lines)
src/backend23% (86 lines)
src/frontend/testcentre4% (16 lines)
src/backend/ScheduleExamTask37% (9 lines)
src/backend/ResolveIncidentTask64% (9 lines)
src/backend/PlagiarismRepository0% (0 lines)
src/backend/Plagiarism0% (0 lines)
src/backend/SendNotificationTask0% (0 lines)
src/backend/AdminActionTask0% (0 lines)
src/backend/RegisterIncidentTask0% (0 lines)
src/backend/SubmitExamTask0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 56 duplicates...
Size#FoldersFilesLinesCode
28 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
5483:5517 (<1%)
5675:5710 (<1%)
view
22 x 2 src/backend
src/backend
template.yaml
template.yaml
173:194 (6%)
234:255 (6%)
view
13 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
4932:4944 (<1%)
5574:5592 (<1%)
view
12 x 2 src/backend
src/backend
template.yaml
template.yaml
204:215 (3%)
235:246 (3%)
view
12 x 2 src/backend
src/backend
template.yaml
template.yaml
174:185 (3%)
204:215 (3%)
view
11 x 2 src/backend
src/backend
template.yaml
template.yaml
152:162 (3%)
206:216 (3%)
view
10 x 2 src/backend
src/backend
template.yaml
template.yaml
152:161 (2%)
176:185 (2%)
view
10 x 2 src/backend
src/backend
template.yaml
template.yaml
152:161 (2%)
237:246 (2%)
view
10 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
5223:5235 (<1%)
5608:5620 (<1%)
view
9 x 2 src/backend/ResolveIncidentTask
src/backend/ScheduleExamTask
Function.cs
Function.cs
9:30 (64%)
9:35 (37%)
view
8 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
4248:4257 (<1%)
5483:5492 (<1%)
view
8 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
984:993 (<1%)
4806:4815 (<1%)
view
8 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
1345:1354 (<1%)
5997:6006 (<1%)
view
8 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
1345:1354 (<1%)
4806:4815 (<1%)
view
8 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
984:993 (<1%)
1345:1354 (<1%)
view
8 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
4806:4815 (<1%)
5997:6006 (<1%)
view
8 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
984:993 (<1%)
5997:6006 (<1%)
view
8 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
4248:4257 (<1%)
5675:5685 (<1%)
view
8 x 2 src/frontend/testcentre/src/components
src/frontend/testcentre/src/components
Exam.vue
Question.vue
79:86 (6%)
50:57 (15%)
view
7 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
984:991 (<1%)
4248:4255 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
8 x 2 src/frontend/admin/js
src/frontend/admin/js
bootstrap.bundle.js
bootstrap.bundle.js
14:22 
1744:1752 
view