aws / aws-step-functions-data-science-sdk-python
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
  • 7% duplication:
    • 2,430 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 174 duplicated lines
  • 18 duplicates
system7% (174 lines)
Duplication per Extension
py7% (174 lines)
Duplication per Component (primary)
src/stepfunctions/steps5% (70 lines)
src/stepfunctions/template/pipeline15% (40 lines)
src/stepfunctions/workflow/widgets10% (34 lines)
src/stepfunctions/workflow9% (30 lines)
src/stepfunctions0% (0 lines)
src/stepfunctions/inputs0% (0 lines)
src/stepfunctions/template0% (0 lines)
ROOT0% (0 lines)
doc0% (0 lines)
Longest Duplicates
The list of 18 longest duplicates.
See data for all 18 duplicates...
Size#FoldersFilesLinesCode
12 x 2 src/stepfunctions/template/pipeline
src/stepfunctions/template/pipeline
inference.py
train.py
147:159 (7%)
100:111 (17%)
view
11 x 2 src/stepfunctions/steps
src/stepfunctions/steps
states.py
states.py
507:519 (2%)
631:643 (2%)
view
11 x 2 src/stepfunctions/workflow/widgets
src/stepfunctions/workflow/widgets
graph.py
graph.py
166:177 (16%)
196:207 (16%)
view
9 x 2 src/stepfunctions/workflow
src/stepfunctions/workflow
stepfunctions.py
stepfunctions.py
170:178 (3%)
241:249 (3%)
view
8 x 2 src/stepfunctions/steps
src/stepfunctions/steps
states.py
states.py
513:520 (1%)
581:588 (1%)
view
8 x 2 src/stepfunctions/template/pipeline
src/stepfunctions/template/pipeline
inference.py
train.py
118:126 (5%)
82:90 (11%)
view
7 x 2 src/stepfunctions/steps
src/stepfunctions/steps
states.py
states.py
318:324 (1%)
513:519 (1%)
view
7 x 2 src/stepfunctions/steps
src/stepfunctions/steps
states.py
states.py
318:324 (1%)
637:643 (1%)
view
7 x 2 src/stepfunctions/steps
src/stepfunctions/steps
states.py
states.py
581:587 (1%)
637:643 (1%)
view
7 x 2 src/stepfunctions/steps
src/stepfunctions/steps
sagemaker.py
sagemaker.py
249:255 (3%)
262:268 (3%)
view
7 x 2 src/stepfunctions/steps
src/stepfunctions/steps
states.py
states.py
318:324 (1%)
581:587 (1%)
view
6 x 2 src/stepfunctions/steps
src/stepfunctions/steps
states.py
states.py
192:197 (1%)
581:586 (1%)
view
6 x 2 src/stepfunctions/workflow/widgets
src/stepfunctions/workflow/widgets
executions_table.py
workflows_table.py
139:145 (31%)
123:129 (37%)
view
6 x 2 src/stepfunctions/workflow
src/stepfunctions/workflow
stepfunctions.py
stepfunctions.py
101:106 (2%)
477:482 (2%)
view
6 x 2 src/stepfunctions/steps
src/stepfunctions/steps
states.py
states.py
192:197 (1%)
318:323 (1%)
view
6 x 2 src/stepfunctions/steps
src/stepfunctions/steps
states.py
states.py
345:350 (1%)
431:436 (1%)
view
6 x 2 src/stepfunctions/steps
src/stepfunctions/steps
states.py
states.py
192:197 (1%)
637:642 (1%)
view
6 x 2 src/stepfunctions/steps
src/stepfunctions/steps
states.py
states.py
192:197 (1%)
513:518 (1%)
view