<commit_before>$(document).ready(function () {
    moment.locale(current_language);

    /**
     * Usage of abbr ago
     *<abbr title="{{ post.created|date('Y-m-d H:i:s') }}"  class="ago">{{ post.created|date('Y-m-d H:i:s') }}</abbr>
     **/

    $('abbr.ago').each(function () {
        if (moment($(this).attr('title')).isValid()) {
            $(this).livestamp($(this).attr('title'));
        }
    });

    $("form").sisyphus({timeout: 10});

    $('[data-toggle="tooltip"]').tooltip();
    $('.fab').hover(function () {
        $(this).toggleClass('active');
    });

    $(".maskissn").each(function () {
        $(this).inputmask({
            mask: "####-###M",
            definitions: {'#': {validator: "[0-9]", cardinality: 1}, 'M': {validator: "[0-9X]", cardinality: 1}}
        });
    });
    $(".validate-form").validationEngine({
        promptPosition: 'inline', validateNonVisibleFields: true,
        updatePromptsPosition: true
    });

    $(".wysihtml5").summernote({
        height: 100,                 // set editor height

        minHeight: null,             // set minimum height of editor
        maxHeight: null,             // set maximum height of editor

        focus: true,                 // set focus to editable area after initializing summernote<commit_msg>fix #1085<commit_after>$(document).ready(function () {
    moment.locale(current_language);

    /**
     * Usage of abbr ago
     *<abbr title="{{ post.created|date('Y-m-d H:i:s') }}"  class="ago">{{ post.created|date('Y-m-d H:i:s') }}</abbr>
     **/

    $('abbr.ago').each(function () {
        if (moment($(this).attr('title')).isValid()) {
            $(this).livestamp($(this).attr('title'));
        }
    });

    $("form").sisyphus({timeout: 10, locationBased: true,});

    $('[data-toggle="tooltip"]').tooltip();
    $('.fab').hover(function () {
        $(this).toggleClass('active');
    });

    $(".maskissn").each(function () {
        $(this).inputmask({
            mask: "####-###M",
            definitions: {'#': {validator: "[0-9]", cardinality: 1}, 'M': {validator: "[0-9X]", cardinality: 1}}
        });
    });
    $(".validate-form").validationEngine({
        promptPosition: 'inline', validateNonVisibleFields: true,
        updatePromptsPosition: true
    });

    $(".wysihtml5").summernote({
        height: 100,                 // set editor height

        minHeight: null,             // set minimum height of editor
        maxHeight: null,             // set maximum height of editor

        focus: true,                 // set focus to editable area after initializing summernote
{'fraction_non_alphanumeric': 0.20702826585179526, 'fraction_numerical': 0.0106951871657754, 'mean_word_length': 2.2984886649874054, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2200602', 'n_tokens_mistral': 814, 'n_tokens_neox': 779, 'n_words': 150}