<commit_before>import json
import unittest
import uuid

import pilo

from sqlalchemy import MetaData, Table, Unicode, Text, TypeDecorator, Column, create_engine
from sqlalchemy.dialects import postgresql
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session

import sqlalchemy_pilo as sap


meta_data = MetaData()

Session = scoped_session(sessionmaker())

engine = None

Base = declarative_base()


def generate_id():
    return uuid.uuid4().hex

<commit_msg>test compat<commit_after>import json
import uuid

import pilo
try:
    import unittest2 as unittest
except ImportError:
    import unittest

from sqlalchemy import MetaData, Table, Unicode, Text, TypeDecorator, Column, create_engine
from sqlalchemy.dialects import postgresql
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session

import sqlalchemy_pilo as sap


meta_data = MetaData()

Session = scoped_session(sessionmaker())

engine = None

Base = declarative_base()


def generate_id():
    return uuid.uuid4().hex


{'fraction_non_alphanumeric': 0.06204379562043796, 'fraction_numerical': 0.002737226277372263, 'mean_word_length': 5.813664596273292, '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': '1575983', 'n_tokens_mistral': 350, 'n_tokens_neox': 334, 'n_words': 102}