facebookresearch / phosa
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
  • 2% duplication:
    • 3,596 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 90 duplicated lines
  • 5 duplicates
system2% (90 lines)
Duplication per Extension
py5% (90 lines)
Duplication per Component (primary)
phosa/utils22% (74 lines)
phosa1% (16 lines)
models/meshes0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
19 x 2 phosa/utils
phosa/utils
nmr_renderer.py
nmr_renderer.py
35:53 (12%)
132:152 (12%)
view
8 x 2 phosa
phosa
constants.py
constants.py
126:133 (4%)
153:160 (4%)
view
6 x 2 phosa/utils
phosa/utils
nmr_renderer.py
nmr_renderer.py
70:75 (3%)
177:182 (3%)
view
6 x 2 phosa/utils
phosa/utils
bbox.py
bbox.py
48:53 (9%)
62:67 (9%)
view
6 x 2 phosa/utils
phosa/utils
nmr_renderer.py
nmr_renderer.py
99:105 (3%)
188:194 (3%)
view