<commit_before>// CurtainBlock.js
// Written by <NAME>
// Options for easy access and setup

CurtainBlock = {
	init: false,
	options: {
		persistent: false, // Disable the alerts if you've confirmed it before
		redir: 'about:blank', // Redirect URL on denial
		transparency: false //15% transparency if you want it
	},
}
$(document).ready(function () {
	// Setup!
	$curtain = $('.CurtainBlock');
	$alert = $('.CurtainBlockAlert');
	$confirm = $('.CurtainBlockConfirm');
	$deny = $('.CurtainBlockDeny');
	complete = 0;
	// Core CurtainBlock methods, including the start
	// Checks that CurtainBlock.js is setup properly
	if (CurtainBlock.init) {
		// Checks for localStorage and disables the curtain, if that option is toggled.
		if (CurtainBlock.options.persistent) {
			if (localStorage.getItem("curtainConfirm")) {
				$curtain.hide();
				complete = 1;
			};
		};
		// If we don't have the storage, run the CurtainThing.
		if (complete === 0) {
			// Show Everything (The Curtain is on by default.)
			$confirm.show();
   			$deny.show();
			$alert.fadeIn(500);
			// Redirect / hide based on user input
			if (CurtainBlock.options.transparency) {
				$curtain.css('background-color','rgba(0,0,0,0.85')
			}
			$confirm.click(function () {
				$curtain.fadeOut(750);
				$alert.fadeOut(350);
				// If we're persistent, set up the localStorage
				if (CurtainBlock.options.persistent) {<commit_msg>Remove redundant fadeIn(); (Alert shows by default)<commit_after>// CurtainBlock.js
// Written by <NAME>
// Options for easy access and setup

CurtainBlock = {
	init: false,
	options: {
		persistent: false, // Disable the alerts if you've confirmed it before
		redir: 'about:blank', // Redirect URL on denial
		transparency: false //15% transparency if you want it
	},
}
$(document).ready(function () {
	// Setup!
	$curtain = $('.CurtainBlock');
	$alert = $('.CurtainBlockAlert');
	$confirm = $('.CurtainBlockConfirm');
	$deny = $('.CurtainBlockDeny');
	complete = 0;
	// Core CurtainBlock methods, including the start
	// Checks that CurtainBlock.js is setup properly
	if (CurtainBlock.init) {
		// Checks for localStorage and disables the curtain, if that option is toggled.
		if (CurtainBlock.options.persistent) {
			if (localStorage.getItem("curtainConfirm")) {
				$curtain.hide();
				complete = 1;
			};
		};
		// If we don't have the storage, run the CurtainThing.
		if (complete === 0) {
			// Show Everything (The Curtain is on by default.)
			$confirm.show();
   			$deny.show();
			// Redirect / hide based on user input
			if (CurtainBlock.options.transparency) {
				$curtain.css('background-color','rgba(0,0,0,0.85')
			}
			$confirm.click(function () {
				$curtain.fadeOut(750);
				$alert.fadeOut(350);
				// If we're persistent, set up the localStorage
				if (CurtainBlock.options.persistent) {
{'fraction_non_alphanumeric': 0.1448349307774228, 'fraction_numerical': 0.013134540291089812, 'mean_word_length': 3.501597444089457, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '177855', 'n_tokens_mistral': 1066, 'n_tokens_neox': 923, 'n_words': 261}