<commit_before>var hashWithoutHash = function() {
  return location.hash.replace("#", "");
};

Session.setDefault("urlHash", hashWithoutHash());
$(window).on("hashchange", function() {
  Session.set("urlHash", hashWithoutHash());
});

Session.setDefault("showAllTypes", false);

Template.nav.events({
  "change .show-all-types input": function(event) {
    Session.set("showAllTypes", event.target.checked);
  }
});

Template.nav.helpers({
  current: function() {
    return Session.get("urlHash") === this.id ? "current" : "";
  },
  showPropertyTypes: function() {
    return Session.get("showAllTypes");
  },
});<commit_msg>Fixed helper name.<commit_after>var hashWithoutHash = function() {
  return location.hash.replace("#", "");
};

Session.setDefault("urlHash", hashWithoutHash());
$(window).on("hashchange", function() {
  Session.set("urlHash", hashWithoutHash());
});

Session.setDefault("showAllTypes", false);

Template.nav.events({
  "change .show-all-types input": function(event) {
    Session.set("showAllTypes", event.target.checked);
  }
});

Template.nav.helpers({
  current: function() {
    return Session.get("urlHash") === this.id ? "current" : "";
  },
  showAllTypes: function() {
    return Session.get("showAllTypes");
  },
});
{'fraction_non_alphanumeric': 0.20175438596491227, 'fraction_numerical': 0.0, 'mean_word_length': 5.212871287128713, 'pattern_counts': {'":': 2, '<': 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': '7653664', 'n_tokens_mistral': 387, 'n_tokens_neox': 390, 'n_words': 64}