<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package database;

import java.util.Properties;
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * <p>This is a <b>Singleton class</b> that holds the database connection.  It reads the
 * driver and connection string from the database.properties file.
 * 
 * <p><b>It is highly encouraged to use this class to get the Connection object and
 * Statement object to work with database in this whole project.</b>
 * 
 * <p>This should act as a single point of entry to database</p>
 * @author LabAutomationTeam
 */
public class DatabaseConnection {
    
    private static DatabaseConnection dbcon = null;
    private String connectionString;    
    private Connection con;
    private Statement stmt;
 
    private DatabaseConnection(){
    <commit_msg>Update DatabaseConnection.java<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package database;

import java.util.Properties;
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * <p>This is a <b>Singleton class</b> that holds the database connection.  It reads the
 * driver and connection string from the database.properties file.
 * 
 * <p><b>It is highly encouraged to use this class to get the Connection object and
 * Statement object to work with database in this whole project.</b>
 * 
 * <p>This should act as a single point of entry to database</p>
 * @author ProjectTeam
 */
public class DatabaseConnection {
    
    private static DatabaseConnection dbcon = null;
    private String connectionString;    
    private Connection con;
    private Statement stmt;
 
    private DatabaseConnection(){
    
{'fraction_non_alphanumeric': 0.07866227037211493, 'fraction_numerical': 0.0, 'mean_word_length': 3.905311778290993, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '1769854', 'n_tokens_mistral': 545, 'n_tokens_neox': 536, 'n_words': 237}