Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 3 | 2 | 0.968 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 135 | Closure/closure/goog/ui/flatbuttonrenderer.js |
2 | 4 | 74 | Closure/closure/goog/ui/linkbuttonrenderer.js |
3 | 3 | 205 | Closure/closure/goog/ui/roundedtabrenderer.js |
| ||||
// Register a decorator factory function for Flat Buttons. goog.ui.registry.setDecoratorByClassName(goog.ui.FlatButtonRenderer.CSS_CLASS, function ( ) { // Uses goog.ui.Button, but with FlatButtonRenderer. return new goog.ui.Button(null, goog.ui.FlatButtonRenderer.getInstance( )); } ); |
| ||||
// Register a decorator factory function for Link Buttons. goog.ui.registry.setDecoratorByClassName(goog.ui.LinkButtonRenderer.CSS_CLASS, function ( ) { // Uses goog.ui.Button, but with LinkButtonRenderer. return new goog.ui.Button(null, goog.ui.LinkButtonRenderer.getInstance( )); } ); |
| ||||
// Register a decorator factory function for goog.ui.Tabs using the rounded // tab renderer. goog.ui.registry.setDecoratorByClassName(goog.ui.RoundedTabRenderer.CSS_CLASS, function ( ) { return new goog.ui.Tab(null, goog.ui.RoundedTabRenderer.getInstance( )); } ); |
| |||
// Register a decorator factory function for goog.ui.Tabs using the rounded // tab renderer. // Register a decorator factory function for Flat Buttons. // Register a decorator factory function for Link Buttons. goog.ui.registry.setDecoratorByClassName(goog.ui. [[#variable3fddc000]].CSS_CLASS, function ( ) { // Uses goog.ui.Button, but with FlatButtonRenderer. // Uses goog.ui.Button, but with LinkButtonRenderer. return new goog.ui. [[#variable1e2f7f80]](null,goog.ui. [[#variable3fddc000]].getInstance( )); } ); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3fddc000]] | RoundedTabRenderer |
1 | 2 | [[#3fddc000]] | FlatButtonRenderer |
1 | 3 | [[#3fddc000]] | LinkButtonRenderer |
2 | 1 | [[#1e2f7f80]] | Tab |
2 | 2 | [[#1e2f7f80]] | Button |
2 | 3 | [[#1e2f7f80]] | Button |