<commit_before>module.exports = text => {
  var result = ''
  var exploded = text.split(' ')

  exploded.forEach(w => {
    if (w.length > 1 && !w.endsWith('h')) {
      var m = 2
      if (w.endsWith('est')) m = 5
      if (w.endsWith('en') || w.endsWith('er')) m = 4
      var c = w[w.length - m]
      if (c === 'c') {
        result += w.substring(0, (w.length - m) + 1) + 'c' + w.substring((w.length - m) + 2, w.length) + ' '
        return
      }
    }
    result += w + " "
  })
  return result.substring(0, result.length - 1)
}<commit_msg>adds another c to words that end in c<commit_after>module.exports = text => {
  var result = ''
  var exploded = text.split(' ')

  exploded.forEach(w => {
    if (w.length > 1 && !w.endsWith('h')) {
      var m = 2
      if (w.endsWith('est')) m = 5
      if (w.endsWith('en') || w.endsWith('er')) m = 4
      var c = w[w.length - m]
      if (c === 'c') {
        result += w.substring(0, (w.length - m) + 1) + 'c' + w.substring((w.length - m) + 2, w.length) + ' '
        result += result.endsWith('c') ? 'c' : result.endsWith('C') ? 'C' : ''
        return
      }
    }
    result += w.endsWith('c') ? "c " : w.endsWith('C') ? "C " : " "
  })
  return result.substring(0, result.length - 1)
}
{'fraction_non_alphanumeric': 0.2176706827309237, 'fraction_numerical': 0.014457831325301205, 'mean_word_length': 2.099502487562189, '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': '5183042', 'n_tokens_mistral': 493, 'n_tokens_neox': 473, 'n_words': 112}