<commit_before>'use strict';

var exec = require('child_process').execSync;

exports.lsbReleaseInfo = lsbReleaseInfo;
exports.getDistro = getDistro;

function getDistro() {
    var distroInfo = lsbReleaseInfo();
    switch (distroInfo.distroId) {
        case 'Ubuntu':
            var version = distroInfo.distroVersion.replace('.', '') || '1604';
            return 'ubuntu' + version;
        default:
            return '';
    }
}

function lsbReleaseInfo() {
    var distroId = exec('lsb_release -si', {encoding: 'utf8' });
    var distroVersion = exec('lsb_release -sr', { encoding: 'utf8' });

    var ret = {
        distroId: distroId.trim(),
        distroVersion: distroVersion.trim()
    };

    return ret;
}<commit_msg>refactor(linuxDistro): restructured linuxDistro<commit_after>'use strict';

var exec = require('child_process').execSync;

exports.lsbReleaseInfo = lsbReleaseInfo;
exports.getDistro = getDistro;

function getDistro() {
    var distroInfo = exports.lsbReleaseInfo();
    switch (distroInfo.distroId) {
        case 'Ubuntu':
            var version = distroInfo.distroVersion.replace('.', '') || '1604';
            return 'ubuntu' + version;
        default:
            return '';
    }
}

function lsbReleaseInfo() {
    var distroId = exec('lsb_release -si', {encoding: 'utf8' });
    var distroVersion = exec('lsb_release -sr', { encoding: 'utf8' });

    var ret = {
        distroId: distroId.trim(),
        distroVersion: distroVersion.trim()
    };

    return ret;
}
{'fraction_non_alphanumeric': 0.1390728476821192, 'fraction_numerical': 0.007947019867549669, 'mean_word_length': 2.9763157894736842, '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': '2679454', 'n_tokens_mistral': 494, 'n_tokens_neox': 472, 'n_words': 100}