<commit_before>package com.ForgeEssentials.util;

import java.util.IllegalFormatException;

import com.google.common.base.Throwables;

public enum EnumDBType
{
	H2_FILE(false, "org.h2.jdbc.JdbcConnection", "jdbc:h2:file:%s;FILE_LOCK=SOCKET;IGNORECASE=TRUE"), // file
	MySQL(true, "com.mysql.jdbc.Driver", "jdbc:mysql://%s:%d/%s"); // host, port, database
	
	/**
	 * 
	 * @param isRemote if the JDBC connection method should use the one with username and password or not.
	 * @param driverName the qualified name of the JDBC connector class for this DB
	 * @param connectString a formattable connection string. see existing ones.
	 */
	EnumDBType(boolean isRemote, String driverName, String connectString)
	{
		this.isRemote = isRemote;
		driver = driverName;
		connect = connectString;
	}
	
	/**
	 * loads the class used to load this database. Catches its own error and outputs it.
	 */
	public void loadClass()
	{
		try
		{
			Class.forName(driver);
		}
		catch (ClassNotFoundException e)
		{
			OutputHandler.SOP("Could not load the "+this+" JDBC Driver! Does it exist in the lib directory?");
			Throwables.propagateIfPossible(e);<commit_msg>Attempt to fix H2 unknown host error.<commit_after>package com.ForgeEssentials.util;

import java.util.IllegalFormatException;

import com.google.common.base.Throwables;

public enum EnumDBType
{
	H2_FILE(false, "org.h2.Driver", "jdbc:h2:file:%s;FILE_LOCK=SOCKET;IGNORECASE=TRUE"), // file
	MySQL(true, "com.mysql.jdbc.Driver", "jdbc:mysql://%s:%d/%s"); // host, port, database
	
	/**
	 * 
	 * @param isRemote if the JDBC connection method should use the one with username and password or not.
	 * @param driverName the qualified name of the JDBC connector class for this DB
	 * @param connectString a formattable connection string. see existing ones.
	 */
	EnumDBType(boolean isRemote, String driverName, String connectString)
	{
		this.isRemote = isRemote;
		driver = driverName;
		connect = connectString;
	}
	
	/**
	 * loads the class used to load this database. Catches its own error and outputs it.
	 */
	public void loadClass()
	{
		try
		{
			Class.forName(driver);
		}
		catch (ClassNotFoundException e)
		{
			OutputHandler.SOP("Could not load the "+this+" JDBC Driver! Does it exist in the lib directory?");
			Throwables.propagateIfPossible(e);
{'fraction_non_alphanumeric': 0.10951760104302477, 'fraction_numerical': 0.003042155584528466, 'mean_word_length': 4.196388261851016, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7485032', 'n_tokens_mistral': 784, 'n_tokens_neox': 709, 'n_words': 221}