<commit_before>require 'ostruct'

module ExconSpecHelper

  def http_request(method, uri, options = {}, &block)
    Excon.defaults[:ssl_verify_peer] = false
    uri      = Addressable::URI.heuristic_parse(uri)
    uri      = uri.to_s.gsub(' ', '%20')

    excon_options = {}<commit_msg>Added Excon setting to avoid SSL errors when running specs on JRuby<commit_after>require 'ostruct'

module ExconSpecHelper

  def http_request(method, uri, options = {}, &block)
    Excon.defaults[:ssl_verify_peer] = false
    Excon.defaults[:ciphers] = 'DEFAULT'
    uri      = Addressable::URI.heuristic_parse(uri)
    uri      = uri.to_s.gsub(' ', '%20')

    excon_options = {}
{'fraction_non_alphanumeric': 0.12743628185907047, 'fraction_numerical': 0.005997001499250375, 'mean_word_length': 3.8405797101449277, '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': '2000333', 'n_tokens_mistral': 230, 'n_tokens_neox': 217, 'n_words': 47}