<commit_before>﻿<!DOCTYPE html>
<html>

<head>
    <title>Drop Files into Browser</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <style type="text/css">
    body{
	    max-width:800px;
	    margin:0 auto;
	    font-family:"Sans-Serif";
    }
    #silverlightControlHost {
	    height: 100%;
	    text-align:center;
    }
    #holder{
        border:5px dashed gray;
        height:100px;
        border-radius:20px;
        width:50%;
        margin:auto;
        font-size:20px;
        color:Gray;
        text-align:center;
    }
	    #holder ul{
	    	width:100%;
	    	text-align:left;
	    }
		    #holder li img{
		    	height:20px;
		    }
	    
    
    pre{
		border:1px solid lightgray;
		border-left-width:10px;
	}
    
    
    </style>
    
<script id="onload">
$(document).ready(function () {
    /**
    * Add drop functionality to our holder,
    * This is standard HTML5 File API
    */
	$("#holder").addClass("sldropzone").bind('dragover',function(){return false;}).bind('drop', function(e){
		var holder= this;
		e = (e&&e.originalEvent?e.originalEvent:window.event) || e;
		
		if(e.preventDefault){
			e.preventDefault();
		}
		var files = (e.files||e.dataTransfer.files);
		
		var s = "";
		for (var i = 0; i < files.length; i++) {
			(function(i){
				var reader = new FileReader();
			    reader.onload = function (event) {
			        holder.innerHTML = "<li><img src='"+ event.target.result +"' /> "+(files[i].name)+"</li>" + holder.innerHTML;
			    };
			    reader.readAsDataURL(files[i]);
			})(i);
		}
		
		return false;
	});
});
</script>
</head>
<body>

    <h1>Drag and drop file demo using jQuery</h1>
    <div id="holder">
        Drop files from desktop here
    </div>
    <script>document.write('<pre>'+document.getElementById('onload').innerHTML.replace(">",'&gt;').replace("<",'&lt;')+'</pre>');</script>
    <script src="dropfile.js"></script>

</body>
</html><commit_msg>Update content<commit_after>﻿<!DOCTYPE html>
<html>

<head>
    <title>Drop Files into Browser</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <style type="text/css">
    body{
	    max-width:800px;
	    margin:0 auto;
	    font-family:"Sans-Serif";
    }
    #silverlightControlHost {
	    height: 100%;
	    text-align:center;
    }
    #holder{
        border:5px dashed gray;
        height:100px;
        border-radius:20px;
        width:50%;
        margin:auto;
        font-size:20px;
        color:Gray;
        text-align:center;
    }
	    #holder ul{
	    	width:100%;
	    	text-align:left;
	    }
		    #holder li img{
		    	height:20px;
		    }
	    
    </style>
    
<script>
$(document).ready(function () {
    /**
    * Add drop functionality to our holder,
    * This is standard HTML5 File API
    */
	$("#holder").bind('dragover',function(){return false;}).bind('drop', function(e){
		var holder= this;
		e = (e&&e.originalEvent?e.originalEvent:window.event) || e;
		
		if(e.preventDefault){
			e.preventDefault();
		}
		var files = (e.files||e.dataTransfer.files);
		
		var s = "";
		for (var i = 0; i < files.length; i++) {
			(function(i){
				var reader = new FileReader();
			    reader.onload = function (event) {
			        holder.innerHTML = "<li><img src='"+ event.target.result +"' /> "+(files[i].name)+"</li>" + holder.innerHTML;
			    };
			    reader.readAsDataURL(files[i]);
			})(i);
		}
		
		return false;
	});
});
</script>
</head>
<body>

    <h1>Drag and drop file demo using jQuery</h1>
    <div id="holder">
        Drop files from desktop here
    </div>
    <script src="dropfile.js"></script>
</body>
</html>
{'fraction_non_alphanumeric': 0.17974477328265, 'fraction_numerical': 0.01656258484930763, 'mean_word_length': 2.4985754985754984, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 56, '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': '6367669', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1259, 'n_words': 243}