<commit_before>export function to_plural(word: string): string {
  if (word.endsWith('y')) {
    switch (word[word.length - 1 - 1]) {
      case 'a':
      case 'e':
      case 'i':
      case 'o':
      case 'u':
        return word.replace(/y$/, 'ies');
    }
  }
  return word + 's';
}<commit_msg>fixed logical error in to_plural()<commit_after>export function to_plural(word: string): string {
  if (word.endsWith('y')) {
    switch (word[word.length - 1 - 1]) {
      case 'a':
      case 'e':
      case 'i':
      case 'o':
      case 'u':
        break;
      default:
        return word.replace(/y$/, 'ies');
    }
  }
  return word + 's';
}
{'fraction_non_alphanumeric': 0.1781874039938556, 'fraction_numerical': 0.006144393241167435, 'mean_word_length': 2.1196172248803826, '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': '553236', 'n_tokens_mistral': 235, 'n_tokens_neox': 229, 'n_words': 60}