<commit_before>var fs = require('fs')
var repeatString = require('repeat-string')
var editorconfigIndent = require('editorconfig-indent')
var editorconfig = fs.readFileSync(process.cwd() + '/.editorconfig', 'utf-8')
var ec = editorconfigIndent(editorconfig)

if (ec.indentStyle === 'tab') {
  indentWidth = '	'
}
else if (ec.indentStyle === 'space' || ec.indentStyle === null) {
  indentWidth = repeatString(' ', ec.indentSize)
}

module.exports = {
  indentWidth: indentWidth
}<commit_msg>fix #32<commit_after>var fs = require('fs')
var repeatString = require('repeat-string')
var editorconfigIndent = require('editorconfig-indent')

var editorconfig
var ec

try {
  editorconfig = fs.readFileSync(process.cwd() + '/.editorconfig', 'utf-8')
  ec = editorconfigIndent(editorconfig)
} catch (e) {}

if (ec) {
  if (ec.indentStyle === 'tab') {
    indentWidth = '	'
  }
  else if (ec.indentStyle === 'space' || ec.indentStyle === null) {
    indentWidth = repeatString(' ', ec.indentSize)
  }
}
else {
  indentWidth = '  '
}

module.exports = {
  indentWidth: indentWidth
}
{'fraction_non_alphanumeric': 0.16433239962651727, 'fraction_numerical': 0.003734827264239029, 'mean_word_length': 4.6421052631578945, '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': '1012071', 'n_tokens_mistral': 358, 'n_tokens_neox': 355, 'n_words': 76}