<commit_before>var path = require('path');

// create config
var config = JSON.parse(process.env.config);

// create paths
var paths = {MONO_ROOT: path.normalize(__dirname + '/../../')};
paths.LIB_ROOT = paths.MONO_ROOT + 'lib/';
paths.CLIENT_ROOT = paths.LIB_ROOT + 'client/';
paths.USERS_ROOT = paths.MONO_ROOT + 'users/';
paths.PROJECT_ROOT = paths.USERS_ROOT + config.owner + '/projects/' + config.id + '/';
paths.SERVER_ROOT = paths.LIB_ROOT + 'project/';
paths.MODULE_ROOT = paths.PROJECT_ROOT + 'mono_modules/';
paths.PUBLIC_ROOT = paths.PROJECT_ROOT + config.publicDir;
paths.TEMPLATE_ROOT = paths.PROJECT_ROOT + config.templateDir + '/';
paths.MIDDLEWARE = paths.LIB_ROOT + 'middleware/';
paths.MODULE = paths.LIB_ROOT + 'module/';
paths.MODELS = paths.LIB_ROOT + 'models/';
paths.STORES = paths.LIB_ROOT + 'stores/';
paths.VIEWS = paths.LIB_ROOT + 'views/';

// TOOD get this config from project settings
config.store = {
    storesCollection: 'm_stores',
    systemDbPrefix: 'project_',
    systemStoreName: 'system',
    systemAdapter: "mongodb",
    systemConfig: {
        host: 'localhost',
        port: '27017',
        database: 'project_' + config.id
    }
};

// extend js functionality
require(paths.LIB_ROOT + 'utils/extend');

// add paths to config
config.paths = paths;

module.exports = config;<commit_msg>first draft of new process environment variables<commit_after>var path = require('path');
var lib = path.normalize(__dirname + '/../../') + 'lib/';
var app = path.normalize(__dirname + '/../../') + 'app/';

// extend js functionality
require(lib + 'utils/extend');

// process values
process.env.Z_PORT = 10001;         // TODO dynamic value
process.env.Z_HOST = '127.0.0.1';   // TODO dynamic value
process.env.Z_LIBS = '[""]';        // TODO dynamic value

process.env.Z_SESSION = '{"role": ""}';
process.env.Z_OP_KEY = '@';
process.env.Z_CORE_INST = 'Z';

// -----------------------------------------------------------------------------

// access values
process.env.Z_USER = '530639e09060f4703737e017';    // TODO dynamic value
process.env.Z_KEY = '<KEY>';      // TODO dynamic value

// path values
process.env.Z_PATH_CACHE = lib + 'cache/';
process.env.Z_PATH_MODELS = lib + 'models/';
process.env.Z_PATH_STORES = lib + 'stores/';
process.env.Z_PATH_MIDDLEWARE = lib + 'middleware/';
process.env.Z_PATH_PROJECT = lib + 'project/';
process.env.Z_PATH_CLIENT = lib + 'client/';
process.env.Z_PATH_MODULE = lib + 'module/';
process.env.Z_PATH_VIEWS = lib + 'views/';
process.env.Z_PATH_PROCESS_PUBLIC = app + 'public/';
process.env.Z_PATH_PROCESS_MARKUP = app + 'markup/';
process.env.Z_PATH_PROCESS_MODULES = app + 'modules/';

// store values
process.env.Z_STORE_SYSTEM = 'system';
process.env.Z_STORE_STORES_MODEL = 'stores';
process.env.Z_STORE_PROJECTS_MODEL = 'projects';
process.env.Z_STORE_SYSTEM_DB_PREFIX = 'project_';
process.env.Z_STORE_ADAPTER = 'mongodb';
process.env.Z_STORE_CONFIG = '{"host":"127.0.0.1","port":27017,"database":"project_53078e9fe266dbc030ef890c"}'; // TODO dynamic value

// model vaules
process.env.Z_MODEL_MODELS = 'models';
process.env.Z_MODEL_ADAPTER = 'modm';
process.env.Z_MODEL_ENTITY = 'z_models';
{'fraction_non_alphanumeric': 0.18594390167034353, 'fraction_numerical': 0.019855026788528206, 'mean_word_length': 3.695266272189349, 'pattern_counts': {'":': 4, '<': 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': '196895', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1110, 'n_words': 206}