<commit_before>'use strict';

var walkDir = require('walkdir'),
    path = require('path'),
    debug = require('debug')('node-emerchantpay-api:api');

function ApiList() {

    var apis = {};

    debug('try require file in this path: ', path.normalize(__dirname));

    walkDir.sync(path.normalize(__dirname), {
        'no_recurse': true
    }, function (p, stat) {

        if (stat.isFile()) {
            return;
        }
        try {
            debug('try require file', p);
            apis[path.basename(p)] = require(path.resolve(p));
        }
        catch (err) {
            // look into how I can get down here
            /* istanbul ignore if */
            if (err.code === 'MODULE_NOT_FOUND') {
                console.log(err);
            }
        }
    });

    return apis;
}

module.exports = ApiList;<commit_msg>chore(coverage): ignore hard to reproduce error<commit_after>'use strict';

var walkDir = require('walkdir'),
    path = require('path'),
    debug = require('debug')('node-emerchantpay-api:api');

function ApiList() {

    var apis = {};

    debug('try require file in this path: ', path.normalize(__dirname));

    walkDir.sync(path.normalize(__dirname), {
        'no_recurse': true
    }, function (p, stat) {

        if (stat.isFile()) {
            return;
        }
        try {
            debug('try require file', p);
            apis[path.basename(p)] = require(path.resolve(p));
        }
        catch (err) {
            // hard to reproduce error
            /* istanbul ignore next */
            if (err.code === 'MODULE_NOT_FOUND') {
                console.log(err);
            }
        }
    });

    return apis;
}

module.exports = ApiList;
{'fraction_non_alphanumeric': 0.14695550351288056, 'fraction_numerical': 0.0, 'mean_word_length': 1.9064625850340136, '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': '4465963', 'n_tokens_mistral': 521, 'n_tokens_neox': 507, 'n_words': 114}