| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 14 | 2 | 1 | 0.994 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 14 | 69 | Closure/closure/goog/debug/console.js |
| 2 | 14 | 82 | Closure/closure/goog/debug/divconsole.js |
| ||||
/**
* Sets whether we are currently capturing logger output.
* @param {boolean} capturing Whether to capture logger output.
*/
goog.debug.Console.prototype.setCapturing= function (capturing){
if (capturing== this.isCapturing_) {
return;
}
// attach or detach handler from the root logger
var rootLogger= goog.debug.LogManager.getRoot( );
if (capturing) {
rootLogger.addHandler(this.publishHandler_);
}
else {
rootLogger.removeHandler(this.publishHandler_);
this.logBuffer= '';
}
this.isCapturing_= capturing;
} ;
|
| ||||
/**
* Sets whether we are currently capturing logger output.
* @param {boolean} capturing Whether to capture logger output.
*/
goog.debug.DivConsole.prototype.setCapturing= function (capturing){
if (capturing== this.isCapturing_) {
return;
}
// attach or detach handler from the root logger
var rootLogger= goog.debug.LogManager.getRoot( );
if (capturing) {
rootLogger.addHandler(this.publishHandler_);
}
else {
rootLogger.removeHandler(this.publishHandler_);
this.logBuffer= '';
}
this.isCapturing_= capturing;
} ;
|
| |||
/**
* Sets whether we are currently capturing logger output.
* @param {boolean} capturing Whether to capture logger output.
*/
goog.debug. [[#variable62d5a640]].prototype.setCapturing= function (capturing)
{ if (capturing==this.isCapturing_)
{ return;
}
// attach or detach handler from the root logger
var rootLogger=goog.debug.LogManager.getRoot( );
if (capturing)
{ rootLogger.addHandler(this.publishHandler_);
}
else
{ rootLogger.removeHandler(this.publishHandler_);
this.logBuffer='';
}
this.isCapturing_=capturing;
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#62d5a640]] | Console |
| 1 | 2 | [[#62d5a640]] | DivConsole |