Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.970 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 122 | Closure/closure/goog/gears/workerpool.js |
2 | 5 | 136 | Closure/closure/goog/gears/workerpool.js |
| ||||
/** * Creates a new worker. * @param {string} code The code to execute inside the worker. * @return {goog.gears.Worker} The worker that was just created. */ goog.gears.WorkerPool.prototype.createWorker= function (code){ var workerId= this.workerPool_.createWorker(code); var worker= new goog.gears.Worker(this, workerId); this.registerWorker(worker); return worker; } ; |
| ||||
/** * Creates a new worker from a URL. * @param {string} url URL from which to get the code to execute inside the * worker. * @return {goog.gears.Worker} The worker that was just created. */ goog.gears.WorkerPool.prototype.createWorkerFromUrl= function (url){ var workerId= this.workerPool_.createWorkerFromUrl(url); var worker= new goog.gears.Worker(this, workerId); this.registerWorker(worker); return worker; } ; |
| |||
/** * Creates a new worker from a URL. * @param {string} url URL from which to get the code to execute inside the * worker. * @return {goog.gears.Worker} The worker that was just created. */ /** * Creates a new worker. * @param {string} code The code to execute inside the worker. * @return {goog.gears.Worker} The worker that was just created. */ goog.gears.WorkerPool.prototype. [[#variable3cd0a1a0]]= function ( [[#variable3cd0a900]]) { var workerId=this.workerPool_. [[#variable3cd0a1a0]]( [[#variable3cd0a900]]); var worker=new goog.gears.Worker(this,workerId); this.registerWorker(worker); return worker; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3cd0a1a0]] | createWorkerFromUrl |
1 | 2 | [[#3cd0a1a0]] | createWorker |
2 | 1 | [[#3cd0a900]] | url |
2 | 2 | [[#3cd0a900]] | code |