<commit_before>version: 2.4.0.{build}

before_build:
    - nuget restore Loyc-Slim.sln

build_script:
    # First, set some environment variables.
    # SEMVER is set manually. Not sure how this can be automated.
    - set SEMVER=23.4.0
    - echo %APPVEYOR_REPO_TAG%
    # Build packages as SEMVER-ci{build}
    - ps: if ($env:APPVEYOR_REPO_TAG -eq $True) { $env:PKG_VERSION = $env:SEMVER; } else { $env:PKG_VERSION = "$($env:SEMVER)-ci$($env:APPVEYOR_BUILD_NUMBER)"; }
    - echo %PKG_VERSION%

    # Build the Loyc libraries in release mode, for all possible configurations.
    - msbuild /p:Configuration=Release.NET45 Loyc-Slim.sln
    - msbuild /p:Configuration=Release.NET4 Loyc-Slim.sln
    - msbuild /p:Configuration=Release.NET35 Loyc-Slim.sln

after_build:
    # Package the LoycCore libraries
    - nuget pack -Version %PKG_VERSION% Core\LoycCore.nuspec
    # Package ends up in LoycCore.$PKG_VERSION.nupkg

    # Package the ECSharp library
    - nuget pack -Version %PKG_VERSION% ECSharp.nuspec
    # Package ends up in ECSharp.$PKG_VERSION.nupkg

    # Package the LeMP binary
    - nuget pack -Version %PKG_VERSION% LeMP.nuspec
    # Package ends up in ECSharp.$PKG_VERSION.nupkg

test_script:
    # Unfortunately, test set 8 (LLLPG) sometimes fails due to nondeterminism.
    - Bin\Release.NET45\Tests.exe 12345
    - Bin\Release.NET45\Tests.exe 67

assembly_info:
    patch: true
    file: '**\AssemblyInfo.cs'
    assembly_version: "{version}"
    assembly_file_version: "{version}"
    assembly_informational_version: "{version}"

artifacts:
    - path: '*.nupkg'
      name: nupkgs

# Uncomment the section below to push the NuGet
# package whenever a git tag is pushed.
#deploy:
#    - provider: NuGet
#      server:
#      api_key:
#          secure: Encrypted key goes here. Use https://ci.appveyor.com/tools/encrypt to encrypt your NuGet API key.
#      skip_symbols: true
#      artifact: /.*\.nupkg/
#      on:
#          branch: master # Release from master branch only.
#          appveyor_repo_tag: true # Deploy on tag push only.<commit_msg>Fix a copy-paste flub<commit_after>version: 2.4.0.{build}

before_build:
    - nuget restore Loyc-Slim.sln

build_script:
    # First, set some environment variables.
    # SEMVER is set manually. Not sure how this can be automated.
    - set SEMVER=23.4.0
    - echo %APPVEYOR_REPO_TAG%
    # Build packages as SEMVER-ci{build}
    - ps: if ($env:APPVEYOR_REPO_TAG -eq $True) { $env:PKG_VERSION = $env:SEMVER; } else { $env:PKG_VERSION = "$($env:SEMVER)-ci$($env:APPVEYOR_BUILD_NUMBER)"; }
    - echo %PKG_VERSION%

    # Build the Loyc libraries in release mode, for all possible configurations.
    - msbuild /p:Configuration=Release.NET45 Loyc-Slim.sln
    - msbuild /p:Configuration=Release.NET4 Loyc-Slim.sln
    - msbuild /p:Configuration=Release.NET35 Loyc-Slim.sln

after_build:
    # Package the LoycCore libraries
    - nuget pack -Version %PKG_VERSION% Core\LoycCore.nuspec
    # Package ends up in LoycCore.$PKG_VERSION.nupkg

    # Package the ECSharp library
    - nuget pack -Version %PKG_VERSION% ECSharp.nuspec
    # Package ends up in ECSharp.$PKG_VERSION.nupkg

    # Package the LeMP binary
    - nuget pack -Version %PKG_VERSION% LeMP.nuspec
    # Package ends up in LeMP.$PKG_VERSION.nupkg

test_script:
    # Unfortunately, test set 8 (LLLPG) sometimes fails due to nondeterminism.
    - Bin\Release.NET45\Tests.exe 12345
    - Bin\Release.NET45\Tests.exe 67

assembly_info:
    patch: true
    file: '**\AssemblyInfo.cs'
    assembly_version: "{version}"
    assembly_file_version: "{version}"
    assembly_informational_version: "{version}"

artifacts:
    - path: '*.nupkg'
      name: nupkgs

# Uncomment the section below to push the NuGet
# package whenever a git tag is pushed.
#deploy:
#    - provider: NuGet
#      server:
#      api_key:
#          secure: Encrypted key goes here. Use https://ci.appveyor.com/tools/encrypt to encrypt your NuGet API key.
#      skip_symbols: true
#      artifact: /.*\.nupkg/
#      on:
#          branch: master # Release from master branch only.
#          appveyor_repo_tag: true # Deploy on tag push only.
{'fraction_non_alphanumeric': 0.10436249698722584, 'fraction_numerical': 0.011569052783803326, 'mean_word_length': 3.08062930186824, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6832615', 'n_tokens_mistral': 1500, 'n_tokens_neox': 1429, 'n_words': 380}