<commit_before>(function($) {
    $.fn.countChars = function(options) {
        // Set default settings
        var settings = $.extend({
            parentContainer: "div",
            charsClass: "charsRemaining",
            position: "before",
            debug: false,
            debugMode: "console",
            clearConsole: false
        }, options);

        if (settings.debug) {
            if (settings.clearConsole && settings.debugMode === "console") {
                if (!window.console) {
                    window.console = {
                        log: function() {}
                    };
                }
                console.clear();
            }

            var msg = ".:|BEGIN DEBUG @ " + new Date().toString() + "|:.";

            for (var I in settings) {
                msg += "\n" + I + " = " + settings[I];
            }
<commit_msg>Closes #1, Closes #2, Closes #3; * Adds logic to check if element has {{{maxlength}}} * Allows dynamic adding of characters count container * Adds option to append or prepend character count container<commit_after>(function($) {
    $.fn.countChars = function(options) {
        // Set default settings
        var settings = $.extend({
            parentContainer: "div",
            charsClass: "charsRemaining",
            position: "before",
            debug: false,
            debugMode: "console",
            clearConsole: false
        }, options);

        if (settings.debug) {
            if (!window.console) {
                window.console = {
                    log: function() {}
                };
            }
            if (settings.clearConsole && settings.debugMode === "console") {
                console.clear();
            }

            var msg = ".:|BEGIN DEBUG @ " + new Date().toString() + "|:.";

            for (var I in settings) {
                msg += "\n" + I + " = " + settings[I];
            }

{'fraction_non_alphanumeric': 0.13315926892950392, 'fraction_numerical': 0.001566579634464752, 'mean_word_length': 1.386052303860523, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1032380', 'n_tokens_mistral': 492, 'n_tokens_neox': 467, 'n_words': 127}