facebookresearch / accentor
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
  • 5% duplication:
    • 1,393 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 78 duplicated lines
  • 5 duplicates
system5% (78 lines)
Duplication per Extension
py5% (78 lines)
Duplication per Component (primary)
ROOT5% (78 lines)
v1.00% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
13 x 2 ROOT
ROOT
gen_arranger_input.py
gen_parlai_data.py
25:37 (27%)
20:32 (33%)
view
8 x 2 ROOT
ROOT
gen_arranger_input.py
gen_parlai_data.py
45:52 (16%)
35:42 (20%)
view
6 x 2 ROOT
ROOT
gen_arranger_output.py
utils_multiple_choice.py
19:25 (11%)
117:123 (3%)
view
6 x 2 ROOT
ROOT
gen_arranger_output.py
utils_multiple_choice.py
34:39 (11%)
129:134 (3%)
view
6 x 2 ROOT
ROOT
run_multiple_choice.py
run_multiple_choice.py
540:546 (1%)
556:562 (1%)
view