Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 3 | 0.961 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 249 | Closure/closure/goog/ui/ratings.js |
2 | 13 | 268 | Closure/closure/goog/ui/ratings.js |
| ||||
/** * @return {number} The index of the currently selected rating. */ goog.ui.Ratings.prototype.getSelectedIndex= function ( ) { return this.selectedIndex_; } ; /** * Returns the rating value of the currently selected rating * @return {?string} The value of the currently selected rating (or null). */ goog.ui.Ratings.prototype.getValue= function ( ) { return this.selectedIndex_== -1 ? null : this.ratings_[this.selectedIndex_]; } ; |
| ||||
/** * Returns the index of the currently highlighted rating, -1 if the mouse isn't * currently over the widget * @return {number} The index of the currently highlighted rating. */ goog.ui.Ratings.prototype.getHighlightedIndex= function ( ) { return this.highlightedIndex_; } ; /** * Returns the value of the currently highlighted rating, null if the mouse * isn't currently over the widget * @return {?string} The value of the currently highlighted rating, or null. */ goog.ui.Ratings.prototype.getHighlightedValue= function ( ) { return this.highlightedIndex_== -1 ? null : this.ratings_[this.highlightedIndex_]; } ; |
| |||
/** * @return {number} The index of the currently selected rating. */ /** * Returns the index of the currently highlighted rating, -1 if the mouse isn't * currently over the widget * @return {number} The index of the currently highlighted rating. */ goog.ui.Ratings.prototype. [[#variable206b05c0]]= function ( ) { return this. [[#variable1e43f380]]; } ; /** * Returns the rating value of the currently selected rating * @return {?string} The value of the currently selected rating (or null). */ /** * Returns the value of the currently highlighted rating, null if the mouse * isn't currently over the widget * @return {?string} The value of the currently highlighted rating, or null. */ goog.ui.Ratings.prototype. [[#variable206b0440]]= function ( ) { return this. [[#variable1e43f380]]==-1 ?null : this.ratings_[this. [[#variable1e43f380]]]; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#206b05c0]] | getSelectedIndex |
1 | 2 | [[#206b05c0]] | getHighlightedIndex |
2 | 1 | [[#1e43f380]] | selectedIndex_ |
2 | 2 | [[#1e43f380]] | highlightedIndex_ |
3 | 1 | [[#206b0440]] | getValue |
3 | 2 | [[#206b0440]] | getHighlightedValue |