microsoft / landcover
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
  • 10% duplication:
    • 10,832 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,179 duplicated lines
  • 102 duplicates
system10% (1,179 lines)
Duplication per Extension
py21% (750 lines)
js4% (210 lines)
css7% (143 lines)
html9% (64 lines)
tpl12% (12 lines)
Duplication per Component (primary)
web_tool26% (721 lines)
web_tool/js4% (210 lines)
web_tool/css7% (143 lines)
training/models16% (42 lines)
training13% (39 lines)
web_tool/views12% (12 lines)
ROOT1% (12 lines)
utils0% (0 lines)

Duplication Between Components (50+ lines)

G web_tool web_tool web_tool/js web_tool/js web_tool--web_tool/js 64

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 102 duplicates...
Size#FoldersFilesLinesCode
53 x 2 web_tool
web_tool
ModelSessionKerasExample.py
ModelSessionRandomForest.py
71:132 (35%)
50:111 (50%)
view
37 x 2 web_tool
web_tool
ModelSessionPyTorchExample.py
ModelSessionPyTorchSegmentationModel.py
131:170 (20%)
128:167 (20%)
view
28 x 2 web_tool
web_tool
ModelSessionPyTorchExample.py
ModelSessionPyTorchSegmentationModel.py
222:278 (15%)
233:289 (15%)
view
26 x 2 web_tool
web_tool/js
index.html
utils.js
378:407 (7%)
259:288 (10%)
view
24 x 2 web_tool
web_tool
ModelSessionKerasExample.py
ModelSessionRandomForest.py
178:210 (16%)
120:152 (22%)
view
22 x 2 web_tool
web_tool
ModelSessionPyTorchExample.py
ModelSessionPyTorchSegmentationModel.py
193:220 (12%)
201:228 (12%)
view
20 x 2 web_tool
web_tool
ModelSessionPyTorchExample.py
ModelSessionPyTorchSegmentationModel.py
100:126 (11%)
97:123 (11%)
view
19 x 2 web_tool/css
web_tool/css
login.css
login.css
130:148 (8%)
154:172 (8%)
view
19 x 2 web_tool
web_tool
ModelSessionKerasExample.py
ModelSessionPyTorchExample.py
136:159 (12%)
180:204 (10%)
view
17 x 2 web_tool/css
web_tool/css
login.css
login.css
111:127 (7%)
135:151 (7%)
view
16 x 2 web_tool/css
web_tool/css
login.css
login.css
178:193 (6%)
201:216 (6%)
view
16 x 2 web_tool/css
web_tool/css
login.css
login.css
201:216 (6%)
223:238 (6%)
view
16 x 2 web_tool/css
web_tool/css
login.css
login.css
178:193 (6%)
223:238 (6%)
view
15 x 2 training
training
train_unsupervised.py
train_unsupervised.py
266:281 (5%)
277:292 (5%)
view
15 x 2 web_tool
web_tool
ModelSessionPyTorchExample.py
ModelSessionRandomForest.py
138:153 (8%)
91:106 (14%)
view
15 x 2 web_tool
web_tool
ModelSessionKerasExample.py
ModelSessionPyTorchExample.py
112:127 (10%)
138:153 (8%)
view
15 x 2 web_tool
web_tool
ModelSessionPyTorchSegmentationModel.py
ModelSessionRandomForest.py
149:164 (8%)
76:92 (14%)
view
15 x 2 web_tool
web_tool
ModelSessionKerasExample.py
ModelSessionPyTorchExample.py
97:113 (10%)
152:167 (8%)
view
15 x 2 web_tool
web_tool
ModelSessionPyTorchExample.py
ModelSessionRandomForest.py
152:167 (8%)
76:92 (14%)
view
15 x 2 web_tool
web_tool
ModelSessionKerasExample.py
ModelSessionPyTorchSegmentationModel.py
97:113 (10%)
149:164 (8%)
view
Duplicated Units
The list of top 8 duplicated units.
See data for all 8 unit duplicates...
Size#FoldersFilesLinesCode
21 x 2 web_tool
web_tool
ModelSessionKerasExample.py
ModelSessionRandomForest.py
0:0 
0:0 
view
12 x 4 web_tool
web_tool
web_tool
web_tool
ModelSessionKerasExample.py
ModelSessionPyTorchExample.py
ModelSessionPyTorchSegmentationModel.py
ModelSessionRandomForest.py
0:0 
0:0 
0:0 
0:0 
view
12 x 4 web_tool
web_tool
web_tool
web_tool
ModelSessionKerasExample.py
ModelSessionPyTorchExample.py
ModelSessionPyTorchSegmentationModel.py
ModelSessionRandomForest.py
0:0 
0:0 
0:0 
0:0 
view
12 x 2 web_tool
web_tool
ModelSessionKerasExample.py
ModelSessionRandomForest.py
0:0 
0:0 
view
10 x 2 web_tool
web_tool
ModelSessionKerasExample.py
ModelSessionRandomForest.py
0:0 
0:0 
view
6 x 2 web_tool/js
web_tool/js
noty.js
noty.js
931:939 
2409:2417 
view
11 x 2 web_tool
web_tool
ModelSessionPyTorchExample.py
ModelSessionPyTorchSegmentationModel.py
0:0 
0:0 
view
13 x 2 web_tool
web_tool
ModelSessionPyTorchExample.py
ModelSessionPyTorchSegmentationModel.py
0:0 
0:0 
view