<commit_before>Template.resident.created = function () {
  // Get reference to template instance
  var instance = this;

  instance.residentId = Router.current().params.residentId;

  // Subscribe to current resident
  instance.subscribe('residentComposite', instance.residentId);
};

Template.resident.events({
  'click #edit-resident': function () {
    console.log('clicked');
    // Get reference to template instance
    var instance = Template.instance();

    // Get Home ID
    var residentId = instance.residentId;

    // Get home
    var resident = Residents.findOne(residentId);

    // Show the edit home modal
    Modal.show('editResident', resident);<commit_msg>Cleanup<commit_after>Template.resident.created = function () {
  // Get reference to template instance
  var instance = this;

  instance.residentId = Router.current().params.residentId;

  // Subscribe to current resident
  instance.subscribe('residentComposite', instance.residentId);
};

Template.resident.events({
  'click #edit-resident': function () {
    // Get reference to template instance
    var instance = Template.instance();

    // Get Home ID
    var residentId = instance.residentId;

    // Get home
    var resident = Residents.findOne(residentId);

    // Show the edit home modal
    Modal.show('editResident', resident);
{'fraction_non_alphanumeric': 0.11515151515151516, 'fraction_numerical': 0.0, 'mean_word_length': 3.5709342560553634, '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': '4207258', 'n_tokens_mistral': 375, 'n_tokens_neox': 344, 'n_words': 96}