<commit_before>module Worst
  module Bot

    class Scrambler

      @@scramble_map = {
        "make" => "maek",
        "game" => "gaem",
        "where" => "ware",
        "you" => "u",
        "the" => "teh",
        "about" => "abuot",
        "gamedev" => "gaem maker person"
      }

      def self.scramble(str)
        split_str = str.split(" ")
        scrambled = split_str.map { |word| self.randomly_scramble(word) }
        scrambled.join(" ")
      end

      def self.randomly_scramble(word)
        if self.should_scramble then
          puts "Scrambling!"
          self.attempt_scramble(word)
        end
        return word<commit_msg>Maek typos grate again :us:<commit_after>module Worst
  module Bot

    class Scrambler

      @@scramble_map = {
        "make" => "maek",
        "game" => "gaem",
        "where" => "ware",
        "you" => "u",
        "the" => "teh",
        "about" => "abuot",
        "gamedev" => "gaem maker person",
        "great" => "grate"
      }

      def self.scramble(str)
        split_str = str.split(" ")
        scrambled = split_str.map { |word| self.randomly_scramble(word) }
        scrambled.join(" ")
      end

      def self.randomly_scramble(word)
        if self.should_scramble then
          puts "Scrambling!"
          self.attempt_scramble(word)
        end
        return word
{'fraction_non_alphanumeric': 0.1385185185185185, 'fraction_numerical': 0.0, 'mean_word_length': 1.8263598326359833, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '3357130', 'n_tokens_mistral': 473, 'n_tokens_neox': 446, 'n_words': 93}