CloneSet735


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13240.953ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113775
Closure/closure/goog/net/xhrio.js
213797
Closure/closure/goog/net/xhrio.js
Clone Instance
1
Line Count
13
Source Line
775
Source File
Closure/closure/goog/net/xhrio.js

/**
 * Get the status from the Xhr object
 * Will only return correct result when called from the context of a callback
 * @return {number} Http status.
 */
goog.net.XhrIo.prototype.getStatus=  function ( )
                                                {
  /**
   * IE doesn't like you checking status until the readystate is greater than 2
   * (i.e. it is recieving or complete).  The try/catch is used for when the
   * page is unloading and an ERROR_NOT_AVAILABLE may occur when accessing xhr_.
   * @preserveTry
   */
  try {
    return this.getReadyState( )> goog.net.XmlHttp.ReadyState.LOADED
           ?this.xhr_.status
           :               -1;
      }
  catch (  e) {
    this.logger_.warning('Can not get status: '+  e.message);
    return -1;
              }
                                                } ;


Clone Instance
2
Line Count
13
Source Line
797
Source File
Closure/closure/goog/net/xhrio.js

/**
 * Get the status text from the Xhr object
 * Will only return correct result when called from the context of a callback
 * @return {string} Status text.
 */
goog.net.XhrIo.prototype.getStatusText=  function ( )
                                                    {
  /**
   * IE doesn't like you checking status until the readystate is greater than 2
   * (i.e. it is recieving or complete).  The try/catch is used for when the
   * page is unloading and an ERROR_NOT_AVAILABLE may occur when accessing xhr_.
   * @preserveTry
   */
  try {
    return this.getReadyState( )> goog.net.XmlHttp.ReadyState.LOADED
           ?this.xhr_.statusText
           :                   '';
      }
  catch (  e) {
    this.logger_.fine('Can not get status: '+  e.message);
    return '';
              }
                                                    } ;


Clone AbstractionParameter Count: 4Parameter Bindings

/**
 * Get the status text from the Xhr object
 * Will only return correct result when called from the context of a callback
 * @return {string} Status text.
 */
/**
 * Get the status from the Xhr object
 * Will only return correct result when called from the context of a callback
 * @return {number} Http status.
 */
goog.net.XhrIo.prototype. [[#variable3df90fe0]]= function ( )
                                                 {
                                                   /**
                                                      * IE doesn't like you checking status until the readystate is greater than 2
                                                      * (i.e. it is recieving or complete).  The try/catch is used for when the
                                                      * page is unloading and an ERROR_NOT_AVAILABLE may occur when accessing xhr_.
                                                      * @preserveTry
                                                      */
                                                   try
                                                     { return this.getReadyState( )>goog.net.XmlHttp.ReadyState.LOADED
                                                              ?this.xhr_. [[#variable3df90f60]]
                                                              : [[#variable3df90f00]];
                                                     }
                                                   catch (e)
                                                     { this.logger_. [[#variable3df90de0]]('Can not get status: '+e.message);
                                                       return [[#variable3df90f00]];
                                                     }
                                                 } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3df90fe0]]
getStatusText 
12[[#3df90fe0]]
getStatus 
21[[#3df90f60]]
statusText 
22[[#3df90f60]]
status 
31[[#3df90f00]]
'' 
32[[#3df90f00]]
-1 
41[[#3df90de0]]
fine 
42[[#3df90de0]]
warning