<commit_before>class Dojo < ApplicationRecord
  NUM_OF_COUNTRIES   = "69"
  NUM_OF_WHOLE_DOJOS = "1,250"
  NUM_OF_JAPAN_DOJOS = Dojo.count.to_s

  has_one :dojo_event_service
  has_many :event_history

  serialize :tags
  default_scope -> { order(order: :asc) }
  before_save { self.email = self.email.downcase }

  validates :name,        presence: true, length: { maximum: 50 }
  validates :email,       presence: false
  validates :order,       presence: false<commit_msg>Fix association name<commit_after>class Dojo < ApplicationRecord
  NUM_OF_COUNTRIES   = "69"
  NUM_OF_WHOLE_DOJOS = "1,250"
  NUM_OF_JAPAN_DOJOS = Dojo.count.to_s

  has_one :dojo_event_service
  has_many :event_histories

  serialize :tags
  default_scope -> { order(order: :asc) }
  before_save { self.email = self.email.downcase }

  validates :name,        presence: true, length: { maximum: 50 }
  validates :email,       presence: false
  validates :order,       presence: false
{'fraction_non_alphanumeric': 0.09384775808133472, 'fraction_numerical': 0.016684045881126174, 'mean_word_length': 3.7761194029850746, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4395255', 'n_tokens_mistral': 366, 'n_tokens_neox': 345, 'n_words': 73}