<commit_before><!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<!--  Mobile viewport scale | Disable user zooming as the layout is optimised -->
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>Random Password Generator - Rick's Code</title>

	<!-- Compiled and minified CSS -->
	<!-- More Here: http://materializecss.com/ -->
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/css/materialize.min.css">

	<!-- jQuery -->
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>

	<!-- Compiled and minified JavaScript -->
	<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/js/materialize.min.js"></script>
	<script>
		$(document).ready(function() {
			$(".button-collapse").sideNav();
		});
	</script>

	<script>
function GeneratePassword(lengthOfPassword) {
	var theLetters = "abcdefghijklmnopqrstuvwxyz";
	var StrongPasswordArray = [];
	var capitalise;
	for (var i = 0; i < lengthOfPassword; i++) {
		capitalise = Math.round(Math.random() * 1);
		if (capitalise === 0) {
			StrongPasswordArray[i] = theLetters.charAt(Math.round(Math.random() * 25)).toUpperCase();
		}
		else {
			StrongPasswordArray[i] = theLetters.charAt(Math.round(Math.random() * 25));
		}
	}
	var numberOfDigits;
	numberOfDigits = Math.round(Math.random() * (lengthOfPassword - 1)) + 1;
	var positionForNumeric, theNumber;
	for (i = 0; i < numberOfDigits; i++) {
		positionForNumeric = Math.round(Math.random() * (lengthOfPassword - 1));
		theNumber = Math.round(Math.random() * 9);
		StrongPasswordArray[positionForNumeric] = theNumber;
	}

	return StrongPasswordArray;
}


$(document).ready(function() {
	var pass = GeneratePassword(15);
	$('#pass').html(pass);

});

	</script>


</head>
<body>

	<header>
        <nav>
            <div class="nav-wrapper blue">
                <div class="container">
                    <div class="row">
                        <div class="col s12">
                            <a href="#" class="brand-logo">JS Password Generator</a>
							<a href="#" data-activates="mobile-demo" class="button-collapse"><i class="mdi-navigation-menu"></i></a>
                            <ul id="nav-mobile" class="right hide-on-med-and-down">
                                <li><a href="http://php.quicoto.com/how-to-generate-random-password-with-javascript/"><i class="mdi-navigation-arrow-back left"></i> Back to Article</a></li>
                                <li><a href="https://github.com/quicoto/ricks-code-examples/tree/master/33"><i class="mdi-content-link left"></i>Fork me on Github</a></li>
                            </ul>
							<ul class="side-nav" id="mobile-demo">
								<li><a href="http://php.quicoto.com/how-to-generate-random-password-with-javascript/"><i class="mdi-navigation-arrow-back left"></i> Back to Article</a></li>
								<li><a href="https://github.com/quicoto/ricks-code-examples/tree/master/33"><i class="mdi-content-link left"></i>Fork me on Github</a></li>
							</ul>
                         </div> <!-- .col s12 -->
                    </div> <!-- .row -->
                 </div> <!-- .container -->
            </div> <!-- .nav-wrapper -->
        </nav>
	</header>

	<section class="container">
		<article>
			<header>
				<h2 id="pass" class="center"></h2>
			</header>
		</article>
	</section>

	<footer class="page-footer blue">
		<div class="footer-copyright">
			<div class="container">
				<a class="grey-text text-lighten-3" href="http://php.quicoto.com/" target="_blank"><NAME></a>
			</div>
		</div> <!-- .footer-copyright -->
	</footer>

</body>
</html><commit_msg>Better styling with Material<commit_after><!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<!--  Mobile viewport scale | Disable user zooming as the layout is optimised -->
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>Random Password Generator - Rick's Code</title>

	<!-- Compiled and minified CSS -->
	<!-- More Here: http://materializecss.com/ -->
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/css/materialize.min.css">

	<!-- jQuery -->
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>

	<!-- Compiled and minified JavaScript -->
	<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/js/materialize.min.js"></script>
	<script>
		$(document).ready(function() {
			$(".button-collapse").sideNav();
		});
	</script>

	<script>
function GeneratePassword(lengthOfPassword) {
	var theLetters = "abcdefghijklmnopqrstuvwxyz";
	var StrongPasswordArray = [];
	var capitalise;
	for (var i = 0; i < lengthOfPassword; i++) {
		capitalise = Math.round(Math.random() * 1);
		if (capitalise === 0) {
			StrongPasswordArray[i] = theLetters.charAt(Math.round(Math.random() * 25)).toUpperCase();
		}
		else {
			StrongPasswordArray[i] = theLetters.charAt(Math.round(Math.random() * 25));
		}
	}
	var numberOfDigits;
	numberOfDigits = Math.round(Math.random() * (lengthOfPassword - 1)) + 1;
	var positionForNumeric, theNumber;
	for (i = 0; i < numberOfDigits; i++) {
		positionForNumeric = Math.round(Math.random() * (lengthOfPassword - 1));
		theNumber = Math.round(Math.random() * 9);
		StrongPasswordArray[positionForNumeric] = theNumber;
	}

	return StrongPasswordArray;
}


$(document).ready(function() {
	var pass = GeneratePassword(15);
	$('#pass').html(pass);

});

	</script>

<style>
	/* Fixed footer */
	body {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
	}

	main {
	flex: 1 0 auto;
	}

	footer.page-footer {
		margin-top: 0;
	}
</style>

</head>
<body>

	<header>
        <nav>
            <div class="nav-wrapper blue">
                <div class="container">
                    <div class="row">
                        <div class="col s12">
                            <a href="#" class="brand-logo">JS Password Generator</a>
							<a href="#" data-activates="mobile-demo" class="button-collapse"><i class="mdi-navigation-menu"></i></a>
                            <ul id="nav-mobile" class="right hide-on-med-and-down">
                                <li><a href="http://php.quicoto.com/how-to-generate-random-password-with-javascript/"><i class="mdi-navigation-arrow-back left"></i> Back to Article</a></li>
                                <li><a href="https://github.com/quicoto/ricks-code-examples/tree/master/33"><i class="mdi-content-link left"></i>Fork me on Github</a></li>
                            </ul>
							<ul class="side-nav" id="mobile-demo">
								<li><a href="http://php.quicoto.com/how-to-generate-random-password-with-javascript/"><i class="mdi-navigation-arrow-back left"></i> Back to Article</a></li>
								<li><a href="https://github.com/quicoto/ricks-code-examples/tree/master/33"><i class="mdi-content-link left"></i>Fork me on Github</a></li>
							</ul>
                         </div> <!-- .col s12 -->
                    </div> <!-- .row -->
                 </div> <!-- .container -->
            </div> <!-- .nav-wrapper -->
        </nav>
	</header>

	<main class="blue lighten-2">
	<section class="container">
		<article>
			<header>
				<h1 id="pass" class="center white-text"></h1>
			</header>
		</article>
	</section>
	</main>

	<footer class="page-footer blue">
		<div class="footer-copyright">
			<div class="container">
				<a class="grey-text text-lighten-3" href="http://php.quicoto.com/" target="_blank"><NAME></a>
			</div>
		</div> <!-- .footer-copyright -->
	</footer>

</body>
</html>
{'fraction_non_alphanumeric': 0.1944552909019914, 'fraction_numerical': 0.011323701679031628, 'mean_word_length': 2.830508474576271, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 193, 'https://': 10, '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': '6458174', 'n_tokens_mistral': 2799, 'n_tokens_neox': 2529, 'n_words': 456}