<commit_before>module.shared = true;

exports.httpConfig = {
    staticDir: './static'
};

exports.urls = [
    // docs:
    [ /docs\/(\d+)\.(json)/,    "modules/PolicyFeed", "showDocumentFormat" ],
    [ /docs\/(\d+)/,            "modules/PolicyFeed", "showDocument" ],
    [ /docs\/bydate/,           "modules/PolicyFeed", "showListByDate" ],
    [ /docs\/search/,           "modules/PolicyFeed", "search" ],
    [ /docs\/?$/,               "modules/PolicyFeed", "showDocumentList" ],

    // cron jobs:
    [ /cron\/crawl/,            "modules/PolicyFeed/Crawler",   "webCrawl" ],
    [ /cron\/convert/,          "modules/PolicyFeed/Converter", "webConvert" ],

    // static pages:
    [ /pages\/(.+)/,            "modules/KaVeikiaValdzia/Site", "showPage" ],

    // Default mapping by request parameters. See: modules/WebMapper mapRequest().
    [ /.*/, 'modules/ctl/WebMapper'] 
];

/*
exports.middleware = [
    'ringo/middleware/gzip',
    'ringo/middleware/etag',
    'ringo/middleware/responselog',
    'ringo/middleware/error',
    'ringo/middleware/notfound'
    // 'ringo/middleware/profiler'
];
//*/

// the JSGI app
exports.app = require('ringo/webapp').handleRequest;

/*
exports.macros = [
    './helpers',
    'ringo/skin/macros',
    'ringo/skin/filters'
];
*/

exports.charset = 'UTF-8';
exports.contentType = 'text/html';


// --- Gluestick constants: ---

var WEB_DIR = "/home/www/policyfeed/policyfeed";
var WEB_URL = "http://localhost:8080";
exports.WEB_DIR = WEB_DIR;
exports.WEB_URL = WEB_URL;

exports.FILES_DIR = WEB_DIR + "/static/files";
exports.FILES_URL = WEB_URL + "/static/files";
exports.UPLOADS_DIR = WEB_DIR + "/static/uploads";
exports.UPLOADS_URL = WEB_URL + "/static/uploads";

exports.CONFIG_DIR = WEB_DIR + "/config";
exports.DATA_DIR = WEB_DIR + "/data";
exports.LIB_DIR = WEB_DIR + "/lib";
exports.MODULES_DIR = WEB_DIR + "/modules";


// --- Gluestick config: ---

exports.gluestick = {
    interfaces: {
        DB: "ctl/DB/MySQL",
        DB_new: "ctl/DB/MySQL",
        Events: "ctl/Events",
        Site: "KaVeikiaValdzia/Site",
        WebMapper: "ctl/WebMapper"
    }
};

// --- Interface config: ---

exports.DB = {
    host: "localhost",
    db_name: "policyfeed",<commit_msg>Changed PolicyFeed config.js to use kaveikiavaldzia/modules/Site.js.<commit_after>module.shared = true;

exports.httpConfig = {
    staticDir: './static'
};

exports.urls = [
    // docs:
    [ /docs\/(\d+)\.(json)/,    "modules/PolicyFeed", "showDocumentFormat" ],
    [ /docs\/(\d+)/,            "modules/PolicyFeed", "showDocument" ],
    [ /docs\/bydate/,           "modules/PolicyFeed", "showListByDate" ],
    [ /docs\/search/,           "modules/PolicyFeed", "search" ],
    [ /docs\/?$/,               "modules/PolicyFeed", "showDocumentList" ],

    // cron jobs:
    [ /cron\/crawl/,            "modules/PolicyFeed/Crawler",   "webCrawl" ],
    [ /cron\/convert/,          "modules/PolicyFeed/Converter", "webConvert" ],

    // static pages:
    [ /pages\/(.+)/,            "modules/KaVeikiaValdzia/Site", "showPage" ],

    // Default mapping by request parameters. See: modules/WebMapper mapRequest().
    [ /.*/, 'modules/ctl/WebMapper'] 
];

/*
exports.middleware = [
    'ringo/middleware/gzip',
    'ringo/middleware/etag',
    'ringo/middleware/responselog',
    'ringo/middleware/error',
    'ringo/middleware/notfound'
    // 'ringo/middleware/profiler'
];
//*/

// the JSGI app
exports.app = require('ringo/webapp').handleRequest;

/*
exports.macros = [
    './helpers',
    'ringo/skin/macros',
    'ringo/skin/filters'
];
*/

exports.charset = 'UTF-8';
exports.contentType = 'text/html';



require.paths.unshift(module.directory + "../kaveikiavaldzia");



// --- Gluestick constants: ---

var WEB_DIR = "/home/www/policyfeed/policyfeed";
var WEB_URL = "http://localhost:8080";
exports.WEB_DIR = WEB_DIR;
exports.WEB_URL = WEB_URL;

exports.FILES_DIR = WEB_DIR + "/static/files";
exports.FILES_URL = WEB_URL + "/static/files";
exports.UPLOADS_DIR = WEB_DIR + "/static/uploads";
exports.UPLOADS_URL = WEB_URL + "/static/uploads";

exports.CONFIG_DIR = WEB_DIR + "/config";
exports.DATA_DIR = WEB_DIR + "/data";
exports.LIB_DIR = WEB_DIR + "/lib";
exports.MODULES_DIR = WEB_DIR + "/modules";


// --- Gluestick config: ---

exports.gluestick = {
    interfaces: {
        DB: "ctl/DB/MySQL",
        DB_new: "ctl/DB/MySQL",
        Events: "ctl/Events",
        //Site: "KaVeikiaValdzia/Site",
        WebMapper: "ctl/WebMapper"
    }
};

// --- Interface config: ---

exports.DB = {
    host: "localhost",
    db_name: "policyfeed",
{'fraction_non_alphanumeric': 0.18865866957470012, 'fraction_numerical': 0.0021810250817884407, 'mean_word_length': 2.6454689984101747, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5962912', 'n_tokens_mistral': 1665, 'n_tokens_neox': 1627, 'n_words': 248}