| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 2 | 2 | 0.953 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 744 | Closure/closure/goog/net/xhrio.js |
| 2 | 10 | 354 | Closure/closure/goog/testing/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; }
} ;
|
| ||||
/**
* 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; }
} ;
|
| |||
[[#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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#1fbc05c0]] | /**
* @return {boolean} Whether the request completed with a success.
*/
goog |
| 1 | 2 | [[#1fbc05c0]] | /**
* Has the request compeleted with a success.
* @return {boolean} Whether the request compeleted successfully.
*/
goog.testing |
| 2 | 1 | [[#1fbc1080]] | this.getStatus( ) |
| 2 | 2 | [[#1fbc1080]] | this.statusCode_ |