<commit_before>'use strict';

// GLOBAL VARIABLES
var date,
	typeSize = '60px',
	shapeWidth,
	shapeHeight,
	shapeScale,
	globalFontStyle,
	mapContent;

/*****************************************
/* NAVIGATION 
/*****************************************/
var triggerBttn = $( '#trigger-overlay' ),
	overlay = $( '.overlay' ),
	closeBttn = $( '.overlay-close' );

function toggleOverlay() {
	if (overlay.hasClass('open') ) {
		overlay.removeClass('open');
		overlay.addClass('close');
	}
	if ( !overlay.hasClass('close') ) {
		overlay.addClass('open');
	}
}

function overlayReset() {
	overlay.removeClass('close');
}

triggerBttn.click(function() {
	toggleOverlay();
});
closeBttn.click(function() {
	toggleOverlay();
	setTimeout(overlayReset, 1000);
});

// DATE PICKER
$(function() {
	$( '#dateIn' ).datepicker({
		'dateFormat': 'yy-mm-dd'
	});
});

$('.map-type .button').click(function() {
	var data = $(this).attr('data');
	$('#mapType').val(data);
	$(this).parent().find('.button').removeClass('active');
	$(this).addClass('active');
});

$('#modal1 .btn').click(function() {
	var value = $('#dateIn').val();
	var fullDate = new Date();
	var twoDigitMonth = ((fullDate.getMonth().length+1) === 1)? (fullDate.getMonth()+1) : '0' + (fullDate.getMonth()+1);
	
	var dateStripped = fullDate.getFullYear() + twoDigitMonth + fullDate.getDate();
	var valueStripped = value.replace(/\-/g,'');

	/*
	if (value === '') {
		alert('Hey, select a date.');
	} else if (valueStripped >= dateStripped) {
		alert('Hey, select a date that is not in the future.');
	}
	*/
});<commit_msg>Removed some un-used Javascript<commit_after>'use strict';

// GLOBAL VARIABLES
var date,
	typeSize = '60px',
	shapeWidth,
	shapeHeight,
	shapeScale,
	globalFontStyle,
	mapContent;

/*****************************************
/* NAVIGATION 
/*****************************************/
var triggerBttn = $( '#trigger-overlay' ),
	overlay = $( '.overlay' ),
	closeBttn = $( '.overlay-close' );

function toggleOverlay() {
	if (overlay.hasClass('open') ) {
		overlay.removeClass('open');
		overlay.addClass('close');
	}
	if ( !overlay.hasClass('close') ) {
		overlay.addClass('open');
	}
}

function overlayReset() {
	overlay.removeClass('close');
}

triggerBttn.click(function() {
	toggleOverlay();
});
closeBttn.click(function() {
	toggleOverlay();
	setTimeout(overlayReset, 1000);
});

// DATE PICKER
$(function() {
	$( '#dateIn' ).datepicker({
		'dateFormat': 'yy-mm-dd'
	});
});

$('.map-type .button').click(function() {
	var data = $(this).attr('data');
	$('#mapType').val(data);
	$(this).parent().find('.button').removeClass('active');
	$(this).addClass('active');
});

$('#modal1 .btn').click(function() {
	var value = $('#dateIn').val();
	var fullDate = new Date();
	var twoDigitMonth = ((fullDate.getMonth().length+1) === 1)? (fullDate.getMonth()+1) : '0' + (fullDate.getMonth()+1);
	
	var dateStripped = fullDate.getFullYear() + twoDigitMonth + fullDate.getDate();
	var valueStripped = value.replace(/\-/g,'');
});
{'fraction_non_alphanumeric': 0.26720106880427524, 'fraction_numerical': 0.008016032064128256, 'mean_word_length': 5.137295081967213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4402284', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1032, 'n_words': 179}