<commit_before>/**
 * Controller基类
 * @return {[type]} [description]
 */
var fs = require("fs");
module.exports = Class(function(){
    return {
        init: function(http){
            this.http = http;
            this.view = null;
            //将http数据打到模版里
            this.assign("http", this.http);
            tag('action_start');
        },
        /**
         * 获取客户端的ip
         * @return {[type]} [description]
         */
        ip: function(){
            return this.http.ip();
        },
        /**
         * 实例化View类<commit_msg>add http for action_start tag<commit_after>/**
 * Controller基类
 * @return {[type]} [description]
 */
var fs = require("fs");
module.exports = Class(function(){
    return {
        init: function(http){
            this.http = http;
            this.view = null;
            //将http数据打到模版里
            this.assign("http", this.http);
            tag('action_start', this.http);
        },
        /**
         * 获取客户端的ip
         * @return {[type]} [description]
         */
        ip: function(){
            return this.http.ip();
        },
        /**
         * 实例化View类
{'fraction_non_alphanumeric': 0.15466666666666667, 'fraction_numerical': 0.0, 'mean_word_length': 1.4966740576496673, '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': '2208965', 'n_tokens_mistral': 339, 'n_tokens_neox': 350, 'n_words': 64}