<commit_before>var path = require('path');

exports = module.exports = {
    sync: inpathSync
};

function inpathSync(target, dirs) {
    var i, l, pos;

    if (!dirs) {
        dirs = process.env['PATH'].split(':');
    }

    for (i = 0, l = dirs.length; i < l; i++) {
        pos = path.join(dirs[i], target)
        if (path.existsSync(pos)) {
            return pos;
        }
    }

    return null;
};<commit_msg>existsSync has moved in 0.8.<commit_after>var existsSync = require('fs').existsSync;
var path = require('path');
if (!existsSync) {
    existsSync = path.existsSync;
}

exports = module.exports = {
    sync: inpathSync
};

function inpathSync(target, dirs) {
    var i, l, pos;

    if (!dirs) {
        dirs = process.env['PATH'].split(':');
    }

    for (i = 0, l = dirs.length; i < l; i++) {
        pos = path.join(dirs[i], target)
        if (existsSync(pos)) {
            return pos;
        }
    }

    return null;
};
{'fraction_non_alphanumeric': 0.16842105263157894, 'fraction_numerical': 0.004210526315789474, 'mean_word_length': 2.2457337883959045, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3251315', 'n_tokens_mistral': 342, 'n_tokens_neox': 332, 'n_words': 81}