<commit_before>class window.Comment extends Backbone.Model

  templateHelpers: =>
    creator: @creator

  creator: -> new User(@get('created_by'))

  can_destroy: -> @creator().get('id') == currentUser.get('id')

  believe: ->
    @set('opinion', 'believes')
    @save()

  disbelieve: ->
    @set('opinion', 'disbelieves')
    @save()<commit_msg>Nicer comment `believe` and `disbelieve` methods.<commit_after>class window.Comment extends Backbone.Model

  templateHelpers: =>
    creator: @creator

  creator: -> new User(@get('created_by'))

  can_destroy: -> @creator().get('id') == currentUser.get('id')

  believe: -> @save opinion: 'believes'
  disbelieve: -> @save opinion: 'disbelieves'
{'fraction_non_alphanumeric': 0.17697841726618704, 'fraction_numerical': 0.0, 'mean_word_length': 4.4375, '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': '961560', 'n_tokens_mistral': 239, 'n_tokens_neox': 223, 'n_words': 46}