CloneSet657


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6230.980ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16565
Closure/closure/goog/i18n/datetimeformat.js
26583
Closure/closure/goog/i18n/datetimeformat.js
Clone Instance
1
Line Count
6
Source Line
565
Source File
Closure/closure/goog/i18n/datetimeformat.js

/**
 * Formats TimeZone field following RFC
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @param {goog.i18n.TimeZone=} opt_timeZone This holds current time zone info.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatTimeZoneRFC_=
    function (count, date, opt_timeZone){
  opt_timeZone=  opt_timeZone
                 ||goog.i18n.TimeZone.createTimeZone(date.getTimezoneOffset( ));
  return count<  4
         ?           opt_timeZone.getRFCTimeZoneString(date)
         :           opt_timeZone.getGMTString(date);
                                        } ;


Clone Instance
2
Line Count
6
Source Line
583
Source File
Closure/closure/goog/i18n/datetimeformat.js

/**
 * Generate GMT timeZone string for given date
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date Whose value being evaluated.
 * @param {goog.i18n.TimeZone=} opt_timeZone This holds current time zone info.
 * @return {string} GMT timeZone string.
 * @private
 */
goog.i18n.DateTimeFormat.prototype.formatTimeZone_=
    function (count, date, opt_timeZone){
  opt_timeZone=  opt_timeZone
                 ||goog.i18n.TimeZone.createTimeZone(date.getTimezoneOffset( ));
  return count<  4
         ?           opt_timeZone.getShortName(date)
         :   opt_timeZone.getLongName(date);
                                        } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Generate GMT timeZone string for given date
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date Whose value being evaluated.
 * @param {goog.i18n.TimeZone=} opt_timeZone This holds current time zone info.
 * @return {string} GMT timeZone string.
 * @private
 */
/**
 * Formats TimeZone field following RFC
 *
 * @param {number} count Number of time pattern char repeats, it controls
 *     how a field should be formatted.
 * @param {Date} date It holds the date object to be formatted.
 * @param {goog.i18n.TimeZone=} opt_timeZone This holds current time zone info.
 * @return {string} Formatted string that represent this field.
 * @private
 */
goog.i18n.DateTimeFormat.prototype. [[#variable62dbd7c0]]= function (count,date,opt_timeZone)
                                                           { opt_timeZone=opt_timeZone
                                                                          || goog.i18n.TimeZone.createTimeZone(date.getTimezoneOffset( ));
                                                             return count<4
                                                                    ?opt_timeZone. [[#variable1f790b80]](date)
                                                                    :opt_timeZone. [[#variable1f790a60]](date);
                                                           } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62dbd7c0]]
formatTimeZone_ 
12[[#62dbd7c0]]
formatTimeZoneRFC_ 
21[[#1f790b80]]
getShortName 
22[[#1f790b80]]
getRFCTimeZoneString 
31[[#1f790a60]]
getLongName 
32[[#1f790a60]]
getGMTString