<commit_before>#!/bin/bash

# running this on the Turnkey Rails image (http://www.turnkeylinux.org/rails)
# sets up cyber-dojo as the default rails server,
# installs all the necessary gems
# and also installs docker.

echo this will take a while...
cd /var/www
rm index.html
rm -rf railsapp
cd /etc/apache2/sites-available
sed s/railsapp/cyberdojo/ <railsapp >cyberdojo
rm railsapp
cd /etc/apache2/sites-enabled
ln -s ../sites-available/cyberdojo cyberdojo
rm railsapp
cd /etc/apache2/conf
sed s/railsapp/cyberdojo/ <railsapp.conf >cyberdojo.conf
rm railsapp.conf
cd /var/www/cyberdojo/admin_scripts
./pull.sh
echo "deb http://get.docker.io/ubuntu docker main" > /etc/apt/sources.list.d/docker.list
wget -qO- https://get.docker.io/gpg | apt-key add -
apt-get update
apt-get -y install lxc-docker
groupadd docker
gpasswd -a www-data docker
<commit_msg>Fix for docker setup script to use new 'cyber-dojo' directory name<commit_after>#!/bin/bash

# running this on the Turnkey Rails image (http://www.turnkeylinux.org/rails)
# sets up cyber-dojo as the default rails server,
# installs all the necessary gems
# and also installs docker.

echo this will take a while...
cd /var/www
rm index.html
rm -rf railsapp
cd /etc/apache2/sites-available
sed s/railsapp/cyberdojo/ <railsapp >cyberdojo
rm railsapp
cd /etc/apache2/sites-enabled
ln -s ../sites-available/cyberdojo cyberdojo
rm railsapp
cd /etc/apache2/conf
sed s/railsapp/cyber-dojo/ <railsapp.conf >cyberdojo.conf
rm railsapp.conf
cd /var/www/cyber-dojo/admin_scripts
./pull.sh
echo "deb http://get.docker.io/ubuntu docker main" > /etc/apt/sources.list.d/docker.list
wget -qO- https://get.docker.io/gpg | apt-key add -
apt-get update
apt-get -y install lxc-docker
groupadd docker
gpasswd -a www-data docker

{'fraction_non_alphanumeric': 0.11540648095508811, 'fraction_numerical': 0.0034110289937464467, 'mean_word_length': 3.861878453038674, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, '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': '4315190', 'n_tokens_mistral': 684, 'n_tokens_neox': 626, 'n_words': 188}