<commit_before>#     Hallo - a rich text editing jQuery UI widget
#     (c) 2011 <NAME>, IKS Consortium
#     Hallo may be freely distributed under the MIT license
((jQuery) ->
    jQuery.widget "IKS.halloheadings",
        options:
            editable: null
            toolbar: null
            uuid: ""
            headers: [1,2,3]

        _create: ->
            widget = this
            buttonset = jQuery "<span class=\"#{widget.widgetName}\"></span>"
            id = "#{@options.uuid}-paragraph"
            label = "P"
            buttonset.append jQuery("<input id=\"#{id}\" type=\"radio\" /><label for=\"#{id}\" class=\"p_button\">#{label}</label>").button()
            buttonset.children("label").unbind('mouseout')
            button = jQuery "##{id}", buttonset
            button.attr "hallo-command", "removeFormat"
            button.bind "change", (event) ->
                cmd = jQuery(this).attr "hallo-command"
                widget.options.editable.execute cmd<commit_msg>Fixed bug to format as paragraph<commit_after>#     Hallo - a rich text editing jQuery UI widget
#     (c) 2011 <NAME>, IKS Consortium
#     Hallo may be freely distributed under the MIT license
((jQuery) ->
    jQuery.widget "IKS.halloheadings",
        options:
            editable: null
            toolbar: null
            uuid: ""
            headers: [1,2,3]

        _create: ->
            widget = this
            buttonset = jQuery "<span class=\"#{widget.widgetName}\"></span>"
            id = "#{@options.uuid}-paragraph"
            label = "P"
            buttonset.append jQuery("<input id=\"#{id}\" type=\"radio\" /><label for=\"#{id}\" class=\"p_button\">#{label}</label>").button()
            buttonset.children("label").unbind('mouseout')
            button = jQuery "##{id}", buttonset
            button.attr "hallo-command", "formatBlock"
            button.bind "change", (event) ->
                cmd = jQuery(this).attr "hallo-command"
                widget.options.editable.execute cmd, "P"
{'fraction_non_alphanumeric': 0.1537320810677212, 'fraction_numerical': 0.006920415224913495, 'mean_word_length': 1.9896602658788773, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, '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': '2847696', 'n_tokens_mistral': 566, 'n_tokens_neox': 553, 'n_words': 141}