<commit_before>/* jshint node: true */

// Karma configuration
// Generated on Tue Aug 06 2013 14:33:22 GMT-0400 (EDT)

var util = require('util');

module.exports = function(config) {
  'use strict';

  function bound(format) {
    return util.format.bind(util, format);
  }

  var sourceDir = bound('source/chroma_ui/%s');
  var bowerDir = bound(sourceDir('bower_components/%s'));
  var vendorDir = bound(sourceDir('vendor/%s'));
  var imlDir = bound(sourceDir('iml/%s'));
  var commonDir = bound(sourceDir('common/%s'));
  var testDir = bound('test/%s');

  config.set({

    // base path, that will be used to resolve files and exclude
    basePath: '',


    // frameworks to use
    frameworks: ['jasmine'],


    // list of files / patterns to load in the browser
    files: [
      bowerDir('jasmine-stealth/dist/jasmine-stealth.js'),
      bowerDir('jquery/jquery.js'),
      bowerDir('angular/angular.js'),
      bowerDir('angular-resource/angular-resource.js'),
      bowerDir('angular-bindonce/bindonce.js'),
      bowerDir('lodash/dist/lodash.js'),
      bowerDir('underscore-contrib/dist/underscore-contrib.js'),
      bowerDir('momentjs/moment.js'),
      bowerDir('twix/bin/twix.js'),
      bowerDir('d3/d3.js'),
      vendorDir('**/*.js'),
      commonDir('**/*-module.js'),
      commonDir('**/*.js'),
      commonDir('**/*.html'),
      imlDir('**/*-module.js'),
      imlDir('**/*.js'),
      imlDir('**/*.html'),
      bowerDir('angular-mocks/angular-mocks.js'),
      testDir('mocks/mock.js'),
      testDir('**/*-module.js'),
      testDir('data-fixtures/data-fixtures-module.js'),
      testDir('data-fixtures/**/*.js'),
      testDir('fixtures/fixtures.js'),
      testDir('fixtures/**/*.js'),
      testDir('global-setup.js'),
      testDir('matchers/**/*.js'),
      testDir('**/*.js'),
      testDir('templates/**/*.html')
    ],

    // list of files to exclude
    exclude: [
      imlDir('iml.js'),
      imlDir('router.js'),
      testDir('selenium/**/*')
    ],


    // test results reporter to use
    // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
    reporters: ['dots'],

    // Only used if junit reporter activated (ex "--reporters junit" on the command line)
    junitReporter: {
      suite: 'karma-tests (new ui)'
    },


    preprocessors: {
      '**/*.html': ['ng-html2js']
    },

    ngHtml2JsPreprocessor: {
      moduleName: 'templates',
      cacheIdFromPath: function (filepath) {
        return filepath
          .replace(/^source\/chroma_ui\//, '')
          .replace(/^test\/templates\//, '');
      }
    },

    // web server port
    port: 9876,


    // enable / disable colors in the output (reporters and logs)
    colors: true,


    // level of logging
    // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
    logLevel: config.LOG_INFO,


    // enable / disable watching file and executing tests whenever any file changes
    autoWatch: false,


    // Start these browsers, currently available:
    // - Chrome
    // - ChromeCanary
    // - Firefox
    // - Opera
    // - Safari (only Mac)
    // - PhantomJS
    // - IE (only Windows)
    browsers: ['Chrome'],


    // If browser does not capture in given timeout [ms], kill it
    captureTimeout: 60000,


    // Continuous Integration mode
    // if true, it capture browsers, run tests and exit
    singleRun: false
  });
};
<commit_msg>include underscore.function.iterators only in karma, add jasmine helpers.<commit_after>/* jshint node: true */

// Karma configuration
// Generated on Tue Aug 06 2013 14:33:22 GMT-0400 (EDT)

var util = require('util');

module.exports = function(config) {
  'use strict';

  function bound(format) {
    return util.format.bind(util, format);
  }

  var sourceDir = bound('source/chroma_ui/%s');
  var bowerDir = bound(sourceDir('bower_components/%s'));
  var vendorDir = bound(sourceDir('vendor/%s'));
  var imlDir = bound(sourceDir('iml/%s'));
  var commonDir = bound(sourceDir('common/%s'));
  var testDir = bound('test/%s');

  config.set({

    // base path, that will be used to resolve files and exclude
    basePath: '',


    // frameworks to use
    frameworks: ['jasmine'],


    // list of files / patterns to load in the browser
    files: [
      bowerDir('jasmine-stealth/dist/jasmine-stealth.js'),
      bowerDir('jquery/jquery.js'),
      bowerDir('angular/angular.js'),
      bowerDir('angular-resource/angular-resource.js'),
      bowerDir('angular-bindonce/bindonce.js'),
      bowerDir('lodash/dist/lodash.js'),
      bowerDir('underscore-contrib/underscore.function.iterators.js'),
      bowerDir('momentjs/moment.js'),
      bowerDir('twix/bin/twix.js'),
      bowerDir('d3/d3.js'),
      vendorDir('**/*.js'),
      commonDir('**/*-module.js'),
      commonDir('**/*.js'),
      commonDir('**/*.html'),
      imlDir('**/*-module.js'),
      imlDir('**/*.js'),
      imlDir('**/*.html'),
      bowerDir('angular-mocks/angular-mocks.js'),
      testDir('mocks/mock.js'),
      testDir('**/*-module.js'),
      testDir('data-fixtures/data-fixtures-module.js'),
      testDir('data-fixtures/**/*.js'),
      testDir('fixtures/fixtures.js'),
      testDir('fixtures/**/*.js'),
      testDir('global-setup.js'),
      testDir('matchers/**/*.js'),
      bowerDir('jasmine-object-containing/jasmine-object-containing.js'),
      bowerDir('jasmine-n-matchers/jasmine-n-matchers.js'),
      testDir('**/*.js'),
      testDir('templates/**/*.html')
    ],

    // list of files to exclude
    exclude: [
      imlDir('iml.js'),
      imlDir('router.js'),
      testDir('selenium/**/*')
    ],


    // test results reporter to use
    // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
    reporters: ['dots'],

    // Only used if junit reporter activated (ex "--reporters junit" on the command line)
    junitReporter: {
      suite: 'karma-tests (new ui)'
    },


    preprocessors: {
      '**/*.html': ['ng-html2js']
    },

    ngHtml2JsPreprocessor: {
      moduleName: 'templates',
      cacheIdFromPath: function (filepath) {
        return filepath
          .replace(/^source\/chroma_ui\//, '')
          .replace(/^test\/templates\//, '');
      }
    },

    // web server port
    port: 9876,


    // enable / disable colors in the output (reporters and logs)
    colors: true,


    // level of logging
    // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
    logLevel: config.LOG_INFO,


    // enable / disable watching file and executing tests whenever any file changes
    autoWatch: false,


    // Start these browsers, currently available:
    // - Chrome
    // - ChromeCanary
    // - Firefox
    // - Opera
    // - Safari (only Mac)
    // - PhantomJS
    // - IE (only Windows)
    browsers: ['Chrome'],


    // If browser does not capture in given timeout [ms], kill it
    captureTimeout: 60000,


    // Continuous Integration mode
    // if true, it capture browsers, run tests and exit
    singleRun: false
  });
};

{'fraction_non_alphanumeric': 0.17234581807941424, 'fraction_numerical': 0.008166713601802308, 'mean_word_length': 2.607414931437278, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3094748', 'n_tokens_mistral': 2392, 'n_tokens_neox': 2246, 'n_words': 491}