<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 Modelo;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Mario
 */
public class ConexionBBDD {
    private static Connection conn = null;

    /**
     * Realiza la conexion con la Base de Datos
     *
     * @return Objeto de la clase Connection con la conexion establecida
     */
    public static Connection getConnection() {
        try {
            if (conn == null) {
                Runtime.getRuntime().addShutdownHook(new MiShDwHook());
                String driver = "com.mysql.jdbc.Driver";
                String url = "jdbc:mysql://localhost/empresa";
                String usuario = "root";
                String password = "";
                Class.forName(driver);
                conn = DriverManager.getConnection(url, usuario, password);
            }
<commit_msg>Reparacion clase ConexionBBDD<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 Modelo;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Mario
 */
public class ConexionBBDD {
    private static Connection conn = null;

    /**
     * Realiza la conexion con la Base de Datos
     *
     * @return Objeto de la clase Connection con la conexion establecida
     */
    public static Connection getConnection() {
        try {
            if (conn == null) {
                Runtime.getRuntime().addShutdownHook(new MiShDwHook());
                String driver = "com.mysql.jdbc.Driver";
                String url = "jdbc:mysql://localhost/empresa";
                String usuario = "usrproged";
                String password = "<PASSWORD>";
                Class.forName(driver);
                conn = DriverManager.getConnection(url, usuario, password);
            }

{'fraction_non_alphanumeric': 0.09332711152589827, 'fraction_numerical': 0.0, 'mean_word_length': 2.2732824427480915, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2240644', 'n_tokens_mistral': 584, 'n_tokens_neox': 572, 'n_words': 181}