<commit_before>Template.wizardReview.onCreated(function () {
  // Get reference to template instance
  const instance = this;

  // Get form data as instance variable
  instance.registration = instance.data.wizard.mergedData();
});

Template.wizardReview.helpers({
  'registration': function () {
    // Get reference to template instance
    const instance = Template.instance();

    // Get registration from template instance
    return instance.registration;
  },
  'accommodationsFee': function () {
    // Get reference to template instance
    const instance = Template.instance();

    // Get registration data
    const registration = instance.registration;

    // Adjust attributes of registration data to match accommodations fee function
    registration.type = registration.registrationType;
    registration.ageGroup = calculateAgeGroup(registration.age);

    // Calculate accommodations fee
    const accommodationsFee = calculateAccommodationsFee(registration);

    return accommodationsFee;
  },
  'linensFee': function () {
    // Get reference to template instance
    const instance = Template.instance();

    // Get linens value from registration
    const linens = registration.linens;

    // If linens are needed
    if (linens) {
      // Get linens fee
      return linensFee;
    }
  },
  'firstTimeAttenderDiscount': function () {
    // Get reference to template instance
    const instance = Template.instance();

    // Get registration
    const registration = instance.registration;

    // Calculate first time attender discount
    if (registration.firstTimeAttender) {
      return firstTimeAttenderDiscount;
    }
  }
});<commit_msg>Fix linensFee helper<commit_after>Template.wizardReview.onCreated(function () {
  // Get reference to template instance
  const instance = this;

  // Get form data as instance variable
  instance.registration = instance.data.wizard.mergedData();
});

Template.wizardReview.helpers({
  'registration': function () {
    // Get reference to template instance
    const instance = Template.instance();

    // Get registration from template instance
    return instance.registration;
  },
  'accommodationsFee': function () {
    // Get reference to template instance
    const instance = Template.instance();

    // Get registration data
    const registration = instance.registration;

    // Adjust attributes of registration data to match accommodations fee function
    registration.type = registration.registrationType;
    registration.ageGroup = calculateAgeGroup(registration.age);

    // Calculate accommodations fee
    const accommodationsFee = calculateAccommodationsFee(registration);

    return accommodationsFee;
  },
  'linensFee': function () {
    // Get reference to template instance
    const instance = Template.instance();

    // Get registration from template instance
    const registration = instance.registration;

    // Check if linens are needed
    if (registration.linens) {
      // If so, return linens fee
      return linensFee;
    }
  },
  'firstTimeAttenderDiscount': function () {
    // Get reference to template instance
    const instance = Template.instance();

    // Get registration
    const registration = instance.registration;

    // Calculate first time attender discount
    if (registration.firstTimeAttender) {
      return firstTimeAttenderDiscount;
    }
  }
});
{'fraction_non_alphanumeric': 0.08713570797762732, 'fraction_numerical': 0.0, 'mean_word_length': 3.339719029374202, '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': '251664', 'n_tokens_mistral': 867, 'n_tokens_neox': 812, 'n_words': 257}