aws-samples / aws-fraud-detector-samples
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
  • 40% duplication:
    • 2,145 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 862 duplicated lines
  • 127 duplicates
system40% (862 lines)
Duplication per Extension
html47% (556 lines)
py42% (288 lines)
yaml5% (18 lines)
Duplication per Component (primary)
profiler/CloudFormationSolution/templates47% (556 lines)
demo_scripts42% (288 lines)
profiler/CloudFormationSolution5% (18 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 127 duplicates...
Size#FoldersFilesLinesCode
28 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_numeric.html
profile_partition.html
57:84 (15%)
19:46 (11%)
view
23 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_numeric.html
profile_partition.html
57:79 (12%)
123:145 (9%)
view
23 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_partition.html
profile_partition.html
19:41 (9%)
123:145 (9%)
view
21 x 2 demo_scripts
demo_scripts
variable_type_config.py
variable_type_config.py
180:200 (4%)
237:257 (4%)
view
20 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_categorical.html
profile_partition.html
125:144 (6%)
19:38 (8%)
view
20 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_categorical.html
profile_partition.html
125:144 (6%)
123:142 (8%)
view
20 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_categorical.html
profile_numeric.html
125:144 (6%)
57:76 (11%)
view
19 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_email.html
profile_partition.html
22:40 (13%)
123:141 (7%)
view
19 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_email.html
profile_numeric.html
22:40 (13%)
57:75 (10%)
view
19 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_categorical.html
profile_email.html
125:143 (6%)
22:40 (13%)
view
19 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_email.html
profile_partition.html
22:40 (13%)
19:37 (7%)
view
18 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_partition.html
profile_partition.html
79:96 (7%)
215:232 (7%)
view
17 x 2 demo_scripts
demo_scripts
variable_type_config.py
variable_type_config.py
7:23 (3%)
54:70 (3%)
view
17 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_categorical.html
profile_numeric.html
177:193 (5%)
93:109 (9%)
view
17 x 2 demo_scripts
demo_scripts
variable_type_config.py
variable_type_config.py
101:117 (3%)
213:229 (3%)
view
16 x 2 demo_scripts
demo_scripts
variable_type_config.py
variable_type_config.py
65:80 (3%)
102:117 (3%)
view
16 x 2 demo_scripts
demo_scripts
variable_type_config.py
variable_type_config.py
65:80 (3%)
214:229 (3%)
view
13 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_categorical.html
profile_numeric.html
257:269 (4%)
154:166 (7%)
view
12 x 2 demo_scripts
demo_scripts
variable_type_config.py
variable_type_config.py
7:18 (2%)
404:415 (2%)
view
12 x 2 profiler/CloudFormationSolution/templates
profiler/CloudFormationSolution/templates
profile_correlation.html
profile_partition.html
41:52 (8%)
129:140 (4%)
view