CloneSet333


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.982ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17215
Closure/closure/goog/date/daterange.js
27232
Closure/closure/goog/date/daterange.js
Clone Instance
1
Line Count
7
Source Line
215
Source File
Closure/closure/goog/date/daterange.js

/**
 * Returns the range that starts the first of this month and ends the last day
 * of this month.
 * @param {Date=} opt_today The date to consider today. Defaults to today.
 * @return {goog.date.DateRange} The range that starts the first of this month
 *     and ends the last day of this month.
 */
goog.date.DateRange.thisMonth=  function (opt_today){
  var today=  new goog.date.Date(opt_today);
  return new goog.date.DateRange(
      goog.date.DateRange.offsetInMonths_(today, 0),
      goog.date.DateRange.offsetInDays_(
          goog.date.DateRange.offsetInMonths_(today, 1),
          -1));
                                                    } ;


Clone Instance
2
Line Count
7
Source Line
232
Source File
Closure/closure/goog/date/daterange.js

/**
 * Returns the range that starts the first of last month and ends the last day
 * of last month.
 * @param {Date=} opt_today The date to consider today. Defaults to today.
 * @return {goog.date.DateRange} The range that starts the first of last month
 *     and ends the last day of last month.
 */
goog.date.DateRange.lastMonth=  function (opt_today){
  var today=  new goog.date.Date(opt_today);
  return new goog.date.DateRange(
      goog.date.DateRange.offsetInMonths_(today, -1),
      goog.date.DateRange.offsetInDays_(
          goog.date.DateRange.offsetInMonths_(today, 0),
          -1));
                                                    } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Returns the range that starts the first of last month and ends the last day
 * of last month.
 * @param {Date=} opt_today The date to consider today. Defaults to today.
 * @return {goog.date.DateRange} The range that starts the first of last month
 *     and ends the last day of last month.
 */
/**
 * Returns the range that starts the first of this month and ends the last day
 * of this month.
 * @param {Date=} opt_today The date to consider today. Defaults to today.
 * @return {goog.date.DateRange} The range that starts the first of this month
 *     and ends the last day of this month.
 */
goog.date.DateRange. [[#variable5ce7e8a0]]= function (opt_today)
                                            { var today=new goog.date.Date(opt_today);
                                              return new goog.date.DateRange(goog.date.DateRange.offsetInMonths_(today, [[#variable5ce7e840]]),goog.date.DateRange.offsetInDays_(goog.date.DateRange.offsetInMonths_(today, [[#variable5ce7e7c0]]),-1));
                                            } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5ce7e8a0]]
lastMonth 
12[[#5ce7e8a0]]
thisMonth 
21[[#5ce7e840]]
-1 
22[[#5ce7e840]]
0 
31[[#5ce7e7c0]]
0 
32[[#5ce7e7c0]]
1