<commit_before>/* R O U T E R 
 handle req's
*/
var filed = require('filed');
module.exports = function (req, res) {
  if (req.url==='/bundle.min.js') {
    filed('_wilds/bundle.min.js').pipe(res);
  } else if (req.url==='/') { 
    filed('_wilds/frame.html').pipe(res);
  } else {
    res.end('fuuuuuuk');
   }
}<commit_msg>updated routes to take options obj<commit_after>/* R O U T E R 
 handle req's
*/
var filed = require('filed');
module.exports = function (opts) {
  this.handleRoutes = function (req,res) {
    for(url in opts){
      var match = false;
      if(url === req.url) {
        filed(opts[url]).pipe(res);
        match = true;
        break;
      } else if(url != req.url) match = false;
    }
    if (match === false) res.end('fuuuuuk');
  }
}
{'fraction_non_alphanumeric': 0.18823529411764706, 'fraction_numerical': 0.0, 'mean_word_length': 2.7365853658536587, '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': '5538590', 'n_tokens_mistral': 285, 'n_tokens_neox': 275, 'n_words': 69}