aws-samples / aws-media-asset-preparation-system
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
  • 5% duplication:
    • 32,682 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,845 duplicated lines
  • 346 duplicates
system5% (1,845 lines)
Duplication per Extension
py3% (1,063 lines)
js17% (653 lines)
graphql50% (129 lines)
Duplication per Component (primary)
amplify/backend/function3% (1,063 lines)
src/components/Utilities25% (264 lines)
src/graphql79% (151 lines)
amplify/backend/api50% (129 lines)
src/components/View16% (109 lines)
src/components/Table18% (69 lines)
public2% (26 lines)
src/components/Cards11% (21 lines)
src/components/UtilityPages12% (13 lines)
amplify/backend/auth0% (0 lines)
src/store/mapsconfig0% (0 lines)
src/store/user0% (0 lines)
src/store0% (0 lines)
src0% (0 lines)
src/components/Custom0% (0 lines)
src/components/Main0% (0 lines)
ROOT0% (0 lines)
scripts0% (0 lines)

Duplication Between Components (50+ lines)

G src/components/Utilities src/components/Utilities src/components/View src/components/View src/components/Utilities--src/components/View 93 src/components/UtilityPages src/components/UtilityPages src/components/Utilities--src/components/UtilityPages 58

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 346 duplicates...
Size#FoldersFilesLinesCode
47 x 2 src/components/Utilities
src/components/Utilities
FilePicker.js
FolderCreation.js
63:109 (21%)
42:88 (31%)
view
20 x 2 src/components/Utilities
src/components/View
FolderSelect.js
MainToolbar.js
42:64 (13%)
50:75 (28%)
view
19 x 2 src/graphql
src/graphql
queries.js
subscriptions.js
38:58 (38%)
31:51 (28%)
view
19 x 2 amplify/backend/api/MAPSMediaAssetAPI
amplify/backend/api/MAPSMediaAssetAPI
schema.graphql
schema.graphql
28:46 (7%)
261:279 (7%)
view
19 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
64:84 (25%)
31:51 (28%)
view
19 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
64:84 (25%)
55:75 (28%)
view
19 x 2 amplify/backend/api/MAPSMediaAssetAPI
amplify/backend/api/MAPSMediaAssetAPI
schema.graphql
schema.graphql
2:20 (7%)
28:46 (7%)
view
19 x 2 src/graphql
src/graphql
subscriptions.js
subscriptions.js
31:51 (28%)
55:75 (28%)
view
19 x 2 src/graphql
src/graphql
mutations.js
mutations.js
37:57 (25%)
64:84 (25%)
view
19 x 2 src/graphql
src/graphql
mutations.js
mutations.js
10:30 (25%)
37:57 (25%)
view
19 x 2 amplify/backend/api/MAPSMediaAssetAPI
amplify/backend/api/MAPSMediaAssetAPI
schema.graphql
schema.graphql
2:20 (7%)
261:279 (7%)
view
19 x 2 src/graphql
src/graphql
mutations.js
mutations.js
10:30 (25%)
64:84 (25%)
view
19 x 2 amplify/backend/function/MAPSRequestProcessing/src
amplify/backend/function/MAPSRequestProcessing/src
ddb_handler.py
s3_handler.py
1:29 (5%)
1:31 (13%)
view
19 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
10:30 (25%)
55:75 (28%)
view
19 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
10:30 (25%)
31:51 (28%)
view
19 x 2 src/graphql
src/graphql
mutations.js
queries.js
37:57 (25%)
38:58 (38%)
view
19 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
37:57 (25%)
55:75 (28%)
view
19 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
37:57 (25%)
31:51 (28%)
view
19 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
37:57 (25%)
7:27 (28%)
view
19 x 2 src/graphql
src/graphql
mutations.js
subscriptions.js
64:84 (25%)
7:27 (28%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
19 x 3 src/graphql
src/graphql
src/graphql
mutations.js
mutations.js
queries.js
9:28 
36:55 
37:56 
view
6 x 2 amplify/backend/function...ackages/urllib3/contrib
amplify/backend/function...ackages/urllib3/contrib
securetransport.py
pyopenssl.py
0:0 
0:0 
view
7 x 2 amplify/backend/function.../site-packages/requests
amplify/backend/function.../site-packages/requests
models.py
models.py
0:0 
0:0 
view