<commit_before>$(document).on('ready', function() {

    var bulkActionForm = $('.bulk-actions');
    if (bulkActionForm.length) {
        bulkActionForm.submit(function (e) {
            var action = $('.bulk-actions .bulk-action-submit select').val();
            if (!action) {
                return e.preventDefault();
            }

            bulkActionForm.attr('action', action);
        });
    }

    $('[role=datetime-picker]').each(function() {
        $(this).datetimepicker({
            locale: $(this).data('locale'),
            format: $(this).data('format'),
            date: new Date($(this).data('timestamp') * 1000)
        });
    });

    $('select:not(.autocomplete, .no-selectize)').selectize({plugins: ['remove_button']});

    $('input.autocomplete, select.autocomplete').each(function (i, e) {
        e = $(e);<commit_msg>Added support for default empty datetime value<commit_after>$(document).on('ready', function() {

    var bulkActionForm = $('.bulk-actions');
    if (bulkActionForm.length) {
        bulkActionForm.submit(function (e) {
            var action = $('.bulk-actions .bulk-action-submit select').val();
            if (!action) {
                return e.preventDefault();
            }

            bulkActionForm.attr('action', action);
        });
    }

    $('[role=datetime-picker]').each(function() {
        var date = new Date($(this).data('timestamp') * 1000);
        if ($(this).data('timestamp') === '') {
            date = '' ;
        };
        $(this).datetimepicker({
            locale: $(this).data('locale'),
            format: $(this).data('format'),
            date: date
        });
    });

    $('select:not(.autocomplete, .no-selectize)').selectize({plugins: ['remove_button']});

    $('input.autocomplete, select.autocomplete').each(function (i, e) {
        e = $(e);
{'fraction_non_alphanumeric': 0.19340896812533764, 'fraction_numerical': 0.004321988114532685, 'mean_word_length': 2.295373665480427, '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': '1314706', 'n_tokens_mistral': 550, 'n_tokens_neox': 522, 'n_words': 89}