<commit_before>const path = require("path");

// Export a function. Accept the base config as the only param.
module.exports = function(base, configType) {

  // Make whatever fine-grained changes you need
  base.module.loaders = base.module.loaders.concat([
    { test: /\.md$/, loader: "raw" },
    {  test: /\.json$/, loader: "json" },
    { test: /\.scss$/, loaders: ["style", "css", "sass"], include: path.resolve(__dirname, "../") },
    { test: /\.css$/, loader: "style!css" },
  ]);

  base.resolve.alias = Object.assign(
    base.resolve.alias,
    {
      "meteor/meteor": path.join(__dirname, "../.meteor/mocks/meteor"),
      "meteor/accounts-base": path.join(__dirname, "../.meteor/mocks/accounts-base"),
    }
  );

  base.sassLoader = {
    importer: function(url, prev, done) {
      // XXX quick hack to get root slash working
      if (url[0] === "/") {
        url = path.resolve(process.cwd(), url.slice(1, url.length))
      }
      done({ file: url });
    }
  }

  // Return the altered config
  return base;
};
<commit_msg>point to mocked storybook (#1540)<commit_after>const path = require("path");

// Export a function. Accept the base config as the only param.
module.exports = function(base, configType) {

  // Make whatever fine-grained changes you need
  base.module.loaders = base.module.loaders.concat([
    { test: /\.md$/, loader: "raw" },
    {  test: /\.json$/, loader: "json" },
    { test: /\.scss$/, loaders: ["style", "css", "sass"], include: path.resolve(__dirname, "../") },
    { test: /\.css$/, loader: "style!css" },
  ]);

  base.resolve.alias = Object.assign(
    base.resolve.alias,
    {
      "meteor/meteor": path.join(__dirname, "../.meteor/mocks/meteor"),
      "meteor/accounts-base": path.join(__dirname, "../.meteor/mocks/accounts-base"),
      "meteor/ddp": path.join(__dirname, "../.meteor/mocks/ddp"),
    }
  );

  base.sassLoader = {
    importer: function(url, prev, done) {
      // XXX quick hack to get root slash working
      if (url[0] === "/") {
        url = path.resolve(process.cwd(), url.slice(1, url.length))
      }
      done({ file: url });
    }
  }

  // Return the altered config
  return base;
};

{'fraction_non_alphanumeric': 0.1944954128440367, 'fraction_numerical': 0.003669724770642202, 'mean_word_length': 2.6717171717171717, 'pattern_counts': {'":': 5, '<': 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': '1852345', 'n_tokens_mistral': 771, 'n_tokens_neox': 732, 'n_words': 171}