<commit_before>(function () {
  // Set up local filename and dirname
  // DEV: `__filename` would be a path to Atom since we are loading an HTTP URL
  //   Once we perform a `require`, it will be using our `require's` context :+1:
  // DEV: Ignore JSHint so we can override `__filename` in our closure
  var __filename = '{{!filename}}'; // jshint ignore:line
  var __dirname = '{{!dirname}}';

  // Save original require/require.resolve
  var __require = global.require;
  var __requireResolve = __require.resolve;

  // Add our base directory as the path to find node modules from
  if (!window.__karmaBasePathAddedToModule) {
    module.paths = module.paths.concat(__require('module')._nodeModulePaths('{{!karmaBasePath}}'));
    window.__karmaBasePathAddedToModule = true;
  }

  // Define our patched require/require.resolve
  var __requireFilepath = function (filepath) {
    // If the filepath is relative, prepend the filename
    // e.g. `./submodule` -> `/home/todd/.../integration-test/./submodule`
    if (filepath && filepath[0] === '.') {
      filepath = __dirname + '{{!sep}}' + filepath;
    }

    // Return our filepath
    return filepath;
  };
  // Define our require/resolve.resolve
  global.require = function (filepath) {
    return __require(__requireFilepath(filepath));
  };
  global.require.resolve = function (filepath) {
    return __requireResolve(__requireFilepath(filepath));
  // jscs:disable
  // DEV: Due to the Mustache content, we have to add a `jscs:disable` early
  };

  // Inject our content
  // jshint ignore:start
  {{!content}}
  // jshint ignore:end
  // jscs:enable
}());<commit_msg>Moved back to conditional definitions based on window.require requisite<commit_after>(function () {
  // Set up local filename and dirname
  // DEV: `__filename` would be a path to Atom since we are loading an HTTP URL
  //   Once we perform a `require`, it will be using our `require's` context :+1:
  // DEV: Ignore JSHint so we can override `__filename` in our closure
  // DEV: We use `window.require` sniffing to prevent emulating a Node.js environment in a non-Node.js one
  var __filename = window.require ? '{{!filename}}' : undefined; // jshint ignore:line
  var __dirname = window.require ? '{{!dirname}}' : undefined;

  // Save original require/require.resolve
  if (window.require) {
    var __require = window.require;
    var __requireResolve = __require.resolve;

    // Add our base directory as the path to find node modules from
    if (!window.__karmaBasePathAddedToModule) {
      module.paths = module.paths.concat(__require('module')._nodeModulePaths('{{!karmaBasePath}}'));
      window.__karmaBasePathAddedToModule = true;
    }

    // Define our patched require/require.resolve
    var __requireFilepath = function (filepath) {
      // If the filepath is relative, prepend the filename
      // e.g. `./submodule` -> `/home/todd/.../integration-test/./submodule`
      if (filepath && filepath[0] === '.') {
        filepath = __dirname + '{{!sep}}' + filepath;
      }

      // Return our filepath
      return filepath;
    };
    // Define our require/resolve.resolve
    window.require = function (filepath) {
      return __require(__requireFilepath(filepath));
    };
    window.require.resolve = function (filepath) {
      return __requireResolve(__requireFilepath(filepath));
    };
  // jscs:disable
  // DEV: Due to the Mustache content, we have to add a `jscs:disable` early
  }

  // Inject our content
  // jshint ignore:start
  {{!content}}
  // jshint ignore:end
  // jscs:enable
}());
{'fraction_non_alphanumeric': 0.12777309744453805, 'fraction_numerical': 0.0011232799775344005, 'mean_word_length': 3.225385527876631, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3818127', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1062, 'n_words': 325}