Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 1 | 0.983 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 1635 | Closure/closure/goog/date/date.js |
2 | 5 | 90 | Closure/closure/goog/date/utcdatetime.js |
| ||||
/** * @return {!goog.date.DateTime} A clone of the datetime object. */ goog.date.DateTime.prototype.clone= function ( ) { var date= new goog.date.DateTime(this.date_); date.setFirstDayOfWeek(this.getFirstDayOfWeek( )); date.setFirstWeekCutOffDay(this.getFirstWeekCutOffDay( )); return date; } ; |
| ||||
/** * Clones the UtcDateTime object. * * @return {goog.date.UtcDateTime} A clone of the datetime object. */ goog.date.UtcDateTime.prototype.clone= function ( ) { var date= new goog.date.UtcDateTime(this.date_); date.setFirstDayOfWeek(this.getFirstDayOfWeek( )); date.setFirstWeekCutOffDay(this.getFirstWeekCutOffDay( )); return date; } ; |
| |||
/** * @return {!goog.date.DateTime} A clone of the datetime object. */ /** * Clones the UtcDateTime object. * * @return {goog.date.UtcDateTime} A clone of the datetime object. */ goog.date. [[#variable20db64e0]].prototype.clone= function ( ) { var date=new goog.date. [[#variable20db64e0]](this.date_); date.setFirstDayOfWeek(this.getFirstDayOfWeek( )); date.setFirstWeekCutOffDay(this.getFirstWeekCutOffDay( )); return date; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#20db64e0]] | DateTime |
1 | 2 | [[#20db64e0]] | UtcDateTime |