aws-samples / documentdb-sagemaker-example
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
  • 93% duplication:
    • 690 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 646 duplicated lines
  • 25 duplicates
system93% (646 lines)
Duplication per Extension
yaml93% (646 lines)
Duplication per Component (primary)
rekognition90% (331 lines)
ROOT97% (315 lines)

Duplication Between Components (50+ lines)

G ROOT ROOT rekognition rekognition ROOT--rekognition 646

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 25 duplicates...
Size#FoldersFilesLinesCode
219 x 2 ROOT
rekognition
cloudformation.yaml
cloudformation.yaml
43:280 (67%)
48:285 (59%)
view
40 x 2 ROOT
rekognition
cloudformation.yaml
cloudformation.yaml
282:324 (12%)
326:368 (10%)
view
30 x 2 ROOT
rekognition
cloudformation.yaml
cloudformation.yaml
8:41 (9%)
8:41 (8%)
view
26 x 2 ROOT
rekognition
cloudformation.yaml
cloudformation.yaml
330:357 (8%)
379:406 (7%)
view
8 x 2 rekognition
rekognition
cloudformation.yaml
cloudformation.yaml
291:298 (2%)
330:337 (2%)
view
8 x 2 rekognition
rekognition
cloudformation.yaml
cloudformation.yaml
315:322 (2%)
330:337 (2%)
view
8 x 2 ROOT
rekognition
cloudformation.yaml
cloudformation.yaml
286:293 (2%)
315:322 (2%)
view
8 x 2 ROOT
rekognition
cloudformation.yaml
cloudformation.yaml
286:293 (2%)
291:298 (2%)
view
8 x 2 rekognition
rekognition
cloudformation.yaml
cloudformation.yaml
291:298 (2%)
315:322 (2%)
view
7 x 2 rekognition
rekognition
cloudformation.yaml
cloudformation.yaml
92:98 (1%)
106:112 (1%)
view
7 x 2 ROOT
rekognition
cloudformation.yaml
cloudformation.yaml
87:93 (2%)
106:112 (1%)
view
7 x 2 ROOT
ROOT
cloudformation.yaml
cloudformation.yaml
87:93 (2%)
101:107 (2%)
view
7 x 2 ROOT
rekognition
cloudformation.yaml
cloudformation.yaml
101:107 (2%)
92:98 (1%)
view
6 x 2 ROOT
rekognition
cloudformation.yaml
cloudformation.yaml
215:220 (1%)
229:234 (1%)
view
6 x 2 ROOT
rekognition
cloudformation.yaml
cloudformation.yaml
215:220 (1%)
238:243 (1%)
view
6 x 2 rekognition
rekognition
cloudformation.yaml
cloudformation.yaml
229:234 (1%)
238:243 (1%)
view
6 x 2 ROOT
rekognition
cloudformation.yaml
cloudformation.yaml
224:229 (1%)
238:243 (1%)
view
6 x 2 ROOT
ROOT
cloudformation.yaml
cloudformation.yaml
224:229 (1%)
233:238 (1%)
view
6 x 2 ROOT
rekognition
cloudformation.yaml
cloudformation.yaml
233:238 (1%)
220:225 (1%)
view
6 x 2 rekognition
rekognition
cloudformation.yaml
cloudformation.yaml
220:225 (1%)
229:234 (1%)
view