<commit_before>var http = require('http');
http.createServer(function (req, res) {
	res.writeHead(200, {'Content-Type': 'text/plain'});
	res.end('Hello World\n');
}).listen('/tmp/node.sock', function() {
	console.log('Server running on node.sock');
});

/*
var express = require('express');
var app = express();
app.get('/hello', function(req, res){
	var body = 'Hello World';
	res.setHeader('Content-Type', 'text/plain');
	res.setHeader('Content-Length', Buffer.byteLength(body));
	res.end(body);
});
app.get("/", function(req, res) {
	var body = 'Hello World';
	res.setHeader('Content-Type', 'text/plain');
	res.setHeader('Content-Length', Buffer.byteLength(body));
	res.end(body);
});
app.listen('/tmp/node.sock');
console.log('Listening on nginx socket');*/<commit_msg>Switch to express<commit_after>/*
var http = require('http');
http.createServer(function (req, res) {
	res.writeHead(200, {'Content-Type': 'text/plain'});
	res.end('Hello World\n');
}).listen('/tmp/node.sock', function() {
	console.log('Server running on node.sock');
});
 */

var express = require('express');
var app = express();
app.get('/hello', function(req, res){
	var body = 'Hello World';
	res.setHeader('Content-Type', 'text/plain');
	res.setHeader('Content-Length', Buffer.byteLength(body));
	res.end(body);
});
app.get("/", function(req, res) {
	var body = 'Hello World';
	res.setHeader('Content-Type', 'text/plain');
	res.setHeader('Content-Length', Buffer.byteLength(body));
	res.end(body);
});
app.listen('/tmp/node.sock');
console.log('Listening on nginx socket');
{'fraction_non_alphanumeric': 0.22422680412371135, 'fraction_numerical': 0.003865979381443299, 'mean_word_length': 5.781659388646288, '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': '540993', 'n_tokens_mistral': 530, 'n_tokens_neox': 523, 'n_words': 106}