<commit_before>'use strict'
/**
 * Created by tungtouch on 2/9/15.
 */

var http = require("http"), server;
var message = new Buffer("Some bytes hello world bo bo bo world HEHEHEHE ahhaha hohoho hehe ban kinh dai bakbakabk efefe");
var redis_client = require("redis").createClient();

server = http.createServer(function (request, response) {
    response.writeHead(200, {
        "Content-Type": "text/plain"
    });
    redis_client.hset("raw", "data"+r, message, redis.print);
    redis_client.incr("requests", function (err, reply) {
        response.write(reply+'\n');
        response.end();
    });
}).listen(6666);

server.on('error', function(err){
    console.log(err);
    process.exit(1);
});<commit_msg>change port 3000<commit_after>'use strict'
/**
 * Created by tungtouch on 2/9/15.
 */

var http = require("http"), server;
var message = new Buffer("Some bytes hello world bo bo bo world HEHEHEHE ahhaha hohoho hehe ban kinh dai bakbakabk efefe");
var redis_client = require("redis").createClient();
var r = 0;
server = http.createServer(function (request, response) {
    r++;
    response.writeHead(200, {
        "Content-Type": "text/plain"
    });
    redis_client.hset("raw", "data"+r, message, redis.print);
    redis_client.incr("requests", function (err, reply) {
        response.write(reply+'\n');
        response.end();
    });
}).listen(6666);

server.on('error', function(err){
    console.log(err);
    process.exit(1);
});
{'fraction_non_alphanumeric': 0.1671251719394773, 'fraction_numerical': 0.019944979367262722, 'mean_word_length': 3.833887043189369, 'pattern_counts': {'":': 2, '<': 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': '2506769', 'n_tokens_mistral': 507, 'n_tokens_neox': 479, 'n_words': 118}