<commit_before>/**
 * Created by Jade on 2014/03/16.
 */
var _ = require('lodash');
var vumigo = require('vumigo_v02');
var HttpApi = vumigo.http.api.HttpApi;

var UshahidiApi = HttpApi.extend(function(self, im, opts) {

    opts = _.defaults(opts || {}, {headers: {}});
    opts.headers['Content-Type'] = ['x-www-form-urlencoded'];
    HttpApi.call(self, im, opts);

    self.decode_response_body = function(body) {
        return JSON.parse(body);
    };
<commit_msg>Added require for querystring<commit_after>/**
 * Created by Jade on 2014/03/16.
 */
var _ = require('lodash');
var vumigo = require('vumigo_v02');
var querystring = require("querystring");
var HttpApi = vumigo.http.api.HttpApi;

var UshahidiApi = HttpApi.extend(function(self, im, opts) {

    opts = _.defaults(opts || {}, {headers: {}});
    opts.headers['Content-Type'] = ['x-www-form-urlencoded'];
    HttpApi.call(self, im, opts);

    self.decode_response_body = function(body) {
        return JSON.parse(body);
    };

{'fraction_non_alphanumeric': 0.1746987951807229, 'fraction_numerical': 0.020080321285140562, 'mean_word_length': 3.8872549019607843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '755541', 'n_tokens_mistral': 368, 'n_tokens_neox': 344, 'n_words': 68}