<commit_before>var test = require('tap').test;
var sentiment = require('../../lib/index');

var dataset = 'Hey you worthless scumbag';
sentiment(dataset, function (err, result) {
    test('asynchronous positive', function (t) {
        t.type(result, 'object');
        t.equal(result.score, -6);
        t.equal(result.comparative, -1.5);
        t.equal(result.tokens.length, 4);
        t.equal(result.words.length, 2);
        t.end();
    });
});
<commit_msg>Change test name in async_negative.js<commit_after>var test = require('tap').test;
var sentiment = require('../../lib/index');

var dataset = 'Hey you worthless scumbag';
sentiment(dataset, function (err, result) {
    test('asynchronous negative', function (t) {
        t.type(result, 'object');
        t.equal(result.score, -6);
        t.equal(result.comparative, -1.5);
        t.equal(result.tokens.length, 4);
        t.equal(result.words.length, 2);
        t.end();
    });
});

{'fraction_non_alphanumeric': 0.18172268907563024, 'fraction_numerical': 0.01050420168067227, 'mean_word_length': 2.93801652892562, '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': '6594268', 'n_tokens_mistral': 313, 'n_tokens_neox': 306, 'n_words': 66}