<commit_before>// The Computer Language Shootout
// http://shootout.alioth.debian.org/
// contributed by <NAME>

function partial(n){
    var a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 = 0.0;
    var twothirds = 2.0/3.0;
    var alt = -1.0;
    var k2 = k3 = sk = ck = 0.0;
    
    for (var k = 1; k <= n; k++){
        k2 = k*k;
        k3 = k2*k;
        sk = Math.sin(k);
        ck = Math.cos(k);
        alt = -alt;
        
        a1 += Math.pow(twothirds,k-1);
        a2 += Math.pow(k,-0.5);
        a3 += 1.0/(k*(k+1.0));
        a4 += 1.0/(k3 * sk*sk);
        a5 += 1.0/(k3 * ck*ck);
        a6 += 1.0/k;
        a7 += 1.0/k2;
        a8 += alt/k;
        a9 += alt/(2*k -1);
    }
    print(a1);
    print(a2);
    print(a3);
    print(a4);
    print(a5);
    print(a6);
    print(a7);
    print(a8);
    print(a9);
}

for (var i = 1024; i <= 16384; i *= 2) {
    partial(i);
}<commit_msg>Forced a fixed precision string output to mask differences likely due to floating point operation order<commit_after>// The Computer Language Shootout
// http://shootout.alioth.debian.org/
// contributed by <NAME>

function partial(n){
    var a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 = 0.0;
    var twothirds = 2.0/3.0;
    var alt = -1.0;
    var k2 = k3 = sk = ck = 0.0;
    
    for (var k = 1; k <= n; k++){
        k2 = k*k;
        k3 = k2*k;
        sk = Math.sin(k);
        ck = Math.cos(k);
        alt = -alt;
        
        a1 += Math.pow(twothirds,k-1);
        a2 += Math.pow(k,-0.5);
        a3 += 1.0/(k*(k+1.0));
        a4 += 1.0/(k3 * sk*sk);
        a5 += 1.0/(k3 * ck*ck);
        a6 += 1.0/k;
        a7 += 1.0/k2;
        a8 += alt/k;
        a9 += alt/(2*k -1);
    }

    function ppfloat(x) {
        print(x.toFixed(11));
    }
    ppfloat(a1);
    ppfloat(a2);
    ppfloat(a3);
    ppfloat(a4);
    ppfloat(a5);
    ppfloat(a6);
    ppfloat(a7);
    ppfloat(a8);
    ppfloat(a9);
}

for (var i = 1024; i <= 16384; i *= 2) {
    partial(i);
}
{'fraction_non_alphanumeric': 0.19524532119372787, 'fraction_numerical': 0.07486090035407182, 'mean_word_length': 1.5788787483702738, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4265013', 'n_tokens_mistral': 911, 'n_tokens_neox': 861, 'n_words': 198}