<commit_before>var activeCueIds = [];
var nScrubs = 0; //number of times scrubed. Could put in a function to reset after x number scrubs, and then instead load new subs in same genre.

$( document ).ready(function() {
  //for when DOM is ready..
  
  
  //initialise with subs:
  scrubTrack(0);
  
	var iframe_active = $(".activevideo:first").data("zid");
	if (iframe_active == null || iframe_active <= 0) $('#ajax-loader-video').toggle();
	
	$('#'+iframe_active).load(function(){
		$('#ajax-loader-video').toggle();
  });

	document.getElementById('video').addEventListener('loadedmetadata', function() {
		this.currentTime = 3;
	}, false);
  
	//Enable swiping...
	$(".swipescrub").swipe( {
		//Generic swipe handler for all directions
    swipe: function(event, direction, distance, duration, fingerCount, fingerData) {
      
      if (direction == null) return false;
      
      if (direction == 'up') {
        console.log("scrub up " + nScrubs);
        scrubTrack(nScrubs);
        updateScrubs();
      }
      
      if (direction == 'down') console.log("down"); //return false;
      
      if (direction == 'right') console.log("right"); //return false;
      
      if (direction == 'left') console.log("left"); //return false;
      //if (direction == 'left') rotatelement(".info-panels",180); //return false;
    },
   //Default is 75px
   threshold:15
	});<commit_msg>Update scrubr.js<commit_after>var activeCueIds = [];
var nScrubs = 0; //number of times scrubed. Could put in a function to reset after x number scrubs, and then instead load new subs in same genre.

$( document ).ready(function() {
  //for when DOM is ready..
  
  
  //initialise with subs:
  scrubTrack(1);
  
	var iframe_active = $(".activevideo:first").data("zid");
	if (iframe_active == null || iframe_active <= 0) $('#ajax-loader-video').toggle();
	
	$('#'+iframe_active).load(function(){
		$('#ajax-loader-video').toggle();
  });

	document.getElementById('video').addEventListener('loadedmetadata', function() {
		this.currentTime = 3;
	}, false);
  
	//Enable swiping...
	$(".swipescrub").swipe( {
		//Generic swipe handler for all directions
    swipe: function(event, direction, distance, duration, fingerCount, fingerData) {
      
      if (direction == null) return false;
      
      if (direction == 'up') {
        console.log("scrub up " + nScrubs);
        updateScrubs();
        scrubTrack(nScrubs);

      }
      
      if (direction == 'down') console.log("down"); //return false;
      
      if (direction == 'right') console.log("right"); //return false;
      
      if (direction == 'left') console.log("left"); //return false;
      //if (direction == 'left') rotatelement(".info-panels",180); //return false;
    },
   //Default is 75px
   threshold:15
	});
{'fraction_non_alphanumeric': 0.17038904899135446, 'fraction_numerical': 0.00792507204610951, 'mean_word_length': 3.0363372093023258, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1679300', 'n_tokens_mistral': 878, 'n_tokens_neox': 846, 'n_words': 227}