facebook / FAI-PEP
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
  • 8% duplication:
    • 11,329 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 953 duplicated lines
  • 129 duplicates
system8% (953 lines)
Duplication per Extension
py8% (953 lines)
Duplication per Component (primary)
benchmarking16% (417 lines)
benchmarking/frameworks20% (309 lines)
benchmarking/platforms5% (82 lines)
libraries/python7% (69 lines)
benchmarking/utils2% (32 lines)
benchmarking/download_benchmarks7% (13 lines)
benchmarking/reporters4% (12 lines)
ailab/benchmark1% (12 lines)
specifications/models4% (7 lines)
ailab/file_storage0% (0 lines)
ailab/ailab0% (0 lines)
ailab0% (0 lines)
benchmarking/repos0% (0 lines)
benchmarking/driver0% (0 lines)
benchmarking/data_converters0% (0 lines)
benchmarking/bridge0% (0 lines)
benchmarking/profilers0% (0 lines)
benchmarking/regression_detectors0% (0 lines)
benchmarking/benchmarks0% (0 lines)
benchmarking/degrade0% (0 lines)
benchmarking/remote0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 129 duplicates...
Size#FoldersFilesLinesCode
19 x 2 benchmarking/platforms
benchmarking/platforms
239:257 (6%)
283:301 (6%)
view
17 x 2 benchmarking
benchmarking
583:599 (2%)
297:313 (2%)
view
16 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks/pytorch
303:325 (6%)
46:68 (43%)
view
16 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks/pytorch
282:299 (6%)
27:45 (43%)
view
14 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks/tflite
219:232 (5%)
67:80 (8%)
view
14 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks/glow
204:217 (5%)
40:53 (4%)
view
14 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks/tflite
204:217 (5%)
52:65 (8%)
view
14 x 2 benchmarking/frameworks/glow
benchmarking/frameworks/tflite
40:53 (4%)
52:65 (8%)
view
13 x 2 benchmarking/utils
benchmarking/utils
47:62 (20%)
76:91 (20%)
view
12 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks/glow
219:230 (4%)
55:66 (3%)
view
12 x 2 benchmarking/frameworks/glow
benchmarking/frameworks/tflite
55:66 (3%)
67:78 (7%)
view
11 x 2 benchmarking
benchmarking
43:53 (6%)
136:146 (1%)
view
11 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks
204:214 (4%)
422:432 (2%)
view
11 x 2 libraries/python
libraries/python
96:106 (10%)
109:119 (10%)
view
11 x 2 benchmarking/frameworks
benchmarking/frameworks/glow
422:432 (2%)
40:50 (3%)
view
11 x 2 benchmarking/frameworks
benchmarking/frameworks/tflite
422:432 (2%)
52:62 (6%)
view
10 x 2 benchmarking
benchmarking
45:54 (14%)
176:185 (3%)
view
10 x 2 benchmarking/frameworks
benchmarking/frameworks
516:525 (1%)
538:547 (1%)
view
10 x 2 benchmarking
benchmarking
60:69 (14%)
214:223 (3%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks/glow
516:524 (1%)
42:50 (2%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks/glow
516:524 (1%)
55:63 (2%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks
424:432 (1%)
538:546 (1%)
view
9 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks/caffe2
206:214 (3%)
219:227 (3%)
view
9 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks/generic
282:291 (3%)
32:41 (39%)
view
9 x 2 benchmarking/frameworks/glow
benchmarking/frameworks/tflite
55:63 (2%)
54:62 (5%)
view
9 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks/tflite
219:227 (3%)
54:62 (5%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks
424:432 (1%)
516:524 (1%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks/glow
424:432 (1%)
55:63 (2%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks/tflite
516:524 (1%)
67:75 (5%)
view
9 x 2 benchmarking/frameworks/tflite
benchmarking/frameworks/tflite
54:62 (5%)
67:75 (5%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks
173:181 (1%)
341:349 (1%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks/tflite
516:524 (1%)
54:62 (5%)
view
9 x 2 benchmarking/frameworks/glow
benchmarking/frameworks/tflite
42:50 (2%)
67:75 (5%)
view
9 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks/glow
206:214 (3%)
55:63 (2%)
view
9 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks/tflite
206:214 (3%)
67:75 (5%)
view
9 x 2 benchmarking/frameworks/generic
benchmarking/frameworks/pytorch
32:41 (39%)
27:36 (24%)
view
9 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks/glow
219:227 (3%)
42:50 (2%)
view
9 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks
219:227 (3%)
516:524 (1%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks/tflite
424:432 (1%)
67:75 (5%)
view
9 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks
219:227 (3%)
424:432 (1%)
view
9 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks
219:227 (3%)
538:546 (1%)
view
9 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks
206:214 (3%)
516:524 (1%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks/glow
538:546 (1%)
42:50 (2%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks/tflite
538:546 (1%)
67:75 (5%)
view
9 x 2 benchmarking/frameworks/glow
benchmarking/frameworks/glow
42:50 (2%)
55:63 (2%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks/glow
538:546 (1%)
55:63 (2%)
view
9 x 2 benchmarking/frameworks/caffe2
benchmarking/frameworks
206:214 (3%)
538:546 (1%)
view
9 x 2 benchmarking/frameworks
benchmarking/frameworks/tflite
538:546 (1%)
54:62 (5%)
view
8 x 2 benchmarking
benchmarking
37:44 (4%)
91:98 (1%)
view
8 x 2 benchmarking
benchmarking
33:40 (3%)
91:98 (1%)
view