<commit_before>{literal}
<script type="text/javascript">
$(window).load(function(){
	var $document = $(document);
	var GOING_DOWN = {74:'', 32: ''};
	var GOING_UP = {75:''};
	var $elems = $('.{/literal}{$class_name}{literal}');
	var num_elems = $elems.length;
	var tops = [];

	$elems.each(function() {
		tops.push(Math.round($(this).offset().top) - 5);
	});

	$document.keydown(function(e){
		var scrollTopPos = $document.scrollTop();
		if (e.keyCode in GOING_DOWN) {
			for (var i = 0; i < num_elems - 1; i++) {
				if (scrollTopPos <= tops[i]) {
					if (scrollTopPos == tops[i]) {
						scrollTo(tops[i + 1]); 
					} else {
						scrollTo(tops[i]); 
					}
					return false;
				}
			}
		} else if (e.keyCode in GOING_UP) {
			for (var i = num_elems - 1; i > 0; i--) {
				if (scrollTopPos >= tops[i]) {
					if (scrollTopPos == tops[i]) {
						scrollTo(tops[i - 1]);
					} else {
						scrollTo(tops[i]); <commit_msg>Fixed zoomy bug with scrolling<commit_after>{literal}
<script type="text/javascript">
$(window).load(function(){
	var $document = $(document);
	var GOING_DOWN = {74:'', 32: ''};
	var GOING_UP = {75:''};
	var $elems = $('.{/literal}{$class_name}{literal}');
	var num_elems = $elems.length;
	var tops = [];

	$elems.each(function() {
		tops.push(Math.round($(this).offset().top) - 5);
	});

	$document.keydown(function(e){
		var scrollTopPos = $document.scrollTop();
		if (e.keyCode in GOING_DOWN) {
			for (var i = 0; i < num_elems - 1; i++) {
				if (scrollTopPos <= tops[i]) {
					fudger = tops[i] - scrollTopPos;
					if (fudger <= 1) {
						scrollTo(tops[i + 1]); 
					} else {
						scrollTo(tops[i]); 
					}
					return false;
				}
			}
		} else if (e.keyCode in GOING_UP) {
			for (var i = num_elems - 1; i > 0; i--) {
				if (scrollTopPos >= tops[i]) {
					fudger = scrollTopPos - tops[i];
					if (fudger <= 1) {
						scrollTo(tops[i - 1]);
					} else {
						scrollTo(tops[i]); 
{'fraction_non_alphanumeric': 0.20197813638729828, 'fraction_numerical': 0.014575741801145237, 'mean_word_length': 2.914460285132383, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '959637', 'n_tokens_mistral': 919, 'n_tokens_neox': 755, 'n_words': 162}