<commit_before>#!/bin/bash
set -e

sudo apt install g++ make libncurses-dev

cver=3.9.1

wd=/tmp
wget -nc -P $wd https://cmake.org/files/v${cver:0:3}/cmake-$cver.tar.gz

(
cd $wd

tar -xf cmake-$cver.tar.gz

if [[ $# -ge 1 ]]; then
    echo "installing cmake to $1"
    ./cmake-$cver/bootstrap --prefix=$1
else
    echo "installing cmake to default location"
    ./cmake-$cver/bootstrap
fi

make -j4

[[ `make install` ]] && sudo make install
)

echo "reopen a new terminal to use CMake $cver"

[[ -z $INSTALL_DIR ]] && echo " you may wish to add $INSTALL_DIR to your PATH"
<commit_msg>cmake version 3.10<commit_after>#!/bin/bash
set -e

sudo apt install g++ make libncurses-dev

cver=3.10.0-rc1

wd=/tmp
wget -nc -P $wd https://cmake.org/files/v${cver:0:4}/cmake-$cver.tar.gz

(
cd $wd

tar -xf cmake-$cver.tar.gz

if [[ $# -ge 1 ]]; then
    echo "installing cmake to $1"
    ./cmake-$cver/bootstrap --prefix=$1
else
    echo "installing cmake to default location"
    ./cmake-$cver/bootstrap
fi

make -j4

[[ `make install` ]] && sudo make install
)

echo "reopen a new terminal to use CMake $cver"

[[ -z $INSTALL_DIR ]] && echo " you may wish to add $INSTALL_DIR to your PATH"

{'fraction_non_alphanumeric': 0.15905245346869712, 'fraction_numerical': 0.0194585448392555, 'mean_word_length': 3.093425605536332, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2704281', 'n_tokens_mistral': 496, 'n_tokens_neox': 474, 'n_words': 140}