<commit_before>/*******************************************************************************
 * @license
 * Copyright (c) 2012 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>
 ******************************************************************************/

var fs = require('fs');
var path = require('path');

var EDITOR_HTML = path.resolve(__dirname, '../../client/editor.html');

console.log("EDITOR_HTML = '" +EDITOR_HTML+"'");

exports.install = function (app) {

	function sendEditor(req, res) {
		res.header('Content-Type', 'text/html');
		fs.createReadStream(EDITOR_HTML).pipe(res);
	}

	app.get('/editor', sendEditor);
	app.get('/editor/:path(*)', sendEditor);

};
<commit_msg>Cleanup logging<commit_after>/*******************************************************************************
 * @license
 * Copyright (c) 2012 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>
 ******************************************************************************/

var fs = require('fs');
var path = require('path');

var EDITOR_HTML = path.resolve(__dirname, '../../client/editor.html');
//console.log("EDITOR_HTML = '" +EDITOR_HTML+"'");

exports.install = function (app) {

	function sendEditor(req, res) {
		res.header('Content-Type', 'text/html');
		fs.createReadStream(EDITOR_HTML).pipe(res);
	}

	app.get('/editor', sendEditor);
	app.get('/editor/:path(*)', sendEditor);

};

{'fraction_non_alphanumeric': 0.2834875791524598, 'fraction_numerical': 0.0058451047247929854, 'mean_word_length': 5.205438066465256, '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': '4975977', 'n_tokens_mistral': 621, 'n_tokens_neox': 580, 'n_words': 155}