facebookresearch / 3detr
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
  • 22% duplication:
    • 4,435 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 980 duplicated lines
  • 64 duplicates
system22% (980 lines)
Duplication per Extension
py22% (974 lines)
pyx4% (6 lines)
Duplication per Component (primary)
utils31% (713 lines)
datasets16% (98 lines)
ROOT11% (88 lines)
models10% (81 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 64 duplicates...
Size#FoldersFilesLinesCode
39 x 2 utils
utils
box_util.py
box_util.py
518:576 (7%)
625:683 (7%)
view
33 x 2 utils
utils
box_ops3d.py
box_ops3d.py
274:317 (6%)
359:403 (6%)
view
23 x 2 utils
utils
eval_det.py
eval_det.py
177:200 (14%)
229:252 (14%)
view
22 x 2 utils
utils
box_ops3d.py
box_util.py
89:127 (4%)
401:440 (4%)
view
20 x 2 utils
utils
box_util.py
box_util.py
266:285 (4%)
362:381 (4%)
view
20 x 2 utils
utils
ap_calculator.py
ap_calculator.py
123:142 (5%)
158:177 (5%)
view
19 x 2 utils
utils
box_ops3d.py
box_util.py
54:74 (3%)
60:80 (3%)
view
17 x 2 utils
utils
box_ops3d.py
box_ops3d.py
325:344 (3%)
435:454 (3%)
view
17 x 2 utils
utils
box_util.py
box_util.py
599:618 (3%)
695:714 (3%)
view
17 x 2 utils
utils
box_ops3d.py
box_util.py
403:431 (3%)
576:593 (3%)
view
15 x 2 utils
utils
box_util.py
pc_util.py
213:234 (3%)
101:122 (9%)
view
14 x 2 ROOT
ROOT
main.py
main.py
272:285 (4%)
315:328 (4%)
view
13 x 2 models
models
transformer.py
transformer.py
35:47 (4%)
161:175 (4%)
view
13 x 2 utils
utils
nms.py
nms.py
87:101 (10%)
129:143 (10%)
view
13 x 2 datasets
datasets
scannet.py
sunrgbd.py
329:342 (4%)
355:368 (4%)
view
12 x 2 utils
utils
nms.py
nms.py
12:24 (9%)
44:56 (9%)
view
11 x 2 ROOT
ROOT
main.py
main.py
231:241 (3%)
272:282 (3%)
view
11 x 2 datasets
datasets
sunrgbd.py
sunrgbd.py
50:60 (3%)
63:73 (3%)
view
11 x 2 ROOT
ROOT
main.py
main.py
231:241 (3%)
315:325 (3%)
view
11 x 2 datasets
datasets
scannet.py
sunrgbd.py
311:321 (3%)
336:346 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
14 x 2 utils
utils
pc_util.py
box_util.py
0:0 
0:0 
view