<commit_before>var connect = require('connect'),
    connectCouchDB = require('connect-couchdb');

function helloWorld(req, res) {
  if (!req.session.tick) {
    req.session.tick = 0;
  }
  res.writeHead(200, { 'Content-Type': 'text/plain' });
  if (req.url == '/') {
    req.session.tick++;
    res.write('hello world : ' + req.session.tick);
  }
  res.end('');
}
var server = connect.createServer(connect.cookieDecoder(),
                                  connect.session({secret: '<PASSWORD> secret passphrase',
                                                   store: new connectCouchDB({database: "test"})}),
                                  helloWorld);

server.listen(3000);<commit_msg>update example<commit_after>var connect = require('connect'),
    connectCouchDB = require('../lib/connect-couchdb')(connect);

function helloWorld(req, res) {
  if (!req.session.tick) {
    req.session.tick = 0;
  }
  res.writeHead(200, { 'Content-Type': 'text/plain' });
  if (req.url == '/') {
    req.session.tick++;
    res.write('hello world : ' + req.session.tick);
  }
  res.end('');
}
var server = connect.createServer(connect.cookieParser(),
                                  connect.session({secret: '<PASSWORD> secret passphrase',
                                                   store: new connectCouchDB({name: "test"})}),
                                  helloWorld);

server.listen(3000);
{'fraction_non_alphanumeric': 0.16119828815977175, 'fraction_numerical': 0.011412268188302425, 'mean_word_length': 2.1457399103139014, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2786376', 'n_tokens_mistral': 418, 'n_tokens_neox': 397, 'n_words': 70}