<commit_before>#!/usr/bin/env bash

# install nginx
apt-get install -y --force-yes nginx

# sed -i "s/user www-data;/user vagrant;/" /etc/nginx/nginx.conf
# sed -i "s/# server_names_hash_bucket_size.*/server_names_hash_bucket_size 64;/" /etc/nginx/nginx.conf

# sed -i "s/user = www-data/user = vagrant/" /etc/php/7.0/fpm/pool.d/www.conf
# sed -i "s/group = www-data/group = vagrant/" /etc/php/7.0/fpm/pool.d/www.conf

# sed -i "s/listen\.owner.*/listen.owner = vagrant/" /etc/php/7.0/fpm/pool.d/www.conf
# sed -i "s/listen\.group.*/listen.group = vagrant/" /etc/php/7.0/fpm/pool.d/www.conf
# sed -i "s/;listen\.mode.*/listen.mode = 0666/" /etc/php/7.0/fpm/pool.d/www.conf

mv /provision/config/homestead /etc/nginx/sites-enabled/
ln -fs "/etc/nginx/sites-available/homestead" "/etc/nginx/sites-enabled/homestead"

# service nginx restart
# service php7.0-fpm restart<commit_msg>Update nginx.sh<commit_after>#!/usr/bin/env bash

# install nginx
apt-get install -y --force-yes nginx

# sed -i "s/user www-data;/user vagrant;/" /etc/nginx/nginx.conf
# sed -i "s/# server_names_hash_bucket_size.*/server_names_hash_bucket_size 64;/" /etc/nginx/nginx.conf

# sed -i "s/user = www-data/user = vagrant/" /etc/php/7.0/fpm/pool.d/www.conf
# sed -i "s/group = www-data/group = vagrant/" /etc/php/7.0/fpm/pool.d/www.conf

# sed -i "s/listen\.owner.*/listen.owner = vagrant/" /etc/php/7.0/fpm/pool.d/www.conf
# sed -i "s/listen\.group.*/listen.group = vagrant/" /etc/php/7.0/fpm/pool.d/www.conf
# sed -i "s/;listen\.mode.*/listen.mode = 0666/" /etc/php/7.0/fpm/pool.d/www.conf

mv /provision/config/homestead /etc/nginx/sites-available/
ln -fs "/etc/nginx/sites-available/homestead" "/etc/nginx/sites-enabled/homestead"

# service nginx restart
# service php7.0-fpm restart
{'fraction_non_alphanumeric': 0.19920544835414303, 'fraction_numerical': 0.02043132803632236, 'mean_word_length': 3.187648456057007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 16, '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': '1961207', 'n_tokens_mistral': 786, 'n_tokens_neox': 744, 'n_words': 122}