facebookresearch / fairring
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
  • 13% duplication:
    • 2,175 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 298 duplicated lines
  • 24 duplicates
system13% (298 lines)
Duplication per Extension
cc19% (261 lines)
h3% (19 lines)
py5% (18 lines)
Duplication per Component (primary)
fairring16% (280 lines)
benchmark4% (18 lines)
packaging/fairring0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 24 duplicates...
Size#FoldersFilesLinesCode
19 x 2 fairring
fairring
cc
device.cc
device.cc
330:352 (3%)
368:390 (3%)
view
17 x 2 fairring
fairring
cc
process_group.cc
process_group.cc
218:238 (4%)
263:283 (4%)
view
17 x 2 fairring
fairring
cc
process_group.cc
process_group.cc
349:369 (4%)
395:415 (4%)
view
13 x 2 fairring
fairring
cc
device.cc
device.h
197:209 (2%)
25:37 (19%)
view
12 x 2 fairring
fairring
cc
process_group.cc
process_group.cc
154:167 (3%)
402:415 (3%)
view
12 x 2 fairring
fairring
cc
process_group.cc
process_group.cc
225:238 (3%)
356:369 (3%)
view
12 x 2 fairring
fairring
cc
process_group.cc
process_group.cc
270:283 (3%)
356:369 (3%)
view
12 x 2 fairring
fairring
cc
process_group.cc
process_group.cc
225:238 (3%)
402:415 (3%)
view
12 x 2 fairring
fairring
cc
process_group.cc
process_group.cc
154:167 (3%)
225:238 (3%)
view
12 x 2 fairring
fairring
cc
process_group.cc
process_group.cc
154:167 (3%)
356:369 (3%)
view
12 x 2 fairring
fairring
cc
process_group.cc
process_group.cc
270:283 (3%)
402:415 (3%)
view
12 x 2 fairring
fairring
cc
process_group.cc
process_group.cc
154:167 (3%)
270:283 (3%)
view
11 x 2 fairring
fairring
cc
device.cc
device.cc
43:54 (1%)
159:170 (1%)
view
9 x 2 benchmark
benchmark
launch_benchmark.py
launch_benchmark.py
30:38 (5%)
102:110 (5%)
view
8 x 2 fairring
fairring
cc
device.cc
device.cc
276:285 (1%)
335:344 (1%)
view
8 x 2 fairring
fairring
cc
device.cc
device.cc
276:285 (1%)
373:382 (1%)
view
8 x 2 fairring
fairring
cc
device.cc
device.cc
518:528 (1%)
643:652 (1%)
view
8 x 2 fairring
fairring
cc
process_group.cc
process_group.cc
250:257 (2%)
382:389 (2%)
view
7 x 2 fairring
fairring
cc
device.cc
device.cc
106:112 (1%)
148:154 (1%)
view
7 x 2 fairring
fairring
cc
device.cc
device.cc
81:87 (1%)
117:123 (1%)
view