Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 4 | 0.951 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 143 | Closure/closure/goog/gears/urlcapture.js |
2 | 7 | 157 | Closure/closure/goog/gears/urlcapture.js |
| ||||
/** * Lazy initializer for resource store. * @return {GearsResourceStore} Gears resource store. * @private */ goog.gears.UrlCapture.prototype.getResourceStore_= function ( ) { if (!this.resourceStore_) { this.logger_.info('creating resource store: '+ this.storeName_); this.resourceStore_= this.localServer_['createStore']( this.storeName_, this.requiredCookie_); } return this.resourceStore_; } ; |
| ||||
/** * Determine if the UrlCapture has been created. * @return {boolean} True if it has been created. */ goog.gears.UrlCapture.prototype.exists= function ( ) { if (!this.resourceStore_) { this.logger_.info('opening resource store: '+ this.storeName_); this.resourceStore_= this.localServer_['openStore']( this.storeName_, this.requiredCookie_); } return !!this.resourceStore_; } ; |
| |||
/** * Determine if the UrlCapture has been created. * @return {boolean} True if it has been created. */ /** * Lazy initializer for resource store. * @return {GearsResourceStore} Gears resource store. * @private */ goog.gears.UrlCapture.prototype. [[#variable1fbd0360]]= function ( ) { if (!this.resourceStore_) { this.logger_.info( [[#variable1fbd0300]]+this.storeName_); this.resourceStore_=this.localServer_[ [[#variable1fbd0280]]](this.storeName_,this.requiredCookie_); } return [[#variable1fbd0200]]; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1fbd0360]] | exists |
1 | 2 | [[#1fbd0360]] | getResourceStore_ |
2 | 1 | [[#1fbd0300]] | 'opening resource store: ' |
2 | 2 | [[#1fbd0300]] | 'creating resource store: ' |
3 | 1 | [[#1fbd0280]] | 'openStore' |
3 | 2 | [[#1fbd0280]] | 'createStore' |
4 | 1 | [[#1fbd0200]] | !!this.resourceStore_ |
4 | 2 | [[#1fbd0200]] | this.resourceStore_ |