Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 5 | 0.953 | SourceElements[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 814 | Closure/closure/goog/date/date.js |
2 | 20 | 880 | Closure/closure/goog/date/date.js |
| ||||
/** * @return {number} The day of week, US style. 0 = Sun, 6 = Sat. */ goog.date.Date.prototype.getDay= function ( ) { return this.date_.getDay( ); } ; /** * @return {number} The day of week, ISO style. 0 = Mon, 6 = Sun. */ goog.date.Date.prototype.getIsoWeekday= function ( ) { return (this.getDay( )+ 6)% 7; } ; /** * @return {number} The day of week according to firstDayOfWeek setting. */ goog.date.Date.prototype.getWeekday= function ( ) { return (this.getIsoWeekday( )- this.firstDayOfWeek_+ 7)% 7; } ; |
| ||||
/** * @return {number} The hours value according to universal time. */ goog.date.Date.prototype.getUTCMinutes= function ( ) { return this.date_.getUTCMinutes( ); } ; /** * @return {number} The day of week according to universal time, ISO style. * 0 = Mon, 6 = Sun. */ goog.date.Date.prototype.getUTCIsoWeekday= function ( ) { return (this.date_.getUTCDay( )+ 6)% 7; } ; /** * @return {number} The day of week according to universal time and * firstDayOfWeek setting. */ goog.date.Date.prototype.getUTCWeekday= function ( ) { return (this.getUTCIsoWeekday( )- this.firstDayOfWeek_+ 7)% 7; } ; |
| |||
/** * @return {number} The hours value according to universal time. */ /** * @return {number} The day of week, US style. 0 = Sun, 6 = Sat. */ goog.date.Date.prototype. [[#variable1fd22140]]= function ( ) { return this.date_. [[#variable1fd22140]]( ); } ; /** * @return {number} The day of week according to universal time, ISO style. * 0 = Mon, 6 = Sun. */ /** * @return {number} The day of week, ISO style. 0 = Mon, 6 = Sun. */ goog.date.Date.prototype. [[#variable1fd22060]]= function ( ) { return ( [[#variable20306b60]]. [[#variable583b93c0]]( )+6)%7; } ; /** * @return {number} The day of week according to universal time and * firstDayOfWeek setting. */ /** * @return {number} The day of week according to firstDayOfWeek setting. */ goog.date.Date.prototype. [[#variable1fd22100]]= function ( ) { return (this. [[#variable1fd22060]]( )-this.firstDayOfWeek_+7)%7; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1fd22140]] | getUTCMinutes |
1 | 2 | [[#1fd22140]] | getDay |
2 | 1 | [[#1fd22060]] | getUTCIsoWeekday |
2 | 2 | [[#1fd22060]] | getIsoWeekday |
3 | 1 | [[#20306b60]] | this.date_ |
3 | 2 | [[#20306b60]] | this |
4 | 1 | [[#583b93c0]] | getUTCDay |
4 | 2 | [[#583b93c0]] | getDay |
5 | 1 | [[#1fd22100]] | getUTCWeekday |
5 | 2 | [[#1fd22100]] | getWeekday |