<commit_before>/* globals module require global __dirname process */
/* eslint-disable no-process-env */
'use strict';

const mongoose = require('mongoose');
const fs = require('fs');
const path = require('path');

module.exports = function (config) {
    mongoose.Promise = global.Promise;

    if (config.envMode === 'DEVELOPMENT') {
        process.env.MONGOLAB_URI = config.uri;
    }

    mongoose.connect(process.env.MONGOLAB_URI);

    // let models = require('./../models'); // not working
    let User = require('../models/user-model');
    let Car = require('../models/car-model');
    let Review = require('../models/review-model');
    let CarBrandDetail = require('../models/car-brand-model');
    let models = {
        User,
        Car,
        Review,
        CarBrandDetail
    };
<commit_msg>fix: rename config.uri to config.connectionString<commit_after>/* globals module require global __dirname process */
/* eslint-disable no-process-env */
'use strict';

const mongoose = require('mongoose');
const fs = require('fs');
const path = require('path');

module.exports = function (config) {
    mongoose.Promise = global.Promise;

    if (config.envMode === 'DEVELOPMENT') {
        process.env.MONGOLAB_URI = config.connectionString;
    }

    mongoose.connect(process.env.MONGOLAB_URI);

    // let models = require('./../models'); // not working
    let User = require('../models/user-model');
    let Car = require('../models/car-model');
    let Review = require('../models/review-model');
    let CarBrandDetail = require('../models/car-brand-model');
    let models = {
        User,
        Car,
        Review,
        CarBrandDetail
    };

{'fraction_non_alphanumeric': 0.15978456014362658, 'fraction_numerical': 0.0, 'mean_word_length': 2.861431870669746, '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': '1841347', 'n_tokens_mistral': 503, 'n_tokens_neox': 497, 'n_words': 112}