<commit_before>#---------------------------------#
#      general configuration      #
#---------------------------------#

# version format
version: 0.3.0.{build}

branches:
  only:
    - master
    - appveyor-build

  except:
    - gh-pages

#---------------------------------#
#    environment configuration    #
#---------------------------------#

environment:
  matrix:
    # Must add CLang, or GCC
    # i.e. - COMPILER_FAMILY: GNU
    - COMPILER_FAMILY: GNU
      DEPLOY_TO_NUGET: 0
      PYTHON: "C:\\Python35-x64"
      PYTHON_VERSION: "3.5"
      PYTHON_ARCH: "64"

skip_commits:
  # Add [av skip] to commit messages to skip AppVeyor building
  # Add [ci skip] to skip Travis and AppVeyor building
  message: /\[av skip\]/ 

cache:
  - x86_64-4.8.2-release-win32-seh-rt_v3-rev4.7z
  - python-3.5.0rc2-amd64.exe
  - numpy-1.9.2+mkl-cp35-none-win_amd64.whl

os: Visual Studio 2015 CTP

init:
  - git config --global core.autocrlf input

clone_folder: c:\projects\nupic-core
clone_depth: 50

# Can't have a shallow clone because the CMake process will be calling into
# git to write the current SHA into the binaries.
shallow_clone: false

#---------------------------------#
#       build configuration       #
#---------------------------------#

nuget:
  account_feed: true
  project_feed: true
  disable_publish_on_pr: true     # disable publishing of .nupkg artifacts to
                                  # account/project feeds for pull request builds

configuration: Release

install:
  - set REPO_DIR=c:\projects\nupic-core
  - set NUPIC_DEPLOYMENT_BUILD=1
  - set EXT_LIBS=%REPO_DIR%\external\windows64\lib

  #- ECHO "Filesystem root:"
  #- ps: "ls \"C:/\""

  #- ECHO "Installed Windows SDKs:"
  #- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""

  - ECHO "Installing MinGW-w64:"
  - ps: >-
      if (-Not (Test-Path "x86_64-4.8.2-release-win32-seh-rt_v3-rev4.7z")) {
        $url  = "http://sourceforge.net/projects/mingw-w64/files/"

        $url += "Toolchains%20targetting%20Win64/Personal%20Builds/"

        $url += "mingw-builds/4.8.2/threads-win32/seh/"

        $url += "x86_64-4.8.2-release-win32-seh-rt_v3-rev4.7z/download"

        Invoke-WebRequest -UserAgent wget -Uri $url -OutFile x86_64-4.8.2-release-win32-seh-rt_v3-rev4.7z

      }

      &7z x -oC:\ x86_64-4.8.2-release-win32-seh-rt_v3-rev4.7z > $null

  - set CC=gcc

  - ECHO "Installing Python 3.5rc2:"
  - ps: >-
      if (-Not (Test-Path "python-3.5.0rc2-embed-amd64.zip")) {
        $url  = "https://www.python.org/ftp/python/3.5.0/"

        $url += "python-3.5.0rc2-amd64.exe"

        Invoke-WebRequest -UserAgent wget -Uri $url -OutFile python-3.5.0rc2-amd64.exe

      }

  - python-3.5.0rc2-amd64.exe /p /q CompileAll=1 PrependPath=1 Include_test=0 TargetDir=C:\Python35-x64

  - set PATH=C:\mingw64\bin;%PYTHON%;%PYTHON%\Scripts;%PATH%"

  - ECHO "PATH:"
  - echo %PATH%

  # Check that we have the expected version and architecture for Python
  - "python --version"
  - "python -c \"import struct; print(struct.calcsize('P') * 8)\""

  # Upgrade to the latest version of pip to avoid it displaying warnings
  # about it being out of date.
  - "pip install --disable-pip-version-check --user --upgrade pip"
  - "pip install wheel"

  - ECHO "Installing NumPy 1.9.2 (+MKL):"
  - cd %REPO_DIR%\external\windows64\bin
  - ps: "ls -l"
  - pip install "numpy-1.9.2+mkl-cp35-none-win_amd64.whl"

  - cd %REPO_DIR%
  - mkdir %REPO_DIR%\build\
  - mkdir %REPO_DIR%\build\release
  - mkdir %REPO_DIR%\build\scripts
  - cd %REPO_DIR%\build\scripts
<commit_msg>Move to dir<commit_after>#---------------------------------#
#      general configuration      #
#---------------------------------#

# version format
version: 0.3.0.{build}

branches:
  only:
    - master
    - appveyor-build

  except:
    - gh-pages

#---------------------------------#
#    environment configuration    #
#---------------------------------#

environment:
  matrix:
    # Must add CLang, or GCC
    # i.e. - COMPILER_FAMILY: GNU
    - COMPILER_FAMILY: GNU
      DEPLOY_TO_NUGET: 0
      PYTHON: "C:\\Python35-x64"
      PYTHON_VERSION: "3.5"
      PYTHON_ARCH: "64"

skip_commits:
  # Add [av skip] to commit messages to skip AppVeyor building
  # Add [ci skip] to skip Travis and AppVeyor building
  message: /\[av skip\]/ 

cache:
  - x86_64-4.8.2-release-win32-seh-rt_v3-rev4.7z
  - python-3.5.0rc2-amd64.exe
  - numpy-1.9.2+mkl-cp35-none-win_amd64.whl

os: Visual Studio 2015 CTP

init:
  - git config --global core.autocrlf input

clone_folder: c:\projects\nupic-core
clone_depth: 50

# Can't have a shallow clone because the CMake process will be calling into
# git to write the current SHA into the binaries.
shallow_clone: false

#---------------------------------#
#       build configuration       #
#---------------------------------#

nuget:
  account_feed: true
  project_feed: true
  disable_publish_on_pr: true     # disable publishing of .nupkg artifacts to
                                  # account/project feeds for pull request builds

configuration: Release

install:
  - set REPO_DIR=c:\projects\nupic-core
  - set NUPIC_DEPLOYMENT_BUILD=1
  - set EXT_LIBS=%REPO_DIR%\external\windows64\lib

  #- ECHO "Filesystem root:"
  #- ps: "ls \"C:/\""

  #- ECHO "Installed Windows SDKs:"
  #- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""

  - ECHO "Installing MinGW-w64:"
  - ps: >-
      if (-Not (Test-Path "x86_64-4.8.2-release-win32-seh-rt_v3-rev4.7z")) {
        $url  = "http://sourceforge.net/projects/mingw-w64/files/"

        $url += "Toolchains%20targetting%20Win64/Personal%20Builds/"

        $url += "mingw-builds/4.8.2/threads-win32/seh/"

        $url += "x86_64-4.8.2-release-win32-seh-rt_v3-rev4.7z/download"

        Invoke-WebRequest -UserAgent wget -Uri $url -OutFile x86_64-4.8.2-release-win32-seh-rt_v3-rev4.7z

      }

      &7z x -oC:\ x86_64-4.8.2-release-win32-seh-rt_v3-rev4.7z > $null

  - set CC=gcc

  - ECHO "Installing Python 3.5rc2:"
  - ps: >-
      if (-Not (Test-Path "python-3.5.0rc2-embed-amd64.zip")) {
        $url  = "https://www.python.org/ftp/python/3.5.0/"

        $url += "python-3.5.0rc2-amd64.exe"

        Invoke-WebRequest -UserAgent wget -Uri $url -OutFile python-3.5.0rc2-amd64.exe

      }

  - python-3.5.0rc2-amd64.exe /p /q CompileAll=1 PrependPath=1 Include_test=0 TargetDir=C:\Python35-x64

  - set PATH=C:\mingw64\bin;%PYTHON%;%PYTHON%\Scripts;%PATH%"

  - ECHO "PATH:"
  - echo %PATH%

  # Check that we have the expected version and architecture for Python
  - "python --version"
  - "python -c \"import struct; print(struct.calcsize('P') * 8)\""

  # Upgrade to the latest version of pip to avoid it displaying warnings
  # about it being out of date.
  - "pip install --disable-pip-version-check --user --upgrade pip"
  - "pip install wheel"

  - ECHO "Installing NumPy 1.9.2 (+MKL):"
  - cd %REPO_DIR%\external\windows64\bin
  - dir
  - pip install "numpy-1.9.2+mkl-cp35-none-win_amd64.whl"

  - cd %REPO_DIR%
  - mkdir %REPO_DIR%\build\
  - mkdir %REPO_DIR%\build\release
  - mkdir %REPO_DIR%\build\scripts
  - cd %REPO_DIR%\build\scripts

{'fraction_non_alphanumeric': 0.19048958919527292, 'fraction_numerical': 0.04614518851997749, 'mean_word_length': 2.1372462488967345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6145831', 'n_tokens_mistral': 2895, 'n_tokens_neox': 2650, 'n_words': 556}