Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.990 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 264 | Closure/closure/goog/date/daterange.js |
2 | 6 | 280 | Closure/closure/goog/date/daterange.js |
| ||||
/** * Returns the range that starts seven days before the Monday on or before * today and ends the Sunday on or before yesterday. * @param {Date=} opt_today The date to consider today. Defaults to today. * @return {goog.date.DateRange} The range that starts seven days before the * Monday on or before today and ends the Sunday on or before yesterday. */ goog.date.DateRange.lastWeek= function (opt_today){ var today= new goog.date.Date(opt_today); var start= goog.date.DateRange.offsetInDays_(today, - 7- today.getIsoWeekday( )); var end= goog.date.DateRange.offsetInDays_(start, 6); return new goog.date.DateRange(start, end); } ; |
| ||||
/** * Returns the range that starts seven days before the Monday on or before * today and ends the Friday before today. * @param {Date=} opt_today The date to consider today. Defaults to today. * @return {goog.date.DateRange} The range that starts seven days before the * Monday on or before today and ends the Friday before today. */ goog.date.DateRange.lastBusinessWeek= function (opt_today){ var today= new goog.date.Date(opt_today); var start= goog.date.DateRange.offsetInDays_(today, - 7- today.getIsoWeekday( )); var end= goog.date.DateRange.offsetInDays_(start, 4); return new goog.date.DateRange(start, end); } ; |
| |||
/** * Returns the range that starts seven days before the Monday on or before * today and ends the Friday before today. * @param {Date=} opt_today The date to consider today. Defaults to today. * @return {goog.date.DateRange} The range that starts seven days before the * Monday on or before today and ends the Friday before today. */ /** * Returns the range that starts seven days before the Monday on or before * today and ends the Sunday on or before yesterday. * @param {Date=} opt_today The date to consider today. Defaults to today. * @return {goog.date.DateRange} The range that starts seven days before the * Monday on or before today and ends the Sunday on or before yesterday. */ goog.date.DateRange. [[#variable5cc2d2c0]]= function (opt_today) { var today=new goog.date.Date(opt_today); var start=goog.date.DateRange.offsetInDays_(today,-7-today.getIsoWeekday( )); var end=goog.date.DateRange.offsetInDays_(start, [[#variable568b2520]]); return new goog.date.DateRange(start,end); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5cc2d2c0]] | lastBusinessWeek |
1 | 2 | [[#5cc2d2c0]] | lastWeek |
2 | 1 | [[#568b2520]] | 4 |
2 | 2 | [[#568b2520]] | 6 |