aws-samples / 1click-hpc
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
  • 74% duplication:
    • 7,285 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 5,411 duplicated lines
  • 6,902 duplicates
system74% (5,411 lines)
Duplication per Extension
yaml85% (5,274 lines)
js22% (103 lines)
yml17% (34 lines)
Duplication per Component (primary)
parallelcluster99% (5,230 lines)
enginframe12% (103 lines)
Templates4% (44 lines)
monitoring/docker-compose36% (34 lines)
sacct/mysql0% (0 lines)
monitoring/grafana/datasources0% (0 lines)
monitoring/grafana/dashboards0% (0 lines)
monitoring/prometheus0% (0 lines)
monitoring/custom-metrics0% (0 lines)
monitoring/www0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 6,902 duplicates...
Size#FoldersFilesLinesCode
386 x 2 parallelcluster
parallelcluster
config.ap-northeast-1.sample.yaml
config.us-west-1.sample.yaml
1:386 (100%)
1:386 (100%)
view
357 x 2 parallelcluster
parallelcluster
config.eu-west-1.sample.yaml
config.us-east-2.sample.yaml
55:411 (67%)
62:418 (67%)
view
346 x 2 parallelcluster
parallelcluster
config.ap-east-1.sample.yaml
config.ca-central-1.sample.yaml
1:346 (100%)
1:346 (100%)
view
274 x 2 parallelcluster
parallelcluster
config.ap-northeast-1.sample.yaml
config.eu-central-1.sample.yaml
1:274 (70%)
1:274 (70%)
view
274 x 2 parallelcluster
parallelcluster
config.eu-central-1.sample.yaml
config.us-west-1.sample.yaml
1:274 (70%)
1:274 (70%)
view
272 x 2 parallelcluster
parallelcluster
config.eu-west-1.sample.yaml
config.us-east-1.sample.yaml
259:530 (51%)
254:525 (51%)
view
253 x 2 parallelcluster
parallelcluster
config.ca-central-1.sample.yaml
config.eu-north-1.sample.yaml
1:253 (73%)
1:253 (73%)
view
253 x 2 parallelcluster
parallelcluster
config.ap-east-1.sample.yaml
config.eu-north-1.sample.yaml
1:253 (73%)
1:253 (73%)
view
253 x 2 parallelcluster
parallelcluster
config.eu-west-1.sample.yaml
config.us-east-1.sample.yaml
1:253 (47%)
1:253 (48%)
view
220 x 2 parallelcluster
parallelcluster
config.eu-central-1.sample.yaml
config.us-west-2.sample.yaml
55:274 (56%)
62:281 (55%)
view
220 x 2 parallelcluster
parallelcluster
config.us-west-1.sample.yaml
config.us-west-2.sample.yaml
55:274 (56%)
62:281 (55%)
view
220 x 2 parallelcluster
parallelcluster
config.ap-northeast-1.sample.yaml
config.us-west-2.sample.yaml
55:274 (56%)
62:281 (55%)
view
204 x 2 parallelcluster
parallelcluster
config.ap-northeast-2.sample.yaml
config.ap-south-1.sample.yaml
64:267 (54%)
55:258 (57%)
view
200 x 2 parallelcluster
parallelcluster
config.ap-south-1.sample.yaml
config.ca-central-1.sample.yaml
117:316 (56%)
112:311 (57%)
view
200 x 2 parallelcluster
parallelcluster
config.ap-east-1.sample.yaml
config.ap-south-1.sample.yaml
112:311 (57%)
117:316 (56%)
view
199 x 2 parallelcluster
parallelcluster
config.us-east-1.sample.yaml
config.us-east-2.sample.yaml
55:253 (37%)
62:260 (37%)
view
165 x 2 parallelcluster
parallelcluster
config.us-east-1.sample.yaml
config.us-west-2.sample.yaml
263:427 (31%)
138:302 (41%)
view
165 x 2 parallelcluster
parallelcluster
config.eu-west-1.sample.yaml
config.us-west-2.sample.yaml
268:432 (31%)
138:302 (41%)
view
158 x 2 parallelcluster
parallelcluster
config.us-east-2.sample.yaml
config.us-west-1.sample.yaml
275:432 (29%)
131:288 (40%)
view
158 x 2 parallelcluster
parallelcluster
config.ap-northeast-1.sample.yaml
config.us-east-2.sample.yaml
131:288 (40%)
275:432 (29%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
14 x 2 enginframe
enginframe
hydrogen.manage-users.js
hydrogen.manage-users.js
326:340 
482:496 
view