facebookresearch / svoice
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,583 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 100 duplicated lines
  • 5 duplicates
system6% (100 lines)
Duplication per Extension
py6% (100 lines)
Duplication per Component (primary)
svoice8% (60 lines)
svoice/data17% (40 lines)
svoice/models0% (0 lines)
scripts0% (0 lines)
ROOT0% (0 lines)
conf0% (0 lines)
conf/dset0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
14 x 2 svoice
svoice
evaluate.py
evaluate_auto_select.py
83:99 (10%)
147:163 (10%)
view
12 x 2 svoice/data
svoice/data
data.py
data.py
32:44 (10%)
75:86 (10%)
view
10 x 2 svoice
svoice
evaluate.py
evaluate_auto_select.py
53:62 (7%)
83:93 (7%)
view
8 x 2 svoice/data
svoice/data
data.py
data.py
57:66 (7%)
91:100 (7%)
view
6 x 2 svoice
svoice
evaluate.py
evaluate_auto_select.py
69:75 (4%)
103:109 (4%)
view