aws-samples / amazon-comprehend-active-learning-framework
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
  • 45% duplication:
    • 931 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 424 duplicated lines
  • 59 duplicates
system45% (424 lines)
Duplication per Extension
yml55% (412 lines)
py7% (12 lines)
Duplication per Component (primary)
cft55% (412 lines)
lambda7% (12 lines)
amazon-a2i-task-uis0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 59 duplicates...
Size#FoldersFilesLinesCode
32 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
227:258 (4%)
486:517 (4%)
view
24 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
202:225 (3%)
461:484 (3%)
view
23 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
227:249 (3%)
301:323 (3%)
view
23 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
301:323 (3%)
486:508 (3%)
view
23 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
48:70 (3%)
203:225 (3%)
view
23 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
48:70 (3%)
462:484 (3%)
view
22 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
496:517 (2%)
713:734 (2%)
view
22 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
237:258 (2%)
713:734 (2%)
view
20 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
180:199 (2%)
439:458 (2%)
view
14 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
46:59 (1%)
275:288 (1%)
view
14 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
82:95 (1%)
311:324 (1%)
view
13 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
579:591 (1%)
631:643 (1%)
view
13 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
82:94 (1%)
713:725 (1%)
view
13 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
82:94 (1%)
496:508 (1%)
view
13 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
202:214 (1%)
674:686 (1%)
view
13 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
82:94 (1%)
237:249 (1%)
view
13 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
461:473 (1%)
674:686 (1%)
view
13 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
311:323 (1%)
713:725 (1%)
view
12 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
634:645 (1%)
699:710 (1%)
view
12 x 2 cft
cft
comprehend-active-learning-infra.yml
comprehend-active-learning-infra.yml
227:238 (1%)
582:593 (1%)
view