<commit_before>#!/bin/bash
TARGET=/usr/local/
CONFIG=/etc/doorkarma/

echo "Welcome to the installer for the door karma server!"
read -p "We will now begin the installation, press C-c now to cancel or [ENTER] to procede"

echo "I need root privileges to install..."
sudo apt-get update
sudo apt-get install -y mysql-server phpmyadmin python python-mysqldb python-flask

echo "Now I will copy the files into the target folder($TARGET))"
sudo mkdir -p $TARGET
sudo cp src/*.py $TARGET

echo "Now I will copy the config data into place ($CONFIG)"
sudo mkdir -p $CONFIG
sudo cp src/*.json $CONFIG

echo "Now I will link the init script in."
sudo ln -s /etc/init.d/doorKarma $TARGET/doorKarma.py

echo "Now I will start the service."
/etc/init.d/doorKarma start<commit_msg>fixed issues with the installer<commit_after>#!/bin/bash
TARGET=/usr/local/
CONFIG=/etc/doorkarma/

echo "Welcome to the installer for the door karma server!"
read -p "We will now begin the installation, press C-c now to cancel or [ENTER] to procede"

echo "I need root privileges to install..."
sudo apt-get update
sudo apt-get install -y mysql-server phpmyadmin python python-mysqldb python-flask

echo "Now I will copy the files into the target folder($TARGET))"
sudo mkdir -pv $TARGET
sudo cp -v ../src/*.py $TARGET

echo "Now I will copy the config data into place ($CONFIG)"
sudo mkdir -pv $CONFIG
sudo cp -v ../src/*.json $CONFIG

echo "Now I will link the init script in."
sudo ln -s $TARGET/doorKarma.py /etc/init.d/doorKarma

echo "Now I will start the service."
/etc/init.d/doorKarma start
{'fraction_non_alphanumeric': 0.10331632653061225, 'fraction_numerical': 0.0, 'mean_word_length': 3.8878504672897196, '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': '2532048', 'n_tokens_mistral': 534, 'n_tokens_neox': 490, 'n_words': 225}