facebookresearch / level-replay
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:
    • 2,093 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 111 duplicated lines
  • 6 duplicates
system5% (111 lines)
Duplication per Extension
py5% (111 lines)
Duplication per Component (primary)
level_replay7% (111 lines)
level_replay/algo0% (0 lines)
ROOT0% (0 lines)
custom_envs0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
17 x 2 level_replay
level_replay
envs.py
envs.py
113:132 (7%)
203:222 (7%)
view
11 x 2 level_replay
level_replay
envs.py
envs.py
135:148 (4%)
226:239 (4%)
view
9 x 2 level_replay
level_replay
model.py
model.py
152:165 (2%)
476:489 (2%)
view
7 x 2 level_replay
level_replay
envs.py
envs.py
296:303 (3%)
309:316 (3%)
view
6 x 2 level_replay
level_replay
model.py
model.py
342:350 (1%)
389:397 (1%)
view
6 x 2 level_replay
level_replay
model.py
model.py
471:476 (1%)
496:501 (1%)
view