<commit_before>module.exports = function(sysinfo) {

    var providers = {
        'linux': require('./linux')(sysinfo),
        'mac': require('./mac')(sysinfo),
        'win': require('./win')(sysinfo),
        'other': require('./other')(sysinfo)
    };

    var provider = providers[sysinfo.OS];
    if(provider) {
        return provider;
    } else {
        return providers['other'];
    }
}<commit_msg>improved performance<commit_after>var providers = {
    'linux': require('./linux'),
    'mac': require('./mac'),
    'win': require('./win'),
    'other': require('./other')
};

module.exports = function(sysinfo) {

    var provider = providers[sysinfo.OS];
    if(provider) {
        return provider(sysinfo);
    } else {
        return providers['other'];
    }
}
{'fraction_non_alphanumeric': 0.19023136246786632, 'fraction_numerical': 0.0, 'mean_word_length': 2.7451923076923075, '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': '6236907', 'n_tokens_mistral': 233, 'n_tokens_neox': 227, 'n_words': 43}