<commit_before>var _= require('underscore')
var Path= require('path')
var Url= require('url')
var fs= require('fs')
var send= require('send')

function requestHandler(fsRoute,context,next)
{
  var req= context.req;
  var list= fsRoute.get_list_for(
    req.method == 'HEAD'? 'GET': req.method.toUpperCase(),
    Url.parse(req.url).pathname
  )

  if (list) {
    var i= 0
    var descend= function() {
      if (i == list.length) return next()
      list[i++].call(context,descend)
    }
    descend()
  }
  else next()
}

module.exports= requestHandler<commit_msg>Context.next is set to next().<commit_after>var _= require('underscore')
var Path= require('path')
var Url= require('url')
var fs= require('fs')
var send= require('send')

function requestHandler(fsRoute,context,next)
{
  var req= context.req;
  context.next= next;
  var list= fsRoute.get_list_for(
    req.method == 'HEAD'? 'GET': req.method.toUpperCase(),
    Url.parse(req.url).pathname
  )

  if (list) {
    var i= 0
    var descend= function() {
      if (i == list.length) return next()
      list[i++].call(context,descend)
    }
    descend()
  }
  else next()
}

module.exports= requestHandler
{'fraction_non_alphanumeric': 0.16167664670658682, 'fraction_numerical': 0.001710863986313088, 'mean_word_length': 3.7560975609756095, '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': '1422083', 'n_tokens_mistral': 416, 'n_tokens_neox': 407, 'n_words': 97}