<commit_before>import mysql.connector
import struct
import sys
from mysql.connector import errorcode
import re
import os


#mysql specific functions
def create_connection(database=None, user=None, password=None, port=None):
    # build args as a separate dict to be able to conditionally add 'database'
    args = {
        'user': 'root',
        'password': '<PASSWORD>',
    }

    option_files = list(filter(os.path.exists, [
        '/etc/my.cnf',
        '~/.my.cnf',
    ]))

    if option_files:
        args['option_files'] = option_files
    if database:
        args['database'] = database
    if user:
        args['user'] = user
    if password:
        args['password'] = password
    if port:<commit_msg>don't specify user/password since the mysql config now works<commit_after>import mysql.connector
import struct
import sys
from mysql.connector import errorcode
import re
import os


#mysql specific functions
def create_connection(database=None, user=None, password=None, port=None):
    args = {}

    option_files = list(filter(os.path.exists, map(os.path.abspath, map(os.path.expanduser, [
        '/etc/my.cnf',
        '~/.my.cnf',
    ]))))

    if option_files:
        args['option_files'] = option_files
    if database:
        args['database'] = database
    if user:
        args['user'] = user
    if password:
        args['password'] = password
    if port:
{'fraction_non_alphanumeric': 0.11726618705035971, 'fraction_numerical': 0.0, 'mean_word_length': 2.9405099150141645, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7126135', 'n_tokens_mistral': 415, 'n_tokens_neox': 407, 'n_words': 116}