CloneSet247


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8250.973ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
191157
Closure/closure/goog/date/date.js
281179
Closure/closure/goog/date/date.js
Clone Instance
1
Line Count
9
Source Line
1157
Source File
Closure/closure/goog/date/date.js

/**
 * Returns ISO 8601 string representation of date.
 *
 * @param {boolean=} opt_verbose Whether the verbose format should be used
 *     instead of the default compact one.
 * @param {boolean=} opt_tz Whether the timezone offset should be included
 *     in the string.
 * @return {string} ISO 8601 string representation of date.
 */
goog.date.Date.prototype.toIsoString=  function (opt_verbose, opt_tz){
  var str=  [
    this.getFullYear( ),
    goog.string.padNumber(this.getMonth( )+ 1, 2),
    goog.string.padNumber(this.getDate( ),2)];


  return str.join((opt_verbose)
                  ?               '-'
                  :                     '')+(opt_tz
                                             ?        this.getTimezoneOffsetString( )
                                             :                                         '');
                                                                     } ;


Clone Instance
2
Line Count
8
Source Line
1179
Source File
Closure/closure/goog/date/date.js

/**
 * Returns ISO 8601 string representation of date according to universal time.
 *
 * @param {boolean=} opt_verbose Whether the verbose format should be used
 *     instead of the default compact one.
 * @param {boolean=} opt_tz Whether the timezone offset should be included in
 *     the string.
 * @return {string} ISO 8601 string representation of date according to
 *     universal time.
 */
goog.date.Date.prototype.toUTCIsoString=  function (opt_verbose, opt_tz){
  var str=  [
    this.getUTCFullYear( ),
    goog.string.padNumber(this.getUTCMonth( )+ 1, 2),
    goog.string.padNumber(this.getUTCDate( ),2)];


  return str.join((opt_verbose)
                  ?               '-'
                  :                     '')+  (opt_tz
                                               ?        'Z'
                                               :              '');
                                                                        } ;


Clone AbstractionParameter Count: 5Parameter Bindings

/**
 * Returns ISO 8601 string representation of date according to universal time.
 *
 * @param {boolean=} opt_verbose Whether the verbose format should be used
 *     instead of the default compact one.
 * @param {boolean=} opt_tz Whether the timezone offset should be included in
 *     the string.
 * @return {string} ISO 8601 string representation of date according to
 *     universal time.
 */
/**
 * Returns ISO 8601 string representation of date.
 *
 * @param {boolean=} opt_verbose Whether the verbose format should be used
 *     instead of the default compact one.
 * @param {boolean=} opt_tz Whether the timezone offset should be included
 *     in the string.
 * @return {string} ISO 8601 string representation of date.
 */
goog.date.Date.prototype. [[#variable565ccba0]]= function (opt_verbose,opt_tz)
                                                 { var str=[this. [[#variable565cc0c0]]( ),goog.string.padNumber(this. [[#variable565ccb20]]( )+1,2),goog.string.padNumber(this. [[#variable5e7c5540]]( ),2)];
                                                   return str.join((opt_verbose)
                                                                   ?'-'
                                                                   : '')+(opt_tz
                                                                          ? [[#variable565ccb80]]
                                                                          : '');
                                                 } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#565ccba0]]
toUTCIsoString 
12[[#565ccba0]]
toIsoString 
21[[#565cc0c0]]
getUTCFullYear 
22[[#565cc0c0]]
getFullYear 
31[[#565ccb20]]
getUTCMonth 
32[[#565ccb20]]
getMonth 
41[[#5e7c5540]]
getUTCDate 
42[[#5e7c5540]]
getDate 
51[[#565ccb80]]
'Z' 
52[[#565ccb80]]
this.getTimezoneOffsetString( )