<commit_before>Template['userEdit'].helpers({
  'incomplete_profile': function () {
    var user = Meteor.user();
    return !(user.profile.firstName &&
      user.profile.lastName &&
      user.profile.netid &&
      user.profile.gradYear &&
      user.profile.program &&
      user.profile.section &&
      user.profile.kwesttrip);
  },

  'profile_schema': function() {
    return UserSchema;
  }
});

Template['userEdit'].events({
});


AutoForm.addHooks('updateUserForm', {
  onSuccess: function (formType, result) {
    Router.go('user', {_id: this.docId});
    return false;
  },

}); 

var UserProfile = new SimpleSchema({
  firstName: {
      type: String
  },
  lastName: {
      type: String
  },
  netid: {
      type: String,
      optional: false,
      label: 'NetID'
  },
  birthday: {
      type: Date,
      optional: true,
      defaultValue: new Date(),
  },
  gender: {
      type: String,
      allowedValues: ['Male', 'Female'],
      optional: true
  },
  tagline: {
      type: String,
      optional: true,
      label: 'Tagline',
      autoform: {
         placeholder: 'Give us one line that describes you. The funnier the better.'
      }
  },
  gradYear: {
      type: Number,
      optional: true,
      label: 'Class of',
      min: 2000,
      autoform: {
        options: function () {
          var options = [];
          for (var i = 3 - 1; i >= 0; i--) {
            var year = moment().year() + i;
            options.push({label: year, value: year});
          };
          return options;
        }
      }
  },
  program: {
      type: String,
      optional: false,
      label: 'Kellogg Program',
      allowedValues: ['2Y', '1Y', 'MMM', 'JDMBA', 'PT', 'EX', 'JV', 'Faculty/Staff'],
  },
  section: {
      type: String,
      optional: false,
      label: 'Section',
      allowedValues: ['1Y-Hedgehogs', '1Y-Roadrunners', 'Big Dogs', 'Bucket Heads', 'Bull Frogs', 'Cash Cows', 'Highlanders', 'Moose', 'Poets', 'Turkeys', 'N/A'],
  },
  kwesttrip: {
      type: String,
      optional: false,
      label: 'KWEST Trip',
      allowedValues: ['N/A', 'Adriatic Riviera-2015', 'Alps: Switzerland-2015', 'Amalfi Coast-2015', 'Amazing race-2014', 'Amazing Race-2015', 'Argentina-2014', 'Aruba-2015', 'Arubacao-2014', 'Bavaria-2015', 'Belize-2014', 'Belize-2015', 'Berlin/Krakow-2014', 'Bike France-2015', 'Bike Holland-2014', 'Brazil-2015', 'British Isles-2015', 'Cataluna-2015', 'Chile-2014', 'Chile-2015', 'Costa Rica-2014', 'Costa Rica-2015', 'Croatia-2014', 'Croatia-2015', 'Czechoslovakia-2014', 'Denmark/Austria-2014', 'Ecuador/Galapagos-2015', 'Ecuador-2014', 'Family-2014', 'Finland/Estonia-2015', 'Georgia/Armenia-2014', 'Greece-2014', 'Greece-2015', 'Guatemala-2014', 'Guatemala-2015', 'Hong Kong/Macau-2015', 'Hungary-2014', 'Iceland-2014', 'Iceland-2015', 'Ireland-2014', 'Italy-2014', 'Jordan-2015', 'Korea-2015', 'Montenegro-2015', 'Morocco-2015', 'Mystery-2014', 'Mystery-2015', 'Netherlands-2015', 'Nicaragua-2014', 'Nicaragua-2015', 'Northern Spain-2014', 'Northern Spain-2015', 'Norway/Sweden-2015', 'Oman-2014', 'Panama-2014', 'Peru-2014', 'Portugal-2014', 'Portugal-2015', 'Puerto Rico-2014', 'Romania-2014', 'Romania-2015', 'Spain Mediterranean-2014', 'St. Lucia/Barbados-2015', 'St. Lucia-2014', 'Sweden-2014', 'Thailand-2014', 'Thailand-2015', 'Top Chef (Peru)-2015', 'Turkey-2014', 'Turkey-2015', 'Uruguay/Argentina-2015', 'Vietnam-2014', 'Vietnam-2015', 'Zanzibar-2014'],
  },
  nationality: {
      type: String,
      optional: true,
      label: 'Nationality',
      allowedValues: ["United States", "Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cabo Verde", "Cambodia", "Cameroon", "Canada", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo", "Costa Rica", "Côte d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Democratic People's Republic of Korea (North Korea)", "Democratic Republic of the Cong", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Kuwait", "Kyrgyzstan", "Lao People's Democratic Republic (Laos)", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia (Federated States of)", "Monaco", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Republic of Korea (South Korea)", "Republic of Moldova", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Tajikistan", "Thailand", "Timor-Leste", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom of Great Britain and Northern Ireland", "United Republic of Tanzania", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"]
  }
});

var UserSchema = new SimpleSchema({
    profile: {<commit_msg>added taiwan<commit_after>Template['userEdit'].helpers({
  'incomplete_profile': function () {
    var user = Meteor.user();
    return !(user.profile.firstName &&
      user.profile.lastName &&
      user.profile.netid &&
      user.profile.gradYear &&
      user.profile.program &&
      user.profile.section &&
      user.profile.kwesttrip);
  },

  'profile_schema': function() {
    return UserSchema;
  }
});

Template['userEdit'].events({
});


AutoForm.addHooks('updateUserForm', {
  onSuccess: function (formType, result) {
    Router.go('user', {_id: this.docId});
    return false;
  },

}); 

var UserProfile = new SimpleSchema({
  firstName: {
      type: String
  },
  lastName: {
      type: String
  },
  netid: {
      type: String,
      optional: false,
      label: 'NetID'
  },
  birthday: {
      type: Date,
      optional: true,
      defaultValue: new Date(),
  },
  gender: {
      type: String,
      allowedValues: ['Male', 'Female'],
      optional: true
  },
  tagline: {
      type: String,
      optional: true,
      label: 'Tagline',
      autoform: {
         placeholder: 'Give us one line that describes you. The funnier the better.'
      }
  },
  gradYear: {
      type: Number,
      optional: true,
      label: 'Class of',
      min: 2000,
      autoform: {
        options: function () {
          var options = [];
          for (var i = 3 - 1; i >= 0; i--) {
            var year = moment().year() + i;
            options.push({label: year, value: year});
          };
          return options;
        }
      }
  },
  program: {
      type: String,
      optional: false,
      label: 'Kellogg Program',
      allowedValues: ['2Y', '1Y', 'MMM', 'JDMBA', 'PT', 'EX', 'JV', 'Faculty/Staff'],
  },
  section: {
      type: String,
      optional: false,
      label: 'Section',
      allowedValues: ['1Y-Hedgehogs', '1Y-Roadrunners', 'Big Dogs', 'Bucket Heads', 'Bull Frogs', 'Cash Cows', 'Highlanders', 'Moose', 'Poets', 'Turkeys', 'N/A'],
  },
  kwesttrip: {
      type: String,
      optional: false,
      label: 'KWEST Trip',
      allowedValues: ['N/A', 'Adriatic Riviera-2015', 'Alps: Switzerland-2015', 'Amalfi Coast-2015', 'Amazing race-2014', 'Amazing Race-2015', 'Argentina-2014', 'Aruba-2015', 'Arubacao-2014', 'Bavaria-2015', 'Belize-2014', 'Belize-2015', 'Berlin/Krakow-2014', 'Bike France-2015', 'Bike Holland-2014', 'Brazil-2015', 'British Isles-2015', 'Cataluna-2015', 'Chile-2014', 'Chile-2015', 'Costa Rica-2014', 'Costa Rica-2015', 'Croatia-2014', 'Croatia-2015', 'Czechoslovakia-2014', 'Denmark/Austria-2014', 'Ecuador/Galapagos-2015', 'Ecuador-2014', 'Family-2014', 'Finland/Estonia-2015', 'Georgia/Armenia-2014', 'Greece-2014', 'Greece-2015', 'Guatemala-2014', 'Guatemala-2015', 'Hong Kong/Macau-2015', 'Hungary-2014', 'Iceland-2014', 'Iceland-2015', 'Ireland-2014', 'Italy-2014', 'Jordan-2015', 'Korea-2015', 'Montenegro-2015', 'Morocco-2015', 'Mystery-2014', 'Mystery-2015', 'Netherlands-2015', 'Nicaragua-2014', 'Nicaragua-2015', 'Northern Spain-2014', 'Northern Spain-2015', 'Norway/Sweden-2015', 'Oman-2014', 'Panama-2014', 'Peru-2014', 'Portugal-2014', 'Portugal-2015', 'Puerto Rico-2014', 'Romania-2014', 'Romania-2015', 'Spain Mediterranean-2014', 'St. Lucia/Barbados-2015', 'St. Lucia-2014', 'Sweden-2014', 'Thailand-2014', 'Thailand-2015', 'Top Chef (Peru)-2015', 'Turkey-2014', 'Turkey-2015', 'Uruguay/Argentina-2015', 'Vietnam-2014', 'Vietnam-2015', 'Zanzibar-2014'],
  },
  nationality: {
      type: String,
      optional: true,
      label: 'Nationality',
      allowedValues: ["United States", "Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cabo Verde", "Cambodia", "Cameroon", "Canada", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo", "Costa Rica", "Côte d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Democratic People's Republic of Korea (North Korea)", "Democratic Republic of the Cong", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Kuwait", "Kyrgyzstan", "Lao People's Democratic Republic (Laos)", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia (Federated States of)", "Monaco", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Republic of Korea (South Korea)", "Republic of Moldova", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan", "Tajikistan", "Thailand", "Timor-Leste", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom of Great Britain and Northern Ireland", "United Republic of Tanzania", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"]
  }
});

var UserSchema = new SimpleSchema({
    profile: {
{'fraction_non_alphanumeric': 0.20156587041623392, 'fraction_numerical': 0.04841415674682432, 'mean_word_length': 4.393364928909953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4605135', 'n_tokens_mistral': 5191, 'n_tokens_neox': 4437, 'n_words': 1084}