microsoft / r-server-hospital-length-of-stay
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:
    • 1,270 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 79 duplicated lines
  • 6 duplicates
system6% (79 lines)
Duplication per Extension
R14% (43 lines)
handlebars20% (22 lines)
ps14% (14 lines)
Duplication per Component (primary)
R14% (43 lines)
Website/views25% (22 lines)
Resources/ActionScripts4% (14 lines)
Python0% (0 lines)
Website/public/css0% (0 lines)
Website/public/js0% (0 lines)
Website0% (0 lines)
Website/views/layouts0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
11 x 2 Website/views
Website/views
handlebars
patient.handlebars
patient2.handlebars
12:27 (73%)
26:41 (44%)
view
10 x 2 R
R
step1_data_preprocessing.R
step2_feature_engineering.R
17:42 (6%)
16:42 (27%)
view
9 x 2 R
R
step2_feature_engineering.R
step3_training_evaluation.R
19:42 (24%)
22:44 (8%)
view
9 x 2 R
R
step1_data_preprocessing.R
step3_training_evaluation.R
20:42 (6%)
22:44 (8%)
view
7 x 2 Resources/ActionScripts
Resources/ActionScripts
ConfigureSQL.ps1
ConfigureSQL.ps1
176:183 (4%)
240:247 (4%)
view
7 x 2 R
R
step1_data_preprocessing.R
step1_data_preprocessing.R
157:167 (4%)
240:251 (4%)
view