<commit_before><commit_msg>Classe de conexão com o banco de dados<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 br.senac.tads.pi3.agenda.agenda;

import java.awt.HeadlessException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
 *
 * @author Mauricio
 */
public class conexao1 {
    
    public static Connection abrirConexao() {
        Connection conn;
            
        try {
            Class.forName("org.sqlite.JDBC");
            conn = DriverManager.getConnection(
            "jdbc:sqlite:C:\\Users\\Mauricio\\Documents\\Git\\PI03-Agenda2016-master\\agendabd.sqlite");
            conn.setAutoCommit(false);
            System.out.println("Conectado com banco");
            return conn;
        } catch (ClassNotFoundException | SQLException | HeadlessException e) {
            System.out.println("nao conectado com banco");
            System.out.println("conexao \n"+e);
            return null;
        }

    }
    
}
{'fraction_non_alphanumeric': 0.10604732690622261, 'fraction_numerical': 0.007011393514460999, 'mean_word_length': 2.513846153846154, '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': '6440002', 'n_tokens_mistral': 340, 'n_tokens_neox': 332, 'n_words': 79}