<commit_before>/**
 * checkbox field
 *
 * @param {Object} field_descriptor field specific part of the form schema
 * @param {Object} field_data initial value for the field
 * @constructor
 * @class schnipp.dynforms.fields.checkbox
 * @extends schnipp.dynforms.primitive_field
 * @module schnipp.dynforms.fields
 **/
schnipp.dynforms.fields.checkbox = function(field_descriptor, field_data) {
    var self = schnipp.dynforms.primitive_field(field_descriptor, field_data)
    self.default_value = false
    var _checked = self.get_initial_data() ? 'checked="checked"' : ''

    self.dom.input = $(
        '<input type="checkbox" name="' +
        self.field_descriptor.name +
        '" ' + _checked +
        '" class="fieldtype_' + self.field_descriptor.type +
        '"></input>'
    )
    
    


    if (field_descriptor.style === 'box_left') {
        self.render_container = function(field_descriptor, rendered_field) {
            var main = $('<div class="field-holder field-' + field_descriptor.name +  '"></div>')
            main.append(rendered_field)
            if (field_descriptor.label !== undefined || field_descriptor.label !== null) {
                var label = $('<label></label>').text(field_descriptor.label)
                main.append(label)
            }
            return main
        }
    }
    
    self.super_initialize = self.initialize
    self.initialize = function() {
        self.dom.main.hover(function() {
            
        })
    }<commit_msg>removed hover event in checkox init<commit_after>/**
 * checkbox field
 *
 * @param {Object} field_descriptor field specific part of the form schema
 * @param {Object} field_data initial value for the field
 * @constructor
 * @class schnipp.dynforms.fields.checkbox
 * @extends schnipp.dynforms.primitive_field
 * @module schnipp.dynforms.fields
 **/
schnipp.dynforms.fields.checkbox = function(field_descriptor, field_data) {
    var self = schnipp.dynforms.primitive_field(field_descriptor, field_data)
    self.default_value = false
    var _checked = self.get_initial_data() ? 'checked="checked"' : ''

    self.dom.input = $(
        '<input type="checkbox" name="' +
        self.field_descriptor.name +
        '" ' + _checked +
        '" class="fieldtype_' + self.field_descriptor.type +
        '"></input>'
    )
    
    


    if (field_descriptor.style === 'box_left') {
        self.render_container = function(field_descriptor, rendered_field) {
            var main = $('<div class="field-holder field-' + field_descriptor.name +  '"></div>')
            main.append(rendered_field)
            if (field_descriptor.label !== undefined || field_descriptor.label !== null) {
                var label = $('<label></label>').text(field_descriptor.label)
                main.append(label)
            }
            return main
        }
    }
    
    self.super_initialize = self.initialize
    self.initialize = function() {
        //self.dom.main.hover(function() {
        //})
    }
{'fraction_non_alphanumeric': 0.13030404276645507, 'fraction_numerical': 0.0, 'mean_word_length': 2.611580217129071, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '1997111', 'n_tokens_mistral': 871, 'n_tokens_neox': 852, 'n_words': 165}