<commit_before>Template.singleHomeActivityStatus.helpers({
  "activityLevelCounts": function () {
    var instance = this;

    // Get ID of current home
    var homeId = this._id;

    return ReactiveMethod.call("getHomeActivityLevelCounts", homeId);
  }
});<commit_msg>Set up activityLevelCounts instance reactive var<commit_after>Template.singleHomeActivityStatus.onCreated(function () {
    var instance = this;

    // Get ID of current home
    var homeId = instance.data.home._id;

    // Add variable to hold activity counts
    instance.activityLevelCounts = new ReactiveVar();

    instance.autorun(function () {
      // Retrieve home resident activity level counts from server
      const activityLevelCounts = ReactiveMethod.call("getHomeActivityLevelCounts", homeId);

      // Update the reactive variable, to trigger the graph to render
      instance.activityLevelCounts.set(activityLevelCounts);
    });
  });
{'fraction_non_alphanumeric': 0.09169363538295577, 'fraction_numerical': 0.0, 'mean_word_length': 3.858638743455497, 'pattern_counts': {'":': 1, '<': 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': '7591345', 'n_tokens_mistral': 249, 'n_tokens_neox': 242, 'n_words': 67}