<commit_before>#!/bin/bash
set -o errexit
set –o nounset # Displays an error and exits from a shell script when you use an unset variable in an interactive shell. The default is to display a null value for an unset variable.

# packages are installed with debootstrap
# additional packages are installed later on with apt-get
packages="ssh,curl,iputils-ping,iputils-tracepath,telnet,vim,rsync"
required_packages="ubuntu-standard ubuntu-minimal htop ldap-auth-client git net-tools aptitude apache2 php5 libapache2-mod-php5 php5-cgi ruby screen fish sudo emacs mc iotop iftop nodejs ldap-utils software-properties-common libgd2-xpm"
additional_packages="erlang ghc swi-prolog clisp ruby-dev ri rake python mercurial subversion cvs bzr default-jdk"
suite=$(lsb_release -cs)
variant="buildd"
vmroot_name=$(date +%d_%m_%Y)"_base"
basedir="/var/lib/lxc/$vmroot_name"
target="$basedir/rootfs"
VM_upstart="/etc/init" # Will be executed inside lxc-attach
mirror="http://apt-mirror.koding.com/ubuntu/"

if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root" 1>&2
   exit 1
fi

mkdir -p $basedir

cp vmroot-config $basedir/config
/bin/sed -i "s!MY_DIR!$vmroot_name!" $basedir/config

id vmroot >> /dev/null 2>&1
if [[ "$?" -ne 0 ]]; then
  groupadd -g 500000 vmroot
  useradd -u 500000 -g 500000 -s /bin/bash --home $target --comment "VM root user" vmroot
fi<commit_msg>Use raring<commit_after>#!/bin/bash
set -o errexit
set –o nounset # Displays an error and exits from a shell script when you use an unset variable in an interactive shell. The default is to display a null value for an unset variable.

# packages are installed with debootstrap
# additional packages are installed later on with apt-get
packages="ssh,curl,iputils-ping,iputils-tracepath,telnet,vim,rsync"
required_packages="ubuntu-standard ubuntu-minimal htop ldap-auth-client git net-tools aptitude apache2 php5 libapache2-mod-php5 php5-cgi ruby screen fish sudo emacs mc iotop iftop nodejs ldap-utils software-properties-common libgd2-xpm"
additional_packages="erlang ghc swi-prolog clisp ruby-dev ri rake python mercurial subversion cvs bzr default-jdk"
suite="raring"
variant="buildd"
vmroot_name=$(date +%d_%m_%Y)"_base"
basedir="/var/lib/lxc/$vmroot_name"
target="$basedir/rootfs"
VM_upstart="/etc/init" # Will be executed inside lxc-attach
mirror="http://apt-mirror.koding.com/ubuntu/"

if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root" 1>&2
   exit 1
fi

mkdir -p $basedir

cp vmroot-config $basedir/config
/bin/sed -i "s!MY_DIR!$vmroot_name!" $basedir/config

id vmroot >> /dev/null 2>&1
if [[ "$?" -ne 0 ]]; then
  groupadd -g 500000 vmroot
  useradd -u 500000 -g 500000 -s /bin/bash --home $target --comment "VM root user" vmroot
fi
{'fraction_non_alphanumeric': 0.11050128064398097, 'fraction_numerical': 0.022685693377241127, 'mean_word_length': 4.695833333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1899726', 'n_tokens_mistral': 1015, 'n_tokens_neox': 930, 'n_words': 311}