<commit_before># Download and install Zend Z-Ray:
wget http://downloads.zend.com/zray/1208/zray-php5.6-Ubuntu-14.04-x86_64.tar.gz && tar xvfz zray-php5.6-Ubuntu-14.04-x86_64.tar.gz -C /opt

# Add zray.conf
wget https://raw.githubusercontent.com/GeneaLabs/laravel-dev-environment/master/Zend-Z-Ray/Homestead/zray.conf -O /etc/nginx/conf.d/zray.conf

# Create symlinks to load Z-Ray configurations in php-fpm and php-cli:
ln -sf /opt/zray/zray.ini /etc/php5/cli/conf.d/zray.ini 
ln -sf /opt/zray/zray.ini /etc/php5/fpm/conf.d/zray.ini

# Set file and folder permissions:
chown -R vagrant:vagrant /opt/zray

# Restart nginx and php-fpm:
service php-fpm restart
service nginx restart<commit_msg>Update for homestead-7 (PHP 7.0)<commit_after># Download and install Zend Z-Ray:
wget http://downloads.zend.com/zray/1208/zray-php5.6-Ubuntu-14.04-x86_64.tar.gz && tar xvfz zray-php5.6-Ubuntu-14.04-x86_64.tar.gz -C /opt

# Add zray.conf
wget https://raw.githubusercontent.com/GeneaLabs/laravel-dev-environment/master/Zend-Z-Ray/Homestead/zray.conf -O /etc/nginx/conf.d/zray.conf

# Create symlinks to load Z-Ray configurations in php-fpm and php-cli:
ln -sf /opt/zray/zray.ini /etc/php/7.0/cli/conf.d/zray.ini 
ln -sf /opt/zray/zray.ini /etc/php5/7.0/fpm/conf.d/zray.ini

# Set file and folder permissions:
chown -R vagrant:vagrant /opt/zray

# Restart nginx and php-fpm:
service php7.0-fpm restart
service nginx restart
{'fraction_non_alphanumeric': 0.14528703047484054, 'fraction_numerical': 0.042523033309709427, 'mean_word_length': 3.6447368421052633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3089872', 'n_tokens_mistral': 650, 'n_tokens_neox': 597, 'n_words': 115}