<commit_before>module I18n
  module Tasks
    module Ar
      module Generate
        class << self
          def model lang
            result = Model.final_hash(lang).to_yaml
            File.open("config/locales/activerecord.models.#{lang}.yml", 'w+') {|f| f.write(result) }
          end

          def models
            I18n::Tasks::Ar::Config.locales.each{|locale| model(locale)}
          end
        end
      end
    end
  end
end<commit_msg>Create folder if don't exist<commit_after>module I18n
  module Tasks
    module Ar
      module Generate
        class << self
          def model lang
            result = Model.final_hash(lang).to_yaml
            FileUtils.mkdir_p('config/locales') unless File.exists?('config/locales')
            File.open("config/locales/activerecord.models.#{lang}.yml", 'w+') {|f| f.write(result) }
          end

          def models
            I18n::Tasks::Ar::Config.locales.each{|locale| model(locale)}
          end
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10945273631840796, 'fraction_numerical': 0.007960199004975124, 'mean_word_length': 1.9244186046511629, 'pattern_counts': {'":': 0, '<': 7, '<?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': '217668', 'n_tokens_mistral': 313, 'n_tokens_neox': 298, 'n_words': 66}