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

module.exports = () => {
  const files = fs.readdirSync("./.cache/gatsby-mdx/mdx-scopes-dir");
  const abs = path.resolve("./.cache/gatsby-mdx/mdx-scopes-dir");
  return (
    files
      .map(
        (file, i) =>
          `const scope_${i} = require('${path.join(abs, file)}').default;`
      )
      .join("\n") +
    `export default {
  ${files.map((_, i) => "...scope_" + i).join(",\n")}
}`
  );
};<commit_msg>Correct path separators on Windows (#246)<commit_after>const fs = require("fs");
const path = require("path");
const slash = require("slash");

module.exports = () => {
  const files = fs.readdirSync("./.cache/gatsby-mdx/mdx-scopes-dir");
  const abs = path.resolve("./.cache/gatsby-mdx/mdx-scopes-dir");
  return (
    files
      .map(
        (file, i) =>
          `const scope_${i} = require('${slash(path.join(abs, file))}').default;`
      )
      .join("\n") +
    `export default {
  ${files.map((_, i) => "...scope_" + i).join(",\n")}
}`
  );
};
{'fraction_non_alphanumeric': 0.23873441994247363, 'fraction_numerical': 0.0028763183125599234, 'mean_word_length': 2.81021897810219, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5929138', 'n_tokens_mistral': 393, 'n_tokens_neox': 386, 'n_words': 66}