<commit_before>Template.residentCurrentResidency.onCreated(function () {
  // Get resident ID
  const residentId = this.residentId;
})


Template.residentCurrentResidency.events({
  'click .edit-residency' (event, templateInstance) {
    // Get resident and home IDs from template instance data
    const { residentId, homeId } = templateInstance.data;

    // Show the edit residency modal
    Modal.show('editResidencyForm', { residentId, homeId });
  }
});<commit_msg>Rename to editResidencyModal<commit_after>Template.residentCurrentResidency.onCreated(function () {
  // Get resident ID
  const residentId = this.residentId;
})


Template.residentCurrentResidency.events({
  'click .edit-residency' (event, templateInstance) {
    // Get resident and home IDs from template instance data
    const { residentId, homeId } = templateInstance.data;

    // Show the edit residency modal
    Modal.show('editResidencyModal', { residentId, homeId });
  }
});
{'fraction_non_alphanumeric': 0.10855949895615867, 'fraction_numerical': 0.0, 'mean_word_length': 4.298342541436464, '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': '5386422', 'n_tokens_mistral': 286, 'n_tokens_neox': 260, 'n_words': 68}