<commit_before>
# Page Controller

The Page controller requires access to models.  In this application, models can
be found at `app.models`.  To access this module, use the following code: 
`page = require('../page')(app.models)`.

Also note, `models` contians:

- **models.db** - Mongoose MongoDB connection
- **models.MODELNAME** - model objects

Code:

    module.exports = {}

## getPage

Requires:

- **model** - the Page model
- **name** - the name of the page to fetch
- **callback** - (page) -> {...}
    - **page** - a dict containing:
        - **page.name** - a string of the page name
        - **page.title** - a string of the page title
        - **page.body** - a string of the page body<commit_msg>correct documentation mistake, model required page<commit_after>
# Page Controller

To access this module, use the following code: 
`page = require('../page')`.  Methods can be called as:
`page.getPage(model, name, (page) -> { ... })`.

    module.exports = {}

## getPage

Requires:

- **model** - the Page model
- **name** - the name of the page to fetch
- **callback** - (page) -> {...}
    - **page** - a dict containing:
        - **page.name** - a string of the page name
        - **page.title** - a string of the page title
        - **page.body** - a string of the page body
{'fraction_non_alphanumeric': 0.15805705474171164, 'fraction_numerical': 0.0, 'mean_word_length': 2.7085714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2734553', 'n_tokens_mistral': 397, 'n_tokens_neox': 391, 'n_words': 150}