amazon-research / exponential-moving-average-normalization
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
  • 45% duplication:
    • 2,763 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,253 duplicated lines
  • 102 duplicates
system45% (1,253 lines)
Duplication per Extension
py45% (1,253 lines)
Duplication per Component (primary)
ROOT66% (1,147 lines)
data13% (48 lines)
backbone20% (40 lines)
models7% (18 lines)
utils0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 102 duplicates...
Size#FoldersFilesLinesCode
68 x 2 ROOT
ROOT
main_cls.py
main_lincls.py
291:378 (20%)
253:340 (22%)
view
42 x 2 ROOT
ROOT
main_cls.py
main_lincls.py
127:188 (12%)
118:178 (14%)
view
34 x 2 ROOT
ROOT
main_byol.py
main_moco.py
127:181 (11%)
131:185 (11%)
view
32 x 2 ROOT
ROOT
main_byol.py
main_moco.py
192:234 (10%)
191:234 (11%)
view
29 x 2 ROOT
ROOT
main_byol.py
main_fixmatch.py
135:181 (9%)
156:203 (6%)
view
29 x 2 ROOT
ROOT
main_fixmatch.py
main_moco.py
156:203 (6%)
139:185 (10%)
view
28 x 2 ROOT
ROOT
main_byol.py
main_cls.py
135:178 (9%)
139:183 (8%)
view
28 x 2 ROOT
ROOT
main_cls.py
main_moco.py
139:183 (8%)
139:182 (9%)
view
28 x 2 ROOT
ROOT
main_fixmatch.py
main_lincls.py
156:200 (6%)
130:173 (9%)
view
28 x 2 ROOT
ROOT
main_byol.py
main_lincls.py
135:178 (9%)
130:173 (9%)
view
28 x 2 ROOT
ROOT
main_cls.py
main_fixmatch.py
139:183 (8%)
156:200 (6%)
view
28 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
130:173 (9%)
139:182 (9%)
view
24 x 2 ROOT
ROOT
main_byol.py
main_moco.py
39:62 (7%)
39:62 (8%)
view
23 x 2 ROOT
ROOT
main_cls.py
main_lincls.py
402:437 (6%)
371:406 (7%)
view
23 x 2 ROOT
ROOT
main_cls.py
main_lincls.py
34:60 (6%)
33:59 (7%)
view
20 x 2 ROOT
ROOT
main_cls.py
main_lincls.py
239:269 (6%)
217:247 (6%)
view
20 x 2 ROOT
ROOT
main_byol.py
main_cls.py
79:98 (6%)
91:110 (6%)
view
20 x 2 ROOT
ROOT
main_fixmatch.py
main_lincls.py
265:295 (4%)
217:247 (6%)
view
20 x 2 ROOT
ROOT
main_cls.py
main_fixmatch.py
191:211 (6%)
243:263 (4%)
view
20 x 2 ROOT
ROOT
main_byol.py
main_moco.py
241:267 (6%)
247:273 (7%)
view