<commit_before>MenuItems = new Mongo.Collection("menuItems");

var Schema = {};

Schema.MenuItem = new SimpleSchema({
  itemName: {
    type: String,
    label: "Item Name"
  },
  upvotes: {
    type: Number,
    label: "Upvotes"
  },
  college: {
    type: String,
    label: "College"
  },
  meal: {
    type: String,
    label: "Meal"
  }
})

MenuItems.attachSchema(Schema.MenuItem)

MenuItems.allow({
  insert: function(userId, doc) {
    return false;
  },
  update: function(userId, docs, fields, modifier) {<commit_msg>Added default upvote value<commit_after>MenuItems = new Mongo.Collection("menuItems");

var Schema = {};

Schema.MenuItem = new SimpleSchema({
  itemName: {
    type: String,
    label: "Item Name"
  },
  upvotes: {
    type: Number,
    label: "Upvotes",
    defaultValue:0
  },
  college: {
    type: String,
    label: "College"
  },
  meal: {
    type: String,
    label: "Meal"
  }
})

MenuItems.attachSchema(Schema.MenuItem)

MenuItems.allow({
  insert: function(userId, doc) {
    return false;
  },
  update: function(userId, docs, fields, modifier) {
{'fraction_non_alphanumeric': 0.14377880184331798, 'fraction_numerical': 0.0009216589861751152, 'mean_word_length': 3.2588235294117647, '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': '491364', 'n_tokens_mistral': 381, 'n_tokens_neox': 378, 'n_words': 86}