<commit_before>const pathWrapper = (app, pathName, opts) => ({ raw, query }, hapiReply) =>
app.renderToHTML(raw.req, raw.res, pathName, query, opts)
.then(hapiReply)

const defaultHandlerWrapper = app => ({ raw }, hapiReply) =>
app.run(raw.req, raw.res)

module.exports = { pathWrapper, defaultHandlerWrapper }<commit_msg>Pass parsed request-URL into the run-method (#1000)<commit_after>const pathWrapper = (app, pathName, opts) => ({ raw, query }, hapiReply) =>
app.renderToHTML(raw.req, raw.res, pathName, query, opts)
.then(hapiReply)

const defaultHandlerWrapper = app => ({ raw, url }, hapiReply) =>
app.run(raw.req, raw.res, url)

module.exports = { pathWrapper, defaultHandlerWrapper }
{'fraction_non_alphanumeric': 0.157514450867052, 'fraction_numerical': 0.005780346820809248, 'mean_word_length': 5.728155339805825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4142107', 'n_tokens_mistral': 231, 'n_tokens_neox': 225, 'n_words': 56}