<commit_before>// core libraries
global.child_process = require("child_process")
global.crypto = require("crypto");
global.fs = require("fs")
global.http = require("http")
global.path = require("path");
global.url = require("url")
global.util = require("util")

// convenient contrivances
global.exec = child_process.exec;
global.spawn = child_process.spawn;

global.inherits = util.inherits;

// useful libraries
global.GetOpt = require("v8cgi/lib/getopt.js").GetOpt
global._ = require("underscore");

// extensions
global.ext = {};
global.ext.Console = require(path.join(__dirname, "ext", "console"));
global.ext.File = require(path.join(__dirname, "ext", "file"));
global.ext.Sync = require(path.join(__dirname, "ext", "sync"));
global.ext.Inflect = require("inflect-js");

// core classes
global.Logger = require("./logger");
global.ClassLoader = require(path.join(__dirname, "class_loader"));

var class_loader = new ClassLoader();
class_loader.load(path.join(Gourdian.framework_root, "lib", "loaders"), null, { pollute: true, prefix: 1});

global.Configuration = require(path.join(__dirname, "configuration"));

// server classes
global.Server = require(path.join(__dirname, "server"));
global.Router = require(path.join(__dirname, "router"));
global.SessionStore = require(path.join(__dirname, "session_store"));

global.IHandler = require(path.join(__dirname, "ihandler"));
class_loader.load(path.join(Gourdian.framework_root, "lib", "handlers"), null, { pollute: true, prefix: 1});

// user space classes
global.Controller = require(path.join(__dirname, "controller"));
<commit_msg>simplify global includes<commit_after>// core libraries
global.child_process = require("child_process")
global.crypto = require("crypto");
global.fs = require("fs")
global.http = require("http")
global.path = require("path");
global.url = require("url")
global.util = require("util")

// convenient contrivances
global.exec = child_process.exec;
global.spawn = child_process.spawn;

global.inherits = util.inherits;

// useful libraries
global.GetOpt = require("v8cgi/lib/getopt.js").GetOpt
global._ = require("underscore");

// extensions
global.ext = {};
global.ext.Console = require(path.join(__dirname, "ext", "console"));
global.ext.File = require(path.join(__dirname, "ext", "file"));
global.ext.Sync = require(path.join(__dirname, "ext", "sync"));
global.ext.Inflect = require("inflect-js");

// core classes
global.Logger = require("./logger");
global.ClassLoader = require(path.join(__dirname, "class_loader"));

var class_loader = new ClassLoader();
class_loader.load(path.join(__dirname, "loaders"), null, { pollute: true, prefix: 1});

global.Configuration = require(path.join(__dirname, "configuration"));

// server classes
global.Server = require(path.join(__dirname, "server"));
global.Router = require(path.join(__dirname, "router"));
global.SessionStore = require(path.join(__dirname, "session_store"));

global.IHandler = require(path.join(__dirname, "ihandler"));
class_loader.load(path.join(__dirname, "handlers"), null, { pollute: true, prefix: 1});

// user space classes
global.Controller = require(path.join(__dirname, "controller"));

{'fraction_non_alphanumeric': 0.17581720088860678, 'fraction_numerical': 0.001904157410345922, 'mean_word_length': 6.486935866983373, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4960154', 'n_tokens_mistral': 957, 'n_tokens_neox': 947, 'n_words': 194}