<commit_before>/*
 * jQuery Accordion Plugin v1.0.0
 * by iashraf (http://github.com/iashraf)
 * Last updated: 19 Aug 2014
 * ------
 * OPTIONS:
 * speed: >0 | The speed (in msecs) that the animation runs
 * defaultPane: >1 | The pane which should be opened by default
 */
$.fn.accordion = function(options){

	var accordion = this;

	var settings = $.extend({
		speed: 150,
		defaultPane: 0
	}, options);

	if (accordion.length > 0) {

		$(".accordion_content", accordion).hide();

		// open the default accordion
		if (settings.defaultPane > 0) {
			$(".accordion_item", accordion).eq(settings.defaultPane-1).find(".accordion_content").stop(true,true).slideDown(0, function(){
				$(this).parent().addClass("open");
			});
		}

		$(".accordion_header", accordion).click(function(){

			var pane = $(this).parent();

			if (!pane.hasClass("open")) {

				$(".accordion_content", accordion).stop(true,true).slideUp(settings.speed, function(){
					$(".accordion_item", accordion).removeClass("open");
				});

				$(".accordion_content", pane).stop(true,true).slideDown(settings.speed, function(){
					pane.addClass("open");
				});

			}

		});

	}

};<commit_msg>tweaks to comments<commit_after>/*
 * jQuery Accordion Plugin v1.0.0
 * by iashraf (http://github.com/iashraf)
 * Last updated: 19 Aug 2014
 * ------
 * OPTIONS:
 * speed: >0 | The speed (in msecs) that the animation runs
 * defaultPane: >1 | The pane which should be opened by default
 */
$.fn.accordion = function(options){

	var accordion = this;

	var settings = $.extend({
		speed: 150,
		defaultPane: 0
	}, options);

	if (accordion.length > 0) {

		// hide all panes on load
		$(".accordion_content", accordion).hide();

		// open the default pane
		if (settings.defaultPane > 0) {
			$(".accordion_item", accordion).eq(settings.defaultPane-1).find(".accordion_content").stop(true,true).slideDown(0, function(){
				$(this).parent().addClass("open");
			});
		}

		// open the correct pane when clicked
		$(".accordion_header", accordion).click(function(){

			var pane = $(this).parent();

			if (!pane.hasClass("open")) {

				$(".accordion_content", accordion).stop(true,true).slideUp(settings.speed, function(){
					$(".accordion_item", accordion).removeClass("open");
				});

				$(".accordion_content", pane).stop(true,true).slideDown(settings.speed, function(){
					pane.addClass("open");
				});

			}

		});

	}

};
{'fraction_non_alphanumeric': 0.18833333333333332, 'fraction_numerical': 0.015833333333333335, 'mean_word_length': 3.689453125, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3891662', 'n_tokens_mistral': 938, 'n_tokens_neox': 773, 'n_words': 171}