<commit_before>environment:
 github_release_token:
  secure: <KEY>
 matrix:
  - nodejs_version: 4
  - nodejs_version: 5
  - nodejs_version: 6
  - nodejs_version: 7
  - nodejs_version: 8

image: Visual Studio 2015

install:
  - ps: Install-Product node $env:nodejs_version
  - npm install -g npm
  - node --version
  - npm --version
  - git submodule update --init --recursive

build_script:
  - npm install --build-from-source

test_script:
  - npm test

artifacts:
  - path: build\stage\gagern\node-libtidy\releases\download\**\*.tar.gz
    name: binary

before_deploy:
  - node_modules/.bin/node-pre-gyp package

deploy:
  - provider: GitHub
    release: $(APPVEYOR_REPO_TAG_NAME)
    artifact: binary
    auth_token: $(github_release_token)
    draft: true
    prerelease: false
    on:
      appveyor_repo_tag: true

after_deploy:
  - git clean -fdx
  - npm install --fallback-to-build=false
  - npm test
<commit_msg>Enable 32 and 64 bit builds on Windows, disable Node version 4<commit_after>environment:
 github_release_token:
  secure: <KEY>
 matrix:
  - nodejs_version: 5
  - nodejs_version: 6
  - nodejs_version: 7
  - nodejs_version: 8

platform:
  - x86
  - x64

image: Visual Studio 2015

install:
  - ps: Install-Product node $env:nodejs_version
  - npm install -g npm
  - node --version
  - npm --version
  - git submodule update --init --recursive

build_script:
  - npm install --build-from-source

test_script:
  - npm test

artifacts:
  - path: build\stage\gagern\node-libtidy\releases\download\**\*.tar.gz
    name: binary

before_deploy:
  - node_modules/.bin/node-pre-gyp package

deploy:
  - provider: GitHub
    release: $(APPVEYOR_REPO_TAG_NAME)
    artifact: binary
    auth_token: $(github_release_token)
    draft: true
    prerelease: false
    on:
      appveyor_repo_tag: true

after_deploy:
  - git clean -fdx
  - npm install --fallback-to-build=false
  - npm test

{'fraction_non_alphanumeric': 0.10337552742616034, 'fraction_numerical': 0.013713080168776372, 'mean_word_length': 2.985294117647059, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '6145814', 'n_tokens_mistral': 726, 'n_tokens_neox': 667, 'n_words': 166}