<commit_before>
$(function () {

    $('.ui.dropdown').dropdown({
        onChange: function(value) {

            // A workaround, see https://github.com/Semantic-Org/Semantic-UI/issues/2072
            // "[Dropdown] Add Nullable Option for Single Selection"

            var target = $(this);
            var wrapper = target.prop('tagName') == 'SELECT' ? target.parent() : target;

            if (wrapper.hasClass('nullable')) {

                if (value) {

                    var icon = wrapper.find('.dropdown.icon');

                    icon.removeClass('dropdown').addClass('delete').on('click', function(e) {

                        target.dropdown('clear');
                        $(this).removeClass('delete').addClass('dropdown');

                        e.preventDefault();
                        return false;
                    });
                }
            }
        }
    });

    $('body').on('click', '.message .close', function() {

        $(this)
          .closest('.message')
          .transition('fade')
        ;
    });

    $('.ui.accordion')<commit_msg>A workaround about Semantic UI issue 2072 (more testing). Signed-off-by:<NAME> <<EMAIL>><commit_after>
$(function () {

    $('.ui.dropdown:not(.nullable)').dropdown();

    // A workaround, see https://github.com/Semantic-Org/Semantic-UI/issues/2072
    // "[Dropdown] Add Nullable Option for Single Selection"
    $('.ui.dropdown.nullable').dropdown({
        onChange: function(value) {

            var target = $(this);
            var wrapper = target.prop('tagName') == 'SELECT' ? target.parent() : target;

            if (value) {

                var icon = wrapper.find('.dropdown.icon');

                icon.removeClass('dropdown').addClass('delete').on('click', function(e) {

                    target.dropdown('clear');
                    $(this).removeClass('delete').addClass('dropdown');

                    e.preventDefault();
                    return false;
                });
            }
        },
        fireOnInit: true
    });

    $('body').on('click', '.message .close', function() {

        $(this)
          .closest('.message')
          .transition('fade')
        ;
    });

    $('.ui.accordion')
{'fraction_non_alphanumeric': 0.1675603217158177, 'fraction_numerical': 0.005361930294906166, 'mean_word_length': 1.6341176470588235, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '1423260', 'n_tokens_mistral': 610, 'n_tokens_neox': 564, 'n_words': 104}