CloneSet132


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

/**
 * Returns ISO 8601 string representation of date/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/time.
 */
goog.date.DateTime.prototype.toIsoString=  function (opt_verbose, opt_tz){
  var dateString=  goog.date.Date.prototype.toIsoString.call(this, opt_verbose);

  if (opt_verbose) {
    return dateString+  ' '+
        goog.string.padNumber(this.getHours( ),2)+  ':'+
        goog.string.padNumber(this.getMinutes( ),2)+  ':'+
        goog.string.padNumber(this.getSeconds( ),2)+
        (opt_tz
         ?        this.getTimezoneOffsetString( )
         :                                         '');
                   }
  return dateString+  'T'+
      goog.string.padNumber(this.getHours( ),2)+
      goog.string.padNumber(this.getMinutes( ),2)+
      goog.string.padNumber(this.getSeconds( ),2)+
      (opt_tz
       ?        this.getTimezoneOffsetString( )
       :                                         '');
                                                                         } ;


Clone Instance
2
Line Count
16
Source Line
1515
Source File
Closure/closure/goog/date/date.js

/**
 * Returns ISO 8601 string representation of date/time according to universal
 * time.
 *
 * @param {boolean=} opt_verbose Whether the opt_verbose format should be
 *     returned instead of the default compact one.
 * @param {boolean=} opt_tz Whether the the timezone offset should be included
 *     in the string.
 * @return {string} ISO 8601 string representation of date/time according to
 *     universal time.
 */
goog.date.DateTime.prototype.toUTCIsoString=  function (opt_verbose, opt_tz){
  var dateStr=  goog.date.Date.prototype.toUTCIsoString.call(this, opt_verbose);

  if (opt_verbose) {
    return dateStr+  ' '+
        goog.string.padNumber(this.getUTCHours( ),2)+  ':'+
        goog.string.padNumber(this.getUTCMinutes( ),2)+  ':'+
        goog.string.padNumber(this.getUTCSeconds( ),2)+
        (opt_tz
         ?        'Z'
         :              '');
                   }
  return dateStr+  'T'+
      goog.string.padNumber(this.getUTCHours( ),2)+
      goog.string.padNumber(this.getUTCMinutes( ),2)+
      goog.string.padNumber(this.getUTCSeconds( ),2)+
      (opt_tz
       ?        'Z'
       :              '');
                                                                            } ;


Clone AbstractionParameter Count: 6Parameter Bindings

/**
 * Returns ISO 8601 string representation of date/time according to universal
 * time.
 *
 * @param {boolean=} opt_verbose Whether the opt_verbose format should be
 *     returned instead of the default compact one.
 * @param {boolean=} opt_tz Whether the the timezone offset should be included
 *     in the string.
 * @return {string} ISO 8601 string representation of date/time according to
 *     universal time.
 */
/**
 * Returns ISO 8601 string representation of date/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/time.
 */
goog.date.DateTime.prototype. [[#variable5f3ad2e0]]= function (opt_verbose,opt_tz)
                                                     { var [[#variable5f3ad200]]=goog.date.Date.prototype. [[#variable5f3ad2e0]].call(this,opt_verbose);
                                                       if (opt_verbose)
                                                         { return [[#variable5f3ad200]]+' '+goog.string.padNumber(this. [[#variable5ef20100]]( ),2)+':'+goog.string.padNumber(this. [[#variable5e76f180]]( ),2)+':'+goog.string.padNumber(this. [[#variable5f3ad0e0]]( ),2)+(opt_tz
                                                                                                                                                                                                                                                                             ? [[#variable5f3ace60]]
                                                                                                                                                                                                                                                                             : '');
                                                         }
                                                       return [[#variable5f3ad200]]+'T'+goog.string.padNumber(this. [[#variable5ef20100]]( ),2)+goog.string.padNumber(this. [[#variable5e76f180]]( ),2)+goog.string.padNumber(this. [[#variable5f3ad0e0]]( ),2)+(opt_tz
                                                                                                                                                                                                                                                                 ? [[#variable5f3ace60]]
                                                                                                                                                                                                                                                                 : '');
                                                     } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f3ad2e0]]
toUTCIsoString 
12[[#5f3ad2e0]]
toIsoString 
21[[#5f3ad200]]
dateStr 
22[[#5f3ad200]]
dateString 
31[[#5ef20100]]
getUTCHours 
32[[#5ef20100]]
getHours 
41[[#5e76f180]]
getUTCMinutes 
42[[#5e76f180]]
getMinutes 
51[[#5f3ad0e0]]
getUTCSeconds 
52[[#5f3ad0e0]]
getSeconds 
61[[#5f3ace60]]
'Z' 
62[[#5f3ace60]]
this.getTimezoneOffsetString( )