<commit_before>'use strict';

var mongoose = require('bluebird').promisifyAll(require('mongoose'));
var Schema = mongoose.Schema;

var SubmissionSchema = new Schema({
  title: String,
  content: String,
  images: [String], // path to image on static image server?
  time: Date,
  submitter: {type : Schema.Types.ObjectId, ref: 'User'},
  authors: [{type : Schema.Types.ObjectId, ref: 'User'}],
  location: {
    address: String,
    description: String,
    coordinates: [Number],        // [<longitude>, <latitude>]
    type: String,
    index: '2dsphere'
  }
});

module.exports = mongoose.model('Submission', SubmissionSchema);
<commit_msg>updated location in submission<commit_after>'use strict';

var mongoose = require('bluebird').promisifyAll(require('mongoose'));
var Schema = mongoose.Schema;

var SubmissionSchema = new Schema({
  title: String,
  content: String,
  images: [String], // path to image on static image server?
  time: Date,
  submitter: {type : Schema.Types.ObjectId, ref: 'User'},
  authors: [{type : Schema.Types.ObjectId, ref: 'User'}],
  location: {
    address: String,
    description: String,
    coordinates: [Number]        // [<longitude>, <latitude>]
  }
});

module.exports = mongoose.model('Submission', SubmissionSchema);

{'fraction_non_alphanumeric': 0.15213946117274169, 'fraction_numerical': 0.000792393026941363, 'mean_word_length': 4.351694915254237, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2877377', 'n_tokens_mistral': 389, 'n_tokens_neox': 394, 'n_words': 105}