<commit_before>const express = require('express');
const router = express.Router();
const fsplus = require('fs-plus');
const fs = require('fs');
const findRemoveSync = require('find-remove');
const password = require('password-hash-and-salt');
const multer = require('multer');
const upload = multer({
    dest: 'public/music/'
});
const BinaryServer = require('binaryjs').BinaryServer;
const bserver = new BinaryServer({
    port: 9000,
    path: '/songStream'
});
process.setMaxListeners(0);

const mysql = require('mysql');
let connectionString = process.env.DATABASE_URL || 'mysql://root:root@127.0.0.1/musicsync';
let db;

if (process.env.INITALIZE_DB) {
    // eslint-disable-next-line global-require
    require('require-sql');
    // eslint-disable-next-line global-require
    const initDb = require('./../sql/dump.sql');
    connectionString += '?multipleStatements=true';
    db = mysql.createConnection(connectionString);
    db.query(initDb, function (err, res) {
        if (err) throw err;
        // eslint-disable-next-line no-console
        console.log(res);
        db.changeUser({
            database: 'musicsync'
        }, function (err, res) {
            if (err) throw err;<commit_msg>Console update<commit_after>const express = require('express');
const router = express.Router();
const fsplus = require('fs-plus');
const fs = require('fs');
const findRemoveSync = require('find-remove');
const password = require('<PASSWORD>');
const multer = require('multer');
const upload = multer({
    dest: 'public/music/'
});
const BinaryServer = require('binaryjs').BinaryServer;
const bserver = new BinaryServer({
    port: 9000,
    path: '/songStream'
});
process.setMaxListeners(0);

const mysql = require('mysql');
let connectionString = process.env.DATABASE_URL || 'mysql://root:root@127.0.0.1/musicsync';
let db;

if (process.env.INITALIZE_DB) {
    // eslint-disable-next-line global-require
    require('require-sql');
    // eslint-disable-next-line global-require
    const initDb = require('./../sql/dump.sql');
    connectionString += '?multipleStatements=true';
    db = mysql.createConnection(connectionString);
    db.query(initDb, function (err, res) {
        if (err) throw err;
        // eslint-disable-next-line no-console
        console.log('Database: Resetted!');
        db.changeUser({
            database: 'musicsync'
        }, function (err, res) {
            if (err) throw err;
{'fraction_non_alphanumeric': 0.15754833401892226, 'fraction_numerical': 0.00904977375565611, 'mean_word_length': 3.623574144486692, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7081196', 'n_tokens_mistral': 752, 'n_tokens_neox': 730, 'n_words': 165}