<commit_before>/*
	slideAnything jQuery plugin v1.0
	Creates a carousel or slider type animation for any html content without
	restrictions. The container can be changed to any size including full screen.
	Copyright 2013 <NAME>
	Released under MIT License.
*/
(function($) {

	$.fn.slideAnything = function( options ) {

		var settings = $.extend( {}, $.fn.slideAnything.defaults, options );
		
		var slideAnythingFunc = function ($jsa_wrapper, $click) {
			var
				$active = $jsa_wrapper.find('.jsa-slider-content.active'),
				$next = $active.next('.jsa-slider-content'),
				$clicked,
				clicked;

			// Change slide by click
			if ($click) {
				clicked = $click.attr('href');
				$clicked = $jsa_wrapper.find(clicked).parent();
				if (0===$active.find(clicked).length) {
					$active.toggleClass('active', settings.toggleSpeed);
					$clicked.toggleClass('active', settings.toggleSpeed);
					$click.parent().find('.icon-change-slide').removeClass('active');
					$click.find('.icon-change-slide').addClass('active');
				}
			// Go to next slide on timer
			} else {
				if (0===$next.length) {
					$next = $active.siblings(':first');
				}
				$active.toggleClass('active', settings.toggleSpeed);
				$next.toggleClass('active', settings.toggleSpeed);
				$jsa_wrapper.find('.jsa-controls').find('.icon-change-slide').removeClass('active')
				.end().find('a[href=#' + $next.children().attr('id') + ']')
				.find('.icon-change-slide').addClass('active');
			}
		};

		return this.each(function() {
			var
				$jsa_wrapper = $(this),
				interval = settings.timerSpeed,
				timer = setInterval(function() {
					slideAnythingFunc($jsa_wrapper);
				}, interval);
			$jsa_wrapper.on('click', '.jsa-controls a', function(e) {
				e.preventDefault();
				slideAnythingFunc($jsa_wrapper, $(this));
				clearInterval(timer);
				timer = setInterval(function() {
					slideAnythingFunc($jsa_wrapper);
				}, interval);
			});
		});

	};

	$.fn.slideAnything.defaults = {
		timerSpeed: 2000,<commit_msg>Changed slideAnythingFunc to private<commit_after>/*
	slideAnything jQuery plugin v1.0
	Creates a carousel or slider type animation for any html content without
	restrictions. The container can be changed to any size including full screen.
	Copyright 2013 <NAME>
	Released under MIT License.
*/
(function($) {

	var slideAnythingFunc = function ($jsa_wrapper, toggleSpeed, $click) {
		var
			$active = $jsa_wrapper.find('.jsa-slider-content.active'),
			$next = $active.next('.jsa-slider-content'),
			$clicked,
			clicked;

		// Change slide by click
		if ($click) {
			clicked = $click.attr('href');
			$clicked = $jsa_wrapper.find(clicked).parent();
			if (0===$active.find(clicked).length) {
				$active.toggleClass('active', toggleSpeed);
				$clicked.toggleClass('active', toggleSpeed);
				$click.parent().find('.icon-change-slide').removeClass('active');
				$click.find('.icon-change-slide').addClass('active');
			}
		// Go to next slide on timer
		} else {
			if (0===$next.length) {
				$next = $active.siblings(':first');
			}
			$active.toggleClass('active', toggleSpeed);
			$next.toggleClass('active', toggleSpeed);
			$jsa_wrapper.find('.jsa-controls').find('.icon-change-slide').removeClass('active')
				.end().find('a[href=#' + $next.children().attr('id') + ']')
				.find('.icon-change-slide').addClass('active');
		}
	};

	$.fn.slideAnything = function( options ) {

		var settings = $.extend( {}, $.fn.slideAnything.defaults, options );

		return this.each(function() {
			var
				$jsa_wrapper = $(this),
				interval = settings.timerSpeed,
				timer = setInterval(function() {
					slideAnythingFunc($jsa_wrapper, settings.toggleSpeed);
				}, interval);
			$jsa_wrapper.on('click', '.jsa-controls a', function(e) {
				e.preventDefault();
				slideAnythingFunc($jsa_wrapper, settings.toggleSpeed, $(this));
				clearInterval(timer);
				timer = setInterval(function() {
					slideAnythingFunc($jsa_wrapper, settings.toggleSpeed);
				}, interval);
			});
		});

	};

	$.fn.slideAnything.defaults = {
		timerSpeed: 2000,
{'fraction_non_alphanumeric': 0.17358024691358026, 'fraction_numerical': 0.005925925925925926, 'mean_word_length': 3.8631452581032413, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6856597', 'n_tokens_mistral': 1535, 'n_tokens_neox': 1265, 'n_words': 246}