<commit_before># Ubuntu name decoder ring; https://en.wikipedia.org/wiki/List_of_Ubuntu_releases
# Ubuntu 12.04 LTS (Precise Pangolin) <== Travis CI VM image
# Ubuntu 12.10 (Quantal Quetzal)
# Ubuntu 13.04 (Raring Ringtail)
# Ubuntu 13.10 (Saucy Salamander)
# Ubuntu 14.04 LTS (Trusty Tahr)
# Ubuntu 14.10 (Utopic Unicorn)
# Ubuntu 15.04 (Vivid Vervet)
# Ubuntu 15.10 (<NAME>)
# Ubuntu 16.04 LTS (Xenial Xantus)

# language: instructs travis what compilers && environment to set up in build matrix
language: cpp

# sudo: false instructs travis to build our project in a docker VM (faster)
# Can not yet install fglrx packages with 'false'
sudo: required # false

# os: expands the build matrix to include multiple os's
# disable linux, as we get sporadic failures on building boost, needs investigation
os:
  - linux
  - osx

# compiler: expands the build matrix to include multiple compilers (per os)
compiler:
  - gcc
  - clang

addons:
  # apt: is disabled on osx builds
  # apt: needed by docker framework to install project dependencies without
  # sudo.  Apt uses published Ubunto PPA's from https://launchpad.net/
  # https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
  apt:
    sources:
      # ubuntu-toolchain-r-test contains newer versions of gcc to install
      # - ubuntu-toolchain-r-test
      # llvm-toolchain-precise-3.6 contains newer versions of clang to install
      # - llvm-toolchain-precise-3.6
      # kubuntu-backports contains newer versions of cmake to install
      - kubuntu-backports
      # boost-latest contains boost v1.55
      - boost-latest
      - gfortran
    packages:
      # g++-4.8 is minimum version considered to be the first good c++11 gnu compiler
      # - g++-4.8
      # - clang-3.6
      # We require v2.8.12 minimum
      - cmake
      # I'm finding problems between pre-compiled versions of boost ublas, with gtest
      # stl_algobase.h: error: no matching function for call to swap()
      - libboost-program-options1.55-dev
      # - libboost-serialization1.55-dev
      # - libboost-filesystem1.55-dev
      # - libboost-system1.55-dev
      # - libboost-regex1.55-dev
      # The package opencl-headers on 'precise' only installs v1.1 cl headers; uncomment for 'trusty' or greater
#      - opencl-headers
      # Uncomment one of the following when fglrx modules are added to the apt whitelist
#      - fglrx
#      - fglrx=2:8.960-0ubuntu1
#      - fglrx=2:13.350.1-0ubuntu0.0.1

# env: specifies additional global variables to define per row in build matrix
env:
  global:
    - CLBLAS_ROOT=${TRAVIS_BUILD_DIR}/bin/make/release

# The following filters our build matrix; we are interested in linux-gcc & osx-clang
matrix:
  exclude:
    - os: linux
      compiler: clang
    - os: osx
      compiler: gcc

before_install:
  # Remove the following linux clause when fglrx can be installed with sudo: false
  - if [ ${TRAVIS_OS_NAME} == "linux" ]; then
      sudo apt-get update -qq &&
      sudo apt-get install -qq fglrx=2:13.350.1-0ubuntu0.0.1;
    fi
  - if [ ${TRAVIS_OS_NAME} == "linux" ]; then
      export OPENCL_ROOT="${TRAVIS_BUILD_DIR}/opencl-headers";
    fi
  - if [ ${TRAVIS_OS_NAME} == "osx" ]; then
      brew update;
      brew outdated boost || brew upgrade boost;
      brew outdated cmake || brew upgrade cmake;
    fi
  # - if [ ${CXX} = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
  - cmake --version;
  - ${CC} --version;
  - ${CXX} --version;

install:
  # 'Precise' only distributes v1.1 opencl headers; download 1.2 headers from khronos website
  # Remove when the travis VM upgrades to 'trusty' or beyond
  - if [ ${TRAVIS_OS_NAME} == "linux" ]; then
      mkdir -p ${OPENCL_ROOT}/include/CL;
      pushd ${OPENCL_ROOT}/include/CL;
      wget -w 1 -r -np -nd -nv -A h,hpp https://www.khronos.org/registry/cl/api/1.2/;
      popd;
    fi
  # osx image does not contain cl.hpp file; download from Khronos
  # - if [ ${TRAVIS_OS_NAME} == "osx" ]; then
  #     pushd /System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/;
  #     sudo wget -w 1 -np -nd -nv -A h,hpp https://www.khronos.org/registry/cl/api/1.2/cl.hpp;
  #     popd;
  #   fi

# Use before_script: to run configure steps
before_script:
  - mkdir -p ${CLBLAS_ROOT}
  - pushd ${CLBLAS_ROOT}
  - cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TEST=OFF -DBUILD_CLIENT=ON -DOCL_VERSION=2.0 -DOPENCL_ROOT=${OPENCL_ROOT} ${TRAVIS_BUILD_DIR}/src

# use script: to execute build steps
script:
  - make package

#deploy:
#  provider: releases
#  prerelease: true
#  draft: true
#  skip_cleanup: true
#  api_key:
#    secure: <KEY>
#  file: ${CLBLAS_ROOT}/clBLAS-build/*.tar.gz
#  file_glob: true
#  on:
#    all_branches: true
#    tags: true
<commit_msg>try to get gfortran working on travis ci<commit_after># Ubuntu name decoder ring; https://en.wikipedia.org/wiki/List_of_Ubuntu_releases
# Ubuntu 12.04 LTS (Precise Pangolin) <== Travis CI VM image
# Ubuntu 12.10 (Quantal Quetzal)
# Ubuntu 13.04 (<NAME>)
# Ubuntu 13.10 (Saucy Salamander)
# Ubuntu 14.04 LTS (Trusty Tahr)
# Ubuntu 14.10 (Utopic Unicorn)
# Ubuntu 15.04 (<NAME>)
# Ubuntu 15.10 (<NAME>)
# Ubuntu 16.04 LTS (Xenial Xantus)

# language: instructs travis what compilers && environment to set up in build matrix
language: cpp

# sudo: false instructs travis to build our project in a docker VM (faster)
# Can not yet install fglrx packages with 'false'
sudo: required # false

# os: expands the build matrix to include multiple os's
# disable linux, as we get sporadic failures on building boost, needs investigation
os:
  - linux
  - osx

# compiler: expands the build matrix to include multiple compilers (per os)
compiler:
  - gcc
  - clang

addons:
  # apt: is disabled on osx builds
  # apt: needed by docker framework to install project dependencies without
  # sudo.  Apt uses published Ubunto PPA's from https://launchpad.net/
  # https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
  apt:
    sources:
      # ubuntu-toolchain-r-test contains newer versions of gcc to install
      # - ubuntu-toolchain-r-test
      # llvm-toolchain-precise-3.6 contains newer versions of clang to install
      # - llvm-toolchain-precise-3.6
      # kubuntu-backports contains newer versions of cmake to install
      - kubuntu-backports
      # boost-latest contains boost v1.55
      - boost-latest
    packages:
      - gfortran-4.9
      # g++-4.8 is minimum version considered to be the first good c++11 gnu compiler
      # - g++-4.8
      # - clang-3.6
      # We require v2.8.12 minimum
      - cmake
      # I'm finding problems between pre-compiled versions of boost ublas, with gtest
      # stl_algobase.h: error: no matching function for call to swap()
      - libboost-program-options1.55-dev
      # - libboost-serialization1.55-dev
      # - libboost-filesystem1.55-dev
      # - libboost-system1.55-dev
      # - libboost-regex1.55-dev
      # The package opencl-headers on 'precise' only installs v1.1 cl headers; uncomment for 'trusty' or greater
#      - opencl-headers
      # Uncomment one of the following when fglrx modules are added to the apt whitelist
#      - fglrx
#      - fglrx=2:8.960-0ubuntu1
#      - fglrx=2:13.350.1-0ubuntu0.0.1

# env: specifies additional global variables to define per row in build matrix
env:
  global:
    - CLBLAS_ROOT=${TRAVIS_BUILD_DIR}/bin/make/release

# The following filters our build matrix; we are interested in linux-gcc & osx-clang
matrix:
  exclude:
    - os: linux
      compiler: clang
    - os: osx
      compiler: gcc

before_install:
  # Remove the following linux clause when fglrx can be installed with sudo: false
  - if [ ${TRAVIS_OS_NAME} == "linux" ]; then
      sudo apt-get update -qq &&
      sudo apt-get install -qq fglrx=2:13.350.1-0ubuntu0.0.1;
    fi
  - if [ ${TRAVIS_OS_NAME} == "linux" ]; then
      export OPENCL_ROOT="${TRAVIS_BUILD_DIR}/opencl-headers";
    fi
  - if [ ${TRAVIS_OS_NAME} == "osx" ]; then
      brew update;
      brew outdated boost || brew upgrade boost;
      brew outdated cmake || brew upgrade cmake;
    fi
  # - if [ ${CXX} = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
  - cmake --version;
  - ${CC} --version;
  - ${CXX} --version;

install:
  # 'Precise' only distributes v1.1 opencl headers; download 1.2 headers from khronos website
  # Remove when the travis VM upgrades to 'trusty' or beyond
  - if [ ${TRAVIS_OS_NAME} == "linux" ]; then
      mkdir -p ${OPENCL_ROOT}/include/CL;
      pushd ${OPENCL_ROOT}/include/CL;
      wget -w 1 -r -np -nd -nv -A h,hpp https://www.khronos.org/registry/cl/api/1.2/;
      popd;
    fi
  # osx image does not contain cl.hpp file; download from Khronos
  # - if [ ${TRAVIS_OS_NAME} == "osx" ]; then
  #     pushd /System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/;
  #     sudo wget -w 1 -np -nd -nv -A h,hpp https://www.khronos.org/registry/cl/api/1.2/cl.hpp;
  #     popd;
  #   fi

# Use before_script: to run configure steps
before_script:
  - mkdir -p ${CLBLAS_ROOT}
  - pushd ${CLBLAS_ROOT}
  - cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TEST=OFF -DBUILD_CLIENT=ON -DOCL_VERSION=2.0 -DOPENCL_ROOT=${OPENCL_ROOT} ${TRAVIS_BUILD_DIR}/src

# use script: to execute build steps
script:
  - make package

#deploy:
#  provider: releases
#  prerelease: true
#  draft: true
#  skip_cleanup: true
#  api_key:
#    secure: <KEY>
#  file: ${CLBLAS_ROOT}/clBLAS-build/*.tar.gz
#  file_glob: true
#  on:
#    all_branches: true
#    tags: true

{'fraction_non_alphanumeric': 0.11383315733896515, 'fraction_numerical': 0.0249208025343189, 'mean_word_length': 2.920115894039735, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, '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': '1713990', 'n_tokens_mistral': 3544, 'n_tokens_neox': 3245, 'n_words': 985}