<commit_before>sudo: true
dist: trusty
language: c

compiler:
  - clang
  
os:
  - linux

env:
  - TOOLCHAIN="swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a"
  
before_install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
        sudo apt-get install -y clang-3.6 libicu-dev;
        sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100;
        sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100;
    fi

install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 
        wget https://swift.org/builds/development/xcode/${TOOLCHAIN}/${TOOLCHAIN}-osx.pkg;
        sudo installer -pkg ${TRAVIS_BUILD_DIR}/${TOOLCHAIN}-osx.pkg -target ${TRAVIS_BUILD_DIR};
        export PATH=${TRAVIS_BUILD_DIR}/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PATH}";
    fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
        wget https://swift.org/builds/development/ubuntu1404/${TOOLCHAIN}/${TOOLCHAIN}-ubuntu14.04.tar.gz;
        tar xzf ${TOOLCHAIN}-ubuntu14.04.tar.gz;
        export PATH=${TRAVIS_BUILD_DIR}/${TOOLCHAIN}-ubuntu14.04/usr/bin:"${PATH}";
    fi

script:
  - swift build
<commit_msg>add travis osx build<commit_after>sudo: true
dist: trusty
language: c

compiler:
  - clang
  
os:
  - linux
  - osx

osx_image: xcode7.3

env:
  - TOOLCHAIN="swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a"
  
before_install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
        sudo apt-get install -y clang-3.6 libicu-dev;
        sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100;
        sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100;
    fi

install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 
        wget https://swift.org/builds/development/xcode/${TOOLCHAIN}/${TOOLCHAIN}-osx.pkg;
        pkgutil --expand ${TRAVIS_BUILD_DIR}/${TOOLCHAIN}-osx.pkg ${TRAVIS_BUILD_DIR}/${TOOLCHAIN}-osx.unpkg;
        cat ${TRAVIS_BUILD_DIR}/${TOOLCHAIN}-osx.unpkg/${TOOLCHAIN}-osx-package.pkg/Payload | gunzip -dc |cpio -i;
        export PATH=${TRAVIS_BUILD_DIR}/usr/bin:"${PATH}";
    fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
        wget https://swift.org/builds/development/ubuntu1404/${TOOLCHAIN}/${TOOLCHAIN}-ubuntu14.04.tar.gz;
        tar xzf ${TOOLCHAIN}-ubuntu14.04.tar.gz;
        export PATH=${TRAVIS_BUILD_DIR}/${TOOLCHAIN}-ubuntu14.04/usr/bin:"${PATH}";
    fi

script:
  - swift build

{'fraction_non_alphanumeric': 0.17428924598269468, 'fraction_numerical': 0.030490317264112072, 'mean_word_length': 3.122241086587436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4113024', 'n_tokens_mistral': 1052, 'n_tokens_neox': 952, 'n_words': 148}