<commit_before>'use strict';

var _ = require('lodash');
var Lobby = require('../shared/models/Lobby');

var defaultOptions = {
    _id: 'Default',
    server: 1,
    open: true,
    date: new Date(),
    minRank: 0,
    minElo: 0
};


var createLobby = function(options) {
    _.defaults(options, defaultOptions);
    Lobby.findByIdAndUpdate(options._id, options, {upsert: true});
};


var createDefaultLobbies = function() {

    createLobby({
        _id: 'Brutus',
        server: 1,
        open: true,
        date: new Date(),
        minElo: 0
    });


    createLobby({
        _id: 'Masters',
        server: 1,
        open: true,
        date: new Date(),
        minElo: 0
    });
};

module.exports = createDefaultLobbies;<commit_msg>change default lobbies<commit_after>'use strict';

var _ = require('lodash');
var Lobby = require('../shared/models/Lobby');

var defaultOptions = {
    _id: 'Default',
    server: 1,
    open: true,
    date: new Date(),
    minFame: 0,
    minElo: 0
};


var createLobby = function(options) {
    _.defaults(options, defaultOptions);
    Lobby.findByIdAndUpdate(options._id, options, {upsert: true});
};


var createDefaultLobbies = function() {

    createLobby({
        _id: 'Time Tourists',
        server: 1,
        open: true,
        date: new Date(),
        minFame: 0
    });

    createLobby({
        _id: 'Time Travelers',
        server: 1,
        open: true,
        date: new Date(),
        minFame: 10
    });

    createLobby({
        _id: 'Time Masters',
        server: 1,
        open: true,
        date: new Date(),
        minFame: 20
    });
};

module.exports = createDefaultLobbies;
{'fraction_non_alphanumeric': 0.140625, 'fraction_numerical': 0.010817307692307692, 'mean_word_length': 2.2711198428290764, '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': '7357028', 'n_tokens_mistral': 575, 'n_tokens_neox': 542, 'n_words': 136}