<commit_before>import sys
import os

# assume MonetDB-Clients destination PYTHON_LIBDIR 
# is in Python's default search path,
# or `monetdb-clients-config --pythonlibdir` is in PYTHONPATH
from MonetDB.Mapi import server


def main(argv) :

    STDOUT = sys.stdout
    STDERR = sys.stderr

    n = 1234
<commit_msg>another attempt to get this right, in case MonetDB-Clients is installed in a different prefix than MonetDB<commit_after>import sys
import os

try:
    # assume MonetDB & MonetDB-Clients share the same prefix,
    # and their hence shared destination PYTHON_LIBDIR
    # is in Python's default search path,
    # or `monetdb-config --pythonlibdir` is in PYTHONPATH
    from MonetDB.Mapi import server
except ImportError:
    # assume MonetDB-Clients uses a different prefix than MonetDB,
    # and MonetDB-Clients' destination PYTHON_LIBDIR/MonetDB
    # is in Python's default search path,
    # or `monetdb-clients-config --pythonlibdir`/MonetDB is in PYTHONPATH
    from Mapi import server


def main(argv) :

    STDOUT = sys.stdout
    STDERR = sys.stderr

    n = 1234

{'fraction_non_alphanumeric': 0.06611570247933884, 'fraction_numerical': 0.0073461891643709825, 'mean_word_length': 3.5416666666666665, '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': '2825', 'n_tokens_mistral': 372, 'n_tokens_neox': 351, 'n_words': 120}