<commit_before>#!/usr/bin/env bash

# Referenced the following URLs:
#	https://stackoverflow.com/questions/39089698/how-to-install-python-3-5-on-raspbian-jessie#40187307
# 	https://liudr.wordpress.com/2016/02/04/install-python-on-raspberry-pi-or-debian/
# 	http://wyre-it.co.uk/blog/latestpython/

set -e

RELEASE=3.6.2

sudo apt-get update
sudo apt-get install build-essential tk-dev libc6-dev
sudo apt-get install libncurses5-dev libncursesw5-dev libreadline6-dev
sudo apt-get install libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev
sudo apt-get install libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev
wget https://www.python.org/ftp/python/${RELEASE}/Python-${RELEASE}.tgz
tar -zxvf Python-${RELEASE}.tgz
cd Python-${RELEASE}
./configure --prefix=/usr/local/opt/python-${RELEASE}
# NOTE: builds fail randomly when using -j option, so we have to build one
# thing at a time
make
sudo make install
<commit_msg>Install packages without requiring user feedback<commit_after>#!/usr/bin/env bash

# Referenced the following URLs:
#	https://stackoverflow.com/questions/39089698/how-to-install-python-3-5-on-raspbian-jessie#40187307
# 	https://liudr.wordpress.com/2016/02/04/install-python-on-raspberry-pi-or-debian/
# 	http://wyre-it.co.uk/blog/latestpython/

set -e

RELEASE=3.6.2

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y \
    build-essential \
    tk-dev \
    libc6-dev \
    libncurses5-dev \
    libncursesw5-dev \
    libreadline6-dev \
    libdb5.3-dev \
    libgdbm-dev \
    libsqlite3-dev \
    libssl-dev \
    libbz2-dev \
    libexpat1-dev \
    liblzma-dev \
    zlib1g-dev
wget https://www.python.org/ftp/python/${RELEASE}/Python-${RELEASE}.tgz
tar -zxvf Python-${RELEASE}.tgz
cd Python-${RELEASE}
./configure --prefix=/usr/local/opt/python-${RELEASE}
# NOTE: builds fail randomly when using -j option, so we have to build one
# thing at a time
make
sudo make install

{'fraction_non_alphanumeric': 0.1360544217687075, 'fraction_numerical': 0.04081632653061224, 'mean_word_length': 3.467289719626168, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '6253118', 'n_tokens_mistral': 792, 'n_tokens_neox': 710, 'n_words': 145}