<commit_before>$ ->
  Invoice.init()
Invoice = {
  totalInput: ->
    return $('#invoice_total')
  init: ->
    _that = this
    $('.unpaid-worklogs').on 'click touchstart', 'a', (e) ->
      e.preventDefault()
      _that.totalInput().val($(e.currentTarget).data().total / 100)
    $('.unpaid-expenses').on 'click touchstart', 'a', (e) ->
      e.preventDefault()<commit_msg>fix error with NaN because wrong delegation<commit_after>$ ->
  Invoice.init()
Invoice = {
  totalInput: ->
    return $('#invoice_total')
  init: ->
    _that = this
    $('.unpaid-worklogs').on 'click touchstart', 'a', (e) ->
      e.preventDefault()
      _that.totalInput().val($(e.currentTarget).data().total / 100)
    $('.unpaid-expenses').on 'click touchstart', '.add-total', (e) ->
      e.preventDefault()
{'fraction_non_alphanumeric': 0.20733249051833122, 'fraction_numerical': 0.007585335018963337, 'mean_word_length': 3.1465968586387434, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2221743', 'n_tokens_mistral': 273, 'n_tokens_neox': 266, 'n_words': 51}