<commit_before><commit_msg>Added test<commit_after>import oauth2
def build_request(url, method='GET'):
    params = {                                            
        'oauth_version': "1.0",
        'oauth_nonce': oauth2.generate_nonce(),
        'oauth_timestamp': int(time.time())
    }
    consumer = oauth2.Consumer(key='ConsumerKey',secret='ConsumerSecret')
    params['oauth_consumer_key'] = consumer.key
 
    req = oauth2.Request(method=method, url=url, parameters=params)
    signature_method = oauth2.SignatureMethod_HMAC_SHA1()
    req.sign_request(signature_method, consumer, None)
    return req
 
request = build_request('http://192.168.3.11:5000/silcc/api/tag?text=this+is+a+test+eish')
u = urllib2.urlopen(request.to_url())
print u.readlines()
{'fraction_non_alphanumeric': 0.13648293963254593, 'fraction_numerical': 0.028871391076115485, 'mean_word_length': 3.5963855421686746, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6837555', 'n_tokens_mistral': 259, 'n_tokens_neox': 245, 'n_words': 34}