<commit_before>#!/usr/bin/env bash
source ../shell/.function

if is-macos && can-brew; then
  # Use Homebrew on Mac
  brew install python python3 pyenv pyenv-virtualenv pyenv-virtualenvwrapper
elif is-executable apt && can-sudo; then
  # Use native packages on debian systems (for now)
  sudo apt install -y python python3 python-pip virtualenv virtualenvwrapper
fi<commit_msg>Updated python installer.<commit_after>#!/usr/bin/env bash
source ../shell/.function

if is-macos; then
  if ! can-brew; then
    source ./brew.sh
  fi
  # Use Homebrew on Mac
  brew install python python@2
elif is-executable apt && can-sudo; then
  # Use native packages on debian systems (for now)
  sudo apt install -y python python3 python-pip virtualenv virtualenvwrapper
fi
{'fraction_non_alphanumeric': 0.08597883597883597, 'fraction_numerical': 0.005291005291005291, 'mean_word_length': 3.8838709677419354, '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': '5170640', 'n_tokens_mistral': 239, 'n_tokens_neox': 223, 'n_words': 87}