<commit_before>class Neighborhood < ActiveRecord::Base

  extend FriendlyId
  friendly_id :name, use: :slugged	



end<commit_msg>Slug generator added on "Neighborhood" model<commit_after>class Neighborhood < ActiveRecord::Base

  extend FriendlyId
  friendly_id :name, use: :slug_candidates

  # Try building a slug based on the following fields in
  # increasing order of specificity.
  def slug_candidates
    [
        :name,
        [:name, :id]
    ]
  end

end
{'fraction_non_alphanumeric': 0.0728051391862955, 'fraction_numerical': 0.0, 'mean_word_length': 3.727272727272727, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2819866', 'n_tokens_mistral': 153, 'n_tokens_neox': 140, 'n_words': 44}