CloneSet702


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4230.970ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14198
Closure/closure/goog/date/date.js
24211
Closure/closure/goog/date/date.js
Clone Instance
1
Line Count
4
Source Line
198
Source File
Closure/closure/goog/date/date.js

/**
 * Returns true if the 2 dates are in the same day.
 * @param {Date} date The time to check.
 * @param {Date=} opt_now The current time.
 * @return {boolean} Whether the dates are on the same day.
 */
goog.date.isSameDay=  function (date, opt_now){
  var now=  opt_now
            ||         new Date(goog.now( ));
  return date.getDate( )== now.getDate( )
         &&goog.date.isSameMonth(date, now);
                                              } ;


Clone Instance
2
Line Count
4
Source Line
211
Source File
Closure/closure/goog/date/date.js

/**
 * Returns true if the 2 dates are in the same month.
 * @param {Date} date The time to check.
 * @param {Date=} opt_now The current time.
 * @return {boolean} Whether the dates are in the same calendar month.
 */
goog.date.isSameMonth=  function (date, opt_now){
  var now=  opt_now
            ||         new Date(goog.now( ));
  return date.getMonth( )== now.getMonth( )
         &&goog.date.isSameYear(date, now);
                                                } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Returns true if the 2 dates are in the same month.
 * @param {Date} date The time to check.
 * @param {Date=} opt_now The current time.
 * @return {boolean} Whether the dates are in the same calendar month.
 */
/**
 * Returns true if the 2 dates are in the same day.
 * @param {Date} date The time to check.
 * @param {Date=} opt_now The current time.
 * @return {boolean} Whether the dates are on the same day.
 */
goog.date. [[#variable43e62760]]= function (date,opt_now)
                                  { var now=opt_now
                                            || new Date(goog.now( ));
                                    return date. [[#variable43e626e0]]( )==now. [[#variable43e626e0]]( )
                                           && goog.date. [[#variable43e62680]](date,now);
                                  } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#43e62760]]
isSameMonth 
12[[#43e62760]]
isSameDay 
21[[#43e626e0]]
getMonth 
22[[#43e626e0]]
getDate 
31[[#43e62680]]
isSameYear 
32[[#43e62680]]
isSameMonth