<commit_before><!doctype html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>File Utility</title>
		<meta name="viewport" content="user-scalable=no, width=device-width">
		<link rel="stylesheet" href="css/style.css" type="text/css"/>
		<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
		<script src="js/fileUtility.js"></script>
		<script src="js/jquery.uploadify.js"></script>
 	</head>
 	
	<body>
		<div id="container">
			<header>
				<h1>File Utility Example</h1>
				A simple demostration of File Utility
			</header>
			<div class="buttons">
				<span class="btn-position">
					<input type="file" id="fileupload"/>
				</span>				
			</div>
			<div class="wrapper-queue">
				<span class="queue-clear">Clear Queue</span>
				<div class="js-queue">
				</div>
			</div>
			<div class="progress-bar">
				<div class="progress-fill"></div>
			</div>
			<div class="spacer" style="clear: both;"></div>
		</div>
	</body>

	<script>
 		<?php $timestamp = time();?>
		$(document).ready(function() {
			// Pass a true boolean to use the flash version in this demo. If you want the HTML5 of uploadifive 
			// visit http://www.uploadify.com/download/download-uploadifive-standard/ the add the file and pass non-arguments.
			var uploader = new fileUtility(true);
			var options = {
				'url': 'uploadifive.php',
				'buttonText': 'Upload',
				'buttonClass': 'btn-uploader',
				'formData'     : {
					'timestamp' : '<?php echo $timestamp;?>',
					'token'     : '<?php echo md5('unique_salt' . $timestamp);?>'
				},
				'width': 140,
				'height': 54,
				'onUploadComplete': function(file, data, response) {
					var $queue_wrapper = $('.wrapper-queue');
					var $queue_list = $('.js-queue');
					var $element = $('<div class="queue-file">'+file.name+'</div>')
					$queue_list.append($element);
					if (!$queue_wrapper.is(':visible')) {
						$queue_wrapper.show();
					}
				},
				'onError': function(errorType, file) {
					alert('Sorry an error ocurred: '+errorType);
				},
				'onProgress': function (file, bytesUploaded, bytesTotal) {
					var progress = $('.progress-fill');
					if (!progress.is(':visible')) {
						progress.show();
					}
					progress.css('width', bytesUploaded/bytesTotal * 100 + '%')
					if (bytesUploaded === bytesTotal) {
						setTimeout(function() {
							progress.hide();
							progress.css('width',0);
						}, 1000);
					}
				}
			};
			$('.queue-clear').on('click', function() {
				uploader.cancel();
				$('.queue-file').remove();
				$('.wrapper-queue').hide();
			});
			// Set File Utility instance
			uploader.init($('#fileupload'), options);
		}); 
	</script>
</hmtl><commit_msg>add 'Fork me on Github' logo<commit_after><!doctype html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>File Utility</title>
		<meta name="viewport" content="user-scalable=no, width=device-width">
		<link rel="stylesheet" href="css/style.css" type="text/css"/>
		<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
		<script src="js/fileUtility.js"></script>
		<script src="js/jquery.uploadify.js"></script>
 	</head>
 	
	<body>
		<div id="container">
			<header>
				<h1>File Utility Example</h1>
				A simple demostration of File Utility
			</header>
			<div class="buttons">
				<span class="btn-position">
					<input type="file" id="fileupload"/>
				</span>				
			</div>
			<div class="wrapper-queue">
				<span class="queue-clear">Clear Queue</span>
				<div class="js-queue">
				</div>
			</div>
			<div class="progress-bar">
				<div class="progress-fill"></div>
			</div>
			<a href="https://github.com/marquezmanu/FileUtility"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
			<div class="spacer" style="clear: both;"></div>
		</div>
	</body>

	<script>
 		<?php $timestamp = time();?>
		$(document).ready(function() {
			// Pass a true boolean to use the flash version in this demo. If you want the HTML5 of uploadifive 
			// visit http://www.uploadify.com/download/download-uploadifive-standard/ the add the file and pass non-arguments.
			var uploader = new fileUtility(true);
			var options = {
				'url': 'uploadifive.php',
				'buttonText': 'Upload',
				'buttonClass': 'btn-uploader',
				'formData'     : {
					'timestamp' : '<?php echo $timestamp;?>',
					'token'     : '<?php echo md5('unique_salt' . $timestamp);?>'
				},
				'width': 140,
				'height': 54,
				'onUploadComplete': function(file, data, response) {
					var $queue_wrapper = $('.wrapper-queue');
					var $queue_list = $('.js-queue');
					var $element = $('<div class="queue-file">'+file.name+'</div>')
					$queue_list.append($element);
					if (!$queue_wrapper.is(':visible')) {
						$queue_wrapper.show();
					}
				},
				'onError': function(errorType, file) {
					alert('Sorry an error ocurred: '+errorType);
				},
				'onProgress': function (file, bytesUploaded, bytesTotal) {
					var progress = $('.progress-fill');
					if (!progress.is(':visible')) {
						progress.show();
					}
					progress.css('width', bytesUploaded/bytesTotal * 100 + '%')
					if (bytesUploaded === bytesTotal) {
						setTimeout(function() {
							progress.hide();
							progress.css('width',0);
						}, 1000);
					}
				}
			};
			$('.queue-clear').on('click', function() {
				uploader.cancel();
				$('.queue-file').remove();
				$('.wrapper-queue').hide();
			});
			// Set File Utility instance
			uploader.init($('#fileupload'), options);
		}); 
	</script>
</hmtl>
{'fraction_non_alphanumeric': 0.19953178462092563, 'fraction_numerical': 0.0088240590671709, 'mean_word_length': 3.2075757575757575, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 0, '>': 102, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '711252', 'n_tokens_mistral': 2355, 'n_tokens_neox': 1863, 'n_words': 389}