Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 5 | 0.960 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 300 | Closure/closure/goog/net/networktester.js |
2 | 13 | 320 | Closure/closure/goog/net/networktester.js |
| ||||
/** * Callback for the image successfully loading. * @private */ goog.net.NetworkTester.prototype.onImageLoad_= function ( ) { this.logger_.info('Image loaded'); this.onResult( true); } ; /** * Callback for the image failing to load. * @private */ goog.net.NetworkTester.prototype.onImageError_= function ( ) { this.logger_.info('Image load error'); this.onResult( false); } ; |
| ||||
/** * Callback for the image load being aborted. * @private */ goog.net.NetworkTester.prototype.onImageAbort_= function ( ) { this.logger_.info('Image load aborted'); this.onResult( false); } ; /** * Callback for the image load timing out. * @private */ goog.net.NetworkTester.prototype.onImageTimeout_= function ( ) { this.logger_.info('Image load timed out'); this.onResult( false); } ; |
| |||
/** * Callback for the image successfully loading. * @private */ /** * Callback for the image load being aborted. * @private */ goog.net.NetworkTester.prototype. [[#variable480b78e0]]= function ( ) { this.logger_.info( [[#variable480b7880]]); this.onResult( [[#variable480b7740]]); } ; /** * Callback for the image failing to load. * @private */ /** * Callback for the image load timing out. * @private */ goog.net.NetworkTester.prototype. [[#variable480b6c00]]= function ( ) { this.logger_.info( [[#variable480b7780]]); this.onResult( false); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#480b78e0]] | onImageLoad_ |
1 | 2 | [[#480b78e0]] | onImageAbort_ |
2 | 1 | [[#480b7880]] | 'Image loaded' |
2 | 2 | [[#480b7880]] | 'Image load aborted' |
3 | 1 | [[#480b7740]] | true |
3 | 2 | [[#480b7740]] | false |
4 | 1 | [[#480b6c00]] | onImageError_ |
4 | 2 | [[#480b6c00]] | onImageTimeout_ |
5 | 1 | [[#480b7780]] | 'Image load error' |
5 | 2 | [[#480b7780]] | 'Image load timed out' |