<commit_before><!doctype html>
<html>
<head>
<meta charset="US-ASCII">
<title>Insert title here</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="screen">
<link href="css/animation.css" rel="stylesheet" type="text/css" media="screen">
<link href="css/main.css" rel="stylesheet" type="text/css" media="screen">
<link href="css/weather.css" rel="stylesheet" type="text/css" media="screen">
<link href="css/deals.css" rel="stylesheet" type="text/css" media="screen">
<link href="css/ads.css" rel="stylesheet" type="text/css" media="screen">
<script type="text/javascript" src="js/angular.js"></script>
<script src="http://js.leapmotion.com/0.2.0/leap.min.js"></script>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.1.min.js"></script>


<script type="text/javascript" src="js/app.js"> </script>


<!-- Menu -->
<link href="css/menu.css" rel="stylesheet" type="text/css" media="screen">
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.4.min.js"></script>
<script type="text/javascript" src="js/carousel/jquery.waterwheelCarousel.min.js"></script>
<script type="text/javascript" src="js/timer/jquery.timer.js"></script>
<script type="text/javascript">
//define the timeout period for the leap;
	LEAP_TIMEOUT = 500;
	//Value to discriminate the leap motion mouvement.
	TRESHOLD = 0.3;
	var timerMenu, timerAd;
	var ads = ['coke', 'iphone', 'redcross'];
	var currentAd = 0;
	
	function clickedCenter(element) {
		$(element).clone().removeAttr("style").addClass('menuSelected clone').
			appendTo('body').toggleClass('menuSelected-expanded',1000).fadeOut(1000);
		var clicked = $(element).attr("id");
		var ad_id = ads[currentAd];
		$('#'+ad_id).addClass(ad_id+"-blur").removeClass(ad_id+"-sharp");

		if(clicked == 'weather') {
            $('#weather-panel').clone().addClass('clone').appendTo('.masthead').fadeIn(2500);
		};
		if(clicked == 'deals') {
            $('#deals-panel').clone().addClass('clone').appendTo('.masthead').fadeIn(2500);
		}
		showMenu(false);
		
	}
	
	function back() {
		$(".clone").fadeOut(1000);
		var ad_id = ads[currentAd];
		$('#'+ad_id).addClass(ad_id+"-sharp").removeClass(ad_id+"-blur");
		showMenu(false);
	}
	
	function movingToCenter(element) {
		return false;
	}
	
	$(document).ready(function() {
		$("#carousel").waterwheelCarousel({
			orientation : 'vertical',
			separation: 150,
			horizonOffset: 1,
			sizeMultiplier: 0.6,
			opacityMultiplier: 0.5,
			clickedCenter: clickedCenter,
			movingToCenter: movingToCenter
		});
		

		timerAd = $.timer(function() {
				currentAd++;
				var nextAd = ads[currentAd % ads.length];
				window.MY_SCOPE.$apply("go('"+nextAd+"','right')");
			}, 1500000, true);
		
		showMenu(false);
		//Leap Motion controler
		var controller = new Leap.Controller({ enableGestures: true});
		var done = 0;
	    controller.on( 'animationFrame' , function( frame ) {
	    // Frame code goes here
	    if(frame.gestures.length >= 1){
	      for( var i =  0; i < frame.gestures.length; i++){
	          if(typeof frame.gestures[i].direction !== "undefined" && done === 0 ){
	            if(frame.gestures[i].type === "swipe"){
	              text = mouvementSelect(frame.gestures[i].direction[0],"left","right",TRESHOLD);
				if(text !== "unknown"){
					currentAd++;
					var nextAd = ads[currentAd % ads.length];
					window.MY_SCOPE.$apply("go('"+nextAd+"','"+text+"')");
					done += 1;
					window.setTimeout(function(){done = 0},LEAP_TIMEOUT);
				}
				else{
					text = mouvementSelect(frame.gestures[i].direction[1],"top","down",TRESHOLD);
					//add here the command to have the top and down command... 
					console.log(text);



					//
					done += 1;
					window.setTimeout(function(){done = 0},LEAP_TIMEOUT);


				}
				
	            }
	          }
	        }
	      }<commit_msg>fake menu move<commit_after><!doctype html>
<html>
<head>
<meta charset="US-ASCII">
<title>Insert title here</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="screen">
<link href="css/animation.css" rel="stylesheet" type="text/css" media="screen">
<link href="css/main.css" rel="stylesheet" type="text/css" media="screen">
<link href="css/weather.css" rel="stylesheet" type="text/css" media="screen">
<link href="css/deals.css" rel="stylesheet" type="text/css" media="screen">
<link href="css/ads.css" rel="stylesheet" type="text/css" media="screen">
<script type="text/javascript" src="js/angular.js"></script>
<script src="http://js.leapmotion.com/0.2.0/leap.min.js"></script>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.1.min.js"></script>


<script type="text/javascript" src="js/app.js"> </script>


<!-- Menu -->
<link href="css/menu.css" rel="stylesheet" type="text/css" media="screen">
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.4.min.js"></script>
<script type="text/javascript" src="js/carousel/jquery.waterwheelCarousel.min.js"></script>
<script type="text/javascript" src="js/timer/jquery.timer.js"></script>
<script type="text/javascript">
//define the timeout period for the leap;
	LEAP_TIMEOUT = 500;
	//Value to discriminate the leap motion mouvement.
	TRESHOLD = 0.3;
	var timerMenu, timerAd;
	var ads = ['coke', 'iphone', 'redcross'];
	var currentAd = 0;
	
	function clickedCenter(element) {
		$(element).clone().removeAttr("style").addClass('menuSelected clone').
			appendTo('body').toggleClass('menuSelected-expanded',1000).fadeOut(1000);
		var clicked = $(element).attr("id");
		var ad_id = ads[currentAd];
		$('#'+ad_id).addClass(ad_id+"-blur").removeClass(ad_id+"-sharp");

		if(clicked == 'weather') {
            $('#weather-panel').clone().addClass('clone').appendTo('.masthead').fadeIn(2500);
		};
		if(clicked == 'deals') {
            $('#deals-panel').clone().addClass('clone').appendTo('.masthead').fadeIn(2500);
		}
		showMenu(false);
		
	}
	
	function back() {
		$(".clone").fadeOut(1000);
		var ad_id = ads[currentAd];
		$('#'+ad_id).addClass(ad_id+"-sharp").removeClass(ad_id+"-blur");
		showMenu(false);
	}
	
	function movingToCenter(element) {
		return false;
	}
	
	$(document).ready(function() {
		$("#carousel").waterwheelCarousel({
			orientation : 'vertical',
			separation: 150,
			horizonOffset: 1,
			sizeMultiplier: 0.6,
			opacityMultiplier: 0.5,
			clickedCenter: clickedCenter,
			movingToCenter: movingToCenter
		});
		

		timerAd = $.timer(function() {
				currentAd++;
				var nextAd = ads[currentAd % ads.length];
				window.MY_SCOPE.$apply("go('"+nextAd+"','right')");
			}, 1500000, true);
		
		showMenu(false);
		//Leap Motion controler
		var controller = new Leap.Controller({ enableGestures: true});
		var done = 0;
		var menuIsUp = 0;
	    controller.on( 'animationFrame' , function( frame ) {
	    // Frame code goes here
	    if(frame.gestures.length >= 1){
	      for( var i =  0; i < frame.gestures.length; i++){
	          if(typeof frame.gestures[i].direction !== "undefined" && done === 0 ){
	            if(frame.gestures[i].type === "swipe"){
	              text = mouvementSelect(frame.gestures[i].direction[0],"left","right",TRESHOLD);
				if(text !== "unknown"){
					if(menuIsUp === 0){
						currentAd++;
						var nextAd = ads[currentAd % ads.length];
					window.MY_SCOPE.$apply("go('"+nextAd+"','"+text+"')");
					done += 1;
					window.setTimeout(function(){done = 0},LEAP_TIMEOUT);
					}
					else{
						back();
						menuIsUp = 0;
					}

					
					
				}
				else{
					text = mouvementSelect(frame.gestures[i].direction[1],"top","down",TRESHOLD);
					//add here the command to have the top and down command... 
					console.log(text);
					if(menuIsUp === 0 && (text === "top" || text === "down")){
						showMenu(true);
						done += 1;
						menuIsUp += 1;
					}else if(text === "top"){
						$("#weather").click()
					}else if(text === "down"){
						$("#deals").click()
					}
					



					//
					done += 1;
					window.setTimeout(function(){done = 0},LEAP_TIMEOUT);


				}
				
	            }
	          }
	        }
	      }
{'fraction_non_alphanumeric': 0.20097919216646268, 'fraction_numerical': 0.016401468788249694, 'mean_word_length': 3.792375366568915, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, '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': '864927', 'n_tokens_mistral': 3212, 'n_tokens_neox': 2732, 'n_words': 484}