<commit_before><commit_msg>Add swipe function<commit_after><html>
	<head>
		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> 
		<script type="text/javascript">
			var makeSwipeDetector = function(selector) {
				var start;
				
				var clear = function () {
					start = null;
					$(selector).off("mousemove", mouseMove);
				};

				var mouseMove = function (data) {
					if (!start) {
						start = { x: data.pageX, y: data.pageY};
					}
					
					var dx = data.pageX - start.x;
					if (dx > 30) {
						clear();
						$(this).trigger("swipe-right");
					} else if (dx < -30) {
						clear();
						$(this).trigger("swipe-left");
					}
				};

				$(selector).on("mousedown", function(data) {
					$(this).on("mousemove", mouseMove);
				});
				$(selector).on("mouseup", function(data) {
					clear();
				});
			};
			
			$(document).ready(function() {
				makeSwipeDetector("#swipeArea");
				$("#swipeArea").on("swipe-left", function() {
					$(this).html("Swipe Right to Left");
				});
				$("#swipeArea").on("swipe-right", function() {
					$(this).html("Swipe Left to Right");
				});
			});
		</script>
		<style type="text/css">
			div {
				margin-top: 10px;
				width: 100%;
				height: 500px;
				border: solid 1px black;
			}
		</style>
	</head>
	<body>
		<div id="swipeArea">
		
		</div>
		
	</body>
</html>
{'fraction_non_alphanumeric': 0.20402298850574713, 'fraction_numerical': 0.011494252873563218, 'mean_word_length': 2.5535714285714284, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 1, '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': '7334382', 'n_tokens_mistral': 663, 'n_tokens_neox': 483, 'n_words': 90}