<commit_before>class CongressApi
  include HTTParty
  debug_output $stdout
  base_uri 'http://congress.api.sunlightfoundation.com'

  def initialize
  end

  def bill type, number, congress
    bill_id = type + number + '-' + congress
    options = {query: {apikey: ENV["SUNLIGHT_KEY"], bill_id: bill_id, fields: 'votes,history'}}
      self.class.get('/bills', options)
  end

  def votes roll_id
    options = {query: {apikey: ENV["SUNLIGHT_KEY"], roll_id: roll_id}}
      self.class.get('/votes', options)
  end

  def legislators
  end

end<commit_msg>add fields explicitly to voter api query<commit_after>class CongressApi
  include HTTParty
  debug_output $stdout
  base_uri 'http://congress.api.sunlightfoundation.com'

  def initialize
  end

  def bill type, number, congress
    bill_id = type + number + '-' + congress
    options = {query: {apikey: ENV["SUNLIGHT_KEY"], bill_id: bill_id, fields: 'votes,history'}}
      self.class.get('/bills', options)
  end

  def votes roll_id
    options = {query: {apikey: ENV["SUNLIGHT_KEY"], roll_id: roll_id, fields: 'voter_ids,voters,required,result'}}
      self.class.get('/votes', options)
  end

  def legislators
  end

end
{'fraction_non_alphanumeric': 0.12087912087912088, 'fraction_numerical': 0.0, 'mean_word_length': 3.912863070539419, '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': '1421294', 'n_tokens_mistral': 415, 'n_tokens_neox': 403, 'n_words': 101}