<commit_before>/*jshint node: true, -W106 */
'use strict';

/*
* Name : barChartModel.js
* Module : Lib::DataTier::BarChartModel
* Location : /lib/dataTier/graph
*
* History :
* 
* Version   Date         Programmer         Description
* =========================================================
* 0.0.1     2015-05-12   <NAME>    Initial code
* =========================================================
*/

var GraphModel = require('./graphModel.js');
var BarChartFlowModel = require('../flow/barChartFlowModel.js');

BarChartModel.prototype = new GraphModel();
BarChartModel.prototype.constructor = BarChartModel;
BarChartModel.prototype.parent = GraphModel.prototype;

function BarChartModel(params) {

	params.type = 'BarChart';
	
	this.parent.constructor.call(params);

	this._headers=[];
	this._barOrientation='';
	this._sortable=false;
	this._xAxis='';
	this._yAxis='';
	this._backgroundColor='';
	this._flows=[];

	if(params.headers!==undefined && Array.isArray(params.headers)){
		this._headers=params.headers;
	}
	if(params.barOrientation!==undefined && typeof params.barOrientation === 'string'/*POSSIBLE VALUES*/){
		this._barOrientation=params.barOrientation;
	}
	if(params.sortable!==undefined && typeof params.sortable === 'boolean'){
		this._sortable=params.sortable;
	}
	if(params.xAxis!==undefined && typeof params.xAxis === 'string'){
		this._xAxis=params.xAxis;<commit_msg>fix graphmodel<commit_after>/*jshint node: true, -W106 */
'use strict';

/*
* Name : barChartModel.js
* Module : Lib::DataTier::BarChartModel
* Location : /lib/dataTier/graph
*
* History :
* 
* Version   Date         Programmer         Description
* =========================================================
* 0.0.1     2015-05-12   <NAME>    Initial code
* =========================================================
*/

var GraphModel = require('./graphModel.js');
var BarChartFlowModel = require('../flow/barChartFlowModel.js');

BarChartModel.prototype = new GraphModel({ID: 'ex'});
BarChartModel.prototype.constructor = BarChartModel;
BarChartModel.prototype.parent = GraphModel.prototype;

function BarChartModel(params) {

	params.type = 'BarChart';
	
	this.parent.constructor.call(params);

	this._headers=[];
	this._barOrientation='';
	this._sortable=false;
	this._xAxis='';
	this._yAxis='';
	this._backgroundColor='';
	this._flows=[];

	if(params.headers!==undefined && Array.isArray(params.headers)){
		this._headers=params.headers;
	}
	if(params.barOrientation!==undefined && typeof params.barOrientation === 'string'/*POSSIBLE VALUES*/){
		this._barOrientation=params.barOrientation;
	}
	if(params.sortable!==undefined && typeof params.sortable === 'boolean'){
		this._sortable=params.sortable;
	}
	if(params.xAxis!==undefined && typeof params.xAxis === 'string'){
		this._xAxis=params.xAxis;
{'fraction_non_alphanumeric': 0.23148479427549196, 'fraction_numerical': 0.01001788908765653, 'mean_word_length': 5.340136054421769, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '505697', 'n_tokens_mistral': 901, 'n_tokens_neox': 845, 'n_words': 133}