<commit_before>import Comments from 'meteor/vulcan:comments';

Comments.addView("postCommentsTop", function (terms) {
  return {
    selector: {postId: terms.postId},
    options: {sort: {baseScore: -1, postedAt: -1}}
  };
});

Comments.addView("postCommentsNew", function (terms) {
  return {
    selector: {postId: terms.postId},
    options: {sort: {postedAt: -1}}
  };
});

Comments.addView("recentComments", function (terms) {
  return {<commit_msg>filter out negative score comments from Recent Comments sidebar list<commit_after>import Comments from 'meteor/vulcan:comments';

Comments.addView("postCommentsTop", function (terms) {
  return {
    selector: {postId: terms.postId},
    options: {sort: {baseScore: -1, postedAt: -1}}
  };
});

Comments.addView("postCommentsNew", function (terms) {
  return {
    selector: {postId: terms.postId},
    options: {sort: {postedAt: -1}}
  };
});

Comments.addView("recentComments", function (terms) {
  return {
    selector: {baseScore: {$gte: 0}},
{'fraction_non_alphanumeric': 0.16083916083916083, 'fraction_numerical': 0.006993006993006993, 'mean_word_length': 4.693181818181818, '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': '5275025', 'n_tokens_mistral': 350, 'n_tokens_neox': 323, 'n_words': 77}