CloneSet324


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.990ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16264
Closure/closure/goog/date/daterange.js
26280
Closure/closure/goog/date/daterange.js
Clone Instance
1
Line Count
6
Source Line
264
Source File
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);
                                                   } ;


Clone Instance
2
Line Count
6
Source Line
280
Source File
Closure/closure/goog/date/daterange.js

/**
 * 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);
                                                           } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5cc2d2c0]]
lastBusinessWeek 
12[[#5cc2d2c0]]
lastWeek 
21[[#568b2520]]
4 
22[[#568b2520]]
6