<commit_before># frozen_string_literal: true
module Scrapeable
  module ClassMethods
    # Get Congress and state-wide reps
    def get_top_reps(address)
      @new_reps = []
      @address = Geocoder.address(address)
      find_state
      @delegation = GetYourRep::Google.all_reps(@address, congress_only: true)
      update_database
      @delegation
    end

    # Get state legislators
    def get_state_reps(address)
      GetYourRep::OpenStates.now(address)
    end<commit_msg>update scrapeable::class_methods for new get_your_rep api<commit_after># frozen_string_literal: true
module Scrapeable
  module ClassMethods
    # Get Congress and state-wide reps
    def get_top_reps(address)
      @new_reps = []
      @address = Geocoder.address(address)
      find_state
      @delegation = GetYourRep::Google.all_reps(@address, congress_only: true)
      update_database
      @delegation
    end

    # Get state legislators
    def get_state_reps(address)
      GetYourRep::OpenStates.all_reps(address)
    end
{'fraction_non_alphanumeric': 0.07472959685349066, 'fraction_numerical': 0.0, 'mean_word_length': 3.504424778761062, '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': '7051224', 'n_tokens_mistral': 321, 'n_tokens_neox': 315, 'n_words': 68}