<commit_before>//test cookie passing
var http = require("http");
var fs = require("fs");
var querystring = require("querystring");
    express = require('express'),
    connect = require('connect'),
    sys = require('sys'),
    app = express.createServer();


var stdin = process.openStdin();
stdin.setEncoding('utf8');
stdin.on('data', function (chunk) {
    var processInfo = JSON.parse(chunk);
    process.chdir(processInfo.workingDirectory);
    app.listen(processInfo.port, function() {
        var returnedInfo = {port: processInfo.port};
        console.log(JSON.stringify(returnedInfo));
    });
});


app.get('/test',
function(req, res) {
    res.cookie('rememberme', 'yes', { maxAge: 900000 });<commit_msg>Return our actual port to avoid some potential conflicts<commit_after>//test cookie passing
var http = require("http");
var fs = require("fs");
var querystring = require("querystring");
    express = require('express'),
    connect = require('connect'),
    sys = require('sys'),
    app = express.createServer();


var stdin = process.openStdin();
stdin.setEncoding('utf8');
stdin.on('data', function (chunk) {
    var processInfo = JSON.parse(chunk);
    process.chdir(processInfo.workingDirectory);
    app.listen(processInfo.port, function() {
        console.log(JSON.stringify({port: app.address().port}));
    });
});


app.get('/test',
function(req, res) {
    console.log("Cookie test");
    res.cookie('rememberme', 'yes', { maxAge: 900000 });
{'fraction_non_alphanumeric': 0.17346938775510204, 'fraction_numerical': 0.009523809523809525, 'mean_word_length': 4.388278388278389, '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': '2124191', 'n_tokens_mistral': 457, 'n_tokens_neox': 434, 'n_words': 97}