apple / ml-multiple-futures-prediction
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
  • 6% duplication:
    • 911 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 60 duplicated lines
  • 5 duplicates
system6% (60 lines)
Duplication per Extension
py6% (60 lines)
Duplication per Component (primary)
multiple_futures_prediction6% (60 lines)
multiple_futures_prediction/assets0% (0 lines)
multiple_futures_prediction/cmd0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
11 x 2 multiple_futures_prediction
multiple_futures_prediction
my_utils.py
my_utils.py
28:39 (6%)
58:68 (6%)
view
10 x 2 multiple_futures_prediction
multiple_futures_prediction
my_utils.py
my_utils.py
44:53 (5%)
58:67 (5%)
view
10 x 2 multiple_futures_prediction
multiple_futures_prediction
my_utils.py
my_utils.py
28:38 (5%)
44:53 (5%)
view
8 x 2 multiple_futures_prediction
multiple_futures_prediction
train_ngsim.py
train_ngsim.py
35:42 (3%)
233:240 (3%)
view
6 x 2 multiple_futures_prediction
multiple_futures_prediction
model_ngsim.py
model_ngsim.py
342:347 (2%)
352:357 (2%)
view