<commit_before># fsharp feature branch
-
    version: 1.0.{build}
    clone_depth: 15
    branches:
        only:
            - fsharp
    configuration: Debug
    build:
        project: fsharp\fsharp.sln
        verbosity: minimal
    test:
        assemblies: fsharp\test\TypeProvider\bin\$(configuration)\BondFsharpUnitTest.dll

# other branches
-
    version: 1.0.{build}
    clone_depth: 15

    environment:
        BOND_TOKEN:
            secure: <KEY>
        matrix:
            - BOND_BUILD: Doc
            - BOND_BUILD: Python
              BOND_VS: "Visual Studio 14 2015"
              BOND_VS_NUM: 14
              BOND_ARCH: 32
              BOND_BOOST: 60
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_GRPC=FALSE"
            - BOND_BUILD: Python
              BOND_VS: "Visual Studio 14 2015"
              BOND_VS_NUM: 14
              BOND_ARCH: 64
              BOND_BOOST: 63
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_GRPC=FALSE"
            - BOND_BUILD: C++
              BOND_VS: "Visual Studio 14 2015"
              BOND_VS_NUM: 14
              BOND_ARCH: 64
              BOND_BOOST: 60
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_COMM=FALSE;-DBOND_ENABLE_GRPC=FALSE"
            - BOND_BUILD: C++
              BOND_VS: "Visual Studio 14 2015"
              BOND_VS_NUM: 14
              BOND_ARCH: 64
              BOND_BOOST: 63
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_GRPC=FALSE;-DBOND_SKIP_CORE_TESTS=TRUE;-DBOND_SKIP_GBC_TESTS=TRUE"
            - BOND_BUILD: C++
              BOND_VS: "Visual Studio 14 2015"
              BOND_VS_NUM: 14
              BOND_ARCH: 64
              BOND_BOOST: 63
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_COMM=FALSE;-DBOND_SKIP_CORE_TESTS=TRUE;-DBOND_SKIP_GBC_TESTS=TRUE"
            - BOND_BUILD: C#
              BOND_OUTPUT: Properties
              BOND_CONFIG: Debug
            - BOND_BUILD: C++
              BOND_VS: "Visual Studio 12 2013"
              BOND_VS_NUM: 12
              BOND_ARCH: 32
              BOND_BOOST: 58
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_COMM=FALSE;-DBOND_ENABLE_GRPC=FALSE;-DBOND_SKIP_GBC_TESTS=TRUE"
            - BOND_BUILD: C++
              BOND_VS: "Visual Studio 12 2013"
              BOND_VS_NUM: 12
              BOND_ARCH: 64
              BOND_BOOST: 58
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_GRPC=FALSE;-DBOND_SKIP_CORE_TESTS=TRUE;-DBOND_SKIP_GBC_TESTS=TRUE"
            - BOND_BUILD: C#
              BOND_OUTPUT: Fields
              BOND_CONFIG: Fields
            - BOND_BUILD: "C# .NET Core"
              BOND_CONFIG: Debug

    install:
        - ps: >-
            git submodule update --init --recursive

            if ($env:BOND_BOOST -eq 56) {
                # Hard-coded Boost path per https://www.appveyor.com/docs/installed-software#languages-libraries-frameworks
                $env:BOOST_ROOT = "C:/Libraries/boost"
                $env:BOOST_LIBRARYDIR = "C:/Libraries/boost/lib${env:BOND_ARCH}-msvc-${env:BOND_VS_NUM}.0"
            }
            else {
                $env:BOOST_ROOT = "C:/Libraries/boost_1_${env:BOND_BOOST}_0"
                $env:BOOST_LIBRARYDIR = "C:/Libraries/boost_1_${env:BOND_BOOST}_0/lib${env:BOND_ARCH}-msvc-${env:BOND_VS_NUM}.0"
            }

            choco install haskellplatform -version 2014.2.0.0 -y

            # choco install updated the path, so re-read them from the registry and reset $env:path

            $machinePath = [System.Environment]::GetEnvironmentVariable("Path","Machine")

            $userPath = [System.Environment]::GetEnvironmentVariable("Path","User")

            $env:Path = "$machinePath;$userPath"

            cabal update

            if ($env:BOND_BUILD -eq "Doc") {

                choco install pandoc --version 1.19.2  -y

                choco install doxygen.install -y

                $machinePath = [System.Environment]::GetEnvironmentVariable("Path","Machine")

                $userPath = [System.Environment]::GetEnvironmentVariable("Path","User")

                $env:Path = "$machinePath;$userPath"

            }

    cache:
        - cs\packages -> cs\test\core\packages.config
        - compiler\.cabal-sandbox -> compiler\bond.cabal

    before_build:
        - ps: >-
            $env:PreferredToolArchitecture = "x64"

            $env:_IsNativeEnvironment = "true"

            $cmakeGenerator = $env:BOND_VS

            if ($env:BOND_ARCH -eq 64) {
                $cmakeGenerator += " Win64"
            }

            $cmakeFlags = $env:BOND_CMAKE_FLAGS -split ';'

            if ($env:BOND_BUILD -eq "C#" -Or $env:BOND_BUILD -eq "C++") {

                nuget restore cs\cs.sln

            }

            if ($env:BOND_BUILD -eq "Python" -Or $env:BOND_BUILD -eq "C++") {

                # Make sure we have Python27-64 before any other version
                if ($env:BOND_ARCH -eq 64) {
                    $env:Path = "C:\Python27-x64\scripts;C:\Python27-x64\;${env:Path}"
                }

            }

            if ($env:BOND_BUILD -eq "Python") {

                mkdir build

                cd build

                cmake "-DBoost_ADDITIONAL_VERSIONS=1.${env:BOND_BOOST}.0" $cmakeFlags -G $cmakeGenerator ..

            }

            if ($env:BOND_BUILD -eq "C++") {

                msbuild cs\cs.sln /verbosity:minimal /target:Tests\Compat /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

                mkdir build

                cd build

                cmake $cmakeFlags -G $cmakeGenerator ..

            }

            if ($env:BOND_BUILD -eq "Doc") {

                mkdir build

                cd build

                cmake ../doc

            }


    build_script:
        - ps: >-
            $env:PreferredToolArchitecture = "x64"

            $env:_IsNativeEnvironment = "true"

            if ($env:BOND_BUILD -eq "Doc") {

                cmake --build . --target documentation -- /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

                if ($? -And $env:BOND_TOKEN -And $env:APPVEYOR_REPO_BRANCH -eq "master") {<commit_msg>[c++ grpc] Add Bond-over-gRPC AppVeyor support<commit_after># fsharp feature branch
-
    version: 1.0.{build}
    clone_depth: 15
    branches:
        only:
            - fsharp
    configuration: Debug
    build:
        project: fsharp\fsharp.sln
        verbosity: minimal
    test:
        assemblies: fsharp\test\TypeProvider\bin\$(configuration)\BondFsharpUnitTest.dll

# other branches
-
    version: 1.0.{build}
    clone_depth: 15

    environment:
        BOND_TOKEN:
            secure: <KEY>
        matrix:
            - BOND_BUILD: Doc
            - BOND_BUILD: Python
              BOND_VS: "Visual Studio 14 2015"
              BOND_VS_NUM: 14
              BOND_ARCH: 32
              BOND_BOOST: 60
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_GRPC=FALSE"
            - BOND_BUILD: Python
              BOND_VS: "Visual Studio 14 2015"
              BOND_VS_NUM: 14
              BOND_ARCH: 64
              BOND_BOOST: 63
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_GRPC=FALSE"
            - BOND_BUILD: C++
              BOND_VS: "Visual Studio 14 2015"
              BOND_VS_NUM: 14
              BOND_ARCH: 64
              BOND_BOOST: 60
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_COMM=FALSE;-DBOND_ENABLE_GRPC=FALSE"
            - BOND_BUILD: C++
              BOND_VS: "Visual Studio 14 2015"
              BOND_VS_NUM: 14
              BOND_ARCH: 64
              BOND_BOOST: 63
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_GRPC=FALSE;-DBOND_SKIP_CORE_TESTS=TRUE;-DBOND_SKIP_GBC_TESTS=TRUE"
            - BOND_BUILD: C++
              BOND_VS: "Visual Studio 14 2015"
              BOND_VS_NUM: 14
              BOND_ARCH: 64
              BOND_BOOST: 63
              BOND_GRPC: "true"
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_COMM=FALSE;-DBOND_SKIP_CORE_TESTS=TRUE;-DBOND_SKIP_GBC_TESTS=TRUE"
            - BOND_BUILD: C#
              BOND_OUTPUT: Properties
              BOND_CONFIG: Debug
            - BOND_BUILD: C++
              BOND_VS: "Visual Studio 12 2013"
              BOND_VS_NUM: 12
              BOND_ARCH: 32
              BOND_BOOST: 58
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_COMM=FALSE;-DBOND_ENABLE_GRPC=FALSE;-DBOND_SKIP_GBC_TESTS=TRUE"
            - BOND_BUILD: C++
              BOND_VS: "Visual Studio 12 2013"
              BOND_VS_NUM: 12
              BOND_ARCH: 64
              BOND_BOOST: 58
              BOND_CMAKE_FLAGS: "-DBOND_ENABLE_GRPC=FALSE;-DBOND_SKIP_CORE_TESTS=TRUE;-DBOND_SKIP_GBC_TESTS=TRUE"
            - BOND_BUILD: C#
              BOND_OUTPUT: Fields
              BOND_CONFIG: Fields
            - BOND_BUILD: "C# .NET Core"
              BOND_CONFIG: Debug

    install:
        - ps: >-
            git submodule update --init --recursive --depth=5

            if ($env:BOND_BOOST -eq 56) {
                # Hard-coded Boost path per https://www.appveyor.com/docs/installed-software#languages-libraries-frameworks
                $env:BOOST_ROOT = "C:/Libraries/boost"
                $env:BOOST_LIBRARYDIR = "C:/Libraries/boost/lib${env:BOND_ARCH}-msvc-${env:BOND_VS_NUM}.0"
            }
            else {
                $env:BOOST_ROOT = "C:/Libraries/boost_1_${env:BOND_BOOST}_0"
                $env:BOOST_LIBRARYDIR = "C:/Libraries/boost_1_${env:BOND_BOOST}_0/lib${env:BOND_ARCH}-msvc-${env:BOND_VS_NUM}.0"
            }

            choco install haskellplatform -version 2014.2.0.0 -y

            # choco install updated the path, so re-read them from the registry and reset $env:path

            $machinePath = [System.Environment]::GetEnvironmentVariable("Path","Machine")

            $userPath = [System.Environment]::GetEnvironmentVariable("Path","User")

            $env:Path = "$machinePath;$userPath"

            cabal update

            if ($env:BOND_BUILD -eq "Doc") {

                choco install pandoc --version 1.19.2  -y

                choco install doxygen.install -y

                $machinePath = [System.Environment]::GetEnvironmentVariable("Path","Machine")

                $userPath = [System.Environment]::GetEnvironmentVariable("Path","User")

                $env:Path = "$machinePath;$userPath"

            }

            if ($env:BOND_GRPC -eq "true") {

                choco install yasm -y

            }

    cache:
        - cs\packages -> cs\test\core\packages.config
        - compiler\.cabal-sandbox -> compiler\bond.cabal

    before_build:
        - ps: >-
            $env:PreferredToolArchitecture = "x64"

            $env:_IsNativeEnvironment = "true"

            $cmakeGenerator = $env:BOND_VS

            if ($env:BOND_ARCH -eq 64) {
                $cmakeGenerator += " Win64"
            }

            $cmakeFlags = $env:BOND_CMAKE_FLAGS -split ';'

            if ($env:BOND_BUILD -eq "C#" -Or $env:BOND_BUILD -eq "C++") {

                nuget restore cs\cs.sln

            }

            if ($env:BOND_BUILD -eq "Python" -Or $env:BOND_BUILD -eq "C++") {

                # Make sure we have Python27-64 before any other version
                if ($env:BOND_ARCH -eq 64) {
                    $env:Path = "C:\Python27-x64\scripts;C:\Python27-x64\;${env:Path}"
                }

            }

            if ($env:BOND_BUILD -eq "Python") {

                mkdir build

                cd build

                cmake "-DBoost_ADDITIONAL_VERSIONS=1.${env:BOND_BOOST}.0" $cmakeFlags -G $cmakeGenerator ..

            }

            if ($env:BOND_BUILD -eq "C++") {

                msbuild cs\cs.sln /verbosity:minimal /target:Tests\Compat /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

                mkdir build

                cd build

                cmake $cmakeFlags -G $cmakeGenerator .. 2>cmake_stderr.log

                Get-Content cmake_stderr.log

            }

            if ($env:BOND_BUILD -eq "Doc") {

                mkdir build

                cd build

                cmake ../doc

            }


    build_script:
        - ps: >-
            $env:PreferredToolArchitecture = "x64"

            $env:_IsNativeEnvironment = "true"

            if ($env:BOND_BUILD -eq "Doc") {

                cmake --build . --target documentation -- /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

                if ($? -And $env:BOND_TOKEN -And $env:APPVEYOR_REPO_BRANCH -eq "master") {
{'fraction_non_alphanumeric': 0.10347589300016018, 'fraction_numerical': 0.021784398526349513, 'mean_word_length': 1.6041710114702816, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '5162786', 'n_tokens_mistral': 4542, 'n_tokens_neox': 3859, 'n_words': 721}