<commit_before>var async = require('async');
var _ = require('underscore');
var path = require('path');


var config = {
    cookie:{
        secret:'ninja_face'
    },
    callback:{
        uri:'/callbacks'
    },
    iframe:{
        uri:'/iframe'
    },
    app_dir:path.join(__dirname, '..', '..'),
    port:3000
};
var njax_util = require('njax-util');
var njax_app = function(options){

    options = _.extend(config, options)

    var app = njax_util.app(options);
    app.njax.config.njax_dir = path.join(__dirname, '..');

    app.njax.config.njax_tpl_dir = path.join(app.njax.config.njax_dir, 'public', 'templates');
    app.locals.partials = {};
    app.locals.partials._header = app.njax.config.njax_util_tpl_dir + '/_header';
    app.locals.partials._footer = app.njax.config.njax_util_tpl_dir + '/_footer';

    app.njax.config.tpl_dir = path.join(app.njax.config.app_dir, 'public', 'templates');<commit_msg>Code flying from the fingertips<commit_after>var async = require('async');
var _ = require('underscore');
var path = require('path');


var config = {
    cookie:{
        secret:'ninja_face'
    },
    callback:{
        uri:'/callbacks'
    },
    iframe:{
        uri:'/iframe'
    },
    app_dir:path.join(__dirname, '..', '..'),
    port:3000,
    core_api:{
        protocol:'https',
        host:'api.localhost:3030'
    }
};
var njax_util = require('njax-util');
var njax_app = function(options){

    options = _.extend(config, options)

    var app = njax_util.app(options);
    app.njax.config.njax_dir = path.join(__dirname, '..');

    app.njax.config.njax_tpl_dir = path.join(app.njax.config.njax_dir, 'public', 'templates');
    app.locals.partials = {};
    app.locals.partials._header = app.njax.config.njax_util_tpl_dir + '/_header';
    app.locals.partials._footer = app.njax.config.njax_util_tpl_dir + '/_footer';

{'fraction_non_alphanumeric': 0.1723209477652127, 'fraction_numerical': 0.006462035541195477, 'mean_word_length': 3.2036199095022626, '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': '4063519', 'n_tokens_mistral': 684, 'n_tokens_neox': 661, 'n_words': 96}