<commit_before>#!/usr/bin/env node

var path   = require('path');

process.env.HARAKA = process.env.HARAKA || path.resolve('.');

var fs     = require('fs');
var logger = require('./logger');
var server = require('./server');

try {
  require.paths.unshift(path.join(process.env.HARAKA, 'node_modules'));
} catch(e) {
  logger.loginfo('No require paths. Must be node v0.5');
  process.env.NODE_PATH += ':' + path.join(process.env.HARAKA, 'node_modules');
}

exports.version = JSON.parse(
        fs.readFileSync(path.join(__dirname, './package.json'), 'utf8')
    ).version;

process.on('uncaughtException', function (err) {
    if (err.stack) {<commit_msg>Fixed running under 0.5 again<commit_after>#!/usr/bin/env node

var path   = require('path');

// this must be set before "server.js" is loaded
process.env.HARAKA = process.env.HARAKA || path.resolve('.');
try {
  require.paths.unshift(path.join(process.env.HARAKA, 'node_modules'));
} catch(e) {
  logger.loginfo('No require paths. Must be node v0.5');
  process.env.NODE_PATH += ':' + path.join(process.env.HARAKA, 'node_modules');
}

var fs     = require('fs');
var logger = require('./logger');
var server = require('./server');

exports.version = JSON.parse(
        fs.readFileSync(path.join(__dirname, './package.json'), 'utf8')
    ).version;

process.on('uncaughtException', function (err) {
    if (err.stack) {
{'fraction_non_alphanumeric': 0.19013062409288825, 'fraction_numerical': 0.005805515239477504, 'mean_word_length': 4.088560885608856, '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': '7071656', 'n_tokens_mistral': 481, 'n_tokens_neox': 479, 'n_words': 96}