<commit_before>$(document).ready(function (){
	function foo(from, to){
		console.log(from.value);
		to.innerHTML = from.value;
	};
	
	//flight number
	var flight_number = document.getElementById("flight-number");
	var flight_number_side = document.getElementById("fn-fixed"); 
	
	flight_number.addEventListener("change", function(){
		foo(flight_number, flight_number_side);
	});
	
	//tariff
	var tariff_select = document.getElementById("tariff-select");
	var tariff_select_side = document.getElementById("tariff-fixed");
	
	tariff_select.addEventListener("change", function(){
		foo(tariff_select, tariff_select_side);
	});
	
	//number of passengers
	var pass_num = document.getElementById("pass-num");
	var pass_num_side = document.getElementById("pass-num-fixed");
	
	pass_num.addEventListener("change", function(){
		foo(pass_num, pass_num_side);
	});
	
	//child seat
	var child_seat = document.getElementById("chair");
	var child_seat_side = document.getElementById("chair-side"); 
	
	
	child_seat.addEventListener("click", function(){
		if (child_seat.checked === true){
			child_seat_side.innerHTML = " + child seat";
		}else{
			child_seat_side.innerHTML = "";
		}
	});
	
	//destination
	var destination_input = document.getElementById("pac-input-order-form");
	var destination_fixed = document.getElementById("dest_fixed");
	
	destination_input.addEventListener("change", function (){
		console.log("i don't know what to do here :()");
	});
	
	//contact information	
	var first_name = document.getElementById("pass-name");
	var last_name = document.getElementById("pass-lastname");
	var email = document.getElementById("email");
	var phone = document.getElementById("phone-number");
	
	var first_name_fixed = document.getElementById("first-name-fixed");
	var last_name_fixed = document.getElementById("last-name-fixed");
	var phone_name_fixed = document.getElementById("phone-fixed");
	var email_fixed = document.getElementById("email-fixed");
	
	var dict = {
		first_name: first_name_fixed,
		last_name: last_name_fixed,
		email: email_fixed,
		phone: phone_name_fixed
	};
	
	console.log(dict);
	
	first_name.addEventListener("change", function (){
		if (first_name_fixed.innerHTML = ""){
			$("#contacts-fixed").addClass("hide");
		}else{
			$("#contacts-fixed").removeClass("hide");
		first_name_fixed.innerHTML = this.value;
		}
		
	});
	
	var notes = document.getElementById("notes");
	var notes_fixed = document.getElementById("notes-fixed");
	
	notes.addEventListener("change", function(){
		if (notes_fixed.innerHTML = ""){
			$("#nfixed").addClass("hide");
		}else{
			$("#nfixed").removeClass("hide");
			notes_fixed.innerHTML = this.value;
		}
	});
});<commit_msg>minor fixes<commit_after>$(document).ready(function (){
	function foo(from, to){
		console.log(from.value);
		to.innerHTML = from.value;
	};
	
	//flight number
	var flight_number = document.getElementById("flight-number");
	var flight_number_side = document.getElementById("fn-fixed"); 
	
	flight_number.addEventListener("change", function(){
		foo(flight_number, flight_number_side);
	});
	
	// //number of passengers
	// var pass_num = document.getElementById("pass-num");
	// var pass_num_side = document.getElementById("pass-num-fixed");
// 	
	// pass_num.addEventListener("change", function(){
		// foo(pass_num, pass_num_side);
	// });
// 	
	// //child seat
	// var child_seat = document.getElementById("chair");
	// var child_seat_side = document.getElementById("chair-side"); 
	
	
	// child_seat.addEventListener("click", function(){
		// if (child_seat.checked === true){
			// child_seat_side.innerHTML = " + child seat";
		// }else{
			// child_seat_side.innerHTML = "";
		// }
	// });
	
	//destination
	var destination_input = document.getElementById("pac-input-order-form");
	var destination_fixed = document.getElementById("dest_fixed");
	
	destination_input.addEventListener("change", function (){
		console.log("i don't know what to do here :()");
	});
	
	//contact information	
	var first_name = document.getElementById("pass-name");
	var last_name = document.getElementById("pass-lastname");
	var email = document.getElementById("email");
	var phone = document.getElementById("phone-number");
	
	var first_name_fixed = document.getElementById("first-name-fixed");
	var last_name_fixed = document.getElementById("last-name-fixed");
	var phone_name_fixed = document.getElementById("phone-fixed");
	var email_fixed = document.getElementById("email-fixed");
	
	var dict = {
		first_name: first_name_fixed,
		last_name: last_name_fixed,
		email: email_fixed,
		phone: phone_name_fixed
	};
	
	console.log(dict);
	
	first_name.addEventListener("change", function (){
		if (first_name_fixed.innerHTML = ""){
			$("#contacts-fixed").addClass("hide");
		}else{
			$("#contacts-fixed").removeClass("hide");
		first_name_fixed.innerHTML = this.value;
		}
		
	});
	
	var notes = document.getElementById("notes");
	var notes_fixed = document.getElementById("notes-fixed");
	
	notes.addEventListener("change", function(){
		if (notes_fixed.innerHTML = ""){
			$("#nfixed").addClass("hide");
		}else{
			$("#nfixed").removeClass("hide");
			notes_fixed.innerHTML = this.value;
		}
	});
	
	//greeting sign
	console.log("greeting sign");
	var firstNameInput = document.getElementById("pass-name");
	var lastNameInput = document.getElementById("pass-lastname");
	var greetingField = document.getElementById("greeting-sign");
	var greetingValue = [];
	 
	function setGreeting(first, last){
		greetingField.value = first + " " + last;
	}
	
	firstNameInput.addEventListener("change", function(){
		var firstName = firstNameInput.value;
		greetingValue[0] = firstName;
		greetingField.value = greetingValue[0] + " " + greetingValue[1];
	});
	
	lastNameInput.addEventListener("change", function(){
		var lastName = lastNameInput.value;
		greetingValue[1] = lastName;
		greetingField.value = greetingValue[0] + " " + greetingValue[1];
	});
});
{'fraction_non_alphanumeric': 0.15861486486486487, 'fraction_numerical': 0.0010135135135135136, 'mean_word_length': 5.035677879714577, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7127728', 'n_tokens_mistral': 1924, 'n_tokens_neox': 1757, 'n_words': 307}