<commit_before>import os
import shutil
import subprocess


def main():
    root_dir = os.path.dirname(__file__)
    artifacts_dir = os.path.join(root_dir, 'artifacts')
    sln_path = os.path.join(root_dir, 'src/Testo.sln')

    if os.path.isdir(artifacts_dir):
        shutil.rmtree(artifacts_dir)
    os.mkdir(artifacts_dir)

    subprocess.check_call(['C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\VsDevCmd.bat'])

    subprocess.check_call([
        'dotnet',
        'restore',
        'src\\Testo.sln',
        '/p:Configuration=Release',
        '/p:Platform=Any CPU'
    ])

    shutil.copy(os.path.join(os.environ['ASSEMBLY_SIGNING_KEY_HOME'], 'key.snk'),
                os.path.join(root_dir, 'key.snk'))

    msbuild_exec(sln_path)

    shutil.copy(
        os.path.join(root_dir, 'bin/Testo.1.3.0.nupkg'),
        os.path.join(root_dir, 'artifacts'))

    subprocess.check_call([
        'dotnet',
        'vstest',<commit_msg>Build script fix<commit_after>import os
import shutil
import subprocess


def main():
    root_dir = os.path.dirname(__file__)
    artifacts_dir = os.path.join(root_dir, 'artifacts')
    sln_path = os.path.join(root_dir, 'src/Testo.sln')

    if os.path.isdir(artifacts_dir):
        shutil.rmtree(artifacts_dir)
    os.mkdir(artifacts_dir)

    subprocess.check_call(['C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\VsDevCmd.bat'])

    subprocess.check_call([
        'dotnet',
        'restore',
        'src\\Testo.sln',
        '/p:Configuration=Release',
        '/p:Platform=Any CPU'
    ])

    shutil.copy(os.path.join(os.environ['ASSEMBLY_SIGNING_KEY_HOME'], 'key.snk'),
                os.path.join(root_dir, 'key.snk'))

    msbuild_exec(sln_path)

    shutil.copy(
        os.path.join(root_dir, 'bin/Testo.1.2.0.nupkg'),
        os.path.join(root_dir, 'artifacts'))

    subprocess.check_call([
        'dotnet',
        'vstest',
{'fraction_non_alphanumeric': 0.1553398058252427, 'fraction_numerical': 0.010219724067450179, 'mean_word_length': 2.831702544031311, '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': '6751370', 'n_tokens_mistral': 739, 'n_tokens_neox': 708, 'n_words': 91}