<commit_before>import { Product } from '../models/merchant/Product';
import { Merchant } from '../models/merchant/Merchant';
import {ConnectionOptions, getConnectionManager} from 'typeorm';
import { createConnection } from 'typeorm';
import { Supplier } from '../models/merchant/Supplier';
import { Customer } from '../models/customer/Customer';
import { Comment } from '../models/customer/Comment';
import { OrderedProduct } from '../models/ordering/OrderedProduct';
import { Order } from '../models/ordering/Order';

module.exports = {
    getDatabaseConfig() {
        const connectionOptions: ConnectionOptions = {
            driver : {
                type: 'mysql',
                host: process.env.OPENSHIFT_MYSQL_DB_HOST || 'localhost',
                port: process.env.OPENSHIFT_MYSQL_DB_PORT || 3306,
                username: process.env.OPENSHIFT_MYSQL_DB_USERNAME || 'root',
                password: process.env.OPENSHIFT_MYSQL_DB_PASSWORD || 'password',
                database: 'testDB'
            },
            autoSchemaSync: true,
            logging: {
                logQueries: true,
            },
            entities: [Merchant, Product, Supplier, Customer, Comment, Order, OrderedProduct],
        };

        return connectionOptions;
    },<commit_msg>Update DB name for openshift<commit_after>import { Product } from '../models/merchant/Product';
import { Merchant } from '../models/merchant/Merchant';
import {ConnectionOptions, getConnectionManager} from 'typeorm';
import { createConnection } from 'typeorm';
import { Supplier } from '../models/merchant/Supplier';
import { Customer } from '../models/customer/Customer';
import { Comment } from '../models/customer/Comment';
import { OrderedProduct } from '../models/ordering/OrderedProduct';
import { Order } from '../models/ordering/Order';

module.exports = {
    getDatabaseConfig() {
        const connectionOptions: ConnectionOptions = {
            driver : {
                type: 'mysql',
                host: process.env.OPENSHIFT_MYSQL_DB_HOST || 'localhost',
                port: process.env.OPENSHIFT_MYSQL_DB_PORT || 3306,
                username: process.env.OPENSHIFT_MYSQL_DB_USERNAME || 'root',
                password: process.env.OPENSHIFT_MYSQL_DB_PASSWORD || 'password',
                database: 'afs'
            },
            autoSchemaSync: true,
            logging: {
                logQueries: true,
            },
            entities: [Merchant, Product, Supplier, Customer, Comment, Order, OrderedProduct],
        };

        return connectionOptions;
    },
{'fraction_non_alphanumeric': 0.1214230471771075, 'fraction_numerical': 0.0030935808197989174, 'mean_word_length': 2.500676589986468, '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': '3173865', 'n_tokens_mistral': 687, 'n_tokens_neox': 669, 'n_words': 152}