<commit_before>#!/bin/bash

# @file    CI/travis/install_dependencies.sh
# @date    nov. 2015
# @author  PhRG / opticalp.fr
# @license MIT
#
# Install dependencies:  
#  - Poco, check POCO_BUILD to install either from source or from packages
#


# exit as soon as a line fails, and print lines before executing it
set -ev

CURRENT_DIR=$(pwd)
# echo "current dir is $CURRENT_DIR"

# test if poco has to be built
if [ $BUILD_POCO == true ]
then
    echo "BUILD_POCO option active"

    echo "updating cmake to 3.0.0 (3.0.0 required for poco build) "
    CMAKE_VERSION_MAJOR_MINOR="3.0"
    CMAKE_VERSION_PATCH="0"
    CMAKE_VERSION="${CMAKE_VERSION_MAJOR_MINOR}.${CMAKE_VERSION_PATCH}"
    wget -V
    echo "as soon as wget is 1.13, we should disable certificate checking"

    if [ "$TRAVIS_OS_NAME" == "linux" ]
    then 
        echo "Linux: getting directly recent CMake binaries..."
        wget --no-check-certificate "https://www.cmake.org/files/v${CMAKE_VERSION_MAJOR_MINOR}/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz"
        tar -xzvf cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz
        mkdir bin
        mv cmake-${CMAKE_VERSION}-Linux-x86_64/* bin/
        rmdir cmake-${CMAKE_VERSION}-Linux-x86_64
    else<commit_msg>The x86-64 binary version of cmake is only available since 3.1<commit_after>#!/bin/bash

# @file    CI/travis/install_dependencies.sh
# @date    nov. 2015
# @author  PhRG / opticalp.fr
# @license MIT
#
# Install dependencies:  
#  - Poco, check POCO_BUILD to install either from source or from packages
#


# exit as soon as a line fails, and print lines before executing it
set -ev

CURRENT_DIR=$(pwd)
# echo "current dir is $CURRENT_DIR"

# test if poco has to be built
if [ $BUILD_POCO == true ]
then
    echo "BUILD_POCO option active"

    echo "updating cmake to 3.1.0 (3.0.0 required for poco build) "
    CMAKE_VERSION_MAJOR_MINOR="3.1"
    CMAKE_VERSION_PATCH="0"
    CMAKE_VERSION="${CMAKE_VERSION_MAJOR_MINOR}.${CMAKE_VERSION_PATCH}"
    wget -V
    echo "as soon as wget is 1.13, we should disable certificate checking"

    if [ "$TRAVIS_OS_NAME" == "linux" ]
    then 
        echo "Linux: getting directly recent CMake binaries..."
        wget --no-check-certificate "https://www.cmake.org/files/v${CMAKE_VERSION_MAJOR_MINOR}/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz"
        tar -xzvf cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz
        mkdir bin
        mv cmake-${CMAKE_VERSION}-Linux-x86_64/* bin/
        rmdir cmake-${CMAKE_VERSION}-Linux-x86_64
    else
{'fraction_non_alphanumeric': 0.11337325349301397, 'fraction_numerical': 0.027944111776447105, 'mean_word_length': 3.2546689303904923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2993368', 'n_tokens_mistral': 974, 'n_tokens_neox': 890, 'n_words': 233}