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

###############################################################################
#                                 python                                      #
###############################################################################

# Ask for the administrator password upfront.
sudo -v

# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &

if test ! $(which brew); then
    echo "Installing homebrew"
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

echo -e "\n\nInstalling python enviroment"
echo "=============================="
brew update
brew install python3

brew tap caskroom/versions
brew cask install pycharm-ce
brew cask install anaconda

packages=(
    livestreamer
    peewee
    requests
    bpython
    streamlink
)
for package in "${packages[@]}"; do
	pip install "${packages[@]}"  #Didn't work on first go
done

# Remove outdated versions from the cellar.
brew cleanup<commit_msg>added btpython<commit_after>#!/usr/bin/env bash

###############################################################################
#                                 python                                      #
###############################################################################

# Ask for the administrator password upfront.
sudo -v

# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &

if test ! $(which brew); then
    echo "Installing homebrew"
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

echo -e "\n\nInstalling python enviroment"
echo "=============================="
brew update
brew install python3

brew tap caskroom/versions
brew cask install pycharm-ce
brew cask install anaconda

packages=(
    livestreamer
    peewee
    requests
    bpython
    ptpython
    streamlink
)
for package in "${packages[@]}"; do
	pip install "${packages[@]}"  #Didn't work on first go
done

# Remove outdated versions from the cellar.
brew cleanup
{'fraction_non_alphanumeric': 0.25271739130434784, 'fraction_numerical': 0.004528985507246377, 'mean_word_length': 3.4446680080482897, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '302904', 'n_tokens_mistral': 613, 'n_tokens_neox': 564, 'n_words': 199}