<commit_before>function eosort(t) {

    var b = [t.filter(function(x){ return x => x % 2 == 0; }).sort(),
             t.filter(function(x){ return x % 2; }).sort().reverse()],
        i = [0,0], r = t.map(function(x){ return b[x%2][i[x%2]++]; });

    return r;

}

function printInts(t) {
    console.log(t.join(' '));
}

var t = [0,1,2,3,4,5,6,7,8,9];

printInts(t);

printInts(eosort(t));<commit_msg>Update TwoWaySort-es5.js<commit_after>function eosort(t) {

    var b = [t.filter(function(x){ return x % 2 == 0; }).sort(),
             t.filter(function(x){ return x % 2; }).sort().reverse()],
        i = [0,0], r = t.map(function(x){ return b[x%2][i[x%2]++]; });

    return r;

}

function printInts(t) {
    console.log(t.join(' '));
}

var t = [0,1,2,3,4,5,6,7,8,9];

printInts(t);

printInts(eosort(t));
{'fraction_non_alphanumeric': 0.25245098039215685, 'fraction_numerical': 0.0428921568627451, 'mean_word_length': 3.345744680851064, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5676892', 'n_tokens_mistral': 370, 'n_tokens_neox': 358, 'n_words': 63}