<commit_before>do ($$ = Quo) ->

    $$.fn.attr = (name, value) ->
        if $$.toType(name) is "string" and value is undefined
            this[0].getAttribute name
        else
            @each -> @setAttribute name, value

    $$.fn.removeAttr = (name) ->
        @each -> @removeAttribute name

    $$.fn.data = (name, value) -> @attr "data-" + name, value

    $$.fn.removeData = (name) -> @removeAttr "data-" + name

    $$.fn.val = (value) ->
        if $$.toType(value) is "string"
            @each -> @value = value
        else
            (if @length > 0 then this[0].value else null)

    $$.fn.show = -> @style "display", "block"

    $$.fn.hide = -> @style "display", "none"

    $$.fn.height = ->
        offset = @offset()
        offset.height
<commit_msg>Adding an error check for an odd element condition that occurs occasionally when doing jasmine testing.<commit_after>do ($$ = Quo) ->

    $$.fn.attr = (name, value) ->
        if this.length is 0
            null
        if $$.toType(name) is "string" and value is undefined
            this[0].getAttribute name
        else
            @each -> @setAttribute name, value

    $$.fn.removeAttr = (name) ->
        @each -> @removeAttribute name

    $$.fn.data = (name, value) -> @attr "data-" + name, value

    $$.fn.removeData = (name) -> @removeAttr "data-" + name

    $$.fn.val = (value) ->
        if $$.toType(value) is "string"
            @each -> @value = value
        else
            (if @length > 0 then this[0].value else null)

    $$.fn.show = -> @style "display", "block"

    $$.fn.hide = -> @style "display", "none"

    $$.fn.height = ->
        offset = @offset()
        offset.height

{'fraction_non_alphanumeric': 0.17190278601066983, 'fraction_numerical': 0.004149377593360996, 'mean_word_length': 1.8756388415672913, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '318633', 'n_tokens_mistral': 545, 'n_tokens_neox': 523, 'n_words': 152}