tensorflow / benchmarks
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
  • 7% duplication:
    • 10,383 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 736 duplicated lines
  • 60 duplicates
system7% (736 lines)
Duplication per Extension
py7% (736 lines)
Duplication per Component (primary)
scripts/tf_cnn_benchmarks5% (341 lines)
scripts/tf_cnn_benchmarks/models/tf1_only16% (255 lines)
scripts/tf_cnn_benchmarks/models7% (72 lines)
perfzero/lib/perfzero3% (43 lines)
perfzero/lib2% (13 lines)
scripts/tf_cnn_benchmarks/models/experimental3% (12 lines)
scripts/tf_cnn_benchmarks/platforms0% (0 lines)
scripts/tf_cnn_benchmarks/platforms/default0% (0 lines)
perfzero/scripts0% (0 lines)
perfzero/dockertest0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 60 duplicates...
Size#FoldersFilesLinesCode
35 x 2 scripts/tf_cnn_benchmarks
scripts/tf_cnn_benchmarks
preprocessing.py
preprocessing.py
650:686 (3%)
1205:1244 (3%)
view
31 x 2 scripts/tf_cnn_benchmarks/models/tf1_only
scripts/tf_cnn_benchmarks/models/tf1_only
nasnet_model.py
nasnet_model.py
346:381 (7%)
397:432 (7%)
view
24 x 2 scripts/tf_cnn_benchmarks/models/tf1_only
scripts/tf_cnn_benchmarks/models/tf1_only
nasnet_model.py
nasnet_model.py
306:329 (6%)
407:430 (6%)
view
24 x 2 scripts/tf_cnn_benchmarks/models/tf1_only
scripts/tf_cnn_benchmarks/models/tf1_only
nasnet_model.py
nasnet_model.py
306:329 (6%)
356:379 (6%)
view
22 x 2 scripts/tf_cnn_benchmarks/models/tf1_only
scripts/tf_cnn_benchmarks/models/tf1_only
nasnet_model.py
nasnet_model.py
154:187 (5%)
191:224 (5%)
view
20 x 2 scripts/tf_cnn_benchmarks/models/tf1_only
scripts/tf_cnn_benchmarks/models/tf1_only
nasnet_model.py
nasnet_model.py
129:150 (5%)
203:224 (5%)
view
20 x 2 scripts/tf_cnn_benchmarks/models/tf1_only
scripts/tf_cnn_benchmarks/models/tf1_only
nasnet_model.py
nasnet_model.py
129:150 (5%)
166:187 (5%)
view
17 x 2 scripts/tf_cnn_benchmarks/models
scripts/tf_cnn_benchmarks/models
resnet_model.py
resnet_model.py
57:74 (5%)
109:126 (5%)
view
16 x 2 scripts/tf_cnn_benchmarks/models/tf1_only
scripts/tf_cnn_benchmarks/models/tf1_only
mobilenet.py
mobilenet_conv_blocks.py
36:69 (7%)
28:61 (8%)
view
13 x 2 scripts/tf_cnn_benchmarks
scripts/tf_cnn_benchmarks
preprocessing.py
preprocessing.py
539:551 (1%)
650:662 (1%)
view
13 x 2 scripts/tf_cnn_benchmarks
scripts/tf_cnn_benchmarks
preprocessing.py
preprocessing.py
1034:1046 (1%)
1205:1217 (1%)
view
13 x 2 scripts/tf_cnn_benchmarks
scripts/tf_cnn_benchmarks
preprocessing.py
preprocessing.py
539:551 (1%)
1205:1217 (1%)
view
13 x 2 scripts/tf_cnn_benchmarks
scripts/tf_cnn_benchmarks
preprocessing.py
preprocessing.py
539:551 (1%)
1034:1046 (1%)
view
13 x 2 scripts/tf_cnn_benchmarks
scripts/tf_cnn_benchmarks
preprocessing.py
preprocessing.py
650:662 (1%)
1034:1046 (1%)
view
12 x 2 scripts/tf_cnn_benchmarks/models
scripts/tf_cnn_benchmarks/models
resnet_model.py
resnet_model.py
112:123 (4%)
165:176 (4%)
view
12 x 2 scripts/tf_cnn_benchmarks/models
scripts/tf_cnn_benchmarks/models
resnet_model.py
resnet_model.py
60:71 (4%)
165:176 (4%)
view
12 x 2 scripts/tf_cnn_benchmarks
scripts/tf_cnn_benchmarks
variable_mgr.py
variable_mgr.py
348:362 (2%)
463:477 (2%)
view
11 x 2 scripts/tf_cnn_benchmarks/models/tf1_only
scripts/tf_cnn_benchmarks/models/tf1_only
ssd_model.py
ssd_model.py
501:515 (3%)
552:563 (3%)
view
11 x 2 scripts/tf_cnn_benchmarks/models/tf1_only
scripts/tf_cnn_benchmarks/models/tf1_only
ssd_model.py
ssd_model.py
123:134 (3%)
501:515 (3%)
view
11 x 2 scripts/tf_cnn_benchmarks/models/tf1_only
scripts/tf_cnn_benchmarks/models/tf1_only
ssd_model.py
ssd_model.py
123:134 (3%)
552:563 (3%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
20 x 2 scripts/tf_cnn_benchmarks/models/tf1_only
scripts/tf_cnn_benchmarks/models/tf1_only
mobilenet_conv_blocks.py
mobilenet.py
0:0 
0:0 
view
7 x 2 scripts/tf_cnn_benchmarks
scripts/tf_cnn_benchmarks
variable_mgr.py
variable_mgr.py
0:0 
0:0 
view
7 x 2 scripts/tf_cnn_benchmarks/models/tf1_only
scripts/tf_cnn_benchmarks/models/tf1_only
mobilenet_conv_blocks.py
mobilenet.py
0:0 
0:0 
view
14 x 2 scripts/tf_cnn_benchmarks/models
scripts/tf_cnn_benchmarks/models/tf1_only
resnet_model.py
ssd_model.py
0:0 
0:0 
view