aws-cloudformation / aws-cloudformation-resource-providers-customer-profiles
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
  • 57% duplication:
    • 1,379 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 799 duplicated lines
  • 275 duplicates
system57% (799 lines)
Duplication per Extension
java59% (703 lines)
yaml66% (72 lines)
yml28% (24 lines)
Duplication per Component (primary)
aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype66% (252 lines)
aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration56% (196 lines)
aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain67% (183 lines)
aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/translators37% (72 lines)
aws-customerprofiles-domain57% (32 lines)
aws-customerprofiles-integration56% (32 lines)
aws-customerprofiles-objecttype58% (32 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain--aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration 314 aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype aws-customerprofiles-domain/src/main/java/software/amazon/customerprofiles/domain--aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype 313 aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration--aws-customerprofiles-objecttype/src/main/java/software/amazon/customerprofiles/objecttype 309 aws-customerprofiles-integration aws-customerprofiles-integration aws-customerprofiles-objecttype aws-customerprofiles-objecttype aws-customerprofiles-integration--aws-customerprofiles-objecttype 64 aws-customerprofiles-domain aws-customerprofiles-domain aws-customerprofiles-domain--aws-customerprofiles-integration 64 aws-customerprofiles-domain--aws-customerprofiles-objecttype 64

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 275 duplicates...
Size#FoldersFilesLinesCode
24 x 2 aws-customerprofiles-integration
aws-customerprofiles-objecttype
resource-role.yaml
resource-role.yaml
1:25 (64%)
1:25 (68%)
view
24 x 2 aws-customerprofiles-obj...omerprofiles/objecttype
aws-customerprofiles-obj...omerprofiles/objecttype
CreateHandler.java
UpdateHandler.java
83:109 (30%)
112:138 (26%)
view
24 x 2 aws-customerprofiles-domain
aws-customerprofiles-objecttype
resource-role.yaml
resource-role.yaml
1:25 (66%)
1:25 (68%)
view
24 x 2 aws-customerprofiles-domain
aws-customerprofiles-integration
resource-role.yaml
resource-role.yaml
1:25 (66%)
1:25 (64%)
view
21 x 2 aws-customerprofiles-obj...omerprofiles/objecttype
aws-customerprofiles-obj...omerprofiles/objecttype
CreateHandler.java
UpdateHandler.java
59:81 (26%)
88:110 (23%)
view
18 x 2 aws-customerprofiles-dom...customerprofiles/domain
aws-customerprofiles-obj...omerprofiles/objecttype
UpdateHandler.java
UpdateHandler.java
55:77 (23%)
57:79 (20%)
view
17 x 2 aws-customerprofiles-obj...omerprofiles/objecttype
aws-customerprofiles-obj...omerprofiles/objecttype
CreateHandler.java
ReadHandler.java
31:53 (21%)
26:49 (36%)
view
16 x 2 aws-customerprofiles-dom...customerprofiles/domain
aws-customerprofiles-int...merprofiles/integration
UpdateHandler.java
UpdateHandler.java
57:77 (20%)
58:78 (20%)
view
16 x 2 aws-customerprofiles-int...merprofiles/integration
aws-customerprofiles-int...merprofiles/integration
CreateHandler.java
UpdateHandler.java
133:151 (18%)
110:128 (20%)
view
16 x 2 aws-customerprofiles-int...merprofiles/integration
aws-customerprofiles-obj...omerprofiles/objecttype
UpdateHandler.java
UpdateHandler.java
58:78 (20%)
59:79 (17%)
view
14 x 2 aws-customerprofiles-obj...omerprofiles/objecttype
aws-customerprofiles-obj...omerprofiles/objecttype
CreateHandler.java
UpdateHandler.java
31:50 (17%)
33:52 (15%)
view
14 x 2 aws-customerprofiles-dom...customerprofiles/domain
aws-customerprofiles-int...merprofiles/integration
DeleteHandler.java
DeleteHandler.java
20:40 (40%)
20:40 (38%)
view
14 x 2 aws-customerprofiles-int...merprofiles/integration
aws-customerprofiles-int...merprofiles/integration
ReadHandler.java
UpdateHandler.java
25:44 (34%)
32:51 (17%)
view
14 x 2 aws-customerprofiles-dom...customerprofiles/domain
aws-customerprofiles-obj...omerprofiles/objecttype
DeleteHandler.java
DeleteHandler.java
20:40 (40%)
20:40 (38%)
view
14 x 2 aws-customerprofiles-obj...omerprofiles/objecttype
aws-customerprofiles-obj...omerprofiles/objecttype
ReadHandler.java
UpdateHandler.java
26:45 (30%)
33:52 (15%)
view
14 x 2 aws-customerprofiles-dom...customerprofiles/domain
aws-customerprofiles-obj...omerprofiles/objecttype
UpdateHandler.java
UpdateHandler.java
26:46 (17%)
27:47 (15%)
view
14 x 2 aws-customerprofiles-int...merprofiles/integration
aws-customerprofiles-obj...omerprofiles/objecttype
DeleteHandler.java
DeleteHandler.java
20:40 (38%)
20:40 (38%)
view
14 x 2 aws-customerprofiles-dom...customerprofiles/domain
aws-customerprofiles-obj...omerprofiles/objecttype
ReadHandler.java
ReadHandler.java
19:39 (35%)
20:40 (30%)
view
13 x 2 aws-customerprofiles-dom...customerprofiles/domain
aws-customerprofiles-dom...customerprofiles/domain
ReadHandler.java
UpdateHandler.java
25:43 (33%)
32:50 (16%)
view
13 x 2 aws-customerprofiles-dom...customerprofiles/domain
aws-customerprofiles-obj...omerprofiles/objecttype
ListHandler.java
ListHandler.java
24:41 (30%)
23:40 (27%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
9 x 2 aws-customerprofiles-obj...omerprofiles/objecttype
aws-customerprofiles-dom...customerprofiles/domain
Translator.java
Translator.java
20:29 
19:28 
view