<commit_before>var path = require('path');
var fs = require('fs');
var rc = require('rc');
var userHome = (process.platform === "win32" ? process.env.USERPROFILE : process.env.HOME );
var configFilePath = path.join(userHome, '.sqlpadrc');

module.exports = function (app) {
    
    // $HOME/.sqlpad/config
    // $HOME/.sqlpad/db
    //var configFile = path.join(userHome, '.sqlpad/config');
    var config = rc('sqlpad', {
        port: 80,
        dbPath: path.join(userHome, "sqlpad/db"),
        passphrase: "<PASSWORD>?"
    });
    
    // support --db and --dir for database directories
    config.dbPath = config.db || config.dir || config.dbPath;<commit_msg>Adding Env variables to port and passphrase<commit_after>var path = require('path');
var fs = require('fs');
var rc = require('rc');
var userHome = (process.platform === "win32" ? process.env.USERPROFILE : process.env.HOME );
var configFilePath = path.join(userHome, '.sqlpadrc');

module.exports = function (app) {
    
    // $HOME/.sqlpad/config
    // $HOME/.sqlpad/db
    //var configFile = path.join(userHome, '.sqlpad/config');
    var config = rc('sqlpad', {
        port: process.env.SQLPAD_PORT || 80,
        dbPath: path.join(userHome, "sqlpad/db"),
        passphrase: process.env.SQLPAD_PASSPHRASE || "<PASSWORD>?"
    });
    
    // support --db and --dir for database directories
    config.dbPath = config.db || config.dir || config.dbPath;
{'fraction_non_alphanumeric': 0.1697054698457223, 'fraction_numerical': 0.005610098176718092, 'mean_word_length': 3.0888252148997135, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3801723', 'n_tokens_mistral': 464, 'n_tokens_neox': 452, 'n_words': 105}