<commit_before>if (Meteor.isServer) {
  Meteor.publish('count_from_field_length_fn_deep', function (testId) {
    Counts.publish(this, 'posts' + testId, Posts.find({testId: testId}), {countFromFieldLength: 'array'});
  });

  Meteor.methods({
    setup_deep_countFromFieldLength_fn: function (testId) {
      H.insert(testId, 0, {array: [1, 2, 3]});
      H.insert(testId, 1, {array: [1, 2, 3, 4]});
    },
    addDoc_deep_countFromFieldLength_fn: function (testId) {
      H.insert(testId, 2, {array: [1, 2]});
    },
    updateDoc_deep_countFromFieldLength_fn: function (testId) {
      // add 2 elements to array of doc 0
      H.update(testId, 0, {$set: {array: [1, 2, 3, 4, 5]}});<commit_msg>fix: test deep properties in countFromFieldLength fn deep test<commit_after>if (Meteor.isServer) {
  Meteor.publish('count_from_field_length_fn_deep', function (testId) {
    Counts.publish(this, 'posts' + testId, Posts.find({testId: testId}),
        {countFromFieldLength: function (doc) { return doc.a.b; }});
  });

  Meteor.methods({
    setup_deep_countFromFieldLength_fn: function (testId) {
      H.insert(testId, 0, {a: {b: [1, 2, 3]}});
      H.insert(testId, 1, {a: {b: [1, 2, 3, 4]}});
    },
    addDoc_deep_countFromFieldLength_fn: function (testId) {
      H.insert(testId, 2, {a: {b: [1, 2]}});
    },
    updateDoc_deep_countFromFieldLength_fn: function (testId) {
      // add 2 elements to array of doc 0
      H.update(testId, 0, {$set: {'a.b': [1, 2, 3, 4, 5]}});
{'fraction_non_alphanumeric': 0.17150573936529373, 'fraction_numerical': 0.02700877785280216, 'mean_word_length': 3.875, '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': '5705318', 'n_tokens_mistral': 601, 'n_tokens_neox': 558, 'n_words': 127}