<commit_before>/**
 * Created by prism on 10/5/14.
 */<commit_msg>added random password generation<commit_after>/**
 * Created by prism on 10/5/14.
 */
$(document).ready(function() {
    $( "#generate" ).click(function() {
        var length = $('#range').val();
        var charset = "abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+";
        var retVal = "";
        for (var i = 0, n = charset.length; i < length; ++i) {
            retVal += charset.charAt(Math.floor(Math.random() * n));
        }
        $('#inputPassword').val(retVal);
    });
});
{'fraction_non_alphanumeric': 0.19793459552495696, 'fraction_numerical': 0.03614457831325301, 'mean_word_length': 2.9324324324324325, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5071421', 'n_tokens_mistral': 218, 'n_tokens_neox': 196, 'n_words': 39}