CloneSet111


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6530.985ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16161
Closure/closure/goog/asserts/asserts.js
26178
Closure/closure/goog/asserts/asserts.js
36196
Closure/closure/goog/asserts/asserts.js
46213
Closure/closure/goog/asserts/asserts.js
56230
Closure/closure/goog/asserts/asserts.js
Clone Instance
1
Line Count
6
Source Line
161
Source File
Closure/closure/goog/asserts/asserts.js

/**
 * Checks if the value is a number if goog.asserts.ENABLE_ASSERTS is true.
 * @param {*} value The value to check.
 * @param {string=} opt_message Error message in case of failure.
 * @param {...*} var_args The items to substitute into the failure message.
 * @return {number} The value, guaranteed to be a number when asserts enabled.
 * @throws {goog.asserts.AssertionError} When the value is not a number.
 */
goog.asserts.assertNumber=  function (value, opt_message, var_args){
  if (goog.asserts.ENABLE_ASSERTS
      &&                             !goog.isNumber(value)) {
    goog.asserts.doAssertFailure_('Expected number but got %s.', [value],
         opt_message, Array.prototype.slice.call(arguments, 2));
                                                            }
  return /** @type {number} */
                               (value);
                                                                   } ;


Clone Instance
2
Line Count
6
Source Line
178
Source File
Closure/closure/goog/asserts/asserts.js

/**
 * Checks if the value is a string if goog.asserts.ENABLE_ASSERTS is true.
 * @param {*} value The value to check.
 * @param {string=} opt_message Error message in case of failure.
 * @param {...*} var_args The items to substitute into the failure message.
 * @return {string} The value, guaranteed to be a string when asserts enabled.
 * @throws {goog.asserts.AssertionError} When the value is not a string.
 */
goog.asserts.assertString=  function (value, opt_message, var_args){
  if (goog.asserts.ENABLE_ASSERTS
      &&                             !goog.isString(value)) {
    goog.asserts.doAssertFailure_('Expected string but got %s.', [value],
         opt_message, Array.prototype.slice.call(arguments, 2));
                                                            }
  return /** @type {string} */
                               (value);
                                                                   } ;


Clone Instance
3
Line Count
6
Source Line
196
Source File
Closure/closure/goog/asserts/asserts.js

/**
 * Checks if the value is a function if goog.asserts.ENABLE_ASSERTS is true.
 * @param {*} value The value to check.
 * @param {string=} opt_message Error message in case of failure.
 * @param {...*} var_args The items to substitute into the failure message.
 * @return {!Function} The value, guaranteed to be a function when asserts
 *     enabled.
 * @throws {goog.asserts.AssertionError} When the value is not a function.
 */
goog.asserts.assertFunction=  function (value, opt_message, var_args){
  if (goog.asserts.ENABLE_ASSERTS
      &&                             !goog.isFunction(value)) {
    goog.asserts.doAssertFailure_('Expected function but got %s.', [value],
         opt_message, Array.prototype.slice.call(arguments, 2));
                                                              }
  return /** @type {!Function} */
                                  (value);
                                                                     } ;


Clone Instance
4
Line Count
6
Source Line
213
Source File
Closure/closure/goog/asserts/asserts.js

/**
 * Checks if the value is an Object if goog.asserts.ENABLE_ASSERTS is true.
 * @param {*} value The value to check.
 * @param {string=} opt_message Error message in case of failure.
 * @param {...*} var_args The items to substitute into the failure message.
 * @return {!Object} The value, guaranteed to be a non-null object.
 * @throws {goog.asserts.AssertionError} When the value is not an object.
 */
goog.asserts.assertObject=  function (value, opt_message, var_args){
  if (goog.asserts.ENABLE_ASSERTS
      &&                             !goog.isObject(value)) {
    goog.asserts.doAssertFailure_('Expected object but got %s.', [value],
         opt_message, Array.prototype.slice.call(arguments, 2));
                                                            }
  return /** @type {!Object} */
                                (value);
                                                                   } ;


Clone Instance
5
Line Count
6
Source Line
230
Source File
Closure/closure/goog/asserts/asserts.js

/**
 * Checks if the value is an Array if goog.asserts.ENABLE_ASSERTS is true.
 * @param {*} value The value to check.
 * @param {string=} opt_message Error message in case of failure.
 * @param {...*} var_args The items to substitute into the failure message.
 * @return {!Array} The value, guaranteed to be a non-null array.
 * @throws {goog.asserts.AssertionError} When the value is not an array.
 */
goog.asserts.assertArray=  function (value, opt_message, var_args){
  if (goog.asserts.ENABLE_ASSERTS
      &&                             !goog.isArray(value)) {
    goog.asserts.doAssertFailure_('Expected array but got %s.', [value],
         opt_message, Array.prototype.slice.call(arguments, 2));
                                                           }
  return /** @type {!Array} */
                               (value);
                                                                  } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Checks if the value is an Array if goog.asserts.ENABLE_ASSERTS is true.
 * @param {*} value The value to check.
 * @param {string=} opt_message Error message in case of failure.
 * @param {...*} var_args The items to substitute into the failure message.
 * @return {!Array} The value, guaranteed to be a non-null array.
 * @throws {goog.asserts.AssertionError} When the value is not an array.
 */
/**
 * Checks if the value is an Object if goog.asserts.ENABLE_ASSERTS is true.
 * @param {*} value The value to check.
 * @param {string=} opt_message Error message in case of failure.
 * @param {...*} var_args The items to substitute into the failure message.
 * @return {!Object} The value, guaranteed to be a non-null object.
 * @throws {goog.asserts.AssertionError} When the value is not an object.
 */
/**
 * Checks if the value is a function if goog.asserts.ENABLE_ASSERTS is true.
 * @param {*} value The value to check.
 * @param {string=} opt_message Error message in case of failure.
 * @param {...*} var_args The items to substitute into the failure message.
 * @return {!Function} The value, guaranteed to be a function when asserts
 *     enabled.
 * @throws {goog.asserts.AssertionError} When the value is not a function.
 */
/**
 * Checks if the value is a string if goog.asserts.ENABLE_ASSERTS is true.
 * @param {*} value The value to check.
 * @param {string=} opt_message Error message in case of failure.
 * @param {...*} var_args The items to substitute into the failure message.
 * @return {string} The value, guaranteed to be a string when asserts enabled.
 * @throws {goog.asserts.AssertionError} When the value is not a string.
 */
/**
 * Checks if the value is a number if goog.asserts.ENABLE_ASSERTS is true.
 * @param {*} value The value to check.
 * @param {string=} opt_message Error message in case of failure.
 * @param {...*} var_args The items to substitute into the failure message.
 * @return {number} The value, guaranteed to be a number when asserts enabled.
 * @throws {goog.asserts.AssertionError} When the value is not a number.
 */
goog.asserts. [[#variable5ef15820]]= function (value,opt_message,var_args)
                                     { if (goog.asserts.ENABLE_ASSERTS
                                           && !goog. [[#variable5ef157c0]](value))
                                         { goog.asserts.doAssertFailure_( [[#variable5ef15760]],[value],opt_message,Array.prototype.slice.call(arguments,2));
                                         }
                                       return /** @type {!Array} */ /** @type {!Object} */ /** @type {!Function} */ /** @type {string} */ /** @type {number} */
                                       (value);
                                     } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5ef15820]]
assertArray 
12[[#5ef15820]]
assertObject 
13[[#5ef15820]]
assertFunction 
14[[#5ef15820]]
assertString 
15[[#5ef15820]]
assertNumber 
21[[#5ef157c0]]
isArray 
22[[#5ef157c0]]
isObject 
23[[#5ef157c0]]
isFunction 
24[[#5ef157c0]]
isString 
25[[#5ef157c0]]
isNumber 
31[[#5ef15760]]
'Expected array but got %s.' 
32[[#5ef15760]]
'Expected object but got %s.' 
33[[#5ef15760]]
'Expected function but got %s.' 
34[[#5ef15760]]
'Expected string but got %s.' 
35[[#5ef15760]]
'Expected number but got %s.'