<commit_before>get '/v2/indiegogo_campaigns' do
  uri = URI('https://api.indiegogo.com/1/campaigns/964232.json?api_token=' + CDO.indiegogo_api_token)
  Net::HTTP.get(uri) # => String
end

get '/v2/indiegogo_contributions' do
  uri = URI('https://api.indiegogo.com/1/campaigns/964232/contributions.json?api_token=' + CDO.indiegogo_api_token)
  Net::HTTP.get(uri) # => String
end<commit_msg>Set a cache time of 60 seconds for indiegogo api calls because they're expensive.<commit_after>get '/v2/indiegogo_campaigns' do
  cache_control :public, :must_revalidate, max_age:60
  uri = URI('https://api.indiegogo.com/1/campaigns/964232.json?api_token=' + CDO.indiegogo_api_token)
  Net::HTTP.get(uri)
end

get '/v2/indiegogo_contributions' do
  cache_control :public, :must_revalidate, max_age:60
  uri = URI('https://api.indiegogo.com/1/campaigns/964232/contributions.json?api_token=' + CDO.indiegogo_api_token)
  Net::HTTP.get(uri)
end
{'fraction_non_alphanumeric': 0.14408602150537633, 'fraction_numerical': 0.04086021505376344, 'mean_word_length': 5.697841726618705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '4136447', 'n_tokens_mistral': 386, 'n_tokens_neox': 358, 'n_words': 54}