<commit_before>---
layout: page
title: "404"
permalink: /404
comments: false
---
<!-- <p>There doesn't appear to be anything here. Sorry about that.</p>
<p>If you've followed a link expecting something to be here, you can <a href="mailto:{{ site.email }}?subject=Page%20not%20found">contact me</a>.</p>
 -->
<canvas id='canvas' width="400px"  height="400px"></canvas>
<img style='display: none'  src="rhino.jpg">


<script type="text/javascript">
  var EventUtil = {
    addEvent:function(element,type,handler){
            if(element.addEventListener){
                element.addEventListener(type,handler,false);
            }else if(element.attachEvent){
                element.attachEvent('on'+type,handler);
            }else{
                element['on'+type] = handler;
            }
        },
    removEvent:function(element,type,handler){
            if(element.removeEventListener){
                element.removeEventListener(type,handler,false);
            }else if(element.detachEvent){
                element.detachEvent('on'+type,handler);
            }else{
                element['on'+type] = null;
            }
        },
    getEvent: function(e){
            return e||window.e;
        },
    getTarget: function(e){
            return e.target||e.srcElement;
        },
  
    stoPropagation: function(e){
            if(e.stoPropagation){
                e.stoPropogation();
            }else{
                e.cancelBubble = true;
            }
        },
    preventDefault: function(e){
        if(e.preventDefault){
            e.preventDefault();
        }else{
            e.returnValue = false;
        }
    }
};

EventUtil.addEvent(window,'load',function(){
    var canvas = document.getElementById('canvas')
    if(canvas.getContext){
        var context = canvas.getContext('2d'),
        img = document.images[0],
        imageData,data,i,len,average,
        red,green,blue,alpha;
        context.drawImage(img,0,0);


        img.crossOrigin = "Anonymous";
        imageData = context.getImageData(0,0,img.width,img.height);
        data = imageData.data;

        for(i = 0,len = data.length;i <len;i+=4){
            red = data[i];
            green = data[i+1];
            blue = data[i+2];
            alpha = data[i+3];

            ave = Math.floor((red+green+blue)/3);
            data[i] = ave;
            data[i+1] = ave;
            data[i+2] = ave;
        }

        imageData.data = data;
        context.putImageData(imageData,0,0)
    }
})

</script><commit_msg>canvas test4<commit_after>---
layout: page
title: "404"
permalink: /404
comments: false
---
<!-- <p>There doesn't appear to be anything here. Sorry about that.</p>
<p>If you've followed a link expecting something to be here, you can <a href="mailto:{{ site.email }}?subject=Page%20not%20found">contact me</a>.</p>
 -->
<canvas id='canvas' width="400px"  height="400px"></canvas>
<img style='display: none'  src="rhino.jpg">


{'fraction_non_alphanumeric': 0.151864406779661, 'fraction_numerical': 0.016610169491525422, 'mean_word_length': 2.2110990206746464, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 25, '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': '1899188', 'n_tokens_mistral': 924, 'n_tokens_neox': 887, 'n_words': 175}