<commit_before>module Point
  class Zone < Base
    
    def apply!
      post(:apply)
    end
    
    def records
      ZoneRecord.find(:all, :zone => self)
    end
    
    def record(id)
      ZoneRecord.find(id, :zone => self)
    end
    
    def build_record(attributes = {})
      z = ZoneRecord.new
      z.attributes = attributes if attributes.is_a?(Hash)
      z.zone = self
      z
    end
    
    def requires_update?<commit_msg>prevent error when domain has never been pushed<commit_after>module Point
  class Zone < Base
    
    def apply!
      post(:apply)
    end
    
    def records
      ZoneRecord.find(:all, :zone => self)
    end
    
    def record(id)
      ZoneRecord.find(id, :zone => self)
    end
    
    def build_record(attributes = {})
      z = ZoneRecord.new
      z.attributes = attributes if attributes.is_a?(Hash)
      z.zone = self
      z
    end
    
    def requires_update?
      # Zone has never been updated
      return true unless self.last_updated_on_server_at
      # Zone has never been saved - this should never return
      return true unless self.updated_at
      # Compare the timestamps
{'fraction_non_alphanumeric': 0.07685589519650655, 'fraction_numerical': 0.0, 'mean_word_length': 2.047872340425532, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7012003', 'n_tokens_mistral': 342, 'n_tokens_neox': 344, 'n_words': 101}