<commit_before>'use strict'

var koa = require('koa')
  , route = require('koa-route')
  , bodyParser = require('koa-bodyparser')

var qs = require('qs')
  , thunkify = require('thunkify')

var config = require('../config')
var flows = {
  1: require('../flow/oauth1'),
  2: require('../flow/oauth2'),
  getpocket: require('../flow/getpocket')
}
flows[1].step1 = thunkify(flows[1].step1)
flows[1].step3 = thunkify(flows[1].step3)
flows[2].step2 = thunkify(flows[2].step2)
flows.getpocket.step1 = thunkify(flows.getpocket.step1)
flows.getpocket.step3 = thunkify(flows.getpocket.step3)


function Grant (_config) {
  var app = koa()<commit_msg>Do not thunkify cached methods global for the process<commit_after>'use strict'

var koa = require('koa')
  , route = require('koa-route')
  , bodyParser = require('koa-bodyparser')

var qs = require('qs')
  , thunkify = require('thunkify')

var config = require('../config')
var f = {
  1: require('../flow/oauth1'),
  2: require('../flow/oauth2'),
  3: require('../flow/getpocket')
}
var flows = {
  1:{step1:thunkify(f[1].step1), step2:f[1].step2, step3:thunkify(f[1].step3)},
  2:{step1:f[2].step1, step2:thunkify(f[2].step2), step3:f[2].step3},
  getpocket:{step1:thunkify(f[3].step1), step2:f[3].step2, step3:thunkify(f[3].step3)}
}


function Grant (_config) {
  var app = koa()
{'fraction_non_alphanumeric': 0.2027128862094951, 'fraction_numerical': 0.04069329314242653, 'mean_word_length': 4.850220264317181, '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': '6675818', 'n_tokens_mistral': 545, 'n_tokens_neox': 534, 'n_words': 90}