Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 3 | 0.961 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 111 | Closure/closure/goog/date/relative.js |
2 | 6 | 126 | 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); } ; |
| ||||
/** * 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); } ; |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62e75ee0]] | formatFullDate_ |
1 | 2 | [[#62e75ee0]] | formatShortTime_ |
2 | 1 | [[#62e75800]] | fullDateFormatter_ |
2 | 2 | [[#62e75800]] | shortTimeFormatter_ |
3 | 1 | [[#62e75fa0]] | FULL_DATE |
3 | 2 | [[#62e75fa0]] | SHORT_TIME |