<commit_before>'use strict';

var fs = require('fs');
var path = require('path');

module.exports.writeFileSync = writeFileSync;

/**
 * Write file to the `out` directory
 * NOTE: this method is used for test in node.js and disabled in browserify
 * @param filepath
 * @param arr
 */
function writeFileSync(filepath, arr) {
  var outDir = path.join(__dirname, './out');

  if(!fs.existsSync(outDir)) {
    fs.mkdirSync(outDir);
  }

  fs.writeFileSync(filepath, new Buffer(arr));
}<commit_msg>fixed path<commit_after>'use strict';

var fs = require('fs');
var path = require('path');

module.exports.writeFileSync = writeFileSync;

/**
 * Write file to the `out` directory
 * NOTE: this method is used for test in node.js and disabled in browserify
 * @param filepath
 * @param arr
 */
function writeFileSync(filepath, arr) {
  var outDir = path.join(__dirname, '../out');

  if(!fs.existsSync(outDir)) {
    fs.mkdirSync(outDir);
  }

  fs.writeFileSync(filepath, new Buffer(arr));
}
{'fraction_non_alphanumeric': 0.14532520325203252, 'fraction_numerical': 0.0, 'mean_word_length': 4.324324324324325, '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': '5415872', 'n_tokens_mistral': 324, 'n_tokens_neox': 316, 'n_words': 91}