<commit_before>'use strict'

const api = require('../index');

api.start(8000);

api.handle('ping', ping);

function ping(data) {
    var out = {response: api.status.OK};

    return out;
}<commit_msg>implement status & error codes<commit_after>'use strict'

const api = require('../index');

api.start(8000);

api.handle('ping', ping);

function ping(data) {
    var out = {
        response: api.status.OK,
        data: 'pong'
    };

    return out;
}
{'fraction_non_alphanumeric': 0.17362637362637362, 'fraction_numerical': 0.017582417582417582, 'mean_word_length': 3.2616822429906542, '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': '6225949', 'n_tokens_mistral': 166, 'n_tokens_neox': 153, 'n_words': 37}