<commit_before>$(function () {
    let flatpack = MapasCulturais.flatpickr;
    flatpack.locale = MapasCulturais.lcode.substr(0,2);
    flatpack.dateFormat = "Y-m-d";
    flatpack.altInput= true;

    $('input[type="date"]').each(function() {
        let $this = $(this);
        if (!$this.data('flatpickr')) {
            $this.attr('type', 'text');
            $this.flatpickr({
                locale: MapasCulturais.lcode.substr(0,2),
                dateFormat: "Y-m-d",
                altInput: true,
                altFormat: MapasCulturais.flatpickr.altFormat,
            });
        }
    });
});<commit_msg>melhora salvamento do datepicker<commit_after>$(function () {
    let flatpack = MapasCulturais.flatpickr;
    flatpack.locale = MapasCulturais.lcode.substr(0,2);
    flatpack.dateFormat = "Y-m-d";
    flatpack.altInput= true;

    $('input[type="date"]').each(function() {
        let $this = $(this);
        if (!$this.data('flatpickr')) {
            $this.attr('type', 'text');
            $this.flatpickr({
                locale: MapasCulturais.lcode.substr(0,2),
                dateFormat: "Y-m-d",
                altInput: true,
                altFormat: MapasCulturais.flatpickr.altFormat,
                onChange: function(selectedDates, dateStr, instance) {
                    setTimeout(() => {
                        $this.trigger('blur')
                    }, 10);
                },
            });
        }
    });
});
{'fraction_non_alphanumeric': 0.15710382513661203, 'fraction_numerical': 0.006830601092896175, 'mean_word_length': 1.8011472275334608, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1093866', 'n_tokens_mistral': 466, 'n_tokens_neox': 459, 'n_words': 64}