<commit_before>$(document).ready(function () {

	$(document).foundation();

	// $('.first-carousel').slick({
	// 	autoplay: true,
	// 	autoplaySpeed: 2000
	// });

	$('.sliders').slick({
		autoplay: false,
		arrows: true,
		dots: true,
		autoplaySpeed: 8000
	});

	$('.revs').slick({
		autoplay: true,
		arrows: false,
		autoplaySpeed: 8000
	});

	$('.batch .enroll').on('click', function() {
		var name = $(this).parents('.batch').attr('id');
		if( dataVar[ name + '_active']) {
			if( dataVar[ name + '_paymentURL' ] ) {
				window.location = dataVar[ name + '_paymentURL' ];
			}	else {
				registerUserModal({
					batchName : name,
					courseName : $('#courseName').text()
				});
			}
		}	else	{
			registerUserModal({
				batchName : name,
				courseName : $('#courseName').text()
			});
		}
	});
	
	$('.course-know a').on('click', function (e) {
		if($(this).attr('href') == '#') {
			e.preventDefault();
			registerUserModal({
				batchName : 'def',
				courseName : $(this).parents('.course-info').find('.course-title').text().trim()
			});
		}
	})

	function matchHeights(elements){
		if(Array.isArray(elements) && elements.length === 0) {
			return;
		}
		var max = 0;
		for(var i=0,j=elements.length,height=0; i<j; i++) {
			height = parseFloat(elements.eq(i).css('height'));
			if(height > max) {
				max = height;
			}
		}
		elements.css('height',max+'px');
	}

	function getDateString(t) {
		if(t instanceof Date) {
			return [t.getUTCFullYear(), ("0" + (t.getUTCMonth() + 1)).slice(-2), ("0" + t.getDate()).slice(-2)].join('-');
		}	else {
			return null;
		}
	}

	setTimeout(function () {
		showPromotionPopup();
	}, 7000);


	matchHeights($('.trainer'));
	matchHeights($('.course-info .course-description'));
	matchHeights($('.icons .column-block > .row'));

    function initCalendar () {
        if(typeof dataVar === 'undefined') {
            setTimeout(initCalendar, 3000);
            return;
		}

        $('.timings').each(function (cal) {
            var name = $(this).parents('.batch').attr('id');
            var data = dataVar[name + '_dates'];<commit_msg>calendar issue fixed<commit_after>$(document).ready(function () {

	$(document).foundation();

	// $('.first-carousel').slick({
	// 	autoplay: true,
	// 	autoplaySpeed: 2000
	// });

	$('.sliders').slick({
		autoplay: false,
		arrows: true,
		dots: true,
		autoplaySpeed: 8000
	});

	$('.revs').slick({
		autoplay: true,
		arrows: false,
		autoplaySpeed: 8000
	});

	$('.batch .enroll').on('click', function() {
		var name = $(this).parents('.batch').attr('id');
		if( dataVar[ name + '_active']) {
			if( dataVar[ name + '_paymentURL' ] ) {
				window.location = dataVar[ name + '_paymentURL' ];
			}	else {
				registerUserModal({
					batchName : name,
					courseName : $('#courseName').text()
				});
			}
		}	else	{
			registerUserModal({
				batchName : name,
				courseName : $('#courseName').text()
			});
		}
	});
	
	$('.course-know a').on('click', function (e) {
		if($(this).attr('href') == '#') {
			e.preventDefault();
			registerUserModal({
				batchName : 'def',
				courseName : $(this).parents('.course-info').find('.course-title').text().trim()
			});
		}
	})

	function matchHeights(elements){
		if(Array.isArray(elements) && elements.length === 0) {
			return;
		}
		var max = 0;
		for(var i=0,j=elements.length,height=0; i<j; i++) {
			height = parseFloat(elements.eq(i).css('height'));
			if(height > max) {
				max = height;
			}
		}
		elements.css('height',max+'px');
	}

	function getDateString(t) {
		if(t instanceof Date) {
			return [t.getFullYear(), ("0" + (t.getMonth() + 1)).slice(-2), ("0" + t.getDate()).slice(-2)].join('-');
		}	else {
			return null;
		}
	}

	setTimeout(function () {
		showPromotionPopup();
	}, 7000);


	matchHeights($('.trainer'));
	matchHeights($('.course-info .course-description'));
	matchHeights($('.icons .column-block > .row'));

    function initCalendar () {
        if(typeof dataVar === 'undefined') {
            setTimeout(initCalendar, 3000);
            return;
		}

        $('.timings').each(function (cal) {
            var name = $(this).parents('.batch').attr('id');
            var data = dataVar[name + '_dates'];
{'fraction_non_alphanumeric': 0.21966977745872218, 'fraction_numerical': 0.013878918401531467, 'mean_word_length': 3.1101278269419863, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2909632', 'n_tokens_mistral': 1686, 'n_tokens_neox': 1451, 'n_words': 251}