CloneSet1515


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2210.976ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12145
Closure/closure/goog/math/coordinate.js
22227
Closure/closure/goog/math/vec2.js
Clone Instance
1
Line Count
2
Source Line
145
Source File
Closure/closure/goog/math/coordinate.js

/**
 * Returns the sum of two coordinates as a new goog.math.Coordinate.
 * @param {goog.math.Coordinate} a A Coordinate.
 * @param {goog.math.Coordinate} b A Coordinate.
 * @return {goog.math.Coordinate} A Coordinate representing the sum of the two
 *     coordinates.
 */
goog.math.Coordinate.sum=  function (a, b){
  return new goog.math.Coordinate(a.x+  b.x, a.y+  b.y);
                                          } ;


Clone Instance
2
Line Count
2
Source Line
227
Source File
Closure/closure/goog/math/vec2.js

/**
 * Returns the sum of two vectors as a new Vec2.
 * @param {!goog.math.Vec2} a The first vector.
 * @param {!goog.math.Vec2} b The second vector.
 * @return {!goog.math.Vec2} The sum vector.
 */
goog.math.Vec2.sum=  function (a, b){
  return new goog.math.Vec2(a.x+  b.x, a.y+  b.y);
                                    } ;


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * Returns the sum of two coordinates as a new goog.math.Coordinate.
 * @param {goog.math.Coordinate} a A Coordinate.
 * @param {goog.math.Coordinate} b A Coordinate.
 * @return {goog.math.Coordinate} A Coordinate representing the sum of the two
 *     coordinates.
 */
/**
 * Returns the sum of two vectors as a new Vec2.
 * @param {!goog.math.Vec2} a The first vector.
 * @param {!goog.math.Vec2} b The second vector.
 * @return {!goog.math.Vec2} The sum vector.
 */
goog.math. [[#variable6311d540]].sum= function (a,b)
                                      { return new goog.math. [[#variable6311d540]](a.x+b.x,a.y+b.y);
                                      } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6311d540]]
Coordinate 
12[[#6311d540]]
Vec2