<commit_before>"use strict";
//
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt

var Q = require("q");
var fs = require("fs");
var ncp = require("ncp").ncp;
var os = require("os");
var path = require("path");
var spawn = require("child_process").spawn;
var wrench = require("wrench");

var DATA_DIR = __dirname + "/data/";
var CACHE_DIR = "build/.cache/";

var HAXE_COMPILER_PORT = 6000;
var HTTP_PORT = 5000;
var SOCKET_PORT = HTTP_PORT+1;

exports.PLATFORMS = ["html", "flash", "android"];

exports.VERSION = JSON.parse(fs.readFileSync(__dirname + "/package.json")).version;

exports.loadConfig = function (file) {
    var promise =
    Q.nfcall(fs.readFile, file)
    .catch(function (error) {
        throw new Error("Could not open '" + file + "'. Is this a valid project directory?");
    })
    .then(function (text) {
        var yaml = require("js-yaml");<commit_msg>Switch to port 7000.<commit_after>"use strict";
//
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt

var Q = require("q");
var fs = require("fs");
var ncp = require("ncp").ncp;
var os = require("os");
var path = require("path");
var spawn = require("child_process").spawn;
var wrench = require("wrench");

var DATA_DIR = __dirname + "/data/";
var CACHE_DIR = "build/.cache/";

var HAXE_COMPILER_PORT = 6000;
var HTTP_PORT = 7000;
var SOCKET_PORT = HTTP_PORT+1;

exports.PLATFORMS = ["html", "flash", "android"];

exports.VERSION = JSON.parse(fs.readFileSync(__dirname + "/package.json")).version;

exports.loadConfig = function (file) {
    var promise =
    Q.nfcall(fs.readFile, file)
    .catch(function (error) {
        throw new Error("Could not open '" + file + "'. Is this a valid project directory?");
    })
    .then(function (text) {
        var yaml = require("js-yaml");
{'fraction_non_alphanumeric': 0.17215326497571506, 'fraction_numerical': 0.011872638963842417, 'mean_word_length': 3.9177718832891246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5783737', 'n_tokens_mistral': 644, 'n_tokens_neox': 627, 'n_words': 156}