<commit_before>module CivicCommons
  class Client

    def initialize
      @conn = Faraday.new 'http://marketplace.civiccommons.org/api/v1' do |builder|

        # Uncomment if want to log to stdout
        # builder.response :logger

        builder.use Faraday::Response::Mashify
        builder.use FaradayMiddleware::ParseJson, :content_type => /\bjson$/
        builder.use Faraday::Adapter::NetHttp
      end
    end

    def retrieve_node(node_id)
      resp = @conn.get "node/#{node_id}.json"

      resp.body
    end

    def retrieve_taxonomy_term(taxonomy_id)
       resp = @conn.get "taxonomy_term/#{taxonomy_id}.json"

       resp.body
    end
  end
end
<commit_msg>Please do not change the API a couple of days before launch<commit_after>module CivicCommons
  class Client

    def initialize
      @conn = Faraday.new 'http://civiccommons.org/api/v1' do |builder|

        # Uncomment if want to log to stdout
        # builder.response :logger

        builder.use Faraday::Response::Mashify
        builder.use FaradayMiddleware::ParseJson, :content_type => /\bjson$/
        builder.use Faraday::Adapter::NetHttp
      end
    end

    def retrieve_node(node_id)
      resp = @conn.get "node/#{node_id}.json"

      resp.body
    end

    def retrieve_taxonomy_term(taxonomy_id)
       resp = @conn.get "taxonomy_term/#{taxonomy_id}.json"

       resp.body
    end
  end
end

{'fraction_non_alphanumeric': 0.09684361549497848, 'fraction_numerical': 0.0014347202295552368, 'mean_word_length': 2.6233766233766236, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6858269', 'n_tokens_mistral': 461, 'n_tokens_neox': 434, 'n_words': 103}