<commit_before>module.exports = [
  {
    controller: 'main',
    map: {
      'GET /': 'index'
    }
  }
];
<commit_msg>Documented new route config syntax - need to update routeMapper to work with it.<commit_after>module.exports = {
  'GET /' : 'main.index',
};


/*
# Normal controllers

The following maps the `/` URL to the `index()` method on the controller at `controllers/main.js`.

```js
module.exports = {
 'GET /' : 'main.index'
};
```

This can also be written as:

```js
module.exports = {
 'GET /' : {
  controller: 'main.index'
 }
};

```

_Note: Supported request methods are: GET, POST, PUT, DEL, OPTIONS and HEAD_.

You can specify one or more middleware which should get run before running the controller method:

```js
module.exports = {
 'GET /' : ['accessControl', 'main.index']
};
```

_Note that when an array is provided, as above, the last item is always expected to be the controller method which is
meant to handle the request_.

You can also write the above as:

```js
module.exports = {
 'GET /' : {
    middleware: ['accessControl'],
    controller: 'main.index'
 }
};
```

In fact, you can even specify other controller methods as middleware:

```js
module.exports = {
  'GET /' : {
    middleware: ['accessControl', 'user.load'],
    controller: 'main.index'
  }
};
```

If a specified middleware item is in the form `module.methodName` then it is assumed to be a method on a controller.
Otherwise it is expected to be the name of a middleware module in the middleware folder.

For the above example, Waigo will process the request in the following order:

  - Load `support/middleware/acccessControl.js` and pass request to its
  - Load `controllers/user.js` and pass request to its `load` method
  - Load `controllers/main.js` and pass request to its `index` method

*/


{'fraction_non_alphanumeric': 0.12188365650969529, 'fraction_numerical': 0.0, 'mean_word_length': 3.515, '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': '5165289', 'n_tokens_mistral': 570, 'n_tokens_neox': 549, 'n_words': 220}