<commit_before>(function(){
  var ConsoleTestRunner = Evidence.AutoRunner.RUNNERS.console,
      ConsoleTestResult = Evidence.UI.Console.TestResult,
      Logger = Evidence.UI.Console.Logger,
      AutoRunner = Evidence.AutoRunner,
      printf = Evidence.UI.printf

  function inherit(superclass, extra) {
    var klass = function(){
      this.initialize.apply(this, arguments)
    }
    var tmp = function(){}
    tmp.prototype = superclass.prototype
    klass.prototype = new tmp()
    klass.prototype.constructor = klass
    klass.prototype.initialize = function(){
      superclass.apply(this, arguments)
    }

    if (extra) {
      var methods = extra.call(klass, superclass.prototype)
      for (var method in methods) klass.prototype[method] = methods[method]
    }
    return klass
  }

  var TestRunner = inherit(ConsoleTestRunner, function(_super) {
    Evidence.AutoRunner.RUNNERS.zepto = this
    return {
      _makeResult: function() { return new TestResult(this.logger) }
    }
  })

  var TestResult = inherit(ConsoleTestResult, function(_super) {
    return {
      stop: function(t1) {
        _super.stop.call(this, t1)
        displayResults(this, (t1-this.t0)/1000)
        checkLeakedGlobals()
      }
    }
  })

  /* JHW = Jasmine Headless WebKit */

  var JHWLogger = inherit(Logger, function(_super) {
    Evidence.AutoRunner.LOGGERS.jhw = this
    return {
      log: function(level, msg, params) {
        level = level || Logger.NOTSET;
        if (level >= this.level) {
          if (params) msg = printf(msg, params)
          if (level >= Logger.WARN) console.log(msg)
          else JHW.log(msg)
        }
      }
    }
  })

  var JHWTestRunner = inherit(ConsoleTestRunner, function(_super) {
    Evidence.AutoRunner.RUNNERS.jhw = this
    return {
      _makeResult: function() { return new JHWTestResult(this.logger) }
    }
  })

  var JHWTestResult = inherit(Evidence.TestResult, function(_super) {<commit_msg>downgrade some test runner info statements to debug level<commit_after>(function(){
  var ConsoleTestRunner = Evidence.AutoRunner.RUNNERS.console,
      ConsoleTestResult = Evidence.UI.Console.TestResult,
      Logger = Evidence.UI.Console.Logger,
      AutoRunner = Evidence.AutoRunner,
      printf = Evidence.UI.printf

  function inherit(superclass, extra) {
    var klass = function(){
      this.initialize.apply(this, arguments)
    }
    var tmp = function(){}
    tmp.prototype = superclass.prototype
    klass.prototype = new tmp()
    klass.prototype.constructor = klass
    klass.prototype.initialize = function(){
      superclass.apply(this, arguments)
    }

    if (extra) {
      var methods = extra.call(klass, superclass.prototype)
      for (var method in methods) klass.prototype[method] = methods[method]
    }
    return klass
  }

  var TestRunner = inherit(ConsoleTestRunner, function(_super) {
    Evidence.AutoRunner.RUNNERS.zepto = this
    return {
      _makeResult: function() { return new TestResult(this.logger) }
    }
  })

  var TestResult = inherit(ConsoleTestResult, function(_super) {
    return {
      start: function(t0) {
        Evidence.TestResult.prototype.start.call(this, t0)
        this.logger.debug('Started tests.')
      },
      stop: function(t1) {
        _super.stop.call(this, t1)
        displayResults(this, (t1-this.t0)/1000)
        checkLeakedGlobals()
      },
      pauseTest: function(testcase) {
        this.logger.debug('Paused testcase ' + testcase + '.')
      },
      restartTest: function(testcase) {
        this.logger.debug('Restarted testcase ' + testcase + '.')
      },
      startSuite: function(suite) {
        this.logger.debug('Started suite ' + suite + '.')
      }
    }
  })

  /* JHW = Jasmine Headless WebKit */

  var JHWLogger = inherit(Logger, function(_super) {
    Evidence.AutoRunner.LOGGERS.jhw = this
    return {
      log: function(level, msg, params) {
        level = level || Logger.NOTSET;
        if (level >= this.level) {
          if (params) msg = printf(msg, params)
          if (level >= Logger.WARN) console.log(msg)
          else JHW.log(msg)
        }
      }
    }
  })

  var JHWTestRunner = inherit(ConsoleTestRunner, function(_super) {
    Evidence.AutoRunner.RUNNERS.jhw = this
    return {
      _makeResult: function() { return new JHWTestResult(this.logger) }
    }
  })

  var JHWTestResult = inherit(Evidence.TestResult, function(_super) {
{'fraction_non_alphanumeric': 0.11702127659574468, 'fraction_numerical': 0.004074241738343142, 'mean_word_length': 2.7322635135135136, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7285188', 'n_tokens_mistral': 1359, 'n_tokens_neox': 1334, 'n_words': 271}