<commit_before>var Merge = require("merge");
//var Format = require('./format.js');
var Render = require('./render.js');

//table body inherits from Array
var Cls = Object.create(Array.prototype);

//make sure config is unique for each export
var Config; 

/**
* @class Table
* @param {array} header													- [See example](#example-usage)
* @param {object} header.column									- Column options
* @param {string} header.column.alias						- Alernate header column name
* @param {string} header.column.align						- default: "center"
* @param {string} header.column.color						- default: terminal default color
* @param {string} header.column.footerAlign			- default: "center" 
* @param {string} header.column.footerColor			- default: terminal default color
* @param {function} header.column.formatter			- Runs a callback on each cell value in the parent column
* @param {string} header.column.headerAlign			- default: "center" 
* @param {string} header.column.headerColor			- default: terminal's default color
* @param {number} header.column.marginLeft			- default: 0
* @param {number} header.column.marginTop				- default: 0			
* @param {number} header.column.maxWidth				- default: 20 
* @param {number} header.column.paddingBottom		- default: 0
* @param {number} header.column.paddingLeft			- default: 0
* @param {number} header.column.paddingRight		- default: 0
* @param {number} header.column.paddingTop			- default: 0	
*
* @param {array} rows											- [See example](#example-usage)
*
* @param {object} options									- Table options 
* @param {number} options.borderStyle			- default: 1 (0 = no border) 
* Refers to the index of the desired character set. 
* @param {array} options.borderCharacters	- [See @note](#note) 
* @param {string} options.borderColor			- default: terminal's default color
* @param {boolean} options.compact			- default: false
* Removes horizontal lines when true.
* @param {mixed} options.defaultErrorValue - default: 'ERROR!'
* @param {mixed} options.defaultValue - default: '?'
* @param {boolean} options.errorOnNull		- default: false
* @param {mixed} options.truncate - default: false 
* Cell values are truncated when 'truncate' set to a string, length > 0

* @returns {Table}
* @note
* <a name="note"/>
* Default border character sets:
* ```js
*	[
*		[
*			{v: " ", l: " ", j: " ", h: " ", r: " "},
*			{v: " ", l: " ", j: " ", h: " ", r: " "},
*			{v: " ", l: " ", j: " ", h: " ", r: " "}
*		],
*		[
*			{v: "│", l: "┌", j: "┬", h: "─", r: "┐"},
*			{v: "│", l: "├", j: "┼", h: "─", r: "┤"},
*			{v: "│", l: "└", j: "┴", h: "─", r: "┘"}
*		],
*		[
*			{v: "|", l: "+", j: "+", h: "-", r: "+"},
*			{v: "|", l: "+", j: "+", h: "-", r: "+"},
*			{v: "|", l: "+", j: "+", h: "-", r: "+"}
*		]
*	]
* ```
* @example
* ```js
* var Table = require('tty-table');
* var t1 = Table(header,rows,options);
* console.log(t1.render()); 
* ```
*
*/
Cls.setup = function(){

	//check if adapter called
	if(Object.keys(arguments).length === 1 &&
		 typeof arguments[0] === 'string'){
		return require('../'+arguments[0]);
	}
<commit_msg>Replaced tabs in example with spaces<commit_after>var Merge = require("merge");
//var Format = require('./format.js');
var Render = require('./render.js');

//table body inherits from Array
var Cls = Object.create(Array.prototype);

//make sure config is unique for each export
var Config; 

/**
* @class Table
* @param {array} header													- [See example](#example-usage)
* @param {object} header.column									- Column options
* @param {string} header.column.alias						- Alernate header column name
* @param {string} header.column.align						- default: "center"
* @param {string} header.column.color						- default: terminal default color
* @param {string} header.column.footerAlign			- default: "center" 
* @param {string} header.column.footerColor			- default: terminal default color
* @param {function} header.column.formatter			- Runs a callback on each cell value in the parent column
* @param {string} header.column.headerAlign			- default: "center" 
* @param {string} header.column.headerColor			- default: terminal's default color
* @param {number} header.column.marginLeft			- default: 0
* @param {number} header.column.marginTop				- default: 0			
* @param {number} header.column.maxWidth				- default: 20 
* @param {number} header.column.paddingBottom		- default: 0
* @param {number} header.column.paddingLeft			- default: 0
* @param {number} header.column.paddingRight		- default: 0
* @param {number} header.column.paddingTop			- default: 0	
*
* @param {array} rows											- [See example](#example-usage)
*
* @param {object} options									- Table options 
* @param {number} options.borderStyle			- default: 1 (0 = no border) 
* Refers to the index of the desired character set. 
* @param {array} options.borderCharacters	- [See @note](#note) 
* @param {string} options.borderColor			- default: terminal's default color
* @param {boolean} options.compact			- default: false
* Removes horizontal lines when true.
* @param {mixed} options.defaultErrorValue - default: 'ERROR!'
* @param {mixed} options.defaultValue - default: '?'
* @param {boolean} options.errorOnNull		- default: false
* @param {mixed} options.truncate - default: false 
* Cell values are truncated when 'truncate' set to a string, length > 0

* @returns {Table}
* @note
* <a name="note"/>
* Default border character sets:
* ```js
*[
* [
*  {v: " ", l: " ", j: " ", h: " ", r: " "},
*  {v: " ", l: " ", j: " ", h: " ", r: " "},
*  {v: " ", l: " ", j: " ", h: " ", r: " "}
* ],
* [
*  {v: "│", l: "┌", j: "┬", h: "─", r: "┐"},
*  {v: "│", l: "├", j: "┼", h: "─", r: "┤"},
*  {v: "│", l: "└", j: "┴", h: "─", r: "┘"}
* ],
* [
*  {v: "|", l: "+", j: "+", h: "-", r: "+"},
*  {v: "|", l: "+", j: "+", h: "-", r: "+"},
*  {v: "|", l: "+", j: "+", h: "-", r: "+"}
* ]
*]
* ```
* @example
* ```js
* var Table = require('tty-table');
* var t1 = Table(header,rows,options);
* console.log(t1.render()); 
* ```
*
*/
Cls.setup = function(){

	//check if adapter called
	if(Object.keys(arguments).length === 1 &&
		 typeof arguments[0] === 'string'){
		return require('../'+arguments[0]);
	}

{'fraction_non_alphanumeric': 0.20664928292046936, 'fraction_numerical': 0.005215123859191656, 'mean_word_length': 3.4182865370770337, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4066168', 'n_tokens_mistral': 2351, 'n_tokens_neox': 2181, 'n_words': 611}