<commit_before>class Postcode < ActiveRecord::Base
  validates :pcode,     presence: true,
                        length: { maximum: 4 },
                        numericality: { only_integer: true }
  validates :suburb,    presence: true
  validates :state,     presence: true,
                        inclusion: { in: %w(ACT NSW NT QLD SA TAS VIC WA) }
  validates :latitude,  presence: true,
                        length: { maximum: 11 }
  #problem with negative value?
  #custom_validate_range :latitude, { min: -14, max: 14 }
                        #numericality: { less_than: -10 },
                        #numericality: { greater_than: -44 }
  validates :longitude, presence: true,
                        length: { maximum: 10 },
                        numericality: { less_than: 160 },
                        numericality: { greater_than: 95 }
end<commit_msg>correct postcode validation<commit_after>class Postcode < ActiveRecord::Base
  validates :pcode,     presence: true,
                        length: { maximum: 4 },
                        numericality: { only_integer: true }
  validates :suburb,    presence: true
  validates :state,     presence: true,
                        inclusion: { in: %w(ACT NSW NT QLD SA TAS VIC WA) }
  validates :latitude,  presence: true,
                        length: { maximum: 11 }
  validates :latitude,  presence: true,
                        numericality: { less_than: -10, 
                                        greater_than: -44 }
  validates :longitude, presence: true,
                        length: { maximum: 10 },
                        numericality: { less_than: 160 ,
                                        greater_than: 95 }
end
{'fraction_non_alphanumeric': 0.08840749414519906, 'fraction_numerical': 0.01873536299765808, 'mean_word_length': 1.487627365356623, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5248814', 'n_tokens_mistral': 472, 'n_tokens_neox': 441, 'n_words': 129}