<commit_before>Template.postView.events({
  'click .close': function() {
    Router.clearRegion('lightbox');
  },
  'click .like': function(event) {
    event.preventDefault();

    Meteor.call('like', this, function(error, id) {
      if (error) {
        throwError(error.reason);
      }
    });
  }
});

Template.postView.helpers({
  'liked': function() {
    return _.contains(this.likers, Meteor.userId()) ? 'liked' : '';
  },
  'comments': function() {
    return Comments.find({ postId: this._id }, { sort: { created_at: -1 }});
  },
  'post': function() {
    return Posts.findOne({_id: Session.get('currentPost')});
  },
  'markdown': function(text) {
    return marked(text)
  }
});

Template.postView.rendered = function() {
  $("html,body").css('overflow', 'hidden');
};

Template.postView.destroyed = function() {<commit_msg>fix description bug<commit_after>Template.postView.events({
  'click .close': function() {
    Router.clearRegion('lightbox');
  },
  'click .like': function(event) {
    event.preventDefault();

    Meteor.call('like', this, function(error, id) {
      if (error) {
        throwError(error.reason);
      }
    });
  }
});

Template.postView.helpers({
  'liked': function() {
    return _.contains(this.likers, Meteor.userId()) ? 'liked' : '';
  },
  'comments': function() {
    return Comments.find({ postId: this._id }, { sort: { created_at: -1 }});
  },
  'post': function() {
    return Posts.findOne({_id: Session.get('currentPost')});
  },
  'markdown': function(text) {
    if(text) {
      return marked(text)
    }
    return '';
  }
});

Template.postView.rendered = function() {
  $("html,body").css('overflow', 'hidden');
};

Template.postView.destroyed = function() {
{'fraction_non_alphanumeric': 0.20150987224157957, 'fraction_numerical': 0.0011614401858304297, 'mean_word_length': 3.4869791666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5192990', 'n_tokens_mistral': 583, 'n_tokens_neox': 574, 'n_words': 98}