<commit_before>'use strict';
/*
 *@author xtx1130
 *@description 处理基础routes和基本controller绑定，抛出扩展后的koa构造函数
 */
const Koa = require('koa');
const Routes = require('app/routes/koas-router');
const Controller = require('app/controllers/controller');
class Koas extends Koa{
	constructor(){
		super();
		this.routes = new Routes();
		this.controller = new Controller();
	}
}<commit_msg>establish controller and routes<commit_after>'use strict';
/*
 *@author xtx1130
 *@description 处理基础routes和基本controller绑定，抛出扩展后的koa构造函数
 */
const Koa = require('koa');
const Routes = require('./app/routes/koas-router');
const Controller = require('./app/controllers/controller');
class Koas extends Koa{
	constructor(){
		super();
		this.routes = new Routes();
		this.controller = new Controller();
	}
}
let s = new Koas();
console.dir(s)
{'fraction_non_alphanumeric': 0.15299877600979192, 'fraction_numerical': 0.009791921664626682, 'mean_word_length': 5.544, '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': '386681', 'n_tokens_mistral': 294, 'n_tokens_neox': 305, 'n_words': 62}