<commit_before>(function (w) {
    if (typeof (w.jQuery) !== 'undefined') {
        var $ = w.jQuery;
    } else {
        console.log('jQuery is not defined');
        return false;
    }
    $(document).ready(function () {
        var $inputItems = $('#ztportfolioPropertiesEditor input.ztportfolio-property');
        $inputItems.each(function () {
            $(this).val(atob($(this).val()));
        });
        $('.bootstrap-datepicker').datepicker({
            onSelect: function(){
                $inputItems.trigger('keyup');
            }
        });
        $inputItems.keyup(function () {
            var data = [];
            $inputItems.each(function () {
                data.push({
                    name: $(this).data('name'),
                    type: $(this).data('type'),
                    value: btoa($(this).val())
                });
            });
            $('#ztportfolioPropeties').val(JSON.stringify(data));
            console.log(JSON.stringify(data));
        });
    });
})(window);<commit_msg>fixed save properties<commit_after>(function (w) {
    if (typeof (w.jQuery) !== 'undefined') {
        var $ = w.jQuery;
    } else {
        console.log('jQuery is not defined');
        return false;
    }
    $(document).ready(function () {
        var $inputItems = $('#ztportfolioPropertiesEditor input.ztportfolio-property');
        $inputItems.each(function () {
            $(this).val(atob($(this).val()));
        });
        $('.bootstrap-datepicker').datepicker({
            onSelect: function(){
                $inputItems.trigger('keyup');
            }
        });

        var data = [];
            $inputItems.each(function () {
                data.push({
                    name: $(this).data('name'),
                    type: $(this).data('type'),
                    value: btoa($(this).val())
                });
            });
            $('#ztportfolioPropeties').val(JSON.stringify(data));
            
        $inputItems.keyup(function () {
            var data = [];
            $inputItems.each(function () {
                data.push({
                    name: $(this).data('name'),
                    type: $(this).data('type'),
                    value: btoa($(this).val())
                });
            });
            $('#ztportfolioPropeties').val(JSON.stringify(data));
            console.log(JSON.stringify(data));
        });
    });
})(window);
{'fraction_non_alphanumeric': 0.17700205338809036, 'fraction_numerical': 0.0, 'mean_word_length': 1.5348595213319458, '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': '6720202', 'n_tokens_mistral': 653, 'n_tokens_neox': 628, 'n_words': 92}