<commit_before>

	let loginBtn = document.querySelector(".login");
	let registerBtn = document.querySelector(".register");
	let logoutBtn = document.querySelector(".logout");
	let dashboardBtn = document.querySelector(".dashboard-btn");

	let loginModal = document.querySelector(".login-modal");
	let registerModal = document.querySelector(".register-modal");
	let dashboard = document.querySelector(".dashboard");

	let loginSbmt = loginModal.querySelector(".login-btn");
	let registerSbmt = registerModal.querySelector(".register-btn");

	let displayUsername = document.querySelector(".display-username");

	let message  = document.querySelector(".message");
	let msgClose = message.querySelector(".msg-close");

	let searchResults = {};
	let favorites = JSON.parse(localStorage.getItem("favorites")) || {};
	let users = JSON.parse(localStorage.getItem("users")) || [];
	let currentUser = localStorage.getItem("currentUser") || "";

	let navIcon = document.querySelector(".nav-icon");
	let mainNav = document.querySelector(".main-nav");


	// Functions

	function flashMessage(msg) {
		message.children[0].textContent = msg;
		message.classList.add("flash");

	}


	function getMovies(search) {
		fetch(`https://www.omdbapi.com?s=${search}`)
			.then((blob) => {
				return blob.json();
			})
			.then((data) => {
				searchResults = data.Search;
				$("#results").fadeIn(400, function() {
						$("#singleView").fadeOut();

				});
				if(searchResults) {
					$("#results").html('');
					for(var value of searchResults) {
						if(value.Type == "movie") {
							$("#results").append(`
								<div class="movie">
									<img src="${value.Poster}" class="poster"/>
									<a href="http://www.omdbapi.com/?i=${value.imdbID}" class="title">${value.Title}</a>
									<p class="year">${value.Year}</p>
								</div>
							`);
							
						}
					}
					
				}
				
			})
			.catch((err) => {<commit_msg>made links protocol dependent in movies.html<commit_after>

	let loginBtn = document.querySelector(".login");
	let registerBtn = document.querySelector(".register");
	let logoutBtn = document.querySelector(".logout");
	let dashboardBtn = document.querySelector(".dashboard-btn");

	let loginModal = document.querySelector(".login-modal");
	let registerModal = document.querySelector(".register-modal");
	let dashboard = document.querySelector(".dashboard");

	let loginSbmt = loginModal.querySelector(".login-btn");
	let registerSbmt = registerModal.querySelector(".register-btn");

	let displayUsername = document.querySelector(".display-username");

	let message  = document.querySelector(".message");
	let msgClose = message.querySelector(".msg-close");

	let searchResults = {};
	let favorites = JSON.parse(localStorage.getItem("favorites")) || {};
	let users = JSON.parse(localStorage.getItem("users")) || [];
	let currentUser = localStorage.getItem("currentUser") || "";

	let navIcon = document.querySelector(".nav-icon");
	let mainNav = document.querySelector(".main-nav");


	// Functions

	function flashMessage(msg) {
		message.children[0].textContent = msg;
		message.classList.add("flash");

	}


	function getMovies(search) {
		fetch(`//www.omdbapi.com?s=${search}`)
			.then((blob) => {
				return blob.json();
			})
			.then((data) => {
				searchResults = data.Search;
				$("#results").fadeIn(400, function() {
						$("#singleView").fadeOut();

				});
				if(searchResults) {
					$("#results").html('');
					for(var value of searchResults) {
						if(value.Type == "movie") {
							$("#results").append(`
								<div class="movie">
									<img src="${value.Poster}" class="poster"/>
									<a href="//www.omdbapi.com/?i=${value.imdbID}" class="title">${value.Title}</a>
									<p class="year">${value.Year}</p>
								</div>
							`);
							
						}
					}
					
				}
				
			})
			.catch((err) => {
{'fraction_non_alphanumeric': 0.187467498699948, 'fraction_numerical': 0.0020800832033281333, 'mean_word_length': 3.6857490864799027, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 23, 'https://': 1, 'lorem ipsum': 0, 'www.': 4, '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': '4458239', 'n_tokens_mistral': 1392, 'n_tokens_neox': 1143, 'n_words': 191}