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

# Add ability to add repositories
sudo apt-get update
sudo apt-get install -y software-properties-common

# Add Ansible repository and base items
sudo add-apt-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible

# Add some Python requirements
## sudo pip install pyyaml<commit_msg>added locale and swap file setup to base image<commit_after>#!/usr/bin/env bash

# Add ability to add repositories
sudo apt-get update
sudo apt-get install -y software-properties-common

# Add Ansible repository and base items
sudo add-apt-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible

# Charset/Locale
sudo locale-gen C.UTF-8
export LANG=C.UTF-8
echo "export LANG=C.UTF-8" >> /home/vagrant/.bashrc

# Swap
sudo fallocate -l 512M /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo "/swapfile   none    swap    sw    0   0" | sudo tee -a /etc/fstab
printf "vm.swappiness=10\nvm.vfs_cache_pressure=50" | sudo tee -a /etc/sysctl.conf && sysctl -p

# Ansible.cfg file?

# Add some Python requirements
## sudo pip install pyyaml
{'fraction_non_alphanumeric': 0.08626760563380281, 'fraction_numerical': 0.013204225352112676, 'mean_word_length': 4.053333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6368158', 'n_tokens_mistral': 407, 'n_tokens_neox': 366, 'n_words': 132}