<commit_before>$( document ).ready(function() {
	//polyhedron dimensions
	var pw = 200;
	var ph = 216;

	//triangle dimensions
	var tw = 145;
	var th = 166;
	
	var insertion = '';
	var repeater = $('.repeat').parent().html();

	function getRandomInt (min, max) {
	    return Math.floor(Math.random() * (max - min + 1)) + min;
	}

	function drawShape(shape, margin, width){
		return '<p id="'+shape+'" style="margin-left: '+margin+'%;"> <img src="img/'+shape+'.png" width="'+width+'" /> </p>';
	}

	function insertShapes(number){
		for(i = 0; i<number; i++){
			if(getRandomInt(0,1) == 1){
				insertion += drawShape('polyhedron', getRandomInt(0,100), getRandomInt(0,100)/100*pw);
			} else{
				insertion += drawShape('triangle', getRandomInt(0,100), getRandomInt(0,100)/100*tw);
			}
		}
		$('.shapes:last div').html(insertion);

		//resets insertion string
		insertion = '';
	}

	//initial randomness
	insertShapes(8);


	//parallax scrolling
		
		//only if touch events are NOT detected
		if( $('html:not(.touch)') ){
			// Init Skrollr
			var s = skrollr.init({
				forceHeight: false
			});
		 
			// Refresh Skrollr after resizing our sections
			s.refresh($('.homeSlide'));
		}

		

	$(window).scroll(function() {
   		if($(window).scrollTop() + $(window).height() >= $(document).height() ) {
			//add repeated section
			$('.repeat:last-of-type').parent().append(repeater);
			insertShapes(8);<commit_msg>infinite scroll for ios<commit_after>$( document ).ready(function() {
	//polyhedron dimensions
	var pw = 200;
	var ph = 216;

	//triangle dimensions
	var tw = 145;
	var th = 166;
	
	var insertion = '';
	var repeater = $('.repeat').parent().html();

	function getRandomInt (min, max) {
	    return Math.floor(Math.random() * (max - min + 1)) + min;
	}

	function drawShape(shape, margin, width){
		return '<p id="'+shape+'" style="margin-left: '+margin+'%;"> <img src="img/'+shape+'.png" width="'+width+'" /> </p>';
	}

	function insertShapes(number){
		for(i = 0; i<number; i++){
			if(getRandomInt(0,1) == 1){
				insertion += drawShape('polyhedron', getRandomInt(0,100), getRandomInt(0,100)/100*pw);
			} else{
				insertion += drawShape('triangle', getRandomInt(0,100), getRandomInt(0,100)/100*tw);
			}
		}
		$('.shapes:last div').html(insertion);

		//resets insertion string
		insertion = '';
	}

	//initial randomness
	insertShapes(8);


	//parallax scrolling
		
		//only if touch events are NOT detected
		if( $('html:not(.touch)') ){
			// Init Skrollr
			var s = skrollr.init({
				forceHeight: false
			});
		 
			// Refresh Skrollr after resizing our sections
			s.refresh($('.homeSlide'));
		}

		

	$(window).scroll(function() {
   		if($(window).scrollTop() + $(window).height() >= $(document).height() - 100) {
			//add repeated section
			$('.repeat:last-of-type').parent().append(repeater);
			insertShapes(8);
{'fraction_non_alphanumeric': 0.19957761351636746, 'fraction_numerical': 0.029919042590637098, 'mean_word_length': 3.6437908496732025, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '700500', 'n_tokens_mistral': 1173, 'n_tokens_neox': 973, 'n_words': 217}