<commit_before>import uk.co.uwcs.choob.*;
import uk.co.uwcs.choob.modules.*;
import uk.co.uwcs.choob.support.*;
import uk.co.uwcs.choob.support.events.*;
import java.util.*;
import java.util.regex.*;
import java.net.*;
import java.io.*;

public class Mail
{
	public String[] info()
	{
		return new String[] {
			"Plugin to send email.",
			"The Choob Team",
			"<EMAIL>",
			"$Rev$$Date$"
		};
	}

	private Modules mods;
	private IRCInterface irc;

	public class MailException extends ChoobException
	{
		public MailException(String text)
		{
			super(text);
		}
		public MailException(String text, Throwable e)
		{
			super(text, e);
		}
		public String toString()
		{
			return getMessage();
		}
	}

	public Mail(Modules mods, IRCInterface irc)
	{
		this.mods = mods;
		this.irc = irc;
	}
	
	// General options
	public String[] optionsGeneral = { "SMTPHost", "SMTPPort", "From", "FromUser", "FromHost" };
	public String[] optionsGeneralDefaults = { "127.0.0.1", "25", "", "", "" };
	
	public String[] helpOptionSMTPHost = {
		"The hostname to connect to for sending mail."
	};
	public String[] helpOptionSMTPPort = {
		"The port to connect to for sending mail."
	};
	public String[] helpOptionFrom = {
		"The display name for use in 'From:'."
	};
	public String[] helpOptionFromUser = {
		"The username for use in 'From:'."
	};
	public String[] helpOptionFromHost = {
		"The hostname for use in 'From:'."
	};
	
	// User options
	public String[] optionsUser = { "Email" };
	public String[] optionsUserDefaults = { "" };
	
	public String[] helpOptionEmail = {
		"The public e-mail address to show to users requesting it."
	};
	
	public String[] helpCommandMail = {
		"Displays the public e-mail address of the given person",
		"<Nickname>",
		"<Nickname> is the person you want the public e-mail address of"
	};
	public void commandMail(Message mes)
	{
		List<String> params = mods.util.getParams(mes, 1);
		if (params.size() < 2)
		{
			irc.sendContextReply(mes,"You need to supply a nickname.");
			return;
		}
		
		String nick = params.get(1);
		String userName = null;
		if (mods.security.hasAuth(nick) {<commit_msg>Compile fixes!<commit_after>import uk.co.uwcs.choob.*;
import uk.co.uwcs.choob.modules.*;
import uk.co.uwcs.choob.support.*;
import uk.co.uwcs.choob.support.events.*;
import java.util.*;
import java.util.regex.*;
import java.net.*;
import java.io.*;

public class Mail
{
	public String[] info()
	{
		return new String[] {
			"Plugin to send email.",
			"The Choob Team",
			"<EMAIL>",
			"$Rev$$Date$"
		};
	}

	private Modules mods;
	private IRCInterface irc;

	public class MailException extends ChoobException
	{
		public MailException(String text)
		{
			super(text);
		}
		public MailException(String text, Throwable e)
		{
			super(text, e);
		}
		public String toString()
		{
			return getMessage();
		}
	}

	public Mail(Modules mods, IRCInterface irc)
	{
		this.mods = mods;
		this.irc = irc;
	}
	
	// General options
	public String[] optionsGeneral = { "SMTPHost", "SMTPPort", "From", "FromUser", "FromHost" };
	public String[] optionsGeneralDefaults = { "127.0.0.1", "25", "", "", "" };
	
	public String[] helpOptionSMTPHost = {
		"The hostname to connect to for sending mail."
	};
	public String[] helpOptionSMTPPort = {
		"The port to connect to for sending mail."
	};
	public String[] helpOptionFrom = {
		"The display name for use in 'From:'."
	};
	public String[] helpOptionFromUser = {
		"The username for use in 'From:'."
	};
	public String[] helpOptionFromHost = {
		"The hostname for use in 'From:'."
	};
	
	// User options
	public String[] optionsUser = { "Email" };
	public String[] optionsUserDefaults = { "" };
	
	public String[] helpOptionEmail = {
		"The public e-mail address to show to users requesting it."
	};
	
	public String[] helpCommandMail = {
		"Displays the public e-mail address of the given person",
		"<Nickname>",
		"<Nickname> is the person you want the public e-mail address of"
	};
	public void commandMail(Message mes)
	{
		List<String> params = mods.util.getParams(mes, 1);
		if (params.size() < 2)
		{
			irc.sendContextReply(mes,"You need to supply a nickname.");
			return;
		}
		
		String nick = params.get(1);
		String userName = null;
		if (mods.security.hasAuth(nick)) {
{'fraction_non_alphanumeric': 0.14427157001414428, 'fraction_numerical': 0.005186232909005186, 'mean_word_length': 3.591991341991342, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5677087', 'n_tokens_mistral': 1571, 'n_tokens_neox': 1422, 'n_words': 415}