aws-samples / aws-gamelift-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
  • 19% duplication:
    • 10,687 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,032 duplicated lines
  • 118 duplicates
system19% (2,032 lines)
Duplication per Extension
css33% (1,196 lines)
h15% (494 lines)
vcxproj60% (214 lines)
filters39% (56 lines)
html6% (40 lines)
cpp<1% (16 lines)
py6% (16 lines)
Duplication per Component (primary)
hugo/hugo-theme-learn26% (1,072 lines)
GomokuServer/GomokuServer12% (629 lines)
hugo/static50% (164 lines)
GomokuClient/GomokuClient20% (135 lines)
Shared3% (16 lines)
Lambda9% (16 lines)
hugo0% (0 lines)
hugo/layouts0% (0 lines)
FleetIQ0% (0 lines)
web0% (0 lines)

Duplication Between Components (50+ lines)

G hugo/hugo-theme-learn hugo/hugo-theme-learn hugo/static hugo/static hugo/hugo-theme-learn--hugo/static 411 GomokuClient/GomokuClient GomokuClient/GomokuClient GomokuServer/GomokuServer GomokuServer/GomokuServer GomokuClient/GomokuClient--GomokuServer/GomokuServer 270

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 118 duplicates...
Size#FoldersFilesLinesCode
71 x 2 hugo/hugo-theme-learn/static/css
hugo/hugo-theme-learn/static/css
theme-green.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
71 x 2 hugo/hugo-theme-learn/static/css
hugo/hugo-theme-learn/static/css
theme-blue.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
71 x 2 hugo/hugo-theme-learn/static/css
hugo/hugo-theme-learn/static/css
theme-blue.css
theme-green.css
27:111 (78%)
27:111 (78%)
view
71 x 2 hugo/hugo-theme-learn/static/css
hugo/static/css
theme-green.css
theme-mine.css
19:103 (78%)
19:103 (84%)
view
65 x 2 hugo/hugo-theme-learn/static/css
hugo/static/css
theme-blue.css
theme-mine.css
27:103 (72%)
27:103 (77%)
view
65 x 2 hugo/hugo-theme-learn/static/css
hugo/static/css
theme-red.css
theme-mine.css
27:103 (72%)
27:103 (77%)
view
63 x 2 hugo/hugo-theme-learn/static/mermaid
hugo/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.forest.css
101:168 (24%)
103:170 (18%)
view
47 x 2 GomokuServer/GomokuServe...ude/aws/gamelift/common
GomokuServer/GomokuServe...ude/aws/gamelift/common
GameLiftErrors.h
GameLiftErrors.h
113:159 (16%)
249:295 (16%)
view
47 x 2 GomokuServer/GomokuServe...ude/aws/gamelift/common
GomokuServer/GomokuServe...ude/aws/gamelift/common
GameLiftErrors.h
GameLiftErrors.h
62:108 (16%)
198:244 (16%)
view
40 x 2 GomokuClient/GomokuClient
GomokuServer/GomokuServer
vcxproj
GomokuClient.vcxproj
GomokuServer.vcxproj
25:76 (24%)
25:76 (20%)
view
34 x 2 hugo/hugo-theme-learn/static/mermaid
hugo/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.forest.css
187:222 (13%)
189:224 (10%)
view
34 x 2 hugo/hugo-theme-learn/static/css
hugo/static/css
hugo-theme.css
theme-aws.css
83:121 (16%)
242:280 (13%)
view
33 x 2 hugo/hugo-theme-learn/static/css
hugo/static/css
theme-red.css
theme-aws.css
56:90 (36%)
127:161 (13%)
view
33 x 2 hugo/hugo-theme-learn/static/css
hugo/static/css
theme-blue.css
theme-aws.css
56:90 (36%)
127:161 (13%)
view
33 x 2 hugo/static/css
hugo/static/css
theme-aws.css
theme-mine.css
127:161 (13%)
56:90 (39%)
view
33 x 2 hugo/hugo-theme-learn/static/css
hugo/static/css
theme-green.css
theme-aws.css
56:90 (36%)
127:161 (13%)
view
31 x 2 hugo/hugo-theme-learn/static/mermaid
hugo/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.forest.css
33:63 (11%)
35:65 (9%)
view
29 x 2 hugo/hugo-theme-learn/static/mermaid
hugo/hugo-theme-learn/static/mermaid
mermaid.css
mermaid.forest.css
224:252 (11%)
226:254 (8%)
view
20 x 2 GomokuClient/GomokuClient
GomokuServer/GomokuServer
vcxproj
GomokuClient.vcxproj
GomokuServer.vcxproj
113:135 (12%)
113:135 (10%)
view
16 x 2 GomokuClient/GomokuClient
GomokuServer/GomokuServer
vcxproj
GomokuClient.vcxproj
GomokuServer.vcxproj
1:21 (9%)
1:21 (8%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 Lambda
Lambda
MatchRequest.py
GameResultProcessing.py
0:0 
0:0 
view