CloneSet501


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14210.994ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11469
Closure/closure/goog/debug/console.js
21482
Closure/closure/goog/debug/divconsole.js
Clone Instance
1
Line Count
14
Source Line
69
Source File
Closure/closure/goog/debug/console.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;
                                                                } ;


Clone Instance
2
Line Count
14
Source Line
82
Source File
Closure/closure/goog/debug/divconsole.js

/**
 * 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;
                                                                   } ;


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62d5a640]]
Console 
12[[#62d5a640]]
DivConsole