microsoft / frameworkcontroller
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
  • 13% duplication:
    • 5,554 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 758 duplicated lines
  • 157 duplicates
system13% (758 lines)
Duplication per Extension
yaml63% (614 lines)
go3% (144 lines)
Duplication per Component (primary)
example/framework80% (614 lines)
pkg/apis4% (100 lines)
pkg/controller2% (28 lines)
pkg/barrier5% (16 lines)
cmd/frameworkbarrier0% (0 lines)
cmd/frameworkcontroller0% (0 lines)
example/config0% (0 lines)
hack0% (0 lines)
pkg/client0% (0 lines)
pkg/common0% (0 lines)
pkg/internal0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 157 duplicates...
Size#FoldersFilesLinesCode
32 x 2 example/framework/scenario/tensorflow/ps/cpu
example/framework/scenario/tensorflow/ps/gpu
tensorflowdistributedtrainingwithcpu....
tensorflowdistributedtrainingwithdefa...
66:131 (31%)
72:137 (29%)
view
27 x 2 example/framework/scenario/tensorflow/ps/cpu
example/framework/scenario/tensorflow/ps/gpu
tensorflowdistributedtrainingwithcpu....
tensorflowdistributedtrainingwithhive...
66:124 (26%)
92:150 (18%)
view
27 x 2 example/framework/scenario/tensorflow/ps/gpu
example/framework/scenario/tensorflow/ps/gpu
tensorflowdistributedtrainingwithdefa...
tensorflowdistributedtrainingwithhive...
72:130 (25%)
92:150 (18%)
view
26 x 2 example/framework/scenario/tensorflow/ps/gpu
example/framework/scenario/tensorflow/ps/gpu
tensorflowdistributedtrainingwithhive...
tensorflowdistributedtrainingwithhive...
79:119 (17%)
184:218 (17%)
view
26 x 2 example/framework/scenario/tensorflow/ps/gpu
example/framework/scenario/tensorflow/ps/gpu
tensorflowdistributedtrainingwithhive...
tensorflowdistributedtrainingwithhive...
22:69 (17%)
144:174 (17%)
view
25 x 2 example/framework/basic
example/framework/basic
batchfailedpermanent.yaml
batchfailedtransient.yaml
6:32 (80%)
6:32 (80%)
view
25 x 2 example/framework/basic
example/framework/basic
batchfailedpermanent.yaml
batchfailedunknown.yaml
6:32 (80%)
6:32 (80%)
view
25 x 2 example/framework/basic
example/framework/basic
batchfailedtransient.yaml
batchfailedunknown.yaml
6:32 (80%)
6:32 (80%)
view
22 x 2 example/framework/basic
example/framework/basic
batchfailedpermanent.yaml
batchsucceeded.yaml
6:27 (70%)
6:27 (81%)
view
22 x 2 example/framework/basic
example/framework/basic
batchfailedtransient.yaml
batchsucceeded.yaml
6:27 (70%)
6:27 (81%)
view
22 x 2 example/framework/basic
example/framework/basic
batchfailedunknown.yaml
batchsucceeded.yaml
6:27 (70%)
6:27 (81%)
view
22 x 2 example/framework/scenario/tensorflow/ps/cpu
example/framework/scenario/tensorflow/ps/gpu
tensorflowdistributedtrainingwithcpu....
tensorflowdistributedtrainingwithdefa...
11:41 (21%)
11:41 (20%)
view
21 x 2 example/framework/extension
example/framework/extension
frameworkbarrier.yaml
frameworkbarrier.yaml
18:55 (25%)
92:112 (25%)
view
19 x 2 example/framework/scenario/tensorflow/ps/gpu
example/framework/scenario/tensorflow/ps/gpu
tensorflowdistributedtrainingwithdefa...
tensorflowdistributedtrainingwithdefa...
66:99 (17%)
152:179 (17%)
view
18 x 2 example/framework/scenario/tensorflow/ps/gpu
example/framework/scenario/tensorflow/ps/gpu
tensorflowdistributedtrainingwithdefa...
tensorflowdistributedtrainingwithhive...
40:67 (16%)
53:80 (12%)
view
18 x 2 example/framework/scenario/tensorflow/ps/gpu
example/framework/scenario/tensorflow/ps/gpu
tensorflowdistributedtrainingwithdefa...
tensorflowdistributedtrainingwithhive...
136:153 (16%)
168:185 (12%)
view
17 x 2 example/framework/scenario/tensorflow/ps/gpu
example/framework/scenario/tensorflow/ps/gpu
tensorflowdistributedtrainingwithdefa...
tensorflowdistributedtrainingwithhive...
11:28 (15%)
11:28 (11%)
view
17 x 2 example/framework/scenario/tensorflow/ps/cpu
example/framework/scenario/tensorflow/ps/gpu
tensorflowdistributedtrainingwithcpu....
tensorflowdistributedtrainingwithhive...
11:28 (16%)
11:28 (11%)
view
16 x 2 example/framework/basic
example/framework/extension
batchfailedtransientconflict.yaml
frameworkbarrier.yaml
14:31 (51%)
93:108 (19%)
view
16 x 2 example/framework/scenario/tensorflow/ps/gpu
example/framework/scenario/tensorflow/ps/gpu
tensorflowdistributedtrainingwithdefa...
tensorflowdistributedtrainingwithdefa...
22:56 (14%)
124:142 (14%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
15 x 2 pkg/apis/frameworkcontroller/v1
pkg/apis/frameworkcontroller/v1
zz_generated.deepcopy.go
zz_generated.deepcopy.go
454:469 
989:1004 
view