facebookresearch / 3D-Vision-and-Touch
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:
    • 10,410 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 122 duplicated lines
  • 9 duplicates
system1% (122 lines)
Duplication per Extension
py9% (122 lines)
Duplication per Component (primary)
vision_charts13% (58 lines)
touch_charts13% (48 lines)
ROOT3% (16 lines)
third_party_code0% (0 lines)
data0% (0 lines)

Duplication Between Components (50+ lines)

G touch_charts touch_charts vision_charts vision_charts touch_charts--vision_charts 90

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
13 x 2 touch_charts
vision_charts
recon.py
recon.py
170:185 (9%)
177:191 (8%)
view
10 x 2 touch_charts
vision_charts
recon.py
recon.py
17:34 (7%)
21:39 (6%)
view
8 x 2 ROOT
ROOT
utils.py
utils.py
356:365 (3%)
405:413 (3%)
view
8 x 2 vision_charts
vision_charts
recon.py
runner.py
216:223 (5%)
25:32 (20%)
view
7 x 2 touch_charts
vision_charts
recon.py
recon.py
76:84 (5%)
86:94 (4%)
view
6 x 2 touch_charts
touch_charts
produce_sheets.py
recon.py
16:27 (7%)
17:28 (4%)
view
6 x 2 touch_charts
vision_charts
runner.py
runner.py
29:34 (25%)
45:50 (15%)
view
6 x 2 touch_charts
vision_charts
recon.py
recon.py
57:64 (4%)
70:77 (4%)
view
6 x 2 touch_charts
vision_charts
produce_sheets.py
recon.py
16:27 (7%)
21:33 (4%)
view