<commit_before>
var RestOAuthModel = require('./oAuthModel.js').RestOAuthModel;
var util = require("util");
var Schema = require('../../models/schema.js').Schema;
var mModelSearch = require('./mModelSearch');
var models = require('../../models');
var statusCodes = require('../statusCodes');
var de = require("jinjs").defaultEnvironment;
var mRenderHtml = require('./mRenderHtml');



var RestSchema = exports.RestSchema = function(server) {
	RestOAuthModel.call(this, 'schema', Schema, server);

	this._urls.get[this._urlPrefix + '/_search'] = {
		fn : this.search
	};

	this._urls.post[this._urlPrefix + '/_search'] = {
		fn : this.search
	};

	this._urls.get[this._urlPrefix + '/:id/_html'] = {
		fn : this.renderHtml
	};

	this._initServer();
}

util.inherits(RestSchema, RestOAuthModel);

for (k in mModelSearch) {
	RestSchema.prototype[k] = mModelSearch[k];
}

for(k in mRenderHtml) {
	RestSchema.prototype[k] = mRenderHtml[k];
}

RestSchema.prototype.searchFields = {
	'name' : 'term',
	'createDate' : 'datetime',
	'updateDate' : 'datetime'<commit_msg>add final search param<commit_after>
var RestOAuthModel = require('./oAuthModel.js').RestOAuthModel;
var util = require("util");
var Schema = require('../../models/schema.js').Schema;
var mModelSearch = require('./mModelSearch');
var models = require('../../models');
var statusCodes = require('../statusCodes');
var de = require("jinjs").defaultEnvironment;
var mRenderHtml = require('./mRenderHtml');



var RestSchema = exports.RestSchema = function(server) {
	RestOAuthModel.call(this, 'schema', Schema, server);

	this._urls.get[this._urlPrefix + '/_search'] = {
		fn : this.search
	};

	this._urls.post[this._urlPrefix + '/_search'] = {
		fn : this.search
	};

	this._urls.get[this._urlPrefix + '/:id/_html'] = {
		fn : this.renderHtml
	};

	this._initServer();
}

util.inherits(RestSchema, RestOAuthModel);

for (k in mModelSearch) {
	RestSchema.prototype[k] = mModelSearch[k];
}

for(k in mRenderHtml) {
	RestSchema.prototype[k] = mRenderHtml[k];
}

RestSchema.prototype.searchFields = {
	'name' : 'term',
	'createDate' : 'datetime',
	'updateDate' : 'datetime',
	'final' : 'boolean'
{'fraction_non_alphanumeric': 0.18241042345276873, 'fraction_numerical': 0.0, 'mean_word_length': 4.718085106382978, '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': '1313556', 'n_tokens_mistral': 739, 'n_tokens_neox': 728, 'n_words': 136}