aws-samples / aws-batch-comp-infrastructure-sample
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
  • 17% duplication:
    • 789 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 140 duplicated lines
  • 27 duplicates
system17% (140 lines)
Duplication per Extension
yaml18% (120 lines)
py14% (20 lines)
Duplication per Component (primary)
ROOT17% (140 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 27 duplicates...
Size#FoldersFilesLinesCode
16 x 2 ROOT
ROOT
build-job-queue.yaml
build-job-queue.yaml
166:183 (4%)
302:319 (4%)
view
10 x 2 ROOT
ROOT
run_example.py
run_example.py
24:35 (7%)
48:59 (7%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
27:34 (9%)
63:70 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
45:52 (9%)
54:61 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
36:43 (9%)
63:70 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
54:61 (9%)
81:88 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
27:34 (9%)
36:43 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
27:34 (9%)
81:88 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
27:34 (9%)
72:79 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
45:52 (9%)
63:70 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
36:43 (9%)
54:61 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
54:61 (9%)
72:79 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
72:79 (9%)
81:88 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
36:43 (9%)
45:52 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
27:34 (9%)
45:52 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
45:52 (9%)
72:79 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
63:70 (9%)
81:88 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
36:43 (9%)
81:88 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
54:61 (9%)
63:70 (9%)
view
8 x 2 ROOT
ROOT
setup-account.yaml
setup-account.yaml
27:34 (9%)
54:61 (9%)
view