<commit_before>const EventEmitter = require('events');
const MathJs = require("mathjs");
class EE extends EventEmitter{}
const math = new EE();
math.name="Math";

function Shuffle(o) {
	for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
	return o;
};

scope={};

math.commands={
	random: {
		aliases: ["pick"],
		allowed: (p,user,args,event) => {
			return true;
		},
		usage: "random <choice1> <choice2>",
		desc: "Pick a random choice from a list",
		parse: utils.combinator.seq(utils.combinate.phrase,utils.combinate.space.or(utils.combinator.of(""))).many(),<commit_msg>Minor math improvements as well as bug fixes<commit_after>const EventEmitter = require('events');
const MathJs = require("mathjs");
class EE extends EventEmitter{}
const math = new EE();
math.name="Math";

function Shuffle(o) {
	for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
	return o;
};

scope={};

math.commands={
	random: {
		aliases: ["pick"],
		allowed: (p,user,args,event,helpReq) => {
			return true;
		},
		usage: "random <choice1> <choice2>",
		desc: "Pick a random choice from a list",
		parse: utils.combinator.seq(utils.combinate.phrase,utils.combinate.space.or(utils.combinator.of(""))).many(),
{'fraction_non_alphanumeric': 0.19688715953307392, 'fraction_numerical': 0.0031128404669260703, 'mean_word_length': 4.741071428571429, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '455316', 'n_tokens_mistral': 491, 'n_tokens_neox': 471, 'n_words': 120}