<commit_before>if (process.env.NODE_ENV !== 'production') {
  const runtime = require('react-refresh/runtime');

  // The react refresh babel plugin only registers functions. For react
  // to update other types of exports (such as classes), we have to
  // register them
  function registerExportsForReactRefresh (moduleId, moduleExports) {
    runtime.register(moduleExports, moduleId + ' %exports%');

    if (moduleExports == null || typeof moduleExports !== 'object') {
      // Exit if we can't iterate over exports.
      return;
    }

    for (var key in moduleExports) {
      var desc = Object.getOwnPropertyDescriptor(moduleExports, key);
      if (desc && desc.get) {
        // Don't invoke getters as they may have side effects.
        continue;
      }
  
      var exportValue = moduleExports[key];
      var typeID = moduleId + ' %exports% ' + key;
      runtime.register(exportValue, typeID);
    }
  };

  // Modules that only export components become React Refresh boundaries.
  function isReactRefreshBoundary (moduleExports) {
    if (runtime.isLikelyComponentType(moduleExports)) {
      return true;
    }
    if (moduleExports == null || typeof moduleExports !== 'object') {
      // Exit if we can't iterate over exports.
      return false;
    }

    var hasExports = false;
    var onlyExportComponents = true;

    for (var key in moduleExports) {
      hasExports = true;

      var desc = Object.getOwnPropertyDescriptor(moduleExports, key);
      if (desc && desc.get) {
        // Don't invoke getters as they may have side effects.
        return false;
      }

      if (!runtime.isLikelyComponentType(moduleExports[key])) {
        onlyExportComponents = false;
      }
    }

    return hasExports && onlyExportComponents;
  };

  runtime.injectIntoGlobalHook(window);
  // window.$RefreshReg$ = () => { };
  // window.$RefreshSig$ = () => type => type;

  module.onRequire({
    before(module) {
      if (module.loaded) {
        // The module was already executed
        return;
      }

      var prevRefreshReg = window.$RefreshReg$;
      var prevRefreshSig = window.$RefreshSig$;
  
      window.RefreshRuntime = runtime;
      window.$RefreshReg$ = (type, _id) => {
        // Note module.id is webpack-specific, this may vary in other bundlers
        const fullId = module.id + ' ' + _id;
        RefreshRuntime.register(type, fullId);
      }
      window.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform;

      return {
        prevRefreshReg,
        prevRefreshSig
      };
    },
    after(module, beforeData) {
      // TODO: handle modules with errors<commit_msg>Fix fast refresh error when HMR is not available<commit_after>if (process.env.NODE_ENV !== 'production' && module.hot) {
  const runtime = require('react-refresh/runtime');

  // The react refresh babel plugin only registers functions. For react
  // to update other types of exports (such as classes), we have to
  // register them
  function registerExportsForReactRefresh (moduleId, moduleExports) {
    runtime.register(moduleExports, moduleId + ' %exports%');

    if (moduleExports == null || typeof moduleExports !== 'object') {
      // Exit if we can't iterate over exports.
      return;
    }

    for (var key in moduleExports) {
      var desc = Object.getOwnPropertyDescriptor(moduleExports, key);
      if (desc && desc.get) {
        // Don't invoke getters as they may have side effects.
        continue;
      }
  
      var exportValue = moduleExports[key];
      var typeID = moduleId + ' %exports% ' + key;
      runtime.register(exportValue, typeID);
    }
  };

  // Modules that only export components become React Refresh boundaries.
  function isReactRefreshBoundary (moduleExports) {
    if (runtime.isLikelyComponentType(moduleExports)) {
      return true;
    }
    if (moduleExports == null || typeof moduleExports !== 'object') {
      // Exit if we can't iterate over exports.
      return false;
    }

    var hasExports = false;
    var onlyExportComponents = true;

    for (var key in moduleExports) {
      hasExports = true;

      var desc = Object.getOwnPropertyDescriptor(moduleExports, key);
      if (desc && desc.get) {
        // Don't invoke getters as they may have side effects.
        return false;
      }

      if (!runtime.isLikelyComponentType(moduleExports[key])) {
        onlyExportComponents = false;
      }
    }

    return hasExports && onlyExportComponents;
  };

  runtime.injectIntoGlobalHook(window);

  module.onRequire({
    before(module) {
      if (module.loaded) {
        // The module was already executed
        return;
      }

      var prevRefreshReg = window.$RefreshReg$;
      var prevRefreshSig = window.$RefreshSig$;
  
      window.RefreshRuntime = runtime;
      window.$RefreshReg$ = (type, _id) => {
        // Note module.id is webpack-specific, this may vary in other bundlers
        const fullId = module.id + ' ' + _id;
        RefreshRuntime.register(type, fullId);
      }
      window.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform;

      return {
        prevRefreshReg,
        prevRefreshSig
      };
    },
    after(module, beforeData) {
      // TODO: handle modules with errors
{'fraction_non_alphanumeric': 0.10430968726163234, 'fraction_numerical': 0.0, 'mean_word_length': 2.629757785467128, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '6427022', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1444, 'n_words': 416}