<commit_before>module Restulicious
  class Connection

    def get(url, params)
      request = ::Typhoeus::Request.new(url,
        method:        :get,
        headers:       { Accept: "text/json" },
        timeout:       100000, # milliseconds
        cache_timeout: 60, # seconds
        params:        params)
    end

    def post(url, params)
      request = ::Typhoeus::Request.new(url,
        method:        :post,
        headers:       { Accept: "text/json" },
        timeout:       100000, # milliseconds
        cache_timeout: 60, # seconds
        body:          params.to_json)
    end
  end
end
<commit_msg>Change accept header to application/json<commit_after>module Restulicious
  class Connection

    def get(url, params)
      request = ::Typhoeus::Request.new(url,
        method:        :get,
        headers:       { Accept: "application/json" },
        timeout:       100000, # milliseconds
        cache_timeout: 60, # seconds
        params:        params)
    end

    def post(url, params)
      request = ::Typhoeus::Request.new(url,
        method:        :post,
        headers:       { Accept: "application/json" },
        timeout:       100000, # milliseconds
        cache_timeout: 60, # seconds
        body:          params.to_json)
    end
  end
end

{'fraction_non_alphanumeric': 0.09976798143851508, 'fraction_numerical': 0.02474864655839134, 'mean_word_length': 1.8130434782608695, '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': '6319923', 'n_tokens_mistral': 399, 'n_tokens_neox': 362, 'n_words': 92}