<commit_before>module RaceCondition
  class Client
    include APISmith::Client

    base_uri "http://racecondition.io/"
    endpoint "api/1"

    def report!(project_id, report_output)
      return unless report?

      puts "Sending test run data to RaceCondition..."
      params = { build: report_output }
      post("projects/#{project_id}/builds", extra_body: params)
    rescue Errno::ECONNREFUSED, SocketError, Net::ReadTimeout
      puts "Unable to reach RaceCondition."
    end

    def check_response_errors(response)
    end

    private

    def report?
      config.report?
    end

    def config
      RaceCondition::RSpec.configuration
    end
  end
end
<commit_msg>update url<commit_after>module RaceCondition
  class Client
    include APISmith::Client

    base_uri "https://racecondition.io/"
    endpoint "api/1"

    def report!(project_id, report_output)
      return unless report?

      puts "Sending test run data to RaceCondition..."
      params = { build: report_output }
      post("projects/#{project_id}/builds", extra_body: params)
    rescue Errno::ECONNREFUSED, SocketError, Net::ReadTimeout
      puts "Unable to reach RaceCondition."
    end

    def check_response_errors(response)
    end

    private

    def report?
      config.report?
    end

    def config
      RaceCondition::RSpec.configuration
    end
  end
end

{'fraction_non_alphanumeric': 0.08357771260997067, 'fraction_numerical': 0.001466275659824047, 'mean_word_length': 2.9, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '4200049', 'n_tokens_mistral': 406, 'n_tokens_neox': 395, 'n_words': 107}