CloneSet733


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6230.961ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16111
Closure/closure/goog/date/relative.js
26126
Closure/closure/goog/date/relative.js
Clone Instance
1
Line Count
6
Source Line
111
Source File
Closure/closure/goog/date/relative.js

/**
 * Returns a date in short-time format, e.g. 2:50 PM.
 * @param {Date} date The date object.
 * @return {string} The formatted string.
 * @private
 */
goog.date.relative.formatShortTime_=  function (date){
  if (!goog.date.relative.shortTimeFormatter_) {
    goog.date.relative.shortTimeFormatter_=  new goog.i18n.DateTimeFormat(
        goog.i18n.DateTimeFormat.Format.SHORT_TIME);
                                               }
  return goog.date.relative.shortTimeFormatter_.format(date);
                                                     } ;


Clone Instance
2
Line Count
6
Source Line
126
Source File
Closure/closure/goog/date/relative.js

/**
 * Returns a date in full date format, e.g. Tuesday, March 24, 2009.
 * @param {Date} date The date object.
 * @return {string} The formatted string.
 * @private
 */
goog.date.relative.formatFullDate_=  function (date){
  if (!goog.date.relative.fullDateFormatter_) {
    goog.date.relative.fullDateFormatter_=  new goog.i18n.DateTimeFormat(
        goog.i18n.DateTimeFormat.Format.FULL_DATE);
                                              }
  return goog.date.relative.fullDateFormatter_.format(date);
                                                    } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Returns a date in full date format, e.g. Tuesday, March 24, 2009.
 * @param {Date} date The date object.
 * @return {string} The formatted string.
 * @private
 */
/**
 * Returns a date in short-time format, e.g. 2:50 PM.
 * @param {Date} date The date object.
 * @return {string} The formatted string.
 * @private
 */
goog.date.relative. [[#variable62e75ee0]]= function (date)
                                           { if (!goog.date.relative. [[#variable62e75800]])
                                               { goog.date.relative. [[#variable62e75800]]=new goog.i18n.DateTimeFormat(goog.i18n.DateTimeFormat.Format. [[#variable62e75fa0]]);
                                               }
                                             return goog.date.relative. [[#variable62e75800]].format(date);
                                           } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62e75ee0]]
formatFullDate_ 
12[[#62e75ee0]]
formatShortTime_ 
21[[#62e75800]]
fullDateFormatter_ 
22[[#62e75800]]
shortTimeFormatter_ 
31[[#62e75fa0]]
FULL_DATE 
32[[#62e75fa0]]
SHORT_TIME