<commit_before>$(document).ready(function(){
	$('#generate').click(function(e){

		var length = 6;
		var vow = 'aeiou';
		var con1 = 'bcdfghjklmnpqrstvwxyz';
		var con2 = 'trcrbrfrthdrchphwrstspswprslcl';
		var vc = Math.floor(Math.random() * 2);
		var pw = '';

		for (var i = 0; i < length; i++)
		{
			if (vc)
			{
				if (Math.floor(Math.random() * 2))
				{
					var ran = Math.floor(Math.random() * con1.length);
					pw += con1.substring(ran, ran + 1);
				}
				else
				{
					ran = Math.floor(Math.random() * (con2.length / 2)) * 2;
					pw += con2.substring(ran, ran + 2);
				}
			}
			else
			{
				ran = Math.floor(Math.random() * vow.length);
				pw += vow.substring(ran, ran + 1);
			}

			vc++;
			vc = (vc > 1) ? 0 : 1;
		}

		pw += (Math.floor(Math.random() * 9) + 1);

		$('#password').val(pw);<commit_msg>randomize password generator number position<commit_after>$(document).ready(function(){
	$('#generate').click(function(e){

		var length = 6;
		var vow = 'aeiou';
		var con1 = 'bcdfghjklmnpqrstvwxyz';
		var con2 = 'trcrbrfrthdrchphwrstspswprslcl';
		var vc = Math.floor(Math.random() * 2);
		var pw = '';

		for (var i = 0; i < length; i++)
		{
			if (vc)
			{
				if (Math.floor(Math.random() * 2))
				{
					var ran = Math.floor(Math.random() * con1.length);
					pw += con1.substring(ran, ran + 1);
				}
				else
				{
					ran = Math.floor(Math.random() * (con2.length / 2)) * 2;
					pw += con2.substring(ran, ran + 2);
				}
			}
			else
			{
				ran = Math.floor(Math.random() * vow.length);
				pw += vow.substring(ran, ran + 1);
			}

			vc++;
			vc = (vc > 1) ? 0 : 1;
		}

		var before = Math.round(Math.random());
		var number = (Math.floor(Math.random() * 9) + 1);

		if (before){
			pw = number + pw;
		} else {
			pw += number;
		}

		$('#password').val(pw);
{'fraction_non_alphanumeric': 0.19822320932815102, 'fraction_numerical': 0.02220988339811216, 'mean_word_length': 2.512670565302144, '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': '2936957', 'n_tokens_mistral': 906, 'n_tokens_neox': 716, 'n_words': 153}