CloneSet1456


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3230.955ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14248
Closure/closure/goog/ui/dimensionpickerrenderer.js
23261
Closure/closure/goog/ui/dimensionpickerrenderer.js
Clone Instance
1
Line Count
4
Source Line
248
Source File
Closure/closure/goog/ui/dimensionpickerrenderer.js

/**
 * Returns the x offset in to the grid for the given mouse x position.
 * @param {goog.ui.DimensionPicker} palette The table size palette.
 * @param {number} x The mouse event x position.
 * @return {number} The x offset in to the grid.
 */
goog.ui.DimensionPickerRenderer.prototype.getGridOffsetX=  function (
    palette, x) {
  // TODO: Don't rely on magic 18 - measure each palette's em size.
  return Math.min(palette.maxColumns, Math.ceil(x/  18));
                } ;


Clone Instance
2
Line Count
3
Source Line
261
Source File
Closure/closure/goog/ui/dimensionpickerrenderer.js

/**
 * Returns the y offset in to the grid for the given mouse y position.
 * @param {goog.ui.DimensionPicker} palette The table size palette.
 * @param {number} y The mouse event y position.
 * @return {number} The y offset in to the grid.
 */
goog.ui.DimensionPickerRenderer.prototype.getGridOffsetY=  function (
    palette, y) {
  return Math.min(palette.maxRows, Math.ceil(y/  18));
                } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Returns the y offset in to the grid for the given mouse y position.
 * @param {goog.ui.DimensionPicker} palette The table size palette.
 * @param {number} y The mouse event y position.
 * @return {number} The y offset in to the grid.
 */
/**
 * Returns the x offset in to the grid for the given mouse x position.
 * @param {goog.ui.DimensionPicker} palette The table size palette.
 * @param {number} x The mouse event x position.
 * @return {number} The x offset in to the grid.
 */
goog.ui.DimensionPickerRenderer.prototype. [[#variable48137500]]= function (palette, [[#variable48137440]])
                                                                  {
                                                                    // TODO: Don't rely on magic 18 - measure each palette's em size.
                                                                    return Math.min(palette. [[#variable48137360]],Math.ceil( [[#variable48137440]]/18));
                                                                  } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#48137500]]
getGridOffsetY 
12[[#48137500]]
getGridOffsetX 
21[[#48137440]]
y 
22[[#48137440]]
x 
31[[#48137360]]
maxRows 
32[[#48137360]]
maxColumns