<commit_before>module NetSuiteRails
  module Configuration
    extend self

    def reset!
      attributes.clear
    end

    def attributes
      @attributes ||= {}
    end

    def netsuite_sync_mode(mode = nil)
      if mode.nil?
        attributes[:sync_mode] ||= :none
      else
        attributes[:sync_mode] = mode
      end
    end

    def netsuite_push_disabled(flag = nil)
      if flag.nil?
        attributes[:flag] ||= false
      else
        attributes[:flag] = flag
      end
    end

    def netsuite_pull_disabled(flag = nil)
      if flag.nil?
        attributes[:flag] ||= false
      else
        attributes[:flag] = flag
      end
    end

    def netsuite_instance_time_zone_offset(zone_offset = nil)
      if zone_offset.nil?
        attributes[:zone_offset] ||= -8
      else
        attributes[:zone_offset] = zone_offset
      end
    end

    def polling_page_size(size = nil)
      if size.nil?
        attributes[:size] ||= 1000
      else
        attributes[:size] = size
      end
    end

  end
end<commit_msg>Moving max page size to constant<commit_after>module NetSuiteRails
  module Configuration
    extend self

    NETSUITE_MAX_PAGE_SIZE = 1000

    def reset!
      attributes.clear
    end

    def attributes
      @attributes ||= {}
    end

    def netsuite_sync_mode(mode = nil)
      if mode.nil?
        attributes[:sync_mode] ||= :none
      else
        attributes[:sync_mode] = mode
      end
    end

    def netsuite_push_disabled(flag = nil)
      if flag.nil?
        attributes[:flag] ||= false
      else
        attributes[:flag] = flag
      end
    end

    def netsuite_pull_disabled(flag = nil)
      if flag.nil?
        attributes[:flag] ||= false
      else
        attributes[:flag] = flag
      end
    end

    def netsuite_instance_time_zone_offset(zone_offset = nil)
      if zone_offset.nil?
        attributes[:zone_offset] ||= -8
      else
        attributes[:zone_offset] = zone_offset
      end
    end

    def polling_page_size(size = nil)
      if size.nil?
        attributes[:size] ||= NETSUITE_MAX_PAGE_SIZE
      else
        attributes[:size] = size
      end
    end

  end
end
{'fraction_non_alphanumeric': 0.08179297597042513, 'fraction_numerical': 0.0046210720887245845, 'mean_word_length': 2.0069444444444446, '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': '5813133', 'n_tokens_mistral': 685, 'n_tokens_neox': 648, 'n_words': 158}