facebookresearch / poincare-embeddings
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
  • 6% duplication:
    • 1,426 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 88 duplicated lines
  • 5 duplicates
system6% (88 lines)
Duplication per Extension
pyx20% (76 lines)
py1% (12 lines)
Duplication per Component (primary)
hype9% (76 lines)
hype/manifolds4% (12 lines)
ROOT0% (0 lines)
wordnet0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
15 x 2 hype
hype
pyx
adjacency_matrix_dataset.pyx
graph_dataset.pyx
75:90 (8%)
102:117 (8%)
view
10 x 2 hype
hype
pyx
adjacency_matrix_dataset.pyx
graph_dataset.pyx
134:145 (5%)
151:162 (5%)
view
7 x 2 hype
hype
pyx
adjacency_matrix_dataset.pyx
graph_dataset.pyx
243:250 (3%)
233:240 (3%)
view
6 x 2 hype
hype
pyx
adjacency_matrix_dataset.pyx
graph_dataset.pyx
98:103 (3%)
122:127 (3%)
view
6 x 2 hype/manifolds
hype/manifolds
lorentz.py
lorentz.py
112:117 (3%)
128:133 (3%)
view