<commit_before>/**!
 * name: jQuery getChar
 * repository: https://github.com/bpeacock/key-to-charCode
 * @author <NAME>
 * @version 0.1
 * Copyright 2013, <NAME>
 * Licensed under the MIT license.
 */

(function($) {
    $.extend({
        getChar: function(e) {
            console.log(e.which);
            
            /*** Convert to Char Code ***/
            var code = e.which;
            var exceptions = {
                186: 59,
                187: 61,
                188: 44,
                189: 45,
                190: 46,
                191: 47,
                192: 96,
                219: 91,
                220: 92,
                221: 93,
                222: 39
            }
            if(typeof exceptions[code] != 'undefined') code = exceptions[code];
            
            var ch = String.fromCharCode(code);
            <commit_msg>Added Comments<commit_after>/**!
 * name: jQuery getChar
 * repository: https://github.com/bpeacock/key-to-charCode
 * @author <NAME>
 * @version 0.1
 * Copyright 2013, <NAME>
 * Licensed under the MIT license.
 */

(function($) {
    $.extend({
        getChar: function(e) {
            console.log(e.which);
            
            /*** Convert to Char Code ***/
            var code = e.which;
            
            //These are special cases that don't fit the ASCII mapping
            var exceptions = {
                186: 59, // ;
                187: 61, // =
                188: 44, // ,
                189: 45, // -
                190: 46, // .
                191: 47, // /
                192: 96, // `
                219: 91, // [
                220: 92, // \
                221: 93, // ]
                222: 39  // '
            }
            if(typeof exceptions[code] != 'undefined') code = exceptions[code];
            
            var ch = String.fromCharCode(code);
            
{'fraction_non_alphanumeric': 0.12971823498139287, 'fraction_numerical': 0.06485911749069644, 'mean_word_length': 1.0456521739130435, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '6492791', 'n_tokens_mistral': 608, 'n_tokens_neox': 506, 'n_words': 135}