<commit_before>#!/usr/bin/env bash
# Build script for a fully self contained pynab instance

# Download the base Ubuntu image and unzip it
BASE_IMAGE_URL=http://cdimage.ubuntu.com/ubuntu-base/releases/16.04/release/ubuntu-base-16.04.1-base-amd64.tar.gz
BASE_IMAGE=../ubuntu-base-16.04.1-base-amd64.tar.gz
IMAGE_NAME=pynab-latest-ubuntu-amd64

NL=$'\n'

ACB="acbuild --debug"

if [ ! -e "./$BASE_IMAGE"  ]; then
  cd ..
  wget "$BASE_IMAGE_URL"
  cd -
fi

read -rd '' BOOTSTRAP_SCRIPT <<EOF
#!/usr/bin/env bash

supervisord -n
EOF

read -rd '' UWSGI_INI <<EOF
[uwsgi]
socket = /pynab-run/socket
chmod-socket = 664
vacuum = true
master = true<commit_msg>chmod socket properly<commit_after>#!/usr/bin/env bash
# Build script for a fully self contained pynab instance

# Download the base Ubuntu image and unzip it
BASE_IMAGE_URL=http://cdimage.ubuntu.com/ubuntu-base/releases/16.04/release/ubuntu-base-16.04.1-base-amd64.tar.gz
BASE_IMAGE=../ubuntu-base-16.04.1-base-amd64.tar.gz
IMAGE_NAME=pynab-latest-ubuntu-amd64

NL=$'\n'

ACB="acbuild --debug"

if [ ! -e "./$BASE_IMAGE"  ]; then
  cd ..
  wget "$BASE_IMAGE_URL"
  cd -
fi

read -rd '' BOOTSTRAP_SCRIPT <<EOF
#!/usr/bin/env bash

supervisord -n
EOF

read -rd '' UWSGI_INI <<EOF
[uwsgi]
socket = /pynab-run/socket
chmod-socket = 666
vacuum = true
master = true
{'fraction_non_alphanumeric': 0.15091463414634146, 'fraction_numerical': 0.0350609756097561, 'mean_word_length': 3.740072202166065, 'pattern_counts': {'":': 0, '<': 11, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4519761', 'n_tokens_mistral': 590, 'n_tokens_neox': 524, 'n_words': 113}