facebookresearch / EmpatheticDialogues
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
  • 8% duplication:
    • 1,885 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 164 duplicated lines
  • 12 duplicates
system8% (164 lines)
Duplication per Extension
py8% (164 lines)
Duplication per Component (primary)
ROOT12% (91 lines)
empchat8% (43 lines)
empchat/datasets4% (30 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
19 x 2 ROOT
ROOT
retrieval_eval_bleu.py
retrieval_eval_bleu.py
227:245 (4%)
253:271 (4%)
view
18 x 2 ROOT
ROOT
retrieval_eval_bleu.py
retrieval_eval_bleu.py
228:245 (4%)
286:303 (4%)
view
18 x 2 ROOT
ROOT
retrieval_eval_bleu.py
retrieval_eval_bleu.py
254:271 (4%)
286:303 (4%)
view
10 x 2 empchat
ROOT
util.py
retrieval_eval_bleu.py
79:88 (5%)
67:76 (2%)
view
9 x 2 empchat/datasets
empchat/datasets
loader.py
loader.py
136:144 (4%)
180:188 (4%)
view
7 x 2 empchat
empchat
transformer_local.py
transformer_local.py
190:196 (3%)
198:204 (3%)
view
7 x 2 empchat
ROOT
util.py
retrieval_eval_bleu.py
107:113 (3%)
84:90 (1%)
view
6 x 2 ROOT
ROOT
retrieval_eval_bleu.py
retrieval_eval_bleu.py
124:129 (1%)
154:159 (1%)
view
6 x 2 empchat/datasets
empchat/datasets
empchat.py
loader.py
95:101 (4%)
49:55 (3%)
view
6 x 2 empchat
empchat/datasets
bert_local.py
empchat.py
24:30 (8%)
95:101 (4%)
view
6 x 2 empchat
ROOT
util.py
retrieval_eval_bleu.py
216:221 (3%)
27:32 (1%)
view
6 x 2 empchat
empchat/datasets
bert_local.py
loader.py
24:30 (8%)
49:55 (3%)
view