<commit_before>
import os
import sys
import argparse
import subprocess

def parse_args(argv):
    parser = argparse.ArgumentParser()

    args = parser.parse_args(argv)

    return args

def main(argv):
    args = parse_args(argv)
    cmds = []

    if os.environ.get('SYN_CORE_RAM'):
        cmds = [
            'docker ps | grep -q core_ram',
            'nc -v -w 4 127.0.0.1 47322',
        ]
    if os.environ.get('SYN_CORE_SQLITE'):
        cmds = [
            'docker ps | grep -q core_sqlite',
            'nc -v -w 4 127.0.0.1 47322',
        ]
    if os.environ.get('SYN_CORE_PG95'):
        cmds = [
            'docker ps | grep -q core_pg95',
            'nc -v -w 8 127.0.0.1 47322',
            '''docker exec core_pg95 /bin/bash -c "psql -c 'create database syn_test;' -U postgres"''',
        ]<commit_msg>add user create for PG<commit_after>
import os
import sys
import argparse
import subprocess

def parse_args(argv):
    parser = argparse.ArgumentParser()

    args = parser.parse_args(argv)

    return args

def main(argv):
    args = parse_args(argv)
    cmds = []

    if os.environ.get('SYN_CORE_RAM'):
        cmds = [
            'docker ps | grep -q core_ram',
            'nc -v -w 4 127.0.0.1 47322',
        ]
    if os.environ.get('SYN_CORE_SQLITE'):
        cmds = [
            'docker ps | grep -q core_sqlite',
            'nc -v -w 4 127.0.0.1 47322',
        ]
    if os.environ.get('SYN_CORE_PG95'):
        cmds = [
            'docker ps | grep -q core_pg95',
            'nc -v -w 8 127.0.0.1 47322',
            '''docker exec core_pg95 /bin/bash -c "psql -c 'create database syn_test;' -U postgres"''',
            '''docker exec core_pg95 /bin/bash -c "psql -c 'create user root;' -U postgres"''',
        ]
{'fraction_non_alphanumeric': 0.1339031339031339, 'fraction_numerical': 0.049002849002849, 'mean_word_length': 1.8414239482200647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '3383529', 'n_tokens_mistral': 699, 'n_tokens_neox': 622, 'n_words': 168}