<commit_before>#!/bin/bash -e
# Installs requirements for PDAL
source ./scripts/ci/common.sh

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
sudo apt-get update -y
sudo apt-get install software-properties-common -y
sudo apt-get install python-software-properties -y
# sudo add-apt-repository ppa:ubuntugis/ppa -y
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
if [[ $PDAL_EMBED_BOOST == "OFF" ]]
then
    sudo add-apt-repository ppa:boost-latest/ppa -y
fi
sudo apt-get update -qq

# Install g++-4.8 (even if we're building clang) for updated libstdc++
sudo apt-get install g++-4.8

if [[ $PDAL_EMBED_BOOST == "OFF" ]]
then
    sudo apt-get install boost1.55
fi

if [[ $PDAL_CMAKE_GENERATOR == "Ninja" ]]
then
    # Need newer cmake for Ninja generator
    wget http://www.cmake.org/files/v2.8/cmake-2.8.12.2.tar.gz
    tar -xzf cmake-2.8.12.2.tar.gz
    cd cmake-2.8.12.2
    ./bootstrap
    make
    sudo make install
    cd ..

    git clone https://github.com/martine/ninja.git
    cd ninja
    git checkout release
    ./bootstrap.py
    sudo ln -s "$PWD/ninja" /usr/local/bin/ninja
    cd ..
else
    sudo apt-get install cmake
fi

if [[ $PDAL_OPTIONAL_COMPONENTS == "all" ]]
then
    sudo apt-get install \
        libgdal1h \
        libproj-dev \
        python-numpy \
        libxml2-dev \
        libflann-dev \
        libtiff4-dev         

    # install libgeotiff from sources
    wget http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.4.0.tar.gz
    tar -xzf libgeotiff-1.4.0.tar.gz
    cd libgeotiff-1.4.0
    ./configure --prefix=/usr && make && sudo make install
    cd $TRAVIS_BUILD_DIR<commit_msg>more travis<commit_after>#!/bin/bash -e
# Installs requirements for PDAL
source ./scripts/ci/common.sh

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
sudo apt-get update -y
sudo apt-get install software-properties-common -y
sudo apt-get install python-software-properties -y
# sudo add-apt-repository ppa:ubuntugis/ppa -y
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
if [[ $PDAL_EMBED_BOOST == "OFF" ]]
then
    sudo add-apt-repository ppa:boost-latest/ppa -y
fi
sudo apt-get update -qq

# Install g++-4.8 (even if we're building clang) for updated libstdc++
sudo apt-get install g++-4.8

if [[ $PDAL_EMBED_BOOST == "OFF" ]]
then
    sudo apt-get install boost1.55
fi

if [[ $PDAL_CMAKE_GENERATOR == "Ninja" ]]
then
    # Need newer cmake for Ninja generator
    wget http://www.cmake.org/files/v2.8/cmake-2.8.12.2.tar.gz
    tar -xzf cmake-2.8.12.2.tar.gz
    cd cmake-2.8.12.2
    ./bootstrap
    make
    sudo make install
    cd ..

    git clone https://github.com/martine/ninja.git
    cd ninja
    git checkout release
    ./bootstrap.py
    sudo ln -s "$PWD/ninja" /usr/local/bin/ninja
    cd ..
else
    sudo apt-get install cmake
fi

if [[ $PDAL_OPTIONAL_COMPONENTS == "all" ]]
then
    sudo apt-get install \
        libgdal1h libgdal1h-dev \
        libproj-dev \
        python-numpy \
        libxml2-dev \
        libflann-dev \
        libtiff4-dev         

    # install libgeotiff from sources
    wget http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.4.0.tar.gz
    tar -xzf libgeotiff-1.4.0.tar.gz
    cd libgeotiff-1.4.0
    ./configure --prefix=/usr && make && sudo make install
    cd $TRAVIS_BUILD_DIR
{'fraction_non_alphanumeric': 0.12211316397228637, 'fraction_numerical': 0.02800230946882217, 'mean_word_length': 2.601871101871102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2985690', 'n_tokens_mistral': 1412, 'n_tokens_neox': 1301, 'n_words': 307}