<commit_before>os: Visual Studio 2015

environment:
  matrix:
    - channel: nightly
      target: i686-pc-windows-msvc
    - channel: nightly
      target: x86_64-pc-windows-msvc

install:
  - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
  - rustup-init -yv --default-toolchain %channel% --default-host %target%
  - set PATH=%PATH%;%USERPROFILE%\.cargo\bin

build_script:
  - cargo build --release --target=%TARGET%

test_script:
  - cargo test<commit_msg>Make to deploy Github releases from appveyor<commit_after>os: Visual Studio 2015

environment:
  matrix:
    - CHANNEL: nightly
      TARGET: i686-pc-windows-msvc
    - CHANNEL: nightly
      TARGET: x86_64-pc-windows-msvc

install:
  - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
  - rustup-init -yv --default-toolchain %CHANNEL% --default-host %TARGET%
  - set PATH=%PATH%;%USERPROFILE%\.cargo\bin

build_script:
  - cargo build --release --target=%TARGET%

test_script:
  - cargo test
  - mkdir logian-%APPVEYOR_REPO_TAG_NAME%-%TARGET%
  - copy target\%TARGET%\release\logian.exe logian-%APPVEYOR_REPO_TAG_NAME%-%TARGET%\logian.exe
  - xcopy template logian-%APPVEYOR_REPO_TAG_NAME%-%TARGET%\template /I /E /Y /D
  - xcopy plugin logian-%APPVEYOR_REPO_TAG_NAME%-%TARGET%\plugin /I /E /Y /D
  - 7z a logian-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip logian-%APPVEYOR_REPO_TAG_NAME%-%TARGET%
  - appveyor PushArtifact logian-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip

artifacts:
  - path: logian-*.zip
    name: Releases

deploy:
  provider: GitHub
  auth_token:
    secure: "<KEY>"
  artifact: /logian-.*\.zip/
  draft: false
  prerelease: false
  on:
    appveyor_repo_tag: true

{'fraction_non_alphanumeric': 0.13131313131313133, 'fraction_numerical': 0.013666072489601902, 'mean_word_length': 3.478723404255319, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6456545', 'n_tokens_mistral': 658, 'n_tokens_neox': 624, 'n_words': 123}