<commit_before>from sqlalchemy import and_
from sqlalchemy import func
from sqlalchemy.sql import exists, select
from sqlalchemy.dialects.mysql import MEDIUMINT
from sqlalchemy.dialects.mysql import SMALLINT
from sqlalchemy.ext.hybrid import hybrid_method
from sqlalchemy.ext.hybrid import hybrid_property
from werkzeug.utils import cached_property
from website.database import db


def make_association_table(fk1, fk2):
    """Create an association table basing on names of two given foreign keys.<commit_msg>Fix the bug causing db crash<commit_after>from database import db
from sqlalchemy import and_
from sqlalchemy import func
from sqlalchemy.sql import exists, select
from sqlalchemy.dialects.mysql import MEDIUMINT
from sqlalchemy.dialects.mysql import SMALLINT
from sqlalchemy.ext.hybrid import hybrid_method
from sqlalchemy.ext.hybrid import hybrid_property
from werkzeug.utils import cached_property


def make_association_table(fk1, fk2):
    """Create an association table basing on names of two given foreign keys.
{'fraction_non_alphanumeric': 0.043816942551119765, 'fraction_numerical': 0.0038948393378773127, 'mean_word_length': 6.188811188811189, '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': '5478530', 'n_tokens_mistral': 315, 'n_tokens_neox': 288, 'n_words': 108}