<commit_before>document.addEventListener('DOMContentLoaded', (e) => {

	const dobInput = document.getElementById('dob')
	const usage = document.getElementById('usage')
	const inputs = document.getElementById('inputs')
	const today = new Date()
	const maxWeeks = 4693

	if(inputs instanceof HTMLFormElement && dobInput instanceof HTMLInputElement && usage instanceof HTMLParagraphElement){

		let max = new Date()
				max.setFullYear(max.getFullYear() - 5)
		let min = new Date()

		dobInput.value = (max.getFullYear()) + '-' +
				(max.getMonth().length > 1 ? max.getMonth() : '0' + max.getMonth()) + '-' + max.getDate()
		dobInput.max = (max.getFullYear()) + '-' +
				(max.getMonth().length > 1 ? max.getMonth() : '0' + max.getMonth()) + '-' + max.getDate()
		dobInput.min = (min.getFullYear()) - 90 + '-' +
				(min.getMonth().length > 0 ? min.getMonth() : '0' + min.getMonth()) + '-' + max.getDate()

		dobInput.addEventListener('change', (e) => {<commit_msg>Add leading zero to date if it is single<commit_after>document.addEventListener('DOMContentLoaded', (e) => {

	const dobInput = document.getElementById('dob')
	const usage = document.getElementById('usage')
	const inputs = document.getElementById('inputs')
	const today = new Date()
	const maxWeeks = 4693

	if(inputs instanceof HTMLFormElement && dobInput instanceof HTMLInputElement && usage instanceof HTMLParagraphElement){

		let max = new Date()
				max.setFullYear(max.getFullYear() - 5)
		let min = new Date()

		dobInput.value = (max.getFullYear()) + '-' +
				(max.getMonth().length > 1 ? max.getMonth() : '0' + max.getMonth()) + '-' +
				(max.getDate().length > 1 ? max.getMonth() : '0' + max.getMonth())
		dobInput.max = (max.getFullYear()) + '-' +
				(max.getMonth().length > 1 ? max.getMonth() : '0' + max.getMonth()) + '-' +
				(max.getDate().length > 1 ? max.getMonth() : '0' + max.getMonth())
		dobInput.min = (min.getFullYear()) - 90 + '-' +
				(min.getMonth().length > 0 ? min.getMonth() : '0' + min.getMonth()) + '-' + max.getDate()

		dobInput.addEventListener('change', (e) => {
{'fraction_non_alphanumeric': 0.18867924528301888, 'fraction_numerical': 0.01451378809869376, 'mean_word_length': 4.031630170316301, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '711001', 'n_tokens_mistral': 753, 'n_tokens_neox': 680, 'n_words': 144}