<commit_before>// requiring mongoose dependency
var mongoose = require('mongoose');

// instantiate a name space for our Schema constructor defined by mongoose.
var Schema = mongoose.Schema,
    ObjectId = Schema.ObjectId

// defining schema for reminders
var GitstampSchema = new Schema({
  data: String
})

// defining schema for authors.
var ProfileSchema = new Schema({
  username: String,
  gitstamps: [GitstampSchema]
})

ProfileSchema.methods.sayHi = function(){
  console.log("hi");
}

// setting models in mongoose utilizing schemas defined above
var ProfileModel = mongoose.model("Profile", ProfileSchema)
var GitstampModel = mongoose.model("Gitstamp", GitstampSchema)
<commit_msg>update schema<commit_after>// requiring mongoose dependency
var mongoose = require('mongoose')

// instantiate a name space for our Schema constructor defined by mongoose.
var Schema = mongoose.Schema,
    ObjectId = Schema.ObjectId

// defining schema for stamps
var StampSchema = new Schema({
  data: {
    language: String
  }
});

// defining schema for profiles.
var ProfileSchema = new Schema({
  username: String,
  stamps: [StampSchema]
})

// setting models in mongoose utilizing schemas defined above, we'll be using
// these frequently throughout our app
mongoose.model("Profile", ProfileSchema)
mongoose.model("Stamp", StampSchema)

{'fraction_non_alphanumeric': 0.09737827715355805, 'fraction_numerical': 0.0, 'mean_word_length': 4.685106382978724, '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': '7075903', 'n_tokens_mistral': 372, 'n_tokens_neox': 381, 'n_words': 131}