<commit_before>#!/bin/bash

echo "Setting up smartsettia"

sudo apt update
#https://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/
sudo apt install  python-pip
sudo apt install --upgrade pip
sudo apt install --upgrade vertualenv


echo "Installing dependencies"
sudo pip install schedule

echo "Done"<commit_msg>Added sudo checker & ramdisk to setup script<commit_after>#!/bin/bash

# get root permission
if [ $EUID != 0 ]; then
    sudo "$0" "$@"
    exit $?
fi

echo "Setting up smartsettia"

apt update
#https://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/
apt install  python-pip -y
apt install --upgrade pip
apt install --upgrade vertualenv


echo -e "\nInstalling dependencies"
pip install schedule

echo -e "\nSetting up ramdisk for pictures (disabled atm)"
apt install tmpfs -y    #install the ramdisk software
mkdir -p /mnt/ramdisk   #make the mount directory
MOUNTCODE="tmpfs       /mnt/ramdisk tmpfs   nodev,nosuid,noexec,nodiratime,size=11M   0 0"
#check if fstab already has this line. if not add it.
grep -q -F "$MOUNTCODE" /etc/fstab || echo "$MOUNTCODE" >> /etc/fstab
mount -a               # mount the ramdisk

echo -e "\nDone"
{'fraction_non_alphanumeric': 0.11082474226804123, 'fraction_numerical': 0.015463917525773196, 'mean_word_length': 3.6047430830039526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '326145', 'n_tokens_mistral': 425, 'n_tokens_neox': 382, 'n_words': 132}