<commit_before>#! /usr/bin/env bash

if [ -z ${MONO_BUILD+x} ]; then
    # Build with dotnet
    if [ "$(uname)" == "Darwin" ]; then
        curl -o dotnet-sdk-2.0.0-osx-gs-x64.pkg -k https://download.microsoft.com/download/0/F/D/0FD852A4-7EA1-4E2A-983A-0484AC19B92C/dotnet-sdk-2.0.0-osx-gs-x64.pkg
        sudo installer -pkg dotnet-sdk-2.0.0-osx-gs-x64.pkg -target ./
        export PATH=$PATH:./usr/local/share/dotnet/
    else
        curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
        sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
        sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
        sudo apt-get update
        sudo apt-get install dotnet-sdk-2.0.0
    fi

    dotnet restore
    dotnet build Grpc.Tools.MsBuild.sln -v normal
else
    # Build with Mono
    curl -o nuget.exe -k https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
    mono nuget.exe restore -ConfigFile ./Test/NuGet.config -NonInteractive
    msbuild
fi
<commit_msg>Do not assign config file for nuget restore.<commit_after>#! /usr/bin/env bash

if [ -z ${MONO_BUILD+x} ]; then
    # Build with dotnet
    if [ "$(uname)" == "Darwin" ]; then
        curl -o dotnet-sdk-2.0.0-osx-gs-x64.pkg -k https://download.microsoft.com/download/0/F/D/0FD852A4-7EA1-4E2A-983A-0484AC19B92C/dotnet-sdk-2.0.0-osx-gs-x64.pkg
        sudo installer -pkg dotnet-sdk-2.0.0-osx-gs-x64.pkg -target ./
        export PATH=$PATH:./usr/local/share/dotnet/
    else
        curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
        sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
        sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
        sudo apt-get update
        sudo apt-get install dotnet-sdk-2.0.0
    fi

    dotnet restore
    dotnet build Grpc.Tools.MsBuild.sln -v normal
else
    # Build with Mono
    curl -o nuget.exe -k https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
    mono nuget.exe restore -NonInteractive
    msbuild
fi

{'fraction_non_alphanumeric': 0.14266607222469907, 'fraction_numerical': 0.038341506910387874, 'mean_word_length': 2.5619047619047617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3881138', 'n_tokens_mistral': 930, 'n_tokens_neox': 854, 'n_words': 161}