<commit_before>(function(){
    Gordon.inflate = function(data, len, callback){
        var s = new Gordon.Stream(data),
            scanln = "\x00" + s.seek(2).readString(s._length - 6),
            adler = s.readUI32(true) + 65536,
            uri = "data:image/png;base64," + btoa("\x89PNG\r\n\x1A\n" +
                buildChunk("IHDR", toUI32(len / 4) + toUI32(1) + "\x08\x06\x00\x00\x00") +
                buildChunk("IDAT", "\x78\x9c\x00\x01\x00\xfe\xff" + scanln + toUI32(adler)) +
                buildChunk("IEND", '')),
            img = new Image;
        img.src = uri;
        img.onerror = function(e){
            alert(e.message);
        }
        img.onload = function(){
            var canvas = doc.createElement("canvas");
            canvas.width = img.width;
            canvas.height = img.height;
            ctx = canvas.getContext("2d");
            ctx.drawImage(img, 0, 0);
            callback(ctx.getImageData(0, 0, img.width, img.height).data);<commit_msg>Cleaned up inflate code<commit_after>(function(){
    Gordon.inflate = function(data, len, callback){
        var s = new Gordon.Stream(data),
            scanln = "\x00" + s.seek(2).readString(s._length - 6),
            adler = s.readUI32(true) + 65536,
            uri = "data:image/png;base64," + btoa("\x89PNG\r\n\x1A\n" +
                buildChunk("IHDR", toUI32(len / 4) + toUI32(1) + "\x08\x06\x00\x00\x00") +
                buildChunk("IDAT", "\x78\x9c\x00\x01\x00\xfe\xff" + scanln + toUI32(adler)) +
                buildChunk("IEND", '')),
            img = new Image;
        img.src = uri;
        img.onload = function(){
            var canvas = doc.createElement("canvas");
            canvas.width = img.width;
            canvas.height = img.height;
            ctx = canvas.getContext("2d");
            ctx.drawImage(img, 0, 0);
            callback(ctx.getImageData(0, 0, img.width, img.height).data);
{'fraction_non_alphanumeric': 0.16605744125326372, 'fraction_numerical': 0.050130548302872065, 'mean_word_length': 1.889894419306184, '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': '7341093', 'n_tokens_mistral': 704, 'n_tokens_neox': 649, 'n_words': 109}