<commit_before>version: 1.0.{build}
skip_branch_with_pr: true
image: Previous Visual Studio 2017
environment:
  nugetKey:
    secure: woGIFYmpUtTLOWygTbMQJ700lYrg/54SIeCadARpMTPeCflob0lsMk92VnAhPowV
build_script:
- ps: "dotnet --info\nAdd-AppveyorMessage \"build started\"\nWrite-Host \"restoring nugets\"\ndotnet restore\nAdd-AppveyorMessage \"nugets restored\"\nWrite-Host \"building solution (Release)\"\ndotnet build -c Release\nAdd-AppveyorMessage \"dotnet build success\"\nWrite-Host \"running XUnit tests\"\ndotnet test -f netcoreapp1.0 ParserTests/ParserTests.csproj\nAdd-AppveyorMessage \"xunit tests done\"\nWrite-Host \"packing nuget\"\ndotnet pack -c Release\nAdd-AppveyorMessage \"sly nuget packaged\"\n\nfunction InstallTool\n{\n    param([string]$nugetName, [string]$outPath)\n    Write-Host \"install xunit console tool\"\n    appveyor DownloadFile  (\"https://api.nuget.org/packages/\"+$nugetName+\".nupkg\")\n    New-Item $outPath -type directory\n    Rename-Item -Path ($nugetName+\".nupkg\") -NewName ($nugetName+\".zip\")\n    Expand-Archive -LiteralPath ($nugetName+\".zip\") -DestinationPath $outPath\n}\n\n\nWrite-Host \"install opencover tool\"\nInstallTool \"opencover.4.6.519\" \"opencover\"\nAdd-AppveyorMessage \"opencover tool downloaded\"\n\nWrite-Host \"install xunit console tool\"\nInstallTool \"xunit.runner.console.2.2.0\" \"xunit\"\nAdd-AppveyorMessage \"xunit console tool downloaded\"\n\ndotnet build -c Debug ParserTests\\ParserTests.csproj\n\n##Write-Host \"running opencover\"\n#opencover\\tools\\OpenCover.Console.exe -register:user \"-target:xunit\\tools\\xunit.console.exe\" \"-targetargs:ParserTests\\bin\\Debug\\net45\\ParserTests.dll\"  #\"-output:ParserTests.OpenCover.xml\" -filter:\"+[sly*]* -[ParserTests*]*\" \n#Add-AppveyorMessage \"opencover done\"\n#\n#Write-Host \"uploading opencover result to codecov\"\n#\n#\"SET PATH=C:\\\\Python34;C:\\\\Python34\\\\Scripts;%PATH%\"\n#pip install codecov\n#codecov --disable=gcov -f \"ParserTests.OpenCover.xml\" -t 31fb1c27-458a-4ddd-a3d1-21bc76a077e4\n#Add-AppveyorMessage \"opencover data sent to codecov\""
test_script:
- ps: appveyor DownloadFile https://api.nuget.org/packages/opencover.4.6.519.nupkg
artifacts:
- path: sly/bin/release/*
  name: sly
- path: '*.OpenCover.xml'
  name: sly
deploy:
- provider: NuGet
  api_key:
    secure: woGIFYmpUtTLOWygTbMQJ700lYrg/54SIeCadARpMTPeCflob0lsMk92VnAhPowV
  skip_symbols: true
  on:
    branch: dev
notifications:
- provider: Email
  to:
  - <EMAIL>
  on_build_success: true
  on_build_failure: true
  on_build_status_changed: true<commit_msg>appveyor config<commit_after>version: 1.0.{build}
image: Visual Studio 2017
init:
- cmd: >-
    choco install opencover.portable

    choco install codecov
environment:
  nugetKey:
    secure: <KEY>
  codecovToken:
    secure: <KEY>LHSqplQKSPSRJNEkdCVnX352HoSht5t
build_script:
- ps: "dotnet --info\nAdd-AppveyorMessage \"build started\"\nWrite-Host \"restoring nugets\"\ndotnet restore\nAdd-AppveyorMessage \"nugets restored\"\nWrite-Host \"building solution (Release)\"\ndotnet build -c Release\nAdd-AppveyorMessage \"dotnet build success\"\nWrite-Host \"running XUnit tests and coverage\"\n\nOpenCover.Console.exe -excludebyattribute:*.ExcludeFromCoverage* -register:user -target:\"c:\\Program Files\\dotnet\\dotnet.exe\" -targetargs:\"test -f netcoreapp2.0 --logger:trx;LogFileName=results.trx /p:DebugType=full ParserTests/ParserTests.csproj\"  -output:\".\\sly_coverage.xml\" -oldStyle -filter:\"+[sly*]* -[ParserTests*]* -[samples*]*\"\ncodecov -t 0777b110-895e-466f-ad53-a0e04860c4ee -f sly_coverage.xml /p:DebugType=full \n\nAdd-AppveyorMessage \"xunit tests done\"\nWrite-Host \"packing nuget\"\ndotnet pack -c Release\nAdd-AppveyorMessage \"sly nuget packaged\""
test_script:
- ps: dotnet test -f netcoreapp2.0 ParserTests/ParserTests.csproj
artifacts:
- path: sly/bin/release/*
  name: sly
- path: sly_coverage.xml
  name: sly
deploy:
- provider: NuGet
  api_key:
    secure: <KEY>
  skip_symbols: true
  on:
    branch: dev
notifications:
- provider: Email
  to:
  - <EMAIL>
  on_build_success: true
  on_build_failure: true
  on_build_status_changed: true
{'fraction_non_alphanumeric': 0.153402260158692, 'fraction_numerical': 0.023563356576100022, 'mean_word_length': 4.495376486129459, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '6759890', 'n_tokens_mistral': 1622, 'n_tokens_neox': 1527, 'n_words': 279}