CloneSet230


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
37260.964SourceElements[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13752
Closure/closure/goog/proto2/package_test.pb.js
23796
Closure/closure/goog/proto2/package_test.pb.js
Clone Instance
1
Line Count
37
Source Line
52
Source File
Closure/closure/goog/proto2/package_test.pb.js

/**
 * Gets the value of the optional_int32 field.
 * @return {number} The value.
 */
someprotopackage.TestPackageTypes.prototype.getOptionalInt32=  function ( )
                                                                          {
  return /** @type {number} */
                               (this.get$Value(1));
                                                                          } ;
/**
 * Sets the value of the optional_int32 field.
 * @param {number} value The value.
 */
someprotopackage.TestPackageTypes.prototype.setOptionalInt32=  function (value){
  this.set$Value(1, /** @type {Object} */
                                          (value));
                                                                               } ;

/**
 * Returns whether the optional_int32 field has a value.
 * @return {boolean} true if the field has a value.
 */
someprotopackage.TestPackageTypes.prototype.hasOptionalInt32=  function ( )
                                                                          {
  return this.has$Value(1);
                                                                          } ;

/**
 * Gets the number of values in the optional_int32 field.
 * @return {number}
 */
someprotopackage.TestPackageTypes.prototype.optionalInt32Count=  function ( )
                                                                            {
  return this.count$Values(1);
                                                                            } ;

/**
 * Clears the values in the optional_int32 field.
 */
someprotopackage.TestPackageTypes.prototype.clearOptionalInt32=  function ( )
                                                                            {
  this.clear$Field(1);
                                                                            } ;


Clone Instance
2
Line Count
37
Source Line
96
Source File
Closure/closure/goog/proto2/package_test.pb.js

/**
 * Gets the value of the other_all field.
 * @return {proto2.TestAllTypes} The value.
 */
someprotopackage.TestPackageTypes.prototype.getOtherAll=  function ( )
                                                                     {
  return /** @type {proto2.TestAllTypes} */
                                            (this.get$Value(2));
                                                                     } ;
/**
 * Sets the value of the other_all field.
 * @param {proto2.TestAllTypes} value The value.
 */
someprotopackage.TestPackageTypes.prototype.setOtherAll=  function (value){
  this.set$Value(2, /** @type {Object} */
                                          (value));
                                                                          } ;

/**
 * Returns whether the other_all field has a value.
 * @return {boolean} true if the field has a value.
 */
someprotopackage.TestPackageTypes.prototype.hasOtherAll=  function ( )
                                                                     {
  return this.has$Value(2);
                                                                     } ;

/**
 * Gets the number of values in the other_all field.
 * @return {number}
 */
someprotopackage.TestPackageTypes.prototype.otherAllCount=  function ( )
                                                                       {
  return this.count$Values(2);
                                                                       } ;

/**
 * Clears the values in the other_all field.
 */
someprotopackage.TestPackageTypes.prototype.clearOtherAll=  function ( )
                                                                       {
  this.clear$Field(2);
                                                                       } ;


Clone AbstractionParameter Count: 6Parameter Bindings

/**
 * Gets the value of the optional_int32 field.
 * @return {number} The value.
 */
/**
 * Gets the value of the other_all field.
 * @return {proto2.TestAllTypes} The value.
 */
someprotopackage.TestPackageTypes.prototype. [[#variable5637f660]]= function ( )
                                                                    { return /** @type {number} */ /** @type {proto2.TestAllTypes} */
                                                                      (this.get$Value( [[#variable5637f400]]));
                                                                    } ;
/**
 * Sets the value of the optional_int32 field.
 * @param {number} value The value.
 */
/**
 * Sets the value of the other_all field.
 * @param {proto2.TestAllTypes} value The value.
 */
someprotopackage.TestPackageTypes.prototype. [[#variable5637f5c0]]= function (value)
                                                                    { this.set$Value( [[#variable5637f400]], /** @type {Object} */
                                                                                     (value));
                                                                    } ;
/**
 * Returns whether the optional_int32 field has a value.
 * @return {boolean} true if the field has a value.
 */
/**
 * Returns whether the other_all field has a value.
 * @return {boolean} true if the field has a value.
 */
someprotopackage.TestPackageTypes.prototype. [[#variable5db30d60]]= function ( )
                                                                    { return this.has$Value( [[#variable5637f400]]);
                                                                    } ;
/**
 * Gets the number of values in the optional_int32 field.
 * @return {number}
 */
/**
 * Gets the number of values in the other_all field.
 * @return {number}
 */
someprotopackage.TestPackageTypes.prototype. [[#variable5637f340]]= function ( )
                                                                    { return this.count$Values( [[#variable5637f400]]);
                                                                    } ;
/**
 * Clears the values in the optional_int32 field.
 */
/**
 * Clears the values in the other_all field.
 */
someprotopackage.TestPackageTypes.prototype. [[#variable5637f2e0]]= function ( )
                                                                    { this.clear$Field( [[#variable5637f400]]);
                                                                    } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5637f660]]
getOptionalInt32 
12[[#5637f660]]
getOtherAll 
21[[#5637f400]]
1 
22[[#5637f400]]
2 
31[[#5637f5c0]]
setOptionalInt32 
32[[#5637f5c0]]
setOtherAll 
41[[#5db30d60]]
hasOptionalInt32 
42[[#5db30d60]]
hasOtherAll 
51[[#5637f340]]
optionalInt32Count 
52[[#5637f340]]
otherAllCount 
61[[#5637f2e0]]
clearOptionalInt32 
62[[#5637f2e0]]
clearOtherAll