<commit_before>// Original source is:
// Copyright (c) 2011-2015 <NAME>
//
// See the LICENSE file in the node_modules/bwip-js directory
// for the extended copyright notice.

// Dynamically load the encoders.
BWIPJS.load = function(path) {
	var script = document.createElement('script');
	script.type = 'text/javascript';
	script.src = path.replace('bwipp/', '');
	document.head.appendChild(script);
};

BWIPJS.print = function(s) {
	var div = document.getElementById('output');
	if (div)
		div.innerHTML += s.replace(/&/g,'&amp;').replace(/</g,'&lt;') + '<br>';
};

// Encapsulate the bitmap interface
// bgcolor is optional, defaults to #fff.
function Bitmap(bgcolor) {
	var clr  = [0, 0, 0];
	var pts  = [];
	var minx = 0;	// min-x
	var miny = 0;	// min-y
	var maxx = 0;	// max-x
	var maxy = 0;	// max-y

	this.color = function(r, g, b) {
		clr = [r, g, b];
	};

	// a is the alpha-level of the pixel [0 .. 255]
	this.set = function(x,y,a) {
		x = Math.floor(x);
		y = Math.floor(y);
		pts.push([ x, y, clr, a ]);
		if (minx > x) minx = x;
		if (miny > y) miny = y;
		if (maxx < x) maxx = x;
		if (maxy < y) maxy = y;
	};

	this.show = function(cvs, rot) {<commit_msg>Make bwip-js print a no-op<commit_after>// Original source is:
// Copyright (c) 2011-2015 <NAME>
//
// See the LICENSE file in the node_modules/bwip-js directory
// for the extended copyright notice.

// Dynamically load the encoders.
BWIPJS.load = function(path) {
	var script = document.createElement('script');
	script.type = 'text/javascript';
	script.src = path.replace('bwipp/', '');
	document.head.appendChild(script);
};

BWIPJS.print = function(s) {
};

// Encapsulate the bitmap interface
// bgcolor is optional, defaults to #fff.
function Bitmap(bgcolor) {
	var clr  = [0, 0, 0];
	var pts  = [];
	var minx = 0;	// min-x
	var miny = 0;	// min-y
	var maxx = 0;	// max-x
	var maxy = 0;	// max-y

	this.color = function(r, g, b) {
		clr = [r, g, b];
	};

	// a is the alpha-level of the pixel [0 .. 255]
	this.set = function(x,y,a) {
		x = Math.floor(x);
		y = Math.floor(y);
		pts.push([ x, y, clr, a ]);
		if (minx > x) minx = x;
		if (miny > y) miny = y;
		if (maxx < x) maxx = x;
		if (maxy < y) maxy = y;
	};

	this.show = function(cvs, rot) {
{'fraction_non_alphanumeric': 0.1850022451728783, 'fraction_numerical': 0.01706331387516839, 'mean_word_length': 2.9363957597173145, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 10, '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': '2062155', 'n_tokens_mistral': 950, 'n_tokens_neox': 884, 'n_words': 258}