facebookexperimental / resctl-demo
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
  • 1% duplication:
    • 27,259 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 426 duplicated lines
  • 32 duplicates
system1% (426 lines)
Duplication per Extension
rs1% (410 lines)
toml6% (16 lines)
Duplication per Component (primary)
resctl-bench/src2% (240 lines)
resctl-demo/src1% (88 lines)
rd-hashd/src1% (44 lines)
rd-util/src<1% (14 lines)
rd-agent-intf/src<1% (12 lines)
rd-agent/src<1% (12 lines)
rd-agent23% (8 lines)
resctl-demo27% (8 lines)
resctl-bench0% (0 lines)
ROOT0% (0 lines)
resctl-bench-intf0% (0 lines)
resctl-bench-intf/src0% (0 lines)
rd-util0% (0 lines)
rd-agent-intf0% (0 lines)
rd-hashd0% (0 lines)
rd-hashd-intf0% (0 lines)
rd-hashd-intf/src0% (0 lines)
Longest Duplicates
The list of 32 longest duplicates.
See data for all 32 duplicates...
Size#FoldersFilesLinesCode
15 x 2 resctl-demo/src
resctl-demo/src
145:161 (4%)
198:214 (4%)
view
11 x 2 resctl-bench/src/bench
resctl-bench/src/bench
108:119 (10%)
166:177 (2%)
view
11 x 2 resctl-bench/src/bench
resctl-bench/src/bench
2160:2170 (<1%)
2187:2197 (<1%)
view
9 x 2 rd-hashd/src
rd-hashd/src
395:404 (1%)
413:422 (1%)
view
8 x 2 resctl-bench/src
resctl-bench/src
106:116 (2%)
183:193 (2%)
view
8 x 2 resctl-demo/src
resctl-demo/src
370:377 (2%)
402:409 (2%)
view
8 x 2 rd-agent
resctl-demo
10:20 (23%)
10:20 (27%)
view
8 x 2 resctl-demo/src
resctl-demo/src
762:769 (<1%)
771:778 (<1%)
view
7 x 2 resctl-bench/src/bench
resctl-bench/src/bench
262:268 (2%)
274:280 (2%)
view
7 x 2 resctl-demo/src
resctl-demo/src
269:276 (2%)
281:288 (2%)
view
7 x 2 rd-util/src
rd-util/src
660:666 (1%)
792:798 (1%)
view
7 x 2 rd-hashd/src
rd-hashd/src
131:137 (<1%)
141:147 (<1%)
view
7 x 2 resctl-bench/src/bench
resctl-bench/src/bench
637:643 (1%)
2079:2085 (<1%)
view
7 x 2 resctl-bench/src/bench
resctl-bench/src/bench
89:95 (8%)
44:50 (20%)
view
7 x 2 resctl-bench/src/bench/iocost_tune
resctl-bench/src/bench/iocost_tune
195:201 (3%)
235:241 (3%)
view
7 x 2 resctl-bench/src/study
resctl-bench/src/study
38:44 (1%)
100:106 (1%)
view
7 x 2 resctl-bench/src/bench
resctl-bench/src/bench
413:419 (2%)
509:515 (1%)
view
6 x 2 rd-hashd/src
rd-hashd/src
871:876 (<1%)
888:893 (<1%)
view
6 x 2 rd-agent/src
rd-agent/src
243:248 (2%)
254:259 (2%)
view
6 x 2 resctl-bench/src/bench/protection
resctl-bench/src/bench/protection
420:429 (<1%)
680:689 (<1%)
view
6 x 2 resctl-bench/src/bench/protection
resctl-bench/src/bench/protection
473:479 (<1%)
707:713 (<1%)
view
6 x 2 resctl-bench/src/bench
resctl-bench/src/bench
2177:2182 (<1%)
2200:2205 (<1%)
view
6 x 2 resctl-bench/src/bench/iocost_tune
resctl-bench/src
236:241 (3%)
15:20 (5%)
view
6 x 2 resctl-bench/src/bench
resctl-bench/src
2079:2084 (<1%)
48:53 (1%)
view
6 x 2 resctl-bench/src
resctl-bench/src
287:292 (1%)
341:346 (1%)
view
6 x 2 resctl-bench/src/bench
resctl-bench/src
637:642 (<1%)
48:53 (1%)
view
6 x 2 resctl-bench/src/bench/iocost_tune
resctl-bench/src
196:201 (3%)
15:20 (5%)
view
6 x 2 resctl-bench/src/bench/iocost_tune
resctl-bench/src/bench/iocost_tune
42:47 (2%)
50:55 (2%)
view
6 x 2 resctl-bench/src/bench
resctl-bench/src/bench
1757:1762 (<1%)
1770:1775 (<1%)
view
6 x 2 rd-agent-intf/src
rd-agent-intf/src
79:84 (6%)
90:95 (6%)
view
6 x 2 resctl-bench/src/bench
resctl-bench/src/bench
98:104 (5%)
59:65 (6%)
view
6 x 2 resctl-demo/src
resctl-demo/src
303:309 (1%)
331:337 (1%)
view