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

var options = {
  capacity: 3,
  duration: 5000,
  burst: 3,
  delay: 1000 
};

argo()
  .use(limit(options))
  .get('/greeting', function(addHandler) {
    addHandler('request', function(env, next) {
      env.response.headers['Content-Type'] = 'text/plain';
      env.responseBody = 'Hello World!';
      next(env);
    });
  })
  .listen(process.env.PORT || 1337);<commit_msg>Changing values in example/server.js for better demo purposes.<commit_after>var argo = require('argo-server');
var limit = require('../');

var options = {
  capacity: 3,
  duration: 5000,
  burst: 1,
  delay: 1000 
};

argo()
  .use(limit(options))
  .get('/greeting', function(addHandler) {
    addHandler('request', function(env, next) {
      env.response.headers['Content-Type'] = 'text/plain';
      env.responseBody = 'Hello World!';
      next(env);
    });
  })
  .listen(process.env.PORT || 1337);
{'fraction_non_alphanumeric': 0.18549222797927462, 'fraction_numerical': 0.029015544041450778, 'mean_word_length': 3.4930232558139536, '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': '1729096', 'n_tokens_mistral': 349, 'n_tokens_neox': 324, 'n_words': 68}