<commit_before>/*******************************************************************************
 * @license
 * Copyright (c) 2013 VMware, Inc. All Rights Reserved.
 * THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
 * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
 * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
 * You can obtain a current copy of the Eclipse Public License from
 * http://www.opensource.org/licenses/eclipse-1.0.php
 *
 * Contributors:
 *   <NAME>
 ******************************************************************************/

//
// A start script to run scripted server on cloudfoundry
//


var path = require('path');

var filesystem = require('../server/utils/filesystem').withBaseDir(path.resolve(__dirname, '../sandbox'), {
	userHome: '/user.home'
});

// Launch the server
var server=require('../server/scriptedServer.js').start(filesystem, {<commit_msg>Add some commented experimentation code to start-cloudfoundry.js<commit_after>/*******************************************************************************
 * @license
 * Copyright (c) 2013 VMware, Inc. All Rights Reserved.
 * THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
 * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
 * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
 * You can obtain a current copy of the Eclipse Public License from
 * http://www.opensource.org/licenses/eclipse-1.0.php
 *
 * Contributors:
 *   <NAME>
 ******************************************************************************/

//
// A start script to run scripted server on cloudfoundry
//


var path = require('path');

var mappedFs = require('../server/plugable-fs/mapped-fs');
var scriptedFs = require('../server/plugable-fs/scripted-fs');

var sandbox = mappedFs.withBaseDir(path.resolve(__dirname, '../sandbox'));
//var amoeba = mappedFs.withPrefix('/amo/eba', sandbox);

var filesystem = scriptedFs.configure(sandbox, {
	userHome: '/amo/eba/user.home',
	scriptedHome: '/scripted.home'
});

//var filesystem = require('../server/utils/filesystem').withBaseDir(), {
//	userHome: '/user.home'
//});

// Launch the server
var server=require('../server/scriptedServer.js').start(filesystem, {
{'fraction_non_alphanumeric': 0.26065719360568385, 'fraction_numerical': 0.0053285968028419185, 'mean_word_length': 4.897905759162303, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '333580', 'n_tokens_mistral': 667, 'n_tokens_neox': 611, 'n_words': 176}