<commit_before>exports.run = function (client, msg, args, guilds) {

	if (msg.author.id !== "180093157554388993") return;

	if (!args[0]) return msg.channel.createMessage({embed: {
		color: 0x1E90FF,
		title: "Specify an action",
		description: "< farm | leave | lookup | blacklist | hm | mi >"
	}});

	if (args[0] === "farm") {
		if (!args[1]) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: "You need to specify a bot % threshold"
		}});

		let g = client.guilds.filter(g => g.members.filter(m => m.bot).length / g.members.size * 100 >= args[1])
		msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: `Matches Found (${g.length})`,
			fields: [
				{ name: "\u200B", value: (g.length > 0 ? g.slice(0, 10).map(s => `**${s.name}** (${s.id})`).join("\n") : "None"), inline: true }
			]
		}});

	};

	if (args[0] === "leave") {
		if (!args[1] || isNaN(args[1])) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: "You need to specify an ID"
		}});

		if (!client.guilds.get(args[1])) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: ":warning: Not found"
		}});

		client.guilds.get(args[1]).leave();

		msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			description: "<:oktrump:284357092859707392>"
		}});
	};

	if (args[0] === "mi") {
		if (!args[1]) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: "You need to specify a server ID"
		}});

		if (!client.guilds.get(args[1])) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: ":warning: Not found"
		}});

		client.guilds.get(args[1]).defaultChannel.createInvite({ maxAge: 15 }).then(inv => {
			msg.channel.createMessage("discord.gg/" + inv.code)
		}).catch(err => {
			msg.channel.createMessage("Failed to generate invite")
		});

	};

	if (args[0] === "getdb") {
		if (!args[1]) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: "You need to specify a server ID"
		}});

		rethonk.db("data").table("guilds").get(args[1]).run()
		.then(data => {
    		msg.channel.createMessage({ embed: {
				color: 0x1E90FF,
				title: `${client.guilds.get(args[1]).name} database`,
				fields: [
					{ name: "\u200B", value: JSON.stringify(data, "", "\t"), inline: false}
				]
			}})
		}).catch(err => {
			msg.channel.createMessage({ embed: {
				color: 0x1E90FF,
				title: "RethinkDB Error",
				description: err.message
			}})
		})
	}

	if (args[0] === "hm") {
		if (!args[1]) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: "You need to specify a member ID"
		}});

		let servers = client.guilds.filter(g => g.members.has(args[1]));
		msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: `Servers with member: ${args[1]}`,<commit_msg>beautified sutil db<commit_after>exports.run = function (client, msg, args, guilds) {

	if (msg.author.id !== "1<PASSWORD>") return;

	if (!args[0]) return msg.channel.createMessage({embed: {
		color: 0x1E90FF,
		title: "Specify an action",
		description: "< farm | leave | lookup | blacklist | hm | mi >"
	}});

	if (args[0] === "farm") {
		if (!args[1]) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: "You need to specify a bot % threshold"
		}});

		let g = client.guilds.filter(g => g.members.filter(m => m.bot).length / g.members.size * 100 >= args[1])
		msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: `Matches Found (${g.length})`,
			fields: [
				{ name: "\u200B", value: (g.length > 0 ? g.slice(0, 10).map(s => `**${s.name}** (${s.id})`).join("\n") : "None"), inline: true }
			]
		}});

	};

	if (args[0] === "leave") {
		if (!args[1] || isNaN(args[1])) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: "You need to specify an ID"
		}});

		if (!client.guilds.get(args[1])) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: ":warning: Not found"
		}});

		client.guilds.get(args[1]).leave();

		msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			description: "<:oktrump:284357092859707392>"
		}});
	};

	if (args[0] === "mi") {
		if (!args[1]) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: "You need to specify a server ID"
		}});

		if (!client.guilds.get(args[1])) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: ":warning: Not found"
		}});

		client.guilds.get(args[1]).defaultChannel.createInvite({ maxAge: 15 }).then(inv => {
			msg.channel.createMessage("discord.gg/" + inv.code)
		}).catch(err => {
			msg.channel.createMessage("Failed to generate invite")
		});

	};

	if (args[0] === "db") {
		if (!args[1]) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: "You need to specify a server ID"
		}});

		rethonk.db("data").table("guilds").get(args[1]).run()
		.then(data => {
    		msg.channel.createMessage({ embed: {
				color: 0x1E90FF,
				title: `${client.guilds.get(args[1]).name} database`,
				fields: [
					{ name: "Admins", value: data.admins.length > 0 ? data.admins.join("\n") : "None", inline: true },
					{ name: "Blocked", value: data.blocked.length > 0 ? data.blocked.join("\n") : "None", inline: true },
					{ name: "Whitelist", value: data.whitelist.length > 0 ? data.whitelist.join("\n") : "None", inline: true },
					{ name: "Prefix", value: data.prefix, inline: true}
				]
			}})
		}).catch(err => {
			msg.channel.createMessage({ embed: {
				color: 0x1E90FF,
				title: "RethinkDB Error",
				description: err.message
			}})
		})
	}

	if (args[0] === "hm") {
		if (!args[1]) return msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: "You need to specify a member ID"
		}});

		let servers = client.guilds.filter(g => g.members.has(args[1]));
		msg.channel.createMessage({ embed: {
			color: 0x1E90FF,
			title: `Servers with member: ${args[1]}`,
{'fraction_non_alphanumeric': 0.20374149659863947, 'fraction_numerical': 0.039285714285714285, 'mean_word_length': 3.5695415695415695, 'pattern_counts': {'":': 4, '<': 8, '<?xml version=': 0, '>': 31, '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': '7352833', 'n_tokens_mistral': 2609, 'n_tokens_neox': 2219, 'n_words': 479}