<commit_before>var allTestFiles = [];
var TEST_REGEXP = /(spec|test)\.js$/i;

// Get a list of all the test files to include
Object.keys(window.__karma__.files).forEach(function(file) {
  if (TEST_REGEXP.test(file)) {
    // Normalize paths to RequireJS module names.
    // If you require sub-dependencies of test files to be loaded as-is (requiring file extension)
    // then do not normalize the paths
    var normalizedTestModule = file.replace(/^\/base\/|\.js$/g, '');
    allTestFiles.push(normalizedTestModule);
  }
});

require.config({
  // Karma serves files under /base, which is the basePath from your config file
  baseUrl: '/base',

  // dynamically load all test files
  deps: allTestFiles,

  paths: {
    /**
     * Note that if you add any new bower assets you will need to also add a reference
     * to them in the files section of karma.conf.js. This will allow the unit tests to
     * have access to them.
     */
    "text": "bower_components/requirejs-text/text",
    "footwork": "build/footwork-bare-jquery",
    "knockout": "bower_components/knockoutjs/dist/knockout.debug",
    "knockout-validation": "bower_components/knockout-validation/dist/knockout.validation",
    "moment": "bower_components/moment/moment",
    "reqwest": "bower_components/reqwest/reqwest",
    "postal": "bower_components/postal.js/lib/postal",
    "lodash": "bower_components/lodash/lodash",
    "placement": "bower_components/jquery.placement/dist/jquery.placement",
    "Conduit": "bower_components/conduitjs/lib/conduit",
    "jquery": "bower_components/jquery/dist/jquery",
    "datetimepicker": "bower_components/datetimepicker/jquery.datetimepicker",
    "jquery.iframe-transport": "bower_components/jquery.iframe-transport/jquery.iframe-transport",
    "jquery-mousewheel": "bower_components/jquery-mousewheel/jquery.mousewheel",
    "date-functions": "bower_components/php-date-formatter/js/php-date-formatter",
    "cropper": "bower_components/cropper/dist/cropper",
    "history": "bower_components/history.js/scripts/bundled/html5/native.history",
    "noconflict-jquery":  "helper/noconflict-jquery",
    "file-icons": "config/file-icons",
    "common-languages": "config/common-languages"
  },

  // we have to kickoff jasmine, as it is asynchronous
  callback: window.__karma__.start
});<commit_msg>cleaned up test-main.js require paths config<commit_after>var allTestFiles = [];
var TEST_REGEXP = /(spec|test)\.js$/i;

// Get a list of all the test files to include
Object.keys(window.__karma__.files).forEach(function(file) {
  if (TEST_REGEXP.test(file)) {
    // Normalize paths to RequireJS module names.
    // If you require sub-dependencies of test files to be loaded as-is (requiring file extension)
    // then do not normalize the paths
    var normalizedTestModule = file.replace(/^\/base\/|\.js$/g, '');
    allTestFiles.push(normalizedTestModule);
  }
});

require.config({
  // Karma serves files under /base, which is the basePath from your config file
  baseUrl: '/base',

  // dynamically load all test files
  deps: allTestFiles,

  paths: {
    /**
     * Note that if you add any new bower assets you will need to also add a reference
     * to them in the files section of karma.conf.js. This will allow the unit tests to
     * have access to them.
     */
    "text": "bower_components/requirejs-text/text",
    "footwork": "build/footwork-bare-jquery",
    "knockout": "bower_components/knockoutjs/dist/knockout.debug",
    "knockout-validation": "bower_components/knockout-validation/dist/knockout.validation",
    "reqwest": "bower_components/reqwest/reqwest",
    "postal": "bower_components/postal.js/lib/postal",
    "lodash": "bower_components/lodash/lodash",
    "placement": "bower_components/jquery.placement/dist/jquery.placement",
    "jquery": "bower_components/jquery/dist/jquery",
    "history": "bower_components/history.js/scripts/bundled/html5/native.history"
  },

  // we have to kickoff jasmine, as it is asynchronous
  callback: window.__karma__.start
});
{'fraction_non_alphanumeric': 0.13109452736318408, 'fraction_numerical': 0.0004975124378109452, 'mean_word_length': 3.879854368932039, 'pattern_counts': {'":': 30, '<': 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': '1943370', 'n_tokens_mistral': 1301, 'n_tokens_neox': 1248, 'n_words': 303}