<commit_before>require 'net/http'
require 'uri'
require 'rubygems'
require 'json'

BASE_URL = 'http://api.indextank.com/api/v0'

module IndexTank

    private
    
    class RestClient
        def GET(path, params={})
            path = "#{path}?#{to_query(params)}" if params
            request = Net::HTTP::Get.new "#{@uri}#{path}"
            authorize request
            return execute request
        end
        
        def PUT(path, body={})
            request = Net::HTTP::Put.new "#{@uri}#{path}"
            authorize request
            request.body = body.to_json if body
            return execute request
        end
        
        def DELETE(path, params={})
            path = "#{path}?#{to_query(params)}" if params
            request = Net::HTTP::Delete.new "#{@uri}#{path}"
            authorize request
            return execute request
        end
        <commit_msg>removed obsolete constant<commit_after>require 'net/http'
require 'uri'
require 'rubygems'
require 'json'

module IndexTank

    private
    
    class RestClient
        def GET(path, params={})
            path = "#{path}?#{to_query(params)}" if params
            request = Net::HTTP::Get.new "#{@uri}#{path}"
            authorize request
            return execute request
        end
        
        def PUT(path, body={})
            request = Net::HTTP::Put.new "#{@uri}#{path}"
            authorize request
            request.body = body.to_json if body
            return execute request
        end
        
        def DELETE(path, params={})
            path = "#{path}?#{to_query(params)}" if params
            request = Net::HTTP::Delete.new "#{@uri}#{path}"
            authorize request
            return execute request
        end
        
{'fraction_non_alphanumeric': 0.1215909090909091, 'fraction_numerical': 0.0005681818181818182, 'mean_word_length': 1.8176, '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': '765757', 'n_tokens_mistral': 492, 'n_tokens_neox': 495, 'n_words': 126}