<commit_before>App.module "Views", (Views, App, Backbone, Marionette, $, _) ->
  class Views.HtmlCodeArea extends Views.CodeArea
    className: 'language-markup'

    serializeData: ->
      _.extend
        type: "HTML"
      , super

    templateHelpers: ->
      beutify: html_beautify

    getCode: =>
      code = new App.Views.InlineTemplate(
        collection: @model.selectedNetworks()
        styleType: App.request('supportedStyles').findWhere({selected: true}).get('name')
      ).render().$el.html()

      code = "<!-- Oh no! Better select some networks! -->" unless code.length > 0
      "<div> #{code} </div>"

    modelEvents: ->
      "change:selectedNetworks change:link change:message": @render<commit_msg>fix incorrect CSS class name output<commit_after>App.module "Views", (Views, App, Backbone, Marionette, $, _) ->
  class Views.HtmlCodeArea extends Views.CodeArea
    className: 'language-markup'

    serializeData: ->
      _.extend
        type: "HTML"
      , super

    templateHelpers: ->
      beutify: html_beautify

    getCode: =>
      classBase = (new Views[App.request('supportedStyles').findWhere({selected: true}).get('name')]).classBase

      code = new App.Views.InlineTemplate(
        collection: @model.selectedNetworks()
        styleType: classBase
      ).render().$el.html()

      code = "<!-- Oh no! Better select some networks! -->" unless code.length > 0
      "<div> #{code} </div>"

    modelEvents: ->
      "change:selectedNetworks change:link change:message": @render
{'fraction_non_alphanumeric': 0.14416775884665792, 'fraction_numerical': 0.001310615989515072, 'mean_word_length': 2.9765625, 'pattern_counts': {'":': 2, '<': 9, '<?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': '4425343', 'n_tokens_mistral': 458, 'n_tokens_neox': 443, 'n_words': 103}