<commit_before>module StringHelpers
  refine String do
    def is_initgame?
      match(/InitGame:/) ? true : false
    end

    def is_clientuserinfochanged?
      match(/ClientUserinfoChanged:/) ? true : false
    end

    def is_kill?
      match(/Kill:/) ? true : false
    end

    def clientuserinfochanged
      match(/\s(?<player_id>\d+)\sn\\(?<player_name>[\w\s]+)\\t/)
    end

    def kill
      match(/(?<killer_id>\d+)\s(?<killed_id>\d+)\s(?<mean_of_death_id>\d+)/)
    end
  end
end<commit_msg>Small fix to regex<commit_after>module StringHelpers
  refine String do
    def is_initgame?
      match(/InitGame:/) ? true : false
    end

    def is_clientuserinfochanged?
      match(/ClientUserinfoChanged:/) ? true : false
    end

    def is_kill?
      match(/Kill:/) ? true : false
    end

    def clientuserinfochanged
      match(/\s(?<player_id>\d+)\sn\\(?<player_name>[\s\w]+[^\t])\\t/)
    end

    def kill
      match(/(?<killer_id>\d+)\s(?<killed_id>\d+)\s(?<mean_of_death_id>\d+)/)
    end
  end
end
{'fraction_non_alphanumeric': 0.1617933723196881, 'fraction_numerical': 0.0, 'mean_word_length': 2.6035087719298247, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7144336', 'n_tokens_mistral': 392, 'n_tokens_neox': 377, 'n_words': 68}