<commit_before>var fs = require('fs');

exports.addSpace = function(str,num) {
  console.log(num);
  for(var i=0;i<num;i++) {
    str += ' ';
  }
  return str;
};

exports.doesYMLExist = function(filename) {
  return fs.open(file,'r',function(err,fd) {
    if(err) {
      return false;
    } else {
      return true;
    }
  });
};
<commit_msg>Fixed error in helper function<commit_after>var fs = require('fs');

exports.addSpace = function(str,num) {
  console.log(num);
  for(var i=0;i<num;i++) {
    str += ' ';
  }
  return str;
};

exports.doesFileExist = function(filename) {
  return fs.open(filename,'r',function(err,fd) {
    if(err) {
      console.log('false');
      return false;
    } else {
      console.log('true');
      return true;
    }
  });
};

{'fraction_non_alphanumeric': 0.1846553966189857, 'fraction_numerical': 0.002600780234070221, 'mean_word_length': 3.031413612565445, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2794051', 'n_tokens_mistral': 288, 'n_tokens_neox': 287, 'n_words': 48}