<commit_before>var mongoose = require('mongoose'),
    moment = require('moment');

var raceSchema = mongoose.Schema({
    challenger: {
        username: String,
        start: Number,
        end: Number,
        speed: Number,
        duration: Number,
        distance: Number,
        route: {
            origin: {
                lat: Number,
                lng: Number
            },
            wayPoints: Array
        },
        created: Number,
    },
    opponent: {
        username: String,
        start: Number,
        end: Number,
        speed: Number,
        duration: Number,
        distance: Number,
        route: {
            origin: {
                lat: Number,
                lng: Number
            },
            wayPoints: Array
        },
        created: Number,
    },
    status: String,
    winner: String,
    created: Number
});

module.exports = mongoose.model("Race", raceSchema);
<commit_msg>Add length field to route in race model<commit_after>var mongoose = require('mongoose'),
    moment = require('moment');

var raceSchema = mongoose.Schema({
    challenger: {
        username: String,
        start: Number,
        end: Number,
        speed: Number,
        duration: Number,
        distance: Number,
        route: {
            origin: {
                lat: Number,
                lng: Number
            },
            wayPoints: Array,
            length: Number
        },
        created: Number,
    },
    opponent: {
        username: String,
        start: Number,
        end: Number,
        speed: Number,
        duration: Number,
        distance: Number,
        route: {
            origin: {
                lat: Number,
                lng: Number
            },
            wayPoints: Array,
            length: Number
        },
        created: Number,
    },
    status: String,
    winner: String,
    created: Number
});

module.exports = mongoose.model("Race", raceSchema);

{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.0, 'mean_word_length': 1.3626506024096385, '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': '4067511', 'n_tokens_mistral': 512, 'n_tokens_neox': 517, 'n_words': 137}