facebookresearch / starcraft_defogger
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
  • 3% duplication:
    • 4,984 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 178 duplicated lines
  • 9 duplicates
system3% (178 lines)
Duplication per Extension
cpp10% (104 lines)
h3% (48 lines)
py<1% (26 lines)
Duplication per Component (primary)
featurizers8% (108 lines)
ROOT2% (70 lines)
flatbuffers0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
16 x 2 ROOT
ROOT
_ext.cpp
_ext.cpp
38:57 (9%)
75:94 (9%)
view
14 x 2 featurizers
featurizers
coarse_conv_featurizer.h
forward_conv2d_state_action_featurizer.h
134:147 (14%)
104:119 (18%)
view
12 x 2 featurizers
featurizers
coarse_conv_featurizer.cpp
coarse_conv_featurizer.cpp
171:185 (6%)
237:251 (6%)
view
11 x 2 featurizers
featurizers
coarse_conv_featurizer.cpp
coarse_conv_featurizer.cpp
156:168 (5%)
221:232 (5%)
view
10 x 2 featurizers
featurizers
coarse_conv_featurizer_stats.h
forward_conv2d_state_action_featurizer.h
21:30 (35%)
29:38 (13%)
view
7 x 2 ROOT
ROOT
data.py
data.py
88:94 (3%)
118:124 (3%)
view
7 x 2 featurizers
featurizers
fogofwar.cpp
fogofwar.cpp
91:97 (2%)
104:110 (2%)
view
6 x 2 ROOT
ROOT
sweep.py
utils.py
57:62 (1%)
72:77 (1%)
view
6 x 2 ROOT
ROOT
_ext.cpp
_ext.cpp
59:64 (3%)
96:101 (3%)
view