<commit_before>#!/bin/bash

set -e

echo
echo "========================================"
echo "Host adding PPAs"
echo "----------------------------------------"
sudo apt-add-repository 'ppa:ubuntu-toolchain-r/test'
echo "----------------------------------------"

echo
echo "========================================"
echo "Host updating packages"
echo "----------------------------------------"
sudo apt-get update
echo "----------------------------------------"

echo
echo "========================================"
echo "Host install packages"
echo "----------------------------------------"
sudo apt-get install -y \
        ant \
        bash \
        build-essential \
        cmake \
        coreutils \
        default-jre \
        git \
        google-perftools \
        libgoogle-perftools-dev \
        make \
        pkg-config \
        python3 \
        python3-dev \
        swig \
        tclsh \
        uuid-dev \


sudo apt-get install -y \
	gcc-7 \
	libgcc-7-dev \


sudo update-alternatives --remove-all gcc || true
sudo update-alternatives --remove-all g++ || true
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 10

sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++

<commit_msg>kokoro: Add GNU C++ compiler.<commit_after>#!/bin/bash

set -e

echo
echo "========================================"
echo "Host adding PPAs"
echo "----------------------------------------"
sudo apt-add-repository 'ppa:ubuntu-toolchain-r/test'
echo "----------------------------------------"

echo
echo "========================================"
echo "Host updating packages"
echo "----------------------------------------"
sudo apt-get update
echo "----------------------------------------"

echo
echo "========================================"
echo "Host install packages"
echo "----------------------------------------"
sudo apt-get install -y \
        ant \
        bash \
        build-essential \
        cmake \
        coreutils \
        default-jre \
        git \
        google-perftools \
        libgoogle-perftools-dev \
        make \
        pkg-config \
        python3 \
        python3-dev \
        swig \
        tclsh \
        uuid-dev \


sudo apt-get install -y \
	g++-7 \
	gcc-7 \
	libgcc-7-dev \


sudo update-alternatives --remove-all gcc || true
sudo update-alternatives --remove-all g++ || true
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 10

sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++


{'fraction_non_alphanumeric': 0.321993937352644, 'fraction_numerical': 0.009767598518019536, 'mean_word_length': 1.544987146529563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6938575', 'n_tokens_mistral': 894, 'n_tokens_neox': 813, 'n_words': 217}