microsoft / graspologic
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
  • 12% duplication:
    • 9,284 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,160 duplicated lines
  • 83 duplicates
system12% (1,160 lines)
Duplication per Extension
py12% (1,160 lines)
Duplication per Component (primary)
graspologic/layouts17% (332 lines)
graspologic/pipeline40% (185 lines)
graspologic/embed13% (160 lines)
graspologic/plot7% (129 lines)
graspologic/cluster15% (128 lines)
graspologic/partition19% (74 lines)
graspologic/simulations11% (66 lines)
graspologic/models13% (58 lines)
graspologic/preprocessing9% (16 lines)
graspologic/match3% (12 lines)
ROOT0% (0 lines)
graspologic0% (0 lines)
graspologic/align0% (0 lines)
graspologic/datasets0% (0 lines)
graspologic/inference0% (0 lines)
graspologic/nominate0% (0 lines)
graspologic/subgraph0% (0 lines)
graspologic/utils0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 83 duplicates...
Size#FoldersFilesLinesCode
33 x 2 graspologic/layouts/nooverlap
graspologic/layouts/nooverlap
_quad_node.py
_quad_node.py
904:944 (3%)
1015:1055 (3%)
view
25 x 2 graspologic/pipeline/embed
graspologic/pipeline/embed
adjacency_spectral_embedding.py
laplacian_spectral_embedding.py
159:192 (32%)
175:208 (30%)
view
24 x 2 graspologic/layouts/nooverlap
graspologic/layouts/nooverlap
_quad_node.py
_quad_node.py
872:898 (2%)
977:1003 (2%)
view
23 x 2 graspologic/cluster
graspologic/cluster
autogmm.py
gclust.py
311:335 (5%)
147:171 (16%)
view
22 x 2 graspologic/simulations
graspologic/simulations
simulations.py
simulations_corr.py
453:476 (5%)
281:304 (19%)
view
22 x 2 graspologic/cluster
graspologic/cluster
autogmm.py
gclust.py
238:260 (5%)
123:145 (15%)
view
22 x 2 graspologic/embed
graspologic/pipeline/embed
svd.py
_elbow.py
19:57 (14%)
13:51 (50%)
view
17 x 2 graspologic/pipeline/embed
graspologic/pipeline/embed
adjacency_spectral_embedding.py
laplacian_spectral_embedding.py
206:224 (21%)
220:238 (20%)
view
16 x 2 graspologic/partition
graspologic/partition
leiden.py
leiden.py
306:322 (5%)
571:587 (5%)
view
14 x 2 graspologic/layouts
graspologic/layouts
render.py
render.py
219:232 (7%)
299:312 (7%)
view
13 x 2 graspologic/layouts/nooverlap
graspologic/layouts/nooverlap
_quad_node.py
_quad_node.py
853:865 (1%)
958:970 (1%)
view
12 x 2 graspologic/layouts
graspologic/layouts
render.py
render.py
159:170 (6%)
240:251 (6%)
view
12 x 2 graspologic/pipeline/embed
graspologic/pipeline/embed
adjacency_spectral_embedding.py
laplacian_spectral_embedding.py
145:161 (15%)
156:172 (14%)
view
12 x 2 graspologic/embed
graspologic/embed
base.py
lse.py
386:397 (6%)
131:142 (23%)
view
12 x 2 graspologic/layouts/nooverlap
graspologic/layouts/nooverlap
_quad_node.py
_quad_node.py
329:341 (1%)
358:369 (1%)
view
12 x 2 graspologic/embed
graspologic/embed
ase.py
base.py
126:138 (27%)
389:401 (6%)
view
11 x 2 graspologic/pipeline/embed
graspologic/pipeline/embed
adjacency_spectral_embedding.py
omnibus_embedding.py
145:159 (14%)
141:155 (6%)
view
11 x 2 graspologic/plot
graspologic/plot
plot_matrix.py
plot_matrix.py
513:523 (1%)
893:903 (1%)
view
11 x 2 graspologic/pipeline/embed
graspologic/pipeline/embed
laplacian_spectral_embedding.py
omnibus_embedding.py
156:170 (13%)
141:155 (6%)
view
11 x 2 graspologic/embed
graspologic/embed
ase.py
omni.py
12:124 (25%)
121:226 (12%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
32 x 2 graspologic/embed
graspologic/pipeline/embed
svd.py
_elbow.py
0:0 
0:0 
view
9 x 2 graspologic/embed
graspologic/embed
ase.py
base.py
0:0 
0:0 
view
6 x 2 graspologic/match
graspologic/match
gmp.py
gmp.py
0:0 
0:0 
view