<commit_before>(function(){
    function DateService(target){
        this.target = target;
        this.dates = {};
    }

    DateService.prototype.createItem = function(dateItemsElem, details){
        var itemElem = document.createElement('li');
        var jItemElem = $(itemElem);
        dateItemsElem.insertBefore(itemElem, dateItemsElem.firstChild);

        // select checkbox
        var selectElem = document.createElement('input');
        selectElem.type = 'checkbox';
        selectElem.className = 'item-select';
        itemElem.appendChild(selectElem);
        var jSelectElem = $(selectElem);
        jSelectElem.on('change', function(){
            if(this.checked){
                $(itemElem).addClass('item-checked');
            }
            else {
                $(itemElem).removeClass('item-checked');
            }
        });
        jSelectElem.data('id', details.id);

        jItemElem.on('click', function(){
            if(jSelectElem.is(':visible')){
                jSelectElem.trigger('click');
            }
        });

        // Price
        var priceElem = document.createElement('span');<commit_msg>FIX: taping on a checkbox does not changed its state<commit_after>(function(){
    function DateService(target){
        this.target = target;
        this.dates = {};
    }

    DateService.prototype.createItem = function(dateItemsElem, details){
        var itemElem = document.createElement('li');
        var jItemElem = $(itemElem);
        dateItemsElem.insertBefore(itemElem, dateItemsElem.firstChild);

        // select checkbox
        var selectElem = document.createElement('input');
        selectElem.type = 'checkbox';
        selectElem.className = 'item-select';
        itemElem.appendChild(selectElem);
        var jSelectElem = $(selectElem);
        jSelectElem.on('change', function(){
            if(this.checked){
                $(itemElem).addClass('item-checked');
            }
            else {
                $(itemElem).removeClass('item-checked');
            }
        });
        jSelectElem.data('id', details.id);

        jItemElem.on('click', function(e){
            if(e.target !== selectElem){
                if(jSelectElem.is(':visible')){
                    jSelectElem.trigger('click');
                }
            }
        });

        // Price
        var priceElem = document.createElement('span');
{'fraction_non_alphanumeric': 0.13308302044221945, 'fraction_numerical': 0.0, 'mean_word_length': 2.0087829360100375, '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': '5915262', 'n_tokens_mistral': 617, 'n_tokens_neox': 599, 'n_words': 102}