<commit_before>build: false
shallow_clone: true
platform:
  - x64

environment:
    PHP_CACHE_DIR: C:\tools\php
    PHP_ZIP: php-7.1.2-nts-Win32-VC14-x64.zip
    
cache:
  - '%PHP_CACHE_DIR% -> appveyor.yml'

init:
  - SET PATH=%PHP_CACHE_DIR%;%PATH%
  - SET COMPOSER_NO_INTERACTION=1
  - SET PHP=0

install:
  - IF EXIST %PHP_CACHE_DIR% (SET PHP=1) 
  - IF %PHP%==0 mkdir %PHP_CACHE_DIR% && cd %PHP_CACHE_DIR%
  - IF %PHP%==0 appveyor DownloadFile http://windows.php.net/downloads/releases/%PHP_ZIP%
  - IF %PHP%==0 7z x %PHP_ZIP% -y >nul && del /Q *.zip
  - IF %PHP%==0 cinst -y composer -i --version 4.6.0 --ia /DEV=%PHP_CACHE_DIR%
  - php -v
  - IF %PHP%==1 (composer self-update) ELSE (composer --version) 
  - cd %APPVEYOR_BUILD_FOLDER%
  - composer install --prefer-dist --no-progress

test_script:
  - cd %APPVEYOR_BUILD_FOLDER%
  - php test.php
<commit_msg>Update php and use approved composer package<commit_after>build: false
shallow_clone: true
platform:
  - x64

environment:
    PHP_CACHE_DIR: C:\tools\php
    PHP_ZIP: php-7.1.7-nts-Win32-VC14-x64.zip
    
cache:
  - '%PHP_CACHE_DIR% -> appveyor.yml'

init:
  - SET PATH=%PHP_CACHE_DIR%;%PATH%
  - SET COMPOSER_NO_INTERACTION=1
  - SET PHP=0

install:
  - IF EXIST %PHP_CACHE_DIR% (SET PHP=1) 
  - IF %PHP%==0 mkdir %PHP_CACHE_DIR% && cd %PHP_CACHE_DIR%
  - IF %PHP%==0 appveyor DownloadFile http://windows.php.net/downloads/releases/%PHP_ZIP%
  - IF %PHP%==0 7z x %PHP_ZIP% -y >nul && del /Q *.zip
  - IF %PHP%==0 cinst -y composer -i --ia /DEV=%PHP_CACHE_DIR%
  - php -v
  - IF %PHP%==1 (composer self-update) ELSE (composer --version) 
  - cd %APPVEYOR_BUILD_FOLDER%
  - composer install --prefer-dist --no-progress

test_script:
  - cd %APPVEYOR_BUILD_FOLDER%
  - php test.php

{'fraction_non_alphanumeric': 0.1534058385804236, 'fraction_numerical': 0.024613623354321695, 'mean_word_length': 3.232445520581114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1140905', 'n_tokens_mistral': 768, 'n_tokens_neox': 737, 'n_words': 160}