<commit_before>$(document).ready(function() {
	$("#set-quantities").hide();
	$("#set-suppliers").hide();
	$("#main").hide();
	$("#active-shipments").hide();
	$("#order-history").hide();

	$(".next-button").bind("click", function() {

	  var currentBreadcrumb = $("#breadcrumbs").find(".active");
	  var currentSection = currentBreadcrumb.attr("data-section");
	  $('#'+currentSection).hide(200);
	  currentBreadcrumb.removeClass("active");

	  if(currentSection == "view-summary") return;

	  var nextBreadcrumb = currentBreadcrumb.next();
	  var nextSection = nextBreadcrumb.attr("data-section");
	  $('#'+nextSection).show(200);
	  nextBreadcrumb.addClass("active");
	});

	$(".icon-minus").bind("click", function() {
		var num = $(".quantity").text();
		num--;
		if(num >=0) {
			$(".quantity").text(num);
			$(".total-amount .text").text(num*50);
			$(".cost .text").text("$" + num*4);
		}
	});

	$(".icon-plus").bind("click", function() {
		var num = $(".quantity").text();
		num++;
		$(".quantity").text(num);
		$(".total-amount .text").text(num*50);
		$(".cost .text").text("$" + num*4);
	});

	$(".segment.items, .segment.quantities, .segment.suppliers, .segment.summary").bind("click", function() {
		var currentBreadcrumb = $("#breadcrumbs").find(".active");
		var currentSection = currentBreadcrumb.attr("data-section");
		$('#'+currentSection).hide(200);
		currentBreadcrumb.removeClass("active");

		var nextBreadcrumb = $(this);
		var nextSection = nextBreadcrumb.attr("data-section");
		$('#'+nextSection).show(200);
		nextBreadcrumb.addClass("active");
	});

		//collapsible management
	$('.collapsible').collapsible({
		defaultOpen: 'item1,item3'
	});

	$('.remove-button').bind("click", function() {
		var row = $(this).closest(".item-row");
		row.hide(200);
	});

	$('.new-order-btn').bind("click", function() {
		hideAll();
		$("#main").show(200);
	});

	$('.saved-order-btn').bind("click", function() {
		hideAll();
	});

	$('.incoming-shipment-btn').bind("click", function() {
		hideAll();
		$("#active-shipments").show();
	});

	$('.order-history-btn').bind("click", function() {
		hideAll();
		$("#order-history").show();
	});

        $('.shipment-details-link').bind("click", function() {
            $('.shipment-late').slideUp();
        });

        $('.shipment-morelink').bind("click", function() {
            $('.shipment-morelink').slideUp("fast", "linear", function () { $('#active-shipments').find('.more').slideDown(400, "swing", null); });
        });

        $('.shipment-details-supplier').tooltip();

	function hideAll()
	{
		$("#welcome").hide();
		$("#main").hide();
		$("#active-shipments").hide();
		$("#order-history").hide();
	}
});
<commit_msg>Added same transition animation from welcome screen to shipments and history pages as already existed for the new order page<commit_after>$(document).ready(function() {
	$("#set-quantities").hide();
	$("#set-suppliers").hide();
	$("#main").hide();
	$("#active-shipments").hide();
	$("#order-history").hide();

	$(".next-button").bind("click", function() {

	  var currentBreadcrumb = $("#breadcrumbs").find(".active");
	  var currentSection = currentBreadcrumb.attr("data-section");
	  $('#'+currentSection).hide(200);
	  currentBreadcrumb.removeClass("active");

	  if(currentSection == "view-summary") return;

	  var nextBreadcrumb = currentBreadcrumb.next();
	  var nextSection = nextBreadcrumb.attr("data-section");
	  $('#'+nextSection).show(200);
	  nextBreadcrumb.addClass("active");
	});

	$(".icon-minus").bind("click", function() {
		var num = $(".quantity").text();
		num--;
		if(num >=0) {
			$(".quantity").text(num);
			$(".total-amount .text").text(num*50);
			$(".cost .text").text("$" + num*4);
		}
	});

	$(".icon-plus").bind("click", function() {
		var num = $(".quantity").text();
		num++;
		$(".quantity").text(num);
		$(".total-amount .text").text(num*50);
		$(".cost .text").text("$" + num*4);
	});

	$(".segment.items, .segment.quantities, .segment.suppliers, .segment.summary").bind("click", function() {
		var currentBreadcrumb = $("#breadcrumbs").find(".active");
		var currentSection = currentBreadcrumb.attr("data-section");
		$('#'+currentSection).hide(200);
		currentBreadcrumb.removeClass("active");

		var nextBreadcrumb = $(this);
		var nextSection = nextBreadcrumb.attr("data-section");
		$('#'+nextSection).show(200);
		nextBreadcrumb.addClass("active");
	});

		//collapsible management
	$('.collapsible').collapsible({
		defaultOpen: 'item1,item3'
	});

	$('.remove-button').bind("click", function() {
		var row = $(this).closest(".item-row");
		row.hide(200);
	});

	$('.new-order-btn').bind("click", function() {
		hideAll();
		$("#main").show(200);
	});

	$('.saved-order-btn').bind("click", function() {
		hideAll();
	});

	$('.incoming-shipment-btn').bind("click", function() {
		hideAll();
		$("#active-shipments").show(200);
	});

	$('.order-history-btn').bind("click", function() {
		hideAll();
		$("#order-history").show(200);
	});

        $('.shipment-details-link').bind("click", function() {
            $('.shipment-late').slideUp();
        });

        $('.shipment-morelink').bind("click", function() {
            $('.shipment-morelink').slideUp("fast", "linear", function () { $('#active-shipments').find('.more').slideDown(400, "swing", null); });
        });

        $('.shipment-details-supplier').tooltip();

	function hideAll()
	{
		$("#welcome").hide();
		$("#main").hide();
		$("#active-shipments").hide();
		$("#order-history").hide();
	}
});

{'fraction_non_alphanumeric': 0.2642195166272942, 'fraction_numerical': 0.011993458113756133, 'mean_word_length': 4.323017408123791, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2309940', 'n_tokens_mistral': 1969, 'n_tokens_neox': 1833, 'n_words': 255}