<commit_before>#!/bin/bash

#
# This script will create the Docker container that will be used
# by ipynbsrv as the MySQL server.
#
# last updated: 19.12.2014
#

if [ "$EUID" -ne 0 ]; then
  echo "This script must be executed as root user."
  exit 1
fi

CT_NAME="ipynbsrv.mysql"

echo "------------------------------------------------------------"
echo "Pulling the MySQL server image..."
echo "------------------------------------------------------------"
sleep 2

docker pull mysql

echo "------------------------------------------------------------"
echo "Please define the MySQL server passwords now..."
echo "------------------------------------------------------------"
sleep 2

read -p "New root password: " ROOT_PASSWORD
read -p "New ipynbsrv password: " PASSWORD

echo "------------------------------------------------------------"
echo "Creating the container..."
echo "------------------------------------------------------------"
sleep 2

docker run \
    --name "${CT_NAME}" \
    -v /srv/ipynbsrv/mysql:/var/lib/mysql \
    -e MYSQL_ROOT_PASSWORD="{<PASSWORD>}" \
    -e MYSQL_USER="ipynbsrv" \
    -e MYSQL_PASSWORD="{PASSWORD}" \
    -e MYSQL_DATABASE="ipynbsrv_wui" \
    -d mysql:5.5

echo "------------------------------------------------------------"
echo "All done!"
echo "------------------------------------------------------------"<commit_msg>fix variable interpolation<commit_after>#!/bin/bash

#
# This script will create the Docker container that will be used
# by ipynbsrv as the MySQL server.
#
# last updated: 19.12.2014
#

if [ "$EUID" -ne 0 ]; then
  echo "This script must be executed as root user."
  exit 1
fi

CT_NAME="ipynbsrv.mysql"

echo "------------------------------------------------------------"
echo "Pulling the MySQL server image..."
echo "------------------------------------------------------------"
sleep 2

docker pull mysql

echo "------------------------------------------------------------"
echo "Please define the MySQL server passwords now..."
echo "------------------------------------------------------------"
sleep 2

read -p "New root password: " ROOT_PASSWORD
read -p "New ipynbsrv password: " PASSWORD

echo "------------------------------------------------------------"
echo "Creating the container..."
echo "------------------------------------------------------------"
sleep 2

docker run \
    --name "${CT_NAME}" \
    -v /srv/ipynbsrv/mysql:/var/lib/mysql \
    -e MYSQL_ROOT_PASSWORD="${<PASSWORD>}" \
    -e MYSQL_USER="ipynbsrv" \
    -e MYSQL_PASSWORD="${PASSWORD}" \
    -e MYSQL_DATABASE="ipynbsrv_wui" \
    -d mysql:5.5

echo "------------------------------------------------------------"
echo "All done!"
echo "------------------------------------------------------------"
{'fraction_non_alphanumeric': 0.4372499090578392, 'fraction_numerical': 0.010913059294288832, 'mean_word_length': 0.9826964671953857, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6180998', 'n_tokens_mistral': 708, 'n_tokens_neox': 666, 'n_words': 212}