Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 5 | 0.973 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 1157 | Closure/closure/goog/date/date.js |
2 | 8 | 1179 | 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( ) : ''); } ; |
| ||||
/** * 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' : ''); } ; |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#565ccba0]] | toUTCIsoString |
1 | 2 | [[#565ccba0]] | toIsoString |
2 | 1 | [[#565cc0c0]] | getUTCFullYear |
2 | 2 | [[#565cc0c0]] | getFullYear |
3 | 1 | [[#565ccb20]] | getUTCMonth |
3 | 2 | [[#565ccb20]] | getMonth |
4 | 1 | [[#5e7c5540]] | getUTCDate |
4 | 2 | [[#5e7c5540]] | getDate |
5 | 1 | [[#565ccb80]] | 'Z' |
5 | 2 | [[#565ccb80]] | this.getTimezoneOffsetString( ) |