CloneSet180


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

/**
 * Static send that creates a short lived instance of XhrIo to send the
 * request.
 * @see goog.net.XhrIo.cleanupAllPendingStaticSends
 * @param {string|goog.Uri} url Uri to make request to.
 * @param {Function=} opt_callback Callback function for when request is
 *     complete.
 * @param {string=} opt_method Send method, default: GET.
 * @param {string|GearsBlob=} opt_content Post data. This can be a Gears blob
 *     if the underlying HTTP request object is a Gears HTTP request.
 * @param {Object|goog.structs.Map=} opt_headers Map of headers to add to the
 *     request.
 * @param {number=} opt_timeoutInterval Number of milliseconds after which an
 *     incomplete request will be aborted; 0 means no timeout is set.
 */
goog.net.XhrIo.send=  function (url, opt_callback, opt_method, opt_content,
                                opt_headers, opt_timeoutInterval){
  var x=  new goog.net.XhrIo( );
  goog.net.XhrIo.sendInstances_.push(x);
  if (opt_callback) {
    goog.events.listen(x, goog.net.EventType.COMPLETE, opt_callback);
                    }
  goog.events.listen(x,
                     goog.net.EventType.READY,
                     goog.partial(goog.net.XhrIo.cleanupSend_, x));
  if (opt_timeoutInterval) {
    x.setTimeoutInterval(opt_timeoutInterval);
                           }
  x.send(url, opt_method, opt_content, opt_headers);
                                                                 } ;


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

/**
 * Simulates the static XhrIo send method.
 * @param {string} url Uri to make request to.
 * @param {Function=} opt_callback Callback function for when request is
 *     complete.
 * @param {string=} opt_method Send method, default: GET.
 * @param {string=} opt_content Post data.
 * @param {Object|goog.structs.Map=} opt_headers Map of headers to add to the
 *     request.
 * @param {number=} opt_timeoutInterval Number of milliseconds after which an
 *     incomplete request will be aborted; 0 means no timeout is set.
 */
goog.testing.net.XhrIo.send=  function (url, opt_callback, opt_method,
                                        opt_content, opt_headers,
                                        opt_timeoutInterval){
  var x=  new goog.testing.net.XhrIo( );
  goog.testing.net.XhrIo.sendInstances_.push(x);
  if (opt_callback) {
    goog.events.listen(x, goog.net.EventType.COMPLETE, opt_callback);
                    }
  goog.events.listen(x,
                     goog.net.EventType.READY,
                     goog.partial(goog.testing.net.XhrIo.cleanupSend_, x));
  if (opt_timeoutInterval) {
    x.setTimeoutInterval(opt_timeoutInterval);
                           }
  x.send(url, opt_method, opt_content, opt_headers);
                                                            } ;


Clone AbstractionParameter Count: 1Parameter Bindings

 [[#variable614916e0]].net.XhrIo.send= function (url,opt_callback,opt_method,opt_content,opt_headers,opt_timeoutInterval)
                                       { var x=new [[#variable614916e0]].net.XhrIo( );
                                          [[#variable614916e0]].net.XhrIo.sendInstances_.push(x);
                                         if (opt_callback)
                                           { goog.events.listen(x,goog.net.EventType.COMPLETE,opt_callback);
                                           }
                                         goog.events.listen(x,goog.net.EventType.READY,goog.partial( [[#variable614916e0]].net.XhrIo.cleanupSend_,x));
                                         if (opt_timeoutInterval)
                                           { x.setTimeoutInterval(opt_timeoutInterval);
                                           }
                                         x.send(url,opt_method,opt_content,opt_headers);
                                       } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#614916e0]]
/**
 * Static send that creates a short lived instance of XhrIo to send the
 * request.
 * @see goog.net.XhrIo.cleanupAllPendingStaticSends
 * @param {string|goog.Uri} url Uri to make request to.
 * @param {Function=} opt_callback Callback function for when request is
 *     complete.
 * @param {string=} opt_method Send method, default: GET.
 * @param {string|GearsBlob=} opt_content Post data. This can be a Gears blob
 *     if the underlying HTTP request object is a Gears HTTP request.
 * @param {Object|goog.structs.Map=} opt_headers Map of headers to add to the
 *     request.
 * @param {number=} opt_timeoutInterval Number of milliseconds after which an
 *     incomplete request will be aborted; 0 means no timeout is set.
 */
goog 
12[[#614916e0]]
/**
 * Simulates the static XhrIo send method.
 * @param {string} url Uri to make request to.
 * @param {Function=} opt_callback Callback function for when request is
 *     complete.
 * @param {string=} opt_method Send method, default: GET.
 * @param {string=} opt_content Post data.
 * @param {Object|goog.structs.Map=} opt_headers Map of headers to add to the
 *     request.
 * @param {number=} opt_timeoutInterval Number of milliseconds after which an
 *     incomplete request will be aborted; 0 means no timeout is set.
 */
goog.testing