<commit_before>import enum
from lib.rr_graph import graph2
from lib.rr_graph import tracks

class NodeClassification(enum.Enum):
    NULL = 1
    CHANNEL = 2
    EDGES_TO_CHANNEL = 3
    EDGE_WITH_MUX = 4


def create_tables(conn):
    """ Create connection database scheme. """
    connection_database_sql_file = os.path.join(
        os.path.dirname(__file__), "connection_database.sql")
    with open(connection_database_sql_file, 'r'):
        c = conn.cursor()
        c.execute(f.read())
        conn.commit()

    c = conn.cursor()
    c.execute("""
INSERT INTO
    switch(name)
VALUES<commit_msg>connection_database: fixing bug in table_create<commit_after>import enum
import os
from lib.rr_graph import graph2
from lib.rr_graph import tracks

class NodeClassification(enum.Enum):
    NULL = 1
    CHANNEL = 2
    EDGES_TO_CHANNEL = 3
    EDGE_WITH_MUX = 4


def create_tables(conn):
    """ Create connection database scheme. """
    connection_database_sql_file = os.path.join(
        os.path.dirname(__file__), "connection_database.sql")
    with open(connection_database_sql_file, 'r') as f:
        c = conn.cursor()
        c.executescript(f.read())
        conn.commit()

    c = conn.cursor()
    c.execute("""
INSERT INTO
    switch(name)
VALUES
{'fraction_non_alphanumeric': 0.10530482977038796, 'fraction_numerical': 0.00791765637371338, 'mean_word_length': 3.2847457627118644, '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': '4130536', 'n_tokens_mistral': 418, 'n_tokens_neox': 399, 'n_words': 95}