<commit_before>package org.lightmare.jpa.datasource;

/**
 * Configuration of jdbc driver classes and database names
 * 
 * @author levan
 * 
 */
public class DriverConfig {

    // Driver class names
    private static final String ORACLE_DRIVER = "oracle.jdbc.OracleDriver";

    private static final String MYSQL_DRIVER = "com.mysql.jdbc.Driver";

    private static final String MSSQL_DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";

    private static final String DB2_DRIVER = "com.ibm.db2.jcc.DB2Driver";

    private static final String H2_DRIVER = "org.h2.Driver";

    private static final String DERBY_DRIVER = "org.apache.derby.jdbc.EmbeddedDriver";

    // Database names
    private static final String ORACLE_NAME = "oracle";

    private static final String MYSQL_NAME = "mysql";

    private static final String DB2_NAME = "db2";

    private static final String MSSQL_NAME = "mssql";

    private static final String H2_NAME = "h2";

    private static final String DERBY_NAME = "derby";

    /**
     * Caches database driver names and classes
     * 
     * @author levan
     * 
     */
    public static enum Drivers {

	ORACLE("oracle", "oracle.jdbc.OracleDriver"), MYSQL("mysql",
		"com.mysql.jdbc.Driver"), MSSQL("mssql",
		"com.microsoft.sqlserver.jdbc.SQLServerDriver"), DB2("db2",
		"com.ibm.db2.jcc.DB2Driver"), H2("h2", "org.h2.Driver"), DERBY;

	public String name;

	public String driver;

	private Drivers(String name, String driver) {
	    this.name = name;
	    this.driver = driver;
	}
    }

    /**
     * Resolves appropriate jdbc driver class name by database name
     * 
     * @param name
     * @return {@link String}
     */
    public static String getDriverName(String name) {

	if (ORACLE_NAME.equals(name)) {
	    return ORACLE_DRIVER;
	} else if (MYSQL_NAME.equals(name)) {
	    return MYSQL_DRIVER;
	} else if (DB2_NAME.equals(name)) {
	    return DB2_DRIVER;
	} else if (MSSQL_NAME.equals(name)) {
	    return MSSQL_DRIVER;<commit_msg>edited Drivers enumerator class to DriverConfig class<commit_after>package org.lightmare.jpa.datasource;

/**
 * Configuration of jdbc driver classes and database names
 * 
 * @author levan
 * 
 */
public class DriverConfig {

    // Driver class names
    private static final String ORACLE_DRIVER = "oracle.jdbc.OracleDriver";

    private static final String MYSQL_DRIVER = "com.mysql.jdbc.Driver";

    private static final String MSSQL_DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";

    private static final String DB2_DRIVER = "com.ibm.db2.jcc.DB2Driver";

    private static final String H2_DRIVER = "org.h2.Driver";

    private static final String DERBY_DRIVER = "org.apache.derby.jdbc.EmbeddedDriver";

    // Database names
    private static final String ORACLE_NAME = "oracle";

    private static final String MYSQL_NAME = "mysql";

    private static final String DB2_NAME = "db2";

    private static final String MSSQL_NAME = "mssql";

    private static final String H2_NAME = "h2";

    private static final String DERBY_NAME = "derby";

    /**
     * Caches database driver names and classes
     * 
     * @author levan
     * 
     */
    public static enum Drivers {

	ORACLE("oracle", "oracle.jdbc.OracleDriver"), MYSQL("mysql",
		"com.mysql.jdbc.Driver"), MSSQL("mssql",
		"com.microsoft.sqlserver.jdbc.SQLServerDriver"), DB2("db2",
		"com.ibm.db2.jcc.DB2Driver"), H2("h2", "org.h2.Driver"), DERBY(
		"derby", "org.apache.derby.jdbc.EmbeddedDriver");

	public String name;

	public String driver;

	private Drivers(String name, String driver) {
	    this.name = name;
	    this.driver = driver;
	}
    }

    /**
     * Resolves appropriate jdbc driver class name by database name
     * 
     * @param name
     * @return {@link String}
     */
    public static String getDriverName(String name) {

	if (ORACLE_NAME.equals(name)) {
	    return ORACLE_DRIVER;
	} else if (MYSQL_NAME.equals(name)) {
	    return MYSQL_DRIVER;
	} else if (DB2_NAME.equals(name)) {
	    return DB2_DRIVER;
	} else if (MSSQL_NAME.equals(name)) {
	    return MSSQL_DRIVER;
{'fraction_non_alphanumeric': 0.10945151811949069, 'fraction_numerical': 0.00881488736532811, 'mean_word_length': 3.295478443743428, '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': '136197', 'n_tokens_mistral': 1407, 'n_tokens_neox': 1300, 'n_words': 343}