CloneSet723


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.953ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110744
Closure/closure/goog/net/xhrio.js
210354
Closure/closure/goog/testing/net/xhrio.js
Clone Instance
1
Line Count
10
Source Line
744
Source File
Closure/closure/goog/net/xhrio.js

/**
 * @return {boolean} Whether the request completed with a success.
 */
goog.net.XhrIo.prototype.isSuccess=  function ( )
                                                {
  switch (this.getStatus( ))
  { case 0:         // Used for local XHR requests
    case 200:       // Http Success
    case 204:       // Http Success - no content
    case 304:       // Http Cache
      return true;

    default:
      return false; }
                                                } ;


Clone Instance
2
Line Count
10
Source Line
354
Source File
Closure/closure/goog/testing/net/xhrio.js

/**
 * Has the request compeleted with a success.
 * @return {boolean} Whether the request compeleted successfully.
 */
goog.testing.net.XhrIo.prototype.isSuccess=  function ( )
                                                        {
  switch (this.statusCode_)
  { case 0:         // Used for local XHR requests
    case 200:       // HTTP Success
    case 204:       // HTTP Success - no content
    case 304:       // HTTP Cache
      return true;

    default:
      return false; }
                                                        } ;


Clone AbstractionParameter Count: 2Parameter Bindings

 [[#variable1fbc05c0]].net.XhrIo.prototype.isSuccess= function ( )
                                                      { switch ( [[#variable1fbc1080]])
                                                        { case 0: // Used for local XHR requests
                                                          case 200: // Http Success // HTTP Success
                                                          case 204: // Http Success - no content // HTTP Success - no content
                                                          case 304: // Http Cache // HTTP Cache
                                                            return true;
                                                          default:
                                                            return false; }
                                                      } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1fbc05c0]]
/**
 * @return {boolean} Whether the request completed with a success.
 */
goog 
12[[#1fbc05c0]]
/**
 * Has the request compeleted with a success.
 * @return {boolean} Whether the request compeleted successfully.
 */
goog.testing 
21[[#1fbc1080]]
this.getStatus( ) 
22[[#1fbc1080]]
this.statusCode_