aws-solutions / media-exchange-on-aws
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
  • 59% duplication:
    • 3,833 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,269 duplicated lines
  • 280 duplicates
system59% (2,269 lines)
Duplication per Extension
yaml60% (2,032 lines)
py54% (237 lines)
Duplication per Component (primary)
deployment52% (999 lines)
tools/mediasync/deployment72% (384 lines)
tools/fixity/deployment64% (367 lines)
tools/autoacl/deployment78% (141 lines)
tools/autoingest/deployment75% (141 lines)
tools/fixity/lambda52% (71 lines)
tools/mediasync/lambda50% (71 lines)
tools/autoingest/lambda71% (58 lines)
tools/autoacl/lambda48% (37 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G tools/fixity/deployment tools/fixity/deployment tools/mediasync/deployment tools/mediasync/deployment tools/fixity/deployment--tools/mediasync/deployment 730 deployment deployment deployment--tools/fixity/deployment 312 deployment--tools/mediasync/deployment 356 tools/autoingest/deployment tools/autoingest/deployment deployment--tools/autoingest/deployment 357 tools/autoacl/deployment tools/autoacl/deployment deployment--tools/autoacl/deployment 357 tools/autoingest/deployment--tools/fixity/deployment 87 tools/autoingest/deployment--tools/mediasync/deployment 105 tools/autoacl/deployment--tools/fixity/deployment 87 tools/autoacl/deployment--tools/mediasync/deployment 105 tools/autoacl/deployment--tools/autoingest/deployment 282 tools/fixity/lambda tools/fixity/lambda tools/mediasync/lambda tools/mediasync/lambda tools/fixity/lambda--tools/mediasync/lambda 142 tools/autoingest/lambda tools/autoingest/lambda tools/autoingest/lambda--tools/fixity/lambda 80 tools/autoingest/lambda--tools/mediasync/lambda 80 tools/autoacl/lambda tools/autoacl/lambda tools/autoacl/lambda--tools/autoingest/lambda 74

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 280 duplicates...
Size#FoldersFilesLinesCode
163 x 2 tools/fixity/deployment
tools/mediasync/deployment
fixity.yaml
mediasync.yaml
100:280 (30%)
95:275 (33%)
view
60 x 2 deployment
deployment
publisher.yaml
subscriber.yaml
222:285 (19%)
138:202 (24%)
view
53 x 2 tools/autoacl/deployment
tools/autoingest/deployment
autoacl.yaml
autoingest.yaml
67:123 (29%)
68:124 (28%)
view
41 x 2 deployment
deployment
media-exchange-on-aws.yaml
media-exchange-on-aws.yaml
467:510 (6%)
521:564 (6%)
view
39 x 2 tools/fixity/deployment
tools/mediasync/deployment
fixity.yaml
mediasync.yaml
511:554 (7%)
431:475 (7%)
view
38 x 2 tools/autoacl/deployment
tools/autoingest/deployment
autoacl.yaml
autoingest.yaml
125:167 (21%)
126:168 (20%)
view
36 x 2 tools/fixity/deployment
tools/mediasync/deployment
fixity.yaml
mediasync.yaml
576:611 (6%)
515:550 (7%)
view
35 x 2 tools/fixity/lambda/driver
tools/mediasync/lambda/driver
app.py
app.py
87:130 (26%)
146:189 (24%)
view
30 x 2 deployment
tools/autoingest/deployment
agreement.yaml
autoingest.yaml
387:416 (5%)
74:104 (16%)
view
30 x 2 deployment
tools/autoacl/deployment
agreement.yaml
autoacl.yaml
387:416 (5%)
73:103 (16%)
view
29 x 2 deployment
deployment
publisher.yaml
subscriber.yaml
315:346 (9%)
233:265 (12%)
view
28 x 2 deployment
tools/autoacl/deployment
subscriber.yaml
autoacl.yaml
146:173 (11%)
73:100 (15%)
view
28 x 2 deployment
tools/autoacl/deployment
publisher.yaml
autoacl.yaml
229:256 (9%)
73:100 (15%)
view
28 x 2 deployment
deployment
agreement.yaml
publisher.yaml
387:414 (4%)
229:256 (9%)
view
28 x 2 deployment
deployment
agreement.yaml
subscriber.yaml
387:414 (4%)
146:173 (11%)
view
28 x 2 deployment
tools/autoingest/deployment
publisher.yaml
autoingest.yaml
229:256 (9%)
74:101 (15%)
view
28 x 2 deployment
tools/autoingest/deployment
subscriber.yaml
autoingest.yaml
146:173 (11%)
74:101 (15%)
view
26 x 2 tools/autoacl/deployment
tools/autoingest/deployment
autoacl.yaml
autoingest.yaml
7:37 (14%)
7:37 (13%)
view
24 x 2 deployment
deployment
publisher.yaml
subscriber.yaml
287:313 (7%)
204:231 (9%)
view
23 x 2 tools/autoacl/lambda/driver
tools/autoingest/lambda/driver
app.py
app.py
77:105 (30%)
87:115 (28%)
view