<commit_before>environment:
  global:
    TEST_SPEEDUP: 10
    TEST_RATE: 200
    TEST_RETRY: 4
init: []
cache:
  - "c:\\Users\\appveyor\\.pip-wheelhouse"
install:
  - ps: |
      New-Item -ItemType Directory -Force -Path c:\Users\appveyor\pip\
      @'
      [global]
      find-links = file://c:/Users/appveyor/.pip-wheelhouse

      [wheel]
      wheel-dir = c:/Users/appveyor/.pip-wheelhouse
      '@ | out-file -Encoding ascii -FilePath c:\Users\appveyor\pip\pip.ini
  - cmd: 'setlocal & python -m pip install pip wheel -U & endlocal'
  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & pip2 wheel numpy & endlocal"
  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & pip2 install nose numpy psutil mock & endlocal"
  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & pip2 install git+https://github.com/3drobotics/dronekit-sitl-runner.git & endlocal"
build_script:
  - cmd: 'setlocal & python setup.py install & endlocal'
  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & nosetests tests\\web & endlocal"
  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & nosetests tests\\unit & endlocal"
  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & python -m tests.sitl & endlocal"
clone_depth: 10
test: 'off'
branches:
  only:
    - master<commit_msg>Updates Appveyor tests to use Windows installer.<commit_after>environment:
  global:
    TEST_SPEEDUP: 10
    TEST_RATE: 200
    TEST_RETRY: 4
init: []
cache:
  - "c:\\Users\\appveyor\\.pip-wheelhouse"
install:
  - ps: |
      New-Item -ItemType Directory -Force -Path c:\Users\appveyor\pip\
      @'
      [global]
      find-links = file://c:/Users/appveyor/.pip-wheelhouse

      [wheel]
      wheel-dir = c:/Users/appveyor/.pip-wheelhouse
      '@ | out-file -Encoding ascii -FilePath c:\Users\appveyor\pip\pip.ini
  - cmd: 'setlocal & python -m pip install pip wheel -U & endlocal'
  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & pip2 wheel numpy & endlocal"
  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & pip2 install nose numpy psutil mock & endlocal"
  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & pip2 install git+https://github.com/3drobotics/dronekit-sitl-runner.git & endlocal"

  - cmd: choco install innosetup
  - cmd: cd windows & droneapiWinBuild.bat
  - ps: |
      Invoke-WebRequest "http://firmware.diydrones.com/Tools/MAVProxy/MAVProxySetup-latest.exe" -OutFile MAVProxySetup-latest.exe
      .\MAVProxySetup-latest.exe /VERYSILENT /LOG=setup-mavproxy.log
      while (!(Test-Path "setup-mavproxy.log")) { Start-Sleep 1 }
      while(!(Select-String -path 'setup-mavproxy.log' -pattern 'Log closed' -quiet)){ Start-Sleep 1 };
      rm ~\AppData\Local\MAVProxy\mavinit.scr
  - ps: |
      $setup = gi .\windows\Output\DroneKitsetup-*.exe
      & $setup /VERYSILENT /LOG=setup-dronekit.log
      while (!(Test-Path "setup-dronekit.log")) { Start-Sleep 1 }
      while(!(Select-String -path 'setup-dronekit.log' -pattern 'Log closed' -quiet)){ Start-Sleep 1};

build_script:
  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;c:\\Program Files (x86)\\MAVProxy;%PATH% & python -m tests.sitl & endlocal"
  - cmd: 'setlocal & python setup.py install & endlocal'
  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & nosetests tests\\web & endlocal"
  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & nosetests tests\\unit & endlocal"
clone_depth: 10
test: 'off'
branches:
  only:
    - master
{'fraction_non_alphanumeric': 0.1636414409382854, 'fraction_numerical': 0.015079586707623568, 'mean_word_length': 3.2744630071599046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6557556', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1298, 'n_words': 266}