<commit_before>version: 1.1.{build}
os: Visual Studio 2017
clone_depth: 2
configuration: Release

pull_requests:
  do_not_increment_build_number: true
  
init: 
  - git config --global core.autocrlf input
  - ps: $env:GIT_HASH=$env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
  - ps: If ("$env:APPVEYOR_REPO_TAG" -ne "true") { $env:VERSION_SUFFIX="pre" }
  - ps: 'Write-Output "Version: $($env:APPVEYOR_BUILD_VERSION)-$($env:VERSION_SUFFIX)"'
  - nuget sources add -name Foundatio -source https://ci.appveyor.com/nuget/foundatio

before_build:
  - ps: .\build\Set-BuildVersion -Version $env:APPVEYOR_BUILD_VERSION -Suffix $env:VERSION_SUFFIX
  - appveyor-retry dotnet restore -v Minimal

build_script: 
  - dotnet build -c Release
  - dotnet pack -c Release

artifacts:
  - path: artifacts\*.nupkg
    name: ReleaseArtifacts

nuget:
  project_feed: true
  disable_publish_on_pr: true
  
deploy:
  - provider: Environment
    name: NuGet
    on:
      appveyor_repo_tag: true
  - provider: GitHub
    auth_token:
      secure: <KEY>
    draft: true
    on:
      branch: master
      appveyor_repo_tag: true
      
notifications:
  - provider: Slack
    channel: '#notifications'
    auth_token:
      secure: PigIGGo7UUDwdb0KGM/s7OfpAng/OMJx7q33jKfzudFBiXi1EBEd0DRmkbCc7CiX<commit_msg>Use MyGet<commit_after>version: 1.1.{build}
os: Visual Studio 2017
clone_depth: 2
configuration: Release

pull_requests:
  do_not_increment_build_number: true
  
init: 
  - git config --global core.autocrlf input
  - ps: $env:GIT_HASH=$env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
  - ps: If ("$env:APPVEYOR_REPO_TAG" -ne "true") { $env:VERSION_SUFFIX="pre" }
  - ps: 'Write-Output "Version: $($env:APPVEYOR_BUILD_VERSION)-$($env:VERSION_SUFFIX)"'

before_build:
  - ps: .\build\Set-BuildVersion -Version $env:APPVEYOR_BUILD_VERSION -Suffix $env:VERSION_SUFFIX
  - nuget sources add -name Exceptionless -source https://www.myget.org/F/exceptionless/api/v3/index.json
  - appveyor-retry dotnet restore -v Minimal

build_script: 
  - dotnet build -c Release

#on_failure:
#  - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

after_test:
  - ps: dotnet pack -c Release

artifacts:
  - path: artifacts\*.nupkg
    name: NuGet
  
deploy:
  - provider: Environment
    name: MyGet
  - provider: Environment
    name: NuGet
    on:
      appveyor_repo_tag: true
  - provider: GitHub
    auth_token:
      secure: <KEY>
    draft: true
    on:
      branch: master
      appveyor_repo_tag: true
      
notifications:
  - provider: Slack
    channel: '#notifications'
    auth_token:
      secure: <KEY>
{'fraction_non_alphanumeric': 0.11447811447811448, 'fraction_numerical': 0.011597456041900486, 'mean_word_length': 3.642361111111111, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 3, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2674436', 'n_tokens_mistral': 1032, 'n_tokens_neox': 1007, 'n_words': 204}