<commit_before>module.exports = write;

const { promisify } = require("util");
const { resolve, dirname } = require("path");
const writeFile = promisify(require("fs").writeFile);

const prettier = require("prettier");

const mkdirp = promisify(require("mkdirp"));

async function write(fixturesPath, fixtures) {
  const path = resolve(__dirname, "..", "scenarios", fixturesPath);

  await mkdirp(dirname(path));
  return Promise.all([<commit_msg>build: adapt for mkdirp v1<commit_after>module.exports = write;

const { promisify } = require("util");
const { resolve, dirname } = require("path");
const writeFile = promisify(require("fs").writeFile);

const prettier = require("prettier");
const mkdirp = require("mkdirp");

async function write(fixturesPath, fixtures) {
  const path = resolve(__dirname, "..", "scenarios", fixturesPath);

  await mkdirp(dirname(path));
  return Promise.all([
{'fraction_non_alphanumeric': 0.15789473684210525, 'fraction_numerical': 0.0011198208286674132, 'mean_word_length': 6.327868852459017, 'pattern_counts': {'":': 0, '<': 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': '2299182', 'n_tokens_mistral': 284, 'n_tokens_neox': 273, 'n_words': 65}