<commit_before>require 'open-uri'
require 'json'
require 'pry-byebug'

require_relative 'keys'

api_key = FEC_API_KEY 
api_request ="https://api.open.fec.gov/v1/names/candidates?api_key=#{FEC_API_KEY}&q=Hillary"
api_response = open(api_request).read
json_result = JSON.parse(api_response)

# FEC_API does not support requesting for individual donations!<commit_msg>reconfigure keys<commit_after>require 'open-uri'
require 'json'
require 'pry-byebug'

require_relative 'keys'

api_key = FEC_API_KEY 
api_request ="https://api.open.fec.gov/v1/names/candidates?api_key=#{FEC_API_KEY}&q=Hillary"
api_response = open(api_request).read
json_result = JSON.parse(api_response)

# FEC_API does not support requests for individual donations!
{'fraction_non_alphanumeric': 0.11764705882352941, 'fraction_numerical': 0.0027359781121751026, 'mean_word_length': 7.318181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4479190', 'n_tokens_mistral': 272, 'n_tokens_neox': 266, 'n_words': 48}