<commit_before>Meteor.publish('posts', function() {
  return Posts.find();
});<commit_msg>added more publications to posts for admin dashboard<commit_after>Meteor.publish('posts', function() {
  return Posts.find();
});

Meteor.publish('postsWithUsers', {
  find: function() {
    return Posts.find();
  },
  children: [{
    find: function(post) {
      return Meteor.users.find({
        _id: post.createdBy
      }, {
        fields: { profile: 1 }
      });
    }
  }]
});

Meteor.publish('postWithUser', function(postId) {
  check(postId, String);
  return {
    find: function() {
      return Posts.find({ _id: postId });
    },
    children: [{
      find: function(post) {
        return Meteor.users.find({
          _id: post.createdBy
        }, {
          fields: { profile: 1 }
        });
      }
    }]
  }
});
{'fraction_non_alphanumeric': 0.1656590084643289, 'fraction_numerical': 0.0024183796856106408, 'mean_word_length': 2.4356846473029043, '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': '215764', 'n_tokens_mistral': 276, 'n_tokens_neox': 260, 'n_words': 51}