aws-samples / aws-simple-streaming-webapp
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
  • 23% duplication:
    • 1,661 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 391 duplicated lines
  • 22 duplicates
system23% (391 lines)
Duplication per Extension
js33% (341 lines)
yml13% (50 lines)
Duplication per Component (primary)
backend/docker_files/src98% (105 lines)
backend55% (105 lines)
frontend/amplify/backend/function52% (67 lines)
frontend/src/components7% (64 lines)
frontend/amplify/backend/auth14% (50 lines)
frontend/src0% (0 lines)
frontend/src/components/player0% (0 lines)
frontend/public0% (0 lines)
backend/docker_files/health0% (0 lines)
backend/docker_files0% (0 lines)

Duplication Between Components (50+ lines)

G backend/docker_files/src backend/docker_files/src backend backend backend/docker_files/src--backend 210

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 22 duplicates...
Size#FoldersFilesLinesCode
50 x 2 backend/docker_files/src
backend
transwrap_local.js
transwrap_local.js
4:81 (100%)
7:84 (100%)
view
46 x 2 backend/docker_files/src
backend
transwrap.js
transwrap.js
19:79 (80%)
22:82 (80%)
view
41 x 2 backend/docker_files/src
backend
transwrap.js
transwrap_local.js
28:79 (71%)
33:84 (82%)
view
41 x 2 backend/docker_files/src
backend/docker_files/src
transwrap.js
transwrap_local.js
28:79 (71%)
30:81 (82%)
view
41 x 2 backend
backend
transwrap.js
transwrap_local.js
31:82 (71%)
33:84 (82%)
view
41 x 2 backend/docker_files/src
backend
transwrap_local.js
transwrap.js
30:81 (82%)
31:82 (71%)
view
12 x 2 frontend/amplify/backend...ction/ISSgetServers/src
frontend/amplify/backend...ction/ISSgetServers/src
index.js
index.js
12:24 (16%)
60:71 (16%)
view
11 x 2 frontend/amplify/backend...plewebstreaming5fec9bae
frontend/amplify/backend...plewebstreaming5fec9bae
simplewebstreaming5fec9bae-cloudforma...
simplewebstreaming5fec9bae-cloudforma...
81:91 (3%)
179:189 (3%)
view
10 x 2 frontend/src/components
frontend/src/components
home.js
stream.js
126:136 (5%)
204:215 (2%)
view
9 x 2 backend/docker_files/src
backend
transwrap.js
transwrap.js
4:14 (15%)
7:17 (15%)
view
9 x 2 frontend/amplify/backend...ction/ISSgetServers/src
frontend/amplify/backend...ction/ISSgetServers/src
index.js
index.js
27:35 (12%)
73:81 (12%)
view
9 x 2 frontend/src/components
frontend/src/components
home.js
stream.js
99:107 (5%)
83:91 (2%)
view
8 x 2 frontend/amplify/backend...ction/ISSgetServers/src
frontend/amplify/backend/function/saveIVSparam/src
index.js
index.js
27:34 (11%)
57:64 (14%)
view
8 x 2 frontend/amplify/backend...ction/ISSgetServers/src
frontend/amplify/backend/function/saveIVSparam/src
index.js
index.js
73:80 (11%)
57:64 (14%)
view
7 x 2 frontend/src/components
frontend/src/components
home.js
stream.js
187:193 (4%)
508:514 (1%)
view
7 x 2 frontend/amplify/backend...plewebstreaming5fec9bae
frontend/amplify/backend...plewebstreaming5fec9bae
simplewebstreaming5fec9bae-cloudforma...
simplewebstreaming5fec9bae-cloudforma...
237:243 (1%)
252:258 (1%)
view
7 x 2 frontend/amplify/backend...plewebstreaming5fec9bae
frontend/amplify/backend...plewebstreaming5fec9bae
simplewebstreaming5fec9bae-cloudforma...
simplewebstreaming5fec9bae-cloudforma...
298:304 (1%)
307:313 (1%)
view
6 x 2 frontend/src/components
frontend/src/components
home.js
stream.js
176:181 (3%)
498:503 (1%)
view
6 x 2 frontend/amplify/backend...ction/ISSgetServers/src
frontend/amplify/backend/function/saveIVSparam/src
index.js
index.js
73:78 (8%)
26:31 (10%)
view
6 x 2 frontend/amplify/backend/function/saveIVSparam/src
frontend/amplify/backend/function/saveIVSparam/src
index.js
index.js
33:38 (10%)
64:69 (10%)
view