<commit_before>#!/bin/bash
#
# Setup the the box. This runs as root

apt-get -y update
apt-get -y install curl
apt-get -y install git
apt-get -y install apt-file
apt-file update
apt-get -y install software-properties-common
# You can install anything you need here.

apt-get -y update
apt-get -y upgrade

ulimit -n 65536
echo "* soft nofile 65536" >> /etc/security/limits.conf
echo "* hard nofile 65536" >> /etc/security/limits.conf

apt-add-repository ppa:webupd8team/java -y && apt-get update
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
apt-get install -y oracle-java8-installer

curl -s https://packagecloud.io/install/repositories/zetaops/riak/script.deb.sh |sudo bash
apt-get install riak=2.1.1-1

sed -i "s/search = off/search = on/" /etc/riak/riak.conf

service riak restart

apt-get install -y libssl-dev
apt-get install -y libffi-dev


apt-get install -y redis-server

apt-get install -y  apt-transport-https
curl -s https://zato.io/repo/zato-0CBD7F72.pgp.asc | sudo apt-key add -
apt-add-repository https://zato.io/repo/stable/2.0/ubuntu
apt-get update
apt-get install -y zato

sudo su - zato sh -c "
mkdir ~/ulakbus;

zato quickstart create ~/ulakbus sqlite localhost 6379 --kvdb_password='' --verbose;

echo 'command=update_password
path=/opt/zato/ulakbus/web-admin
store_config=True
username=admin
password=<PASSWORD>' > ~/ulakbus/zatopw.conf

zato from-config ~/ulakbus/zatopw.conf
"

apt-get install -y virtualenvwrapper

mkdir /app
/usr/sbin/useradd --home-dir /app --shell /bin/bash --comment 'ulakbus operations' ulakbus

chown ulakbus:ulakbus /app -Rf

echo "export PYOKO_SETTINGS='ulakbus.settings'" >> /etc/profile

sudo su - ulakbus sh -c "
cd ~

virtualenv --no-site-packages env
source env/bin/activate

pip install --upgrade pip
pip install ipython


pip install riak
pip install enum34
pip install six

pip install git+https://github.com/zetaops/pyoko.git

pip install falcon
pip install beaker
pip install redis
pip install git+https://github.com/didip/beaker_extensions.git#egg=beaker_extensions
pip install git+https://github.com/zetaops/SpiffWorkflow.git#egg=SpiffWorkflow
pip install git+https://github.com/zetaops/zengine.git#egg=zengine

# install ulakbus dev
git clone https://github.com/zetaops/ulakbus.git
git clone https://github.com/zetaops/ulakbus-ui.git

echo '/app/ulakbus' >> /app/env/lib/python2.7/site-packages/ulakbus.pth
echo '/app/ulakbus-ui' >> /app/env/lib/python2.7/site-packages/ulakbus-ui.pth


cd ~/env/local/lib/python2.7/site-packages/pyoko/db
wget https://raw.githubusercontent.com/zetaops/pyoko/master/pyoko/db/solr_schema_template.xml

"

ln -s /app/pyoko/pyoko /opt/zato/2.0.5/zato_extra_paths/
ln -s /app/env/lib/python2.7/site-packages/riak /opt/zato/2.0.5/zato_extra_paths/
ln -s /app/env/lib/python2.7/site-packages/riak_pb /opt/zato/2.0.5/zato_extra_paths/
ln -s /app/env/lib/python2.7/site-packages/google /opt/zato/2.0.5/zato_extra_paths/
ln -s /app/env/lib/python2.7/site-packages/passlib /opt/zato/2.0.5/zato_extra_paths/
<commit_msg>added passlib library<commit_after>#!/bin/bash
#
# Setup the the box. This runs as root

apt-get -y update
apt-get -y install curl
apt-get -y install git
apt-get -y install apt-file
apt-file update
apt-get -y install software-properties-common
# You can install anything you need here.

apt-get -y update
apt-get -y upgrade

ulimit -n 65536
echo "* soft nofile 65536" >> /etc/security/limits.conf
echo "* hard nofile 65536" >> /etc/security/limits.conf

apt-add-repository ppa:webupd8team/java -y && apt-get update
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
apt-get install -y oracle-java8-installer

curl -s https://packagecloud.io/install/repositories/zetaops/riak/script.deb.sh |sudo bash
apt-get install riak=2.1.1-1

sed -i "s/search = off/search = on/" /etc/riak/riak.conf

service riak restart

apt-get install -y libssl-dev
apt-get install -y libffi-dev


apt-get install -y redis-server

apt-get install -y  apt-transport-https
curl -s https://zato.io/repo/zato-0CBD7F72.pgp.asc | sudo apt-key add -
apt-add-repository https://zato.io/repo/stable/2.0/ubuntu
apt-get update
apt-get install -y zato

sudo su - zato sh -c "
mkdir ~/ulakbus;

zato quickstart create ~/ulakbus sqlite localhost 6379 --kvdb_password='' --verbose;

echo 'command=update_password
path=/opt/zato/ulakbus/web-admin
store_config=True
username=admin
password=<PASSWORD>' > ~/ulakbus/zatopw.conf

zato from-config ~/ulakbus/zatopw.conf
"

apt-get install -y virtualenvwrapper

mkdir /app
/usr/sbin/useradd --home-dir /app --shell /bin/bash --comment 'ulakbus operations' ulakbus

chown ulakbus:ulakbus /app -Rf

echo "export PYOKO_SETTINGS='ulakbus.settings'" >> /etc/profile

sudo su - ulakbus sh -c "
cd ~

virtualenv --no-site-packages env
source env/bin/activate

pip install --upgrade pip
pip install ipython


pip install riak
pip install enum34
pip install six

pip install git+https://github.com/zetaops/pyoko.git

pip install falcon
pip install beaker
pip install redis
pip install passlib
pip install git+https://github.com/didip/beaker_extensions.git#egg=beaker_extensions
pip install git+https://github.com/zetaops/SpiffWorkflow.git#egg=SpiffWorkflow
pip install git+https://github.com/zetaops/zengine.git#egg=zengine

# install ulakbus dev
git clone https://github.com/zetaops/ulakbus.git
git clone https://github.com/zetaops/ulakbus-ui.git

echo '/app/ulakbus' >> /app/env/lib/python2.7/site-packages/ulakbus.pth
echo '/app/ulakbus-ui' >> /app/env/lib/python2.7/site-packages/ulakbus-ui.pth


cd ~/env/local/lib/python2.7/site-packages/pyoko/db
wget https://raw.githubusercontent.com/zetaops/pyoko/master/pyoko/db/solr_schema_template.xml

"

ln -s /app/pyoko/pyoko /opt/zato/2.0.5/zato_extra_paths/
ln -s /app/env/lib/python2.7/site-packages/riak /opt/zato/2.0.5/zato_extra_paths/
ln -s /app/env/lib/python2.7/site-packages/riak_pb /opt/zato/2.0.5/zato_extra_paths/
ln -s /app/env/lib/python2.7/site-packages/google /opt/zato/2.0.5/zato_extra_paths/
ln -s /app/env/lib/python2.7/site-packages/passlib /opt/zato/2.0.5/zato_extra_paths/

{'fraction_non_alphanumeric': 0.1336794289422453, 'fraction_numerical': 0.02109020116807268, 'mean_word_length': 3.8619873817034702, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5061643', 'n_tokens_mistral': 2472, 'n_tokens_neox': 2354, 'n_words': 513}