<commit_before>#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y python-software-properties
add-apt-repository -y ppa:openjdk-r/ppa
add-apt-repository -y ppa:ondrej/php
wget https://cdn.crate.io/downloads/deb/DEB-GPG-KEY-crate
apt-key add DEB-GPG-KEY-crate
touch /etc/apt/sources.list.d/crate.list
cat <<EOT >> /etc/apt/sources.list.d/crate.list
deb https://cdn.crate.io/downloads/deb/stable/ trusty main
deb-src https://cdn.crate.io/downloads/deb/stable/ trusty main
EOT
apt-get update
apt-get install -y crate php7.2-cli php7.2-xml php7.2-curl php7.2-mbstring git zip unzip
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
cd /vagrant && su vagrant -c 'composer install'<commit_msg>vagrant: install `doctrine/dbal` dependency from source<commit_after>#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y python-software-properties
add-apt-repository -y ppa:openjdk-r/ppa
add-apt-repository -y ppa:ondrej/php
wget https://cdn.crate.io/downloads/deb/DEB-GPG-KEY-crate
apt-key add DEB-GPG-KEY-crate
touch /etc/apt/sources.list.d/crate.list
cat <<EOT >> /etc/apt/sources.list.d/crate.list
deb https://cdn.crate.io/downloads/deb/stable/ trusty main
deb-src https://cdn.crate.io/downloads/deb/stable/ trusty main
EOT
apt-get update
apt-get install -y crate php7.2-cli php7.2-xml php7.2-curl php7.2-mbstring git zip unzip
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
cd /vagrant && su vagrant -c 'composer install'
// test classes of DBAL which we depend on are only available inside the source
cd /vagrant && su vagrant -c 'rm -rf vendor/doctrine/dbal && composer update doctrine/dbal --prefer-source'
{'fraction_non_alphanumeric': 0.13873159682899208, 'fraction_numerical': 0.009060022650056626, 'mean_word_length': 4.034188034188034, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5955210', 'n_tokens_mistral': 684, 'n_tokens_neox': 659, 'n_words': 150}