CloneSet725


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.961SourceElements[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111249
Closure/closure/goog/ui/ratings.js
213268
Closure/closure/goog/ui/ratings.js
Clone Instance
1
Line Count
11
Source Line
249
Source File
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_];
                                                } ;


Clone Instance
2
Line Count
13
Source Line
268
Source File
Closure/closure/goog/ui/ratings.js

/**
 * 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_];
                                                           } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * @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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#206b05c0]]
getSelectedIndex 
12[[#206b05c0]]
getHighlightedIndex 
21[[#1e43f380]]
selectedIndex_ 
22[[#1e43f380]]
highlightedIndex_ 
31[[#206b0440]]
getValue 
32[[#206b0440]]
getHighlightedValue