<commit_before>import pytest
from psycopg2 import ProgrammingError
from datapunt_geosearch import config
from datapunt_geosearch.db import dbconnection


def create_table_if_not_exists(connection, table_name, create_query):
    with connection.cursor() as cursor:
        cursor.execute(create_query)


@pytest.fixture(scope="session")
def dataservices_db():
    dataservices_db_connection = dbconnection(config.DSN_DATASERVICES_DATASETS)
    with dataservices_db_connection.cursor() as cursor:
        cursor.execute("""
            BEGIN;
            CREATE TABLE IF NOT EXISTS "datasets_dataset" (
              "id" serial NOT NULL PRIMARY KEY,
              "name" varchar(50) NOT NULL UNIQUE,
              "ordering" integer NOT NULL,
              "enable_api" boolean NOT NULL,
              "schema_data" jsonb NOT NULL
            );<commit_msg>Cleanup.<commit_after>import pytest
from datapunt_geosearch import config
from datapunt_geosearch.db import dbconnection


@pytest.fixture(scope="session")
def dataservices_db():
    dataservices_db_connection = dbconnection(config.DSN_DATASERVICES_DATASETS)
    with dataservices_db_connection.cursor() as cursor:
        cursor.execute("""
            BEGIN;
            CREATE TABLE IF NOT EXISTS "datasets_dataset" (
              "id" serial NOT NULL PRIMARY KEY,
              "name" varchar(50) NOT NULL UNIQUE,
              "ordering" integer NOT NULL,
              "enable_api" boolean NOT NULL,
              "schema_data" jsonb NOT NULL
            );
{'fraction_non_alphanumeric': 0.07302631578947369, 'fraction_numerical': 0.003289473684210526, 'mean_word_length': 2.8702290076335877, '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': '1533505', 'n_tokens_mistral': 450, 'n_tokens_neox': 431, 'n_words': 113}