<commit_before>// Extensions to basic domjs functions

'use strict';

var assign     = require('es5-ext/object/assign')
  , callable   = require('es5-ext/object/valid-callable')
  , elementExt = require('domjs/ext/_element')
  , mano       = require('mano');

assign(elementExt, {
	addClass: require('dbjs-dom/ext/element/add-class'),
	removeClass: require('dbjs-dom/ext/element/remove-class')
});

module.exports = function (domjs) {
	var RelValue, ns = domjs.ns;

	// Elements
	require('domjs-ext/_if')(domjs);
	require('domjs-ext/and')(domjs);
	ns.browser = function (cb) {
		callable(cb);
		if (typeof window === 'undefined') return;
		cb();
	};

	require('domjs-ext/eq')(domjs);
	require('domjs-ext/eq-some')(domjs);
	require('domjs-ext/gt')(domjs);
	require('domjs-ext/gt-or-eq')(domjs);
	require('domjs-ext/html')(domjs);
	require('domjs-ext/legacy')(domjs);
	require('domjs-ext/list')(domjs);
	require('domjs-ext/lt')(domjs);
	require('domjs-ext/lt-or-eq')(domjs);
	require('domjs-ext/mmap')(domjs);
	require('domjs-ext/modal')(domjs);
	require('domjs-ext/not')(domjs);
	require('domjs-ext/or')(domjs);
	require('domjs-ext/post-button')(domjs);
	require('domjs-ext/resolve')(domjs);
	ns.stUrl = function (path) {
		if (path[0] === '/') path = path.slice(1);
		return mano.env.static.host + path;
	};
	require('./thumb')(domjs);
	require('domjs-ext/upload-button')(domjs);
	require('domjs-ext/url')(domjs);

	// Directives
	require('domjs-ext/d/fixed')(domjs);
	require('domjs-ext/d/form/auto-submit')(domjs);

	// DBJS extensions
	RelValue = require('dbjs-dom/text/utils/rel-value');
	RelValue.prototype.domjs = domjs;
	require('dbjs-dom/ext/domjs/rel-value');
	require('dbjs-domjs')(domjs);

	return domjs;
};
<commit_msg>Turn on `responsive` directive for tables<commit_after>// Extensions to basic domjs functions

'use strict';

var assign     = require('es5-ext/object/assign')
  , callable   = require('es5-ext/object/valid-callable')
  , elementExt = require('domjs/ext/_element')
  , mano       = require('mano');

assign(elementExt, {
	addClass: require('dbjs-dom/ext/element/add-class'),
	removeClass: require('dbjs-dom/ext/element/remove-class')
});

module.exports = function (domjs) {
	var RelValue, ns = domjs.ns;

	// Elements
	require('domjs-ext/_if')(domjs);
	require('domjs-ext/and')(domjs);
	ns.browser = function (cb) {
		callable(cb);
		if (typeof window === 'undefined') return;
		cb();
	};

	require('domjs-ext/eq')(domjs);
	require('domjs-ext/eq-some')(domjs);
	require('domjs-ext/gt')(domjs);
	require('domjs-ext/gt-or-eq')(domjs);
	require('domjs-ext/html')(domjs);
	require('domjs-ext/legacy')(domjs);
	require('domjs-ext/list')(domjs);
	require('domjs-ext/lt')(domjs);
	require('domjs-ext/lt-or-eq')(domjs);
	require('domjs-ext/mmap')(domjs);
	require('domjs-ext/modal')(domjs);
	require('domjs-ext/not')(domjs);
	require('domjs-ext/or')(domjs);
	require('domjs-ext/post-button')(domjs);
	require('domjs-ext/resolve')(domjs);
	ns.stUrl = function (path) {
		if (path[0] === '/') path = path.slice(1);
		return mano.env.static.host + path;
	};
	require('./thumb')(domjs);
	require('domjs-ext/upload-button')(domjs);
	require('domjs-ext/url')(domjs);

	// Directives
	require('domjs-ext/d/fixed')(domjs);
	require('domjs-ext/d/form/auto-submit')(domjs);
	require('../directives/responsive-table')(domjs);

	// DBJS extensions
	RelValue = require('dbjs-dom/text/utils/rel-value');
	RelValue.prototype.domjs = domjs;
	require('dbjs-dom/ext/domjs/rel-value');
	require('dbjs-domjs')(domjs);

	return domjs;
};

{'fraction_non_alphanumeric': 0.2163230725783677, 'fraction_numerical': 0.0022592487997740753, 'mean_word_length': 4.9730185497470485, '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': '778070', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1391, 'n_words': 172}