<commit_before>(function(){
    "strict mode";

    var DIR,
        LIBDIR,
        SRVDIR,
        Util;
    
    /* Constants */
    exports.DIR         = DIR       = process.cwd()             + '/',
    exports.LIBDIR      = LIBDIR    = DIR                       + 'lib/',
    exports.SRVDIR      = SRVDIR    = LIBDIR                    + 'server/',
    exports.WIN32       = isWin32();    
    
    /* Functions */
    exports.require     = mrequire,
    exports.librequire  = librequire,
    exports.srvrequire  = srvrequire,
    exports.rootrequire = rootrequire,
    
    /* Native Modules*/
    exports.path                    = require('path'),
    exports.fs                      = require('fs'),
    exports.querystring             = require('querystring'),
    exports.child_process           = require('child_process'),
    exports.https                   = require('https'),
    
    /* Needed Modules */
    exports.util    = Util          = require(LIBDIR    + 'util'),
    
    /* Main Information */
    exports.config                  = rootrequire('config');
    exports.mainpackage             = rootrequire('package');
    
    /* Additional Modules */
    
    exports.zlib                    = mrequire('zlib'),
    exports.cloudfunc               = librequire('cloudfunc'),
    exports.update                  = srvrequire('update'),
    exports.appcache                = srvrequire('appcache'),
    exports.auth                    = srvrequire('auth'),
    exports.socket                  = srvrequire('socket'),
    exports.object                  = srvrequire('object');

    
    /**
     * function do safe require of needed module
     * @param {Strin} pSrc
     */
    function mrequire(pSrc){
        var lModule,        
        lError = Util.tryCatch(function(){
            lModule = require(pSrc);
        });
        <commit_msg>refactored<commit_after>(function(){
    "strict mode";

    var DIR,
        LIBDIR,
        SRVDIR,
        Util;
    
    /* Constants */
    exports.DIR         = DIR       = process.cwd() + '/',
    exports.LIBDIR      = LIBDIR    = DIR + 'lib/',
    exports.SRVDIR      = SRVDIR    = LIBDIR + 'server/',
    exports.WIN32       = isWin32();    
    
    /* Functions */
    exports.require     = mrequire,
    exports.librequire  = librequire,
    exports.srvrequire  = srvrequire,
    exports.rootrequire = rootrequire,
    
    /* Native Modules*/
    exports.child_process           = require('child_process'),
    exports.fs                      = require('fs'),
    exports.https                   = require('https'),
    exports.path                    = require('path'),    
    exports.querystring             = require('querystring'),    
    
    /* Needed Modules */
    exports.util    = Util          = require(LIBDIR + 'util'),
    
    /* Main Information */
    exports.config                  = rootrequire('config');
    exports.mainpackage             = rootrequire('package');
    
    /* Additional Modules */
    
    exports.appcache                = srvrequire('appcache'),
    exports.cloudfunc               = librequire('cloudfunc'),
    exports.auth                    = srvrequire('auth'),  
    exports.object                  = srvrequire('object');
    exports.socket                  = srvrequire('socket'),
    exports.update                  = srvrequire('update'),
    exports.zlib                    =   mrequire('zlib'),

    
    /**
     * function do safe require of needed module
     * @param {Strin} pSrc
     */
    function mrequire(pSrc){
        var lModule,        
        lError = Util.tryCatch(function(){
            lModule = require(pSrc);
        });
        
{'fraction_non_alphanumeric': 0.11710490647872052, 'fraction_numerical': 0.002168609379235565, 'mean_word_length': 1.410189418680601, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '872869', 'n_tokens_mistral': 1009, 'n_tokens_neox': 966, 'n_words': 178}