microsoft / GenStudio
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
  • 9% duplication:
    • 4,211 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 415 duplicated lines
  • 27 duplicates
system9% (415 lines)
Duplication per Extension
jsx12% (185 lines)
py18% (153 lines)
scss4% (55 lines)
yaml16% (16 lines)
js1% (6 lines)
Duplication per Component (primary)
website/src7% (246 lines)
api/BigGAN36% (61 lines)
utilities26% (45 lines)
api/ImageSimilarity10% (32 lines)
utilities/thumbnail-creation16% (12 lines)
utilities/gan-inversion6% (11 lines)
api/ProGAN13% (8 lines)
ROOT0% (0 lines)
website/iisConfig0% (0 lines)
website/public0% (0 lines)

Duplication Between Components (50+ lines)

G api/BigGAN api/BigGAN utilities utilities api/BigGAN--utilities 93

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 27 duplicates...
Size#FoldersFilesLinesCode
26 x 2 website/src/ExplorePage
website/src/MapPage
GenArt.jsx
GenArt.jsx
23:53 (29%)
38:67 (27%)
view
15 x 2 website/src/styles/components
website/src/styles/components
_btn.scss
_btn.scss
16:32 (21%)
53:69 (21%)
view
15 x 2 api/BigGAN/deployment
utilities
app.py
transition video.py
45:60 (11%)
32:47 (11%)
view
13 x 2 api/BigGAN/deployment
utilities
app.py
transition video.py
89:101 (9%)
56:69 (10%)
view
11 x 2 utilities/gan-inversion
utilities
01_model_prep.py
transition video.py
13:26 (24%)
15:29 (8%)
view
10 x 2 api/BigGAN/deployment
utilities
app.py
transition video.py
73:82 (7%)
60:69 (7%)
view
10 x 2 api/BigGAN/deployment
api/BigGAN/deployment
app.py
app.py
73:82 (7%)
92:101 (7%)
view
10 x 2 website/src/ExplorePage
website/src/MapPage
GenArt.jsx
GenArt.jsx
8:18 (11%)
8:18 (10%)
view
9 x 2 website/src/ExplorePage
website/src/ExplorePage
ExplorePage.jsx
ExplorePage.jsx
237:246 (3%)
256:264 (3%)
view
9 x 2 api/BigGAN/deployment
utilities
app.py
transition video.py
63:71 (6%)
50:58 (7%)
view
9 x 2 api/ImageSimilarity/deployment
api/ImageSimilarity/deployment
app.py
app.py
161:170 (3%)
186:195 (3%)
view
9 x 2 website/src/SelectPage
website/src/SelectPage
SelectControl.jsx
SelectPage.jsx
32:41 (12%)
117:126 (3%)
view
8 x 2 website/src/ExplorePage
website/src/ExplorePage
AddButton.jsx
RemoveButton.jsx
5:13 (38%)
6:14 (38%)
view
8 x 2 api/BigGAN
api/ProGAN
BigGAN.yaml
ProGAN.yaml
33:49 (24%)
33:49 (24%)
view
7 x 2 website/src/styles/components
website/src/styles/components
_grid-card.scss
_grid-card.scss
46:52 (12%)
57:63 (12%)
view
7 x 2 api/ImageSimilarity/deployment
api/ImageSimilarity/deployment
app.py
app.py
123:129 (2%)
147:153 (2%)
view
7 x 2 website/src/ExplorePage
website/src/ExplorePage
ExplorePage.jsx
ExplorePage.jsx
113:120 (2%)
146:153 (2%)
view
6 x 2 website/src/ExplorePage
website/src/MapExploreContainer
ExplorePage.jsx
MapExploreContainer.jsx
80:85 (2%)
29:34 (7%)
view
6 x 2 website/src/ExplorePage
website/src/MapExploreContainer
GenArt.jsx
MapExploreContainer.jsx
47:52 (6%)
37:42 (7%)
view
6 x 2 website/src/ExplorePage
website/src/MapPage
ExplorePage.jsx
map.js
97:102 (2%)
253:258 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
8 x 2 api/BigGAN/deployment
utilities
app.py
transition video.py
0:0 
0:0 
view