aws-samples / nimblestudio-auto-workstation-scheduler
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
  • 4% duplication:
    • 1,135 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 54 duplicated lines
  • 7 duplicates
system4% (54 lines)
Duplication per Extension
py4% (54 lines)
Duplication per Component (primary)
scripts5% (36 lines)
lambda/model15% (9 lines)
scripts/model45% (9 lines)
ROOT0% (0 lines)
nimble_studio_auto_workstation_scheduler0% (0 lines)
lambda0% (0 lines)
lambda/common0% (0 lines)
lambda/launcher0% (0 lines)
scripts/utils0% (0 lines)
scripts/identity0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
12 x 2 scripts
scripts
delete_auto_launch_config.py
get_auto_launch_config.py
87:99 (14%)
228:240 (6%)
view
9 x 2 lambda/model
scripts/model
auto_launch_config.py
auto_launch_config.py
16:24 (60%)
14:22 (60%)
view
6 x 2 scripts
scripts
delete_auto_launch_config.py
toggle_auto_launcher.py
87:93 (7%)
52:58 (13%)
view
6 x 2 scripts
scripts
get_auto_launch_config.py
update_auto_launch_config.py
228:234 (3%)
371:377 (1%)
view
6 x 2 scripts
scripts
get_auto_launch_config.py
toggle_auto_launcher.py
228:234 (3%)
52:58 (13%)
view
6 x 2 scripts
scripts
toggle_auto_launcher.py
update_auto_launch_config.py
52:58 (13%)
371:377 (1%)
view
6 x 2 scripts
scripts
delete_auto_launch_config.py
update_auto_launch_config.py
87:93 (7%)
371:377 (1%)
view