aws-samples / aws-data-lake-solution-cn
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
  • 43% duplication:
    • 23,008 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 9,994 duplicated lines
  • 3,439 duplicates
system43% (9,994 lines)
Duplication per Extension
js39% (7,248 lines)
css63% (1,780 lines)
html49% (966 lines)
Duplication per Component (primary)
source/console/app44% (6,702 lines)
source/api/services44% (2,470 lines)
source/cli61% (489 lines)
source/resources/helper13% (159 lines)
source/resources/loader59% (82 lines)
source/cli/core100% (73 lines)
source/resources/access-validator16% (19 lines)
ROOT0% (0 lines)
source/api/authorizer0% (0 lines)
deployment/manifest-generator0% (0 lines)

Duplication Between Components (50+ lines)

G source/api/services source/api/services source/resources/helper source/resources/helper source/api/services--source/resources/helper 171 source/cli/core source/cli/core source/resources/loader source/resources/loader source/cli/core--source/resources/loader 146

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 3,439 duplicates...
Size#FoldersFilesLinesCode
243 x 2 source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-settings.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...Lake-Solution.Chn_files
source/console/app/docum...the-data-lake.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...th-my-profile.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...Lake-Solution.Chn_files
source/console/app/docum...with-settings.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...with-settings.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...th-my-profile.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...with-packages.Chn_files
source/console/app/docum...with-settings.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...with-packages.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-packages.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...Lake-Solution.Chn_files
source/console/app/docum...th-my-profile.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...Lake-Solution.Chn_files
source/console/app/docum...with-packages.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...Lake-Solution.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
243 x 2 source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
text.js
text.js
11:390 (100%)
11:390 (100%)
view
228 x 2 source/console/app/docum...with-packages.Chn_files
source/console/app/docum...with-settings.Chn_files
base.css
base.css
1:301 (100%)
1:301 (100%)
view
228 x 2 source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...th-my-profile.Chn_files
base.css
base.css
1:301 (100%)
1:301 (100%)
view
228 x 2 source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...with-settings.Chn_files
base.css
base.css
1:301 (100%)
1:301 (100%)
view
228 x 2 source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
base.css
base.css
1:301 (100%)
1:301 (100%)
view
228 x 2 source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-settings.Chn_files
base.css
base.css
1:301 (100%)
1:301 (100%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 50 unit duplicates...
Size#FoldersFilesLinesCode
276 x 6 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
source/console/app/docum...Lake-Solution.Chn_files
text.js
text.js
text.js
text.js
text.js
text.js
11:390 
11:390 
11:390 
11:390 
11:390 
11:390 
view
50 x 6 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
source/console/app/docum...Lake-Solution.Chn_files
base.js
base.js
base.js
base.js
base.js
base.js
15:76 
15:76 
15:76 
15:76 
15:76 
15:76 
view
34 x 2 source/api/services/cart/lib
source/api/services/package/lib
index.js
index.js
25:65 
28:68 
view
30 x 5 source/api/services/cart/lib
source/api/services/admin/lib
source/api/services/profile/lib
source/api/services/search/lib
source/api/services/package/lib
access-log.js
access-log.js
access-log.js
access-log.js
access-log.js
47:86 
47:86 
47:86 
47:86 
47:86 
view
28 x 6 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
source/console/app/docum...Lake-Solution.Chn_files
text.js
text.js
text.js
text.js
text.js
text.js
85:117 
85:117 
85:117 
85:117 
85:117 
85:117 
view
27 x 2 source/cli/core
source/resources/loader/core
apiproxy.js
apiproxy.js
8:43 
8:43 
view
25 x 6 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
source/console/app/docum...Lake-Solution.Chn_files
text.js
text.js
text.js
text.js
text.js
text.js
312:349 
312:349 
312:349 
312:349 
312:349 
312:349 
view
27 x 6 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
source/console/app/docum...Lake-Solution.Chn_files
search.js
search.js
search.js
search.js
search.js
search.js
43:80 
43:80 
43:80 
43:80 
43:80 
43:80 
view
30 x 6 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
source/console/app/docum...Lake-Solution.Chn_files
text.js
text.js
text.js
text.js
text.js
text.js
155:204 
155:204 
155:204 
155:204 
155:204 
155:204 
view
22 x 6 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
source/console/app/docum...Lake-Solution.Chn_files
text.js
text.js
text.js
text.js
text.js
text.js
359:387 
359:387 
359:387 
359:387 
359:387 
359:387 
view
22 x 2 source/cli/core
source/resources/loader/core
credentials.js
credentials.js
10:41 
10:41 
view
20 x 5 source/api/services/cart/lib
source/api/services/admin/lib
source/api/services/profile/lib
source/api/services/search/lib
source/api/services/package/lib
access-log.js
access-log.js
access-log.js
access-log.js
access-log.js
95:117 
95:116 
95:117 
95:117 
95:117 
view
19 x 2 source/api/services/profile/lib
source/api/services/package/lib
profile.js
content-package.js
116:138 
817:838 
view
17 x 2 source/api/services/admin/lib
source/resources/helper/lib
user.js
cognito-helper.js
491:509 
343:361 
view
17 x 6 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
source/console/app/docum...Lake-Solution.Chn_files
text.js
text.js
text.js
text.js
text.js
text.js
285:306 
285:306 
285:306 
285:306 
285:306 
285:306 
view
17 x 2 source/console/app/admin/users
source/console/app/admin/users
user.js
user.js
280:301 
303:323 
view
14 x 6 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
source/console/app/docum...Lake-Solution.Chn_files
text.js
text.js
text.js
text.js
text.js
text.js
129:145 
129:145 
129:145 
129:145 
129:145 
129:145 
view
32 x 6 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
source/console/app/docum...Lake-Solution.Chn_files
text.js
text.js
text.js
text.js
text.js
text.js
267:308 
267:308 
267:308 
267:308 
267:308 
267:308 
view
12 x 6 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
source/console/app/docum...Lake-Solution.Chn_files
text.js
text.js
text.js
text.js
text.js
text.js
251:264 
251:264 
251:264 
251:264 
251:264 
251:264 
view
12 x 6 source/console/app/docum...th-my-profile.Chn_files
source/console/app/docum...with-settings.Chn_files
source/console/app/docum...-with-my-cart.Chn_files
source/console/app/docum...the-data-lake.Chn_files
source/console/app/docum...with-packages.Chn_files
source/console/app/docum...Lake-Solution.Chn_files
search.js
search.js
search.js
search.js
search.js
search.js
13:25 
13:25 
13:25 
13:25 
13:25 
13:25 
view