<commit_before>class app.Views.Feedback extends Backbone.View
  template: JST['app/templates/feedback.us']
  confirmTemplate: JST['app/templates/feedback_confirm.us']

  events:
    'submit form': 'submit'
    'click .close': 'remove'
    'click .overlay': 'closeIfClickedOutside'

  initialize: ->
    @model = new app.Models.Feedback
    @listenTo @model, 'sync', @confirm

  render: ->
    @$el.html @template()
    $(document.body).append @el

  submit: (e) ->
    e.preventDefault()
    @model.save title: @$('[name=title]').val(), body: @$('[name=body]').val()
<commit_msg>keyboard shortcuts for feedback<commit_after>class app.Views.Feedback extends Backbone.View
  template: JST['app/templates/feedback.us']
  confirmTemplate: JST['app/templates/feedback_confirm.us']

  events:
    'submit form': 'submit'
    'click .close': 'remove'
    'click .overlay': 'closeIfClickedOutside'

  keyboardEvents:
    'esc': 'remove'
    'meta+enter': 'submit'

  initialize: ->
    @model = new app.Models.Feedback
    @listenTo @model, 'sync', @confirm

  render: ->
    @$el.html @template()
    $(document.body).append @el

  submit: (e) ->
    e.preventDefault() if e
    @model.save title: @$('[name=title]').val(), body: @$('[name=body]').val()

{'fraction_non_alphanumeric': 0.17963111467522053, 'fraction_numerical': 0.0, 'mean_word_length': 3.8372093023255816, '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': '4500990', 'n_tokens_mistral': 431, 'n_tokens_neox': 419, 'n_words': 88}