<commit_before>module NameGenerator

  def generate
    "#{color}-#{animal}-#{number}"
  end

  def animal
    sample('animals.db')
  end

  def color
    sample('colors.db')
  end

  def number
    rand(10000)
  end

  extend self

private

  def sample file
    File.readlines(Rails.root.join('db', file)).sample.strip
  end
end<commit_msg>remove numbers from codes<commit_after>module NameGenerator

  def generate
    "#{color}-#{animal}"
  end

  def animal
    sample('animals.db')
  end

  def color
    sample('colors.db')
  end

  extend self

private

  def sample file
    File.readlines(Rails.root.join('db', file)).sample.strip
  end
end
{'fraction_non_alphanumeric': 0.11384615384615385, 'fraction_numerical': 0.007692307692307693, 'mean_word_length': 3.06875, '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': '1318547', 'n_tokens_mistral': 229, 'n_tokens_neox': 214, 'n_words': 54}