<commit_before>'use strict';

const test = require('tape');
const info = require('./info');
const sinon = require('sinon');

test('cloudcmd: rest: info', (t) => {
    const {memoryUsage} = process;
    
    const _memoryUsage = sinon
        .stub()
        .returns({});
    
    process.memoryUsage = _memoryUsage;
    
    info();
    
    process.memoryUsage = memoryUsage;
    
    t.ok(_memoryUsage.calledWith(), 'should call memoryUsage');
    
    t.end();
});
<commit_msg>chore(info) rm "\n"<commit_after>'use strict';

const test = require('tape');
const info = require('./info');
const sinon = require('sinon');

test('cloudcmd: rest: info', (t) => {
    const {memoryUsage} = process;
    
    const _memoryUsage = sinon
        .stub()
        .returns({});
    
    process.memoryUsage = _memoryUsage;
    
    info();
    
    process.memoryUsage = memoryUsage;
    
    t.ok(_memoryUsage.calledWith(), 'should call memoryUsage');
    t.end();
});

{'fraction_non_alphanumeric': 0.16510903426791276, 'fraction_numerical': 0.0, 'mean_word_length': 2.780392156862745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2939570', 'n_tokens_mistral': 305, 'n_tokens_neox': 306, 'n_words': 68}