aws-samples / cvat-on-aws-china
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
  • 83% duplication:
    • 2,879 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,396 duplicated lines
  • 153 duplicates
system83% (2,396 lines)
Duplication per Extension
yaml96% (2,396 lines)
Duplication per Component (primary)
ROOT97% (2,224 lines)
cvat-serverless77% (172 lines)
cvat-serverless/serverless0% (0 lines)
cvat-serverless/functions/migrations0% (0 lines)
cvat-serverless/functions0% (0 lines)
cvat-serverless/functions/endpoints0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 153 duplicates...
Size#FoldersFilesLinesCode
425 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
1:480 (37%)
1:480 (37%)
view
336 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
791:1156 (29%)
791:1156 (29%)
view
123 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
482:612 (10%)
482:612 (10%)
view
86 x 2 cvat-serverless
cvat-serverless
data.yaml
data.yaml
35:120 (40%)
127:212 (40%)
view
62 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
614:676 (5%)
614:676 (5%)
view
38 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
678:716 (3%)
678:716 (3%)
view
34 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
1208:1247 (2%)
1208:1247 (2%)
view
28 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
718:746 (2%)
718:746 (2%)
view
24 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
1158:1182 (2%)
1158:1182 (2%)
view
23 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
748:771 (2%)
748:771 (2%)
view
17 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
773:789 (1%)
773:789 (1%)
view
15 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
686:700 (1%)
622:636 (1%)
view
15 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
587:601 (1%)
653:667 (1%)
view
15 x 2 ROOT
ROOT
cvat-aws-ap-northeast-1-all.yaml
cvat-aws-ap-northeast-1-all.yaml
587:601 (1%)
653:667 (1%)
view
15 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
653:667 (1%)
587:601 (1%)
view
15 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-all.yaml
622:636 (1%)
686:700 (1%)
view
15 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
622:636 (1%)
686:700 (1%)
view
15 x 2 ROOT
ROOT
cvat-aws-ap-northeast-1-all.yaml
cvat-aws-ap-northeast-1-all.yaml
622:636 (1%)
686:700 (1%)
view
15 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-all.yaml
587:601 (1%)
653:667 (1%)
view
11 x 2 ROOT
ROOT
cvat-aws-all.yaml
cvat-aws-ap-northeast-1-all.yaml
639:649 (<1%)
703:713 (<1%)
view