<commit_before>var argo = require('../');

argo()
  .get('/greeting', function(addHandler) {
    addHandler('request', function(env, next) {
      env.trace('greeting', function() {
        env.response.statusCode = 200;
        env.response.headers['Content-Type'] = 'text/plain';
        env.response.body = 'Hello world!';

        next(env);
      });
    });
  })
  .listen(process.env.PORT || 3000);

<commit_msg>Adding CORS to server2 example.<commit_after>var argo = require('../');
var cors = require('./cors');

argo()
  .use(cors)
  .get('/greeting', function(addHandler) {
    addHandler('request', function(env, next) {
      env.trace('greeting', function() {
        env.response.statusCode = 200;
        env.response.headers['Content-Type'] = 'text/plain';
        env.response.body = 'Hello world!';

        next(env);
      });
    });
  })
  .listen(process.env.PORT || 3000);


{'fraction_non_alphanumeric': 0.1935483870967742, 'fraction_numerical': 0.01668520578420467, 'mean_word_length': 2.8135593220338984, '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': '3554774', 'n_tokens_mistral': 306, 'n_tokens_neox': 291, 'n_words': 50}