microsoft / ai4eutils
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
  • 15% duplication:
    • 3,010 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 466 duplicated lines
  • 22 duplicates
system15% (466 lines)
Duplication per Extension
py15% (466 lines)
Duplication per Component (primary)
ROOT20% (402 lines)
geospatial/visualization11% (36 lines)
azure-metrics-calc-storage-size11% (14 lines)
azure-sdk-calc-storage-size6% (14 lines)
TF_OD_API0% (0 lines)
geospatial/data0% (0 lines)
geospatial0% (0 lines)
geospatial/model_scoring0% (0 lines)
geospatial/models0% (0 lines)
geospatial/preprocessing0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 22 duplicates...
Size#FoldersFilesLinesCode
46 x 2 ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_delete_blobs.py
53:125 (20%)
41:115 (25%)
view
35 x 2 ROOT
ROOT
parallel_enumerate_blobs.py
parallel_enumerate_containers.py
130:178 (16%)
132:178 (23%)
view
27 x 2 ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_enumerate_containers.py
53:85 (11%)
75:107 (17%)
view
27 x 2 ROOT
ROOT
parallel_delete_blobs.py
parallel_enumerate_blobs.py
41:73 (14%)
68:100 (13%)
view
27 x 2 ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_enumerate_blobs.py
53:85 (11%)
68:100 (13%)
view
27 x 2 ROOT
ROOT
parallel_delete_blobs.py
parallel_enumerate_containers.py
41:73 (14%)
75:107 (17%)
view
27 x 2 ROOT
ROOT
parallel_enumerate_blobs.py
parallel_enumerate_containers.py
68:100 (13%)
75:107 (17%)
view
26 x 2 ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_delete_blobs.py
219:258 (11%)
154:193 (14%)
view
12 x 2 ROOT
ROOT
ai4e_web_utils.py
url_utils.py
19:38 (36%)
24:41 (25%)
view
11 x 2 ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_delete_blobs.py
374:384 (4%)
298:308 (6%)
view
8 x 2 azure-metrics-calc-storage-size
azure-sdk-calc-storage-size
utils.py
utils.py
57:69 (18%)
68:80 (17%)
view
7 x 2 ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_delete_blobs.py
286:294 (3%)
216:224 (3%)
view
7 x 2 geospatial/visualization
geospatial/visualization
imagery_visualizer.py
raster_label_visualizer.py
80:87 (4%)
263:270 (4%)
view
7 x 2 ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_delete_blobs.py
313:321 (3%)
241:249 (3%)
view
6 x 2 ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_delete_blobs.py
296:302 (2%)
226:232 (3%)
view
6 x 2 geospatial/visualization
geospatial/visualization
imagery_visualizer.py
imagery_visualizer.py
186:191 (3%)
296:301 (3%)
view
6 x 2 ROOT
ROOT
parallel_enumerate_blobs.py
parallel_enumerate_containers.py
38:50 (2%)
26:38 (3%)
view
6 x 2 ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_delete_blobs.py
323:329 (2%)
251:257 (3%)
view
6 x 2 ROOT
ROOT
ai4e_azure_utils.py
sas_blob_utils.py
144:149 (6%)
358:363 (2%)
view
6 x 2 geospatial/visualization
geospatial/visualization
imagery_visualizer.py
imagery_visualizer.py
283:293 (3%)
300:310 (3%)
view
Duplicated Units
The list of top 7 duplicated units.
See data for all 7 unit duplicates...
Size#FoldersFilesLinesCode
27 x 2 ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_delete_blobs.py
0:0 
0:0 
view
12 x 4 ROOT
ROOT
ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_delete_blobs.py
parallel_enumerate_blobs.py
parallel_enumerate_containers.py
0:0 
0:0 
0:0 
0:0 
view
14 x 2 ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_delete_blobs.py
0:0 
0:0 
view
8 x 2 ROOT
ROOT
ai4e_web_utils.py
url_utils.py
0:0 
0:0 
view
13 x 2 azure-metrics-calc-storage-size
azure-sdk-calc-storage-size
utils.py
utils.py
0:0 
0:0 
view
13 x 2 azure-sdk-calc-storage-size
azure-metrics-calc-storage-size
utils.py
utils.py
0:0 
0:0 
view
9 x 2 ROOT
ROOT
parallel_change_blob_access_tier.py
parallel_delete_blobs.py
0:0 
0:0 
view