<commit_before>package igm.alsdb.util;

import java.sql.*;
import org.apache.tomcat.jdbc.pool.DataSource;
import org.apache.tomcat.jdbc.pool.PoolProperties;

/**
 *
 * @author nick
 */
public class DBManager {

    private static DataSource dataSource;
    private static Connection connection;
    private static Statement statement;

    public static void init() throws Exception {
        if (dataSource == null) {
            PoolProperties p = new PoolProperties();
            p.setUrl("jdbc:mysql://localhost:3306/ALSdb");
            p.setDriverClassName("com.mysql.jdbc.Driver");
            p.setUsername("alsdb_view");
            p.setPassword("<PASSWORD>");
            p.setJmxEnabled(true);
            p.setTestWhileIdle(false);
            p.setTestOnBorrow(true);<commit_msg>updated to new DB ip address<commit_after>package igm.alsdb.util;

import java.sql.*;
import org.apache.tomcat.jdbc.pool.DataSource;
import org.apache.tomcat.jdbc.pool.PoolProperties;

/**
 *
 * @author nick
 */
public class DBManager {

    private static DataSource dataSource;
    private static Connection connection;
    private static Statement statement;

    public static void init() throws Exception {
        if (dataSource == null) {
            PoolProperties p = new PoolProperties();
             p.setUrl("jdbc:mysql://10.73.50.60:3306/ALSdb");
//            p.setUrl("jdbc:mysql://localhost:3306/ALSdb"); // for local debug
            p.setDriverClassName("com.mysql.jdbc.Driver");
            p.setUsername("alsdb_view");
            p.setPassword("<PASSWORD>");
            p.setJmxEnabled(true);
            p.setTestWhileIdle(false);
            p.setTestOnBorrow(true);
{'fraction_non_alphanumeric': 0.12158956109134045, 'fraction_numerical': 0.011862396204033215, 'mean_word_length': 2.7240618101545255, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '1449367', 'n_tokens_mistral': 500, 'n_tokens_neox': 473, 'n_words': 98}