<commit_before>require "json"
require "digest/sha1"
require "net/https"
require "uri"

module CodeClimate
  class TestReporter
    VERSION = "0.0.2.pre"

    class API
      def self.host
        ENV["CODECLIMATE_API_HOST"] ||
        "https://codeclimate.com"
      end

      def self.post_results(result)
        uri = URI.parse("#{host}/test_reports")
        http = Net::HTTP.new(uri.host, uri.port)
<commit_msg>Prep for 0.0.2<commit_after>require "json"
require "digest/sha1"
require "net/https"
require "uri"

module CodeClimate
  class TestReporter
    VERSION = "0.0.2"

    class API
      def self.host
        ENV["CODECLIMATE_API_HOST"] ||
        "https://codeclimate.com"
      end

      def self.post_results(result)
        uri = URI.parse("#{host}/test_reports")
        http = Net::HTTP.new(uri.host, uri.port)

{'fraction_non_alphanumeric': 0.13116726835138387, 'fraction_numerical': 0.013237063778580024, 'mean_word_length': 2.7142857142857144, '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': '2341385', 'n_tokens_mistral': 299, 'n_tokens_neox': 284, 'n_words': 58}