facebookresearch / diffq
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
  • 9% duplication:
    • 930 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 86 duplicated lines
  • 6 duplicates
system9% (86 lines)
Duplication per Extension
py10% (86 lines)
Duplication per Component (primary)
diffq10% (86 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
10 x 2 diffq
diffq
diffq.py
lsq.py
144:153 (5%)
56:65 (8%)
view
9 x 2 diffq
diffq
diffq.py
lsq.py
228:241 (4%)
118:131 (7%)
view
6 x 2 diffq
diffq
diffq.py
lsq.py
198:212 (3%)
99:113 (5%)
view
6 x 2 diffq
diffq
diffq.py
lsq.py
260:267 (3%)
136:143 (5%)
view
6 x 2 diffq
diffq
diffq.py
lsq.py
172:177 (3%)
82:87 (5%)
view
6 x 2 diffq
diffq
diffq.py
lsq.py
312:318 (3%)
167:173 (5%)
view