aws / sagemaker-tensorflow-extensions
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:
    • 1,446 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 84 duplicated lines
  • 4 duplicates
system5% (84 lines)
Duplication per Extension
py8% (64 lines)
yml33% (20 lines)
Duplication per Component (primary)
benchmarking/pipemode_benchmark/docker59% (64 lines)
ROOT11% (20 lines)
benchmarking/pipemode_benchmark0% (0 lines)
benchmarking0% (0 lines)
src/sagemaker_tensorflow0% (0 lines)
src/pipemode_op/Dataset/src0% (0 lines)
src/pipemode_op/PipeStateManager0% (0 lines)
src/pipemode_op/RecordReader0% (0 lines)
src/pipemode_op/include0% (0 lines)
src/pipemode_op/include/tensorflow0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
15 x 2 benchmarking/pipemode_benchmark/docker
benchmarking/pipemode_benchmark/docker
gpu_pipeline_script.py
input_only_script.py
33:51 (26%)
31:49 (29%)
view
10 x 2 ROOT
ROOT
buildspec-release.yml
buildspec.yml
1:12 (34%)
1:11 (76%)
view
9 x 2 benchmarking/pipemode_benchmark/docker
benchmarking/pipemode_benchmark/docker
gpu_pipeline_script.py
input_only_script.py
57:70 (15%)
51:64 (17%)
view
8 x 2 benchmarking/pipemode_benchmark/docker
benchmarking/pipemode_benchmark/docker
gpu_pipeline_script.py
input_only_script.py
73:80 (14%)
70:78 (15%)
view