<commit_before>#!/usr/bin/node
"use strict";
require("./srv/sutil").loadcards(function(){
	var etg = require("./etg");
	var write = process.stdout.write.bind(process.stdout);
	function writetd(){
		write("[tr]");
		for(var i=0; i<arguments.length; i++)
			if (arguments[i] !== undefined) write("[td]"+arguments[i]+"[/td]");
		write("[/tr]");
	}
	write("[right][table]");
	writetd("Tot", "Ele", "C", "P", "S", "|", "R", "U", "C", "", "");
	for(var i=0; i<13; i++){
		var ofele = etg.filtercards(false, function(x){return x.element == i});
		var creas = 0, perms = 0, spels = 0, comm = [0, 0, 0], last = "000";
		ofele.forEach(function(x){
			if (x.type <= etg.PermanentEnum) perms++;
			else if (x.type == etg.CreatureEnum) creas++;
			else if (x.type == etg.SpellEnum) spels++;
			if (x.rarity > 0 && x.rarity < 4){
				comm[x.rarity-1]++;
				if (x.code > last) last = x.code;
			}
		});
		writetd(ofele.length, etg.eleNames[i], creas, perms, spels, "|", comm[2], comm[1], comm[0], last, (parseInt(last, 32)+2000).toString(32));
	}
	write("[/table][/right]\n");
});<commit_msg>Update _mktable with mage/dg param<commit_after>#!/usr/bin/node
"use strict";
var write = process.stdout.write.bind(process.stdout);
if (process.argv.length < 3){
	require("./srv/sutil").loadcards(function(){
		var etg = require("./etg");
		function writetd(){
			write("[tr]");
			for(var i=0; i<arguments.length; i++)
				if (arguments[i] !== undefined) write("[td]"+arguments[i]+"[/td]");
			write("[/tr]");
		}
		write("[right][table]");
		writetd("Tot", "Ele", "C", "P", "S", "|", "R", "U", "C", "", "");
		for(var i=0; i<13; i++){
			var ofele = etg.filtercards(false, function(x){return x.element == i});
			var creas = 0, perms = 0, spels = 0, comm = new Uint32Array(3), last = "000";
			ofele.forEach(function(x){
				if (x.type <= etg.PermanentEnum) perms++;
				else if (x.type == etg.CreatureEnum) creas++;
				else if (x.type == etg.SpellEnum) spels++;
				if (x.rarity > 0 && x.rarity < 4){
					comm[x.rarity-1]++;
					if (x.code > last) last = x.code;
				}
			});
			writetd(ofele.length, etg.eleNames[i], creas, perms, spels, "|", comm[2], comm[1], comm[0], last, (parseInt(last, 32)+2000).toString(32));
		}
		write("[/table][/right]\n");
	});
}else{
	var decks = require("./Decks")[process.argv[2]];
	if (decks){
		decks.forEach(function(deck){
			write("[deck title="+deck[0]+"]"+deck[1]+"[/deck]");
		});
	}
}
{'fraction_non_alphanumeric': 0.25809128630705397, 'fraction_numerical': 0.024066390041493777, 'mean_word_length': 4.065126050420168, 'pattern_counts': {'":': 0, '<': 12, '<?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': '4570082', 'n_tokens_mistral': 1098, 'n_tokens_neox': 989, 'n_words': 199}