<commit_before>/*!
 * apiai
 * Copyright(c) 2015 http://api.ai/
 * MIT Licensed
 */

// var apiai = require("../../apiai");
// var apiai = require("apiai");
// var apiai = require("../module/apiai");
var apiai = require("apiai")

var app = apiai("3485a96fb27744db83e78b8c4bc9e7b7", "cb9693af-85ce-4fbf-844a-5563722fc27f");

var request = app.textRequest('Hello');

request.on('response', function(response) {
    console.log(response);
});

request.on('error', function(error) {
    console.log(error);
});

request.end()<commit_msg>Update text_request.js<commit_after>/*!
 * apiai
 * Copyright(c) 2015 http://api.ai/
 * MIT Licensed
 */

// var apiai = require("../../apiai");
// var apiai = require("apiai");
// var apiai = require("../module/apiai");
var apiai = require("apiai")

var app = apiai("ACCESS_TOKEN", "SUBSCRIPTION_KEY");

var request = app.textRequest('Hello');

request.on('response', function(response) {
    console.log(response);
});

request.on('error', function(error) {
    console.log(error);
});

request.end()

{'fraction_non_alphanumeric': 0.20945945945945946, 'fraction_numerical': 0.045366795366795366, 'mean_word_length': 4.237373737373737, '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': '628128', 'n_tokens_mistral': 414, 'n_tokens_neox': 388, 'n_words': 66}