<commit_before>class Streamaweb.Views.CommentsForm extends Backbone.View

  template: JST['comments/index']

  events: ->
    { "submit" : "renderAfterSubmit" }

  render: ->
    console.log(@el)
    id = @el.children[0].getAttribute('id')
    $(this.el).html(@template({id: id}))

  renderAfterSubmit: ->
    console.log("submit")
    return false<commit_msg>more binding stuff<commit_after>class Streamaweb.Views.CommentsForm extends Backbone.View

  template: JST['comments/index']

  events: ->
    { "submit" : "renderAfterSubmit" }

  render: ->
    console.log(@el)
    id = @el.children[0].getAttribute('id')
    $(this.el).html(@template({id: id}))

  renderAfterSubmit: ->
    console.log("submit")
    comments = new Streamaweb.Collections.Comments()
    comments.create({content: this.el.children[0].children[1].value})


    return false
{'fraction_non_alphanumeric': 0.1635294117647059, 'fraction_numerical': 0.004705882352941176, 'mean_word_length': 3.8908045977011496, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6810695', 'n_tokens_mistral': 277, 'n_tokens_neox': 265, 'n_words': 44}