<commit_before>#!/bin/sh

echo packaging configurator
tar czf configurator.tar.gz .

echo Setting up Magento

echo Disabling xdebug for performance
echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini

echo Creating configurator database
mysql -e 'CREATE DATABASE IF NOT EXISTS configurator;'

echo Install Magento
git clone https://github.com/magento/magento2
cd magento2

git checkout tags/2.1.0 -b 2.1.0

composer require ctidigital/magento2-configurator
composer install

php bin/magento setup:install --admin-email "<EMAIL>" --admin-firstname "CTI" --admin-lastname "Test" --admin-password "<PASSWORD>" --admin-user "admin" --backend-frontname admin --base-url "http://configurator.dev" --db-host 127.0.0.1 --db-name configurator --db-user root --session-save files --use-rewrites 1 --use-secure 0 -vvv

echo Move configurator package into its own vendor directory
mv ../configurator.tar.gz vendor/ctidigital/magento2-configurator/.

cd vendor/ctidigital/magento2-configurator/

echo Extract configurator into the right place
tar -xf configurator.tar.gz

echo Go to app etc folder
cd ../../../app/etc

echo Copy master.yaml folder
cp ../../../Samples/master.yml master.yaml

pwd
ls -alh
cat master.yaml

cd ../..
php bin/magento cache:flush
php bin/magento module:status
cd ..<commit_msg>Integration tests - Fix typo<commit_after>#!/bin/sh

echo packaging configurator
tar czf configurator.tar.gz .

echo Setting up Magento

echo Disabling xdebug for performance
echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini

echo Creating configurator database
mysql -e 'CREATE DATABASE IF NOT EXISTS configurator;'

echo Install Magento
git clone https://github.com/magento/magento2
cd magento2

git checkout tags/2.1.0 -b 2.1.0

composer require ctidigital/magento2-configurator
composer install

php bin/magento setup:install --admin-email "<EMAIL>" --admin-firstname "CTI" --admin-lastname "Test" --admin-password "<PASSWORD>" --admin-user "admin" --backend-frontname admin --base-url "http://configurator.dev" --db-host 127.0.0.1 --db-name configurator --db-user root --session-save files --use-rewrites 1 --use-secure 0 -vvv

echo Move configurator package into its own vendor directory
mv ../configurator.tar.gz vendor/ctidigital/magento2-configurator/.

cd vendor/ctidigital/magento2-configurator/

echo Extract configurator into the right place
tar -xf configurator.tar.gz

echo Go to app etc folder
cd ../../../app/etc

echo Copy master.yaml folder
cp ../../../Samples/master.yaml master.yaml

pwd
ls -alh
cat master.yaml

cd ../..
php bin/magento cache:flush
php bin/magento module:status
cd ..

mv Samples/Components configurator
{'fraction_non_alphanumeric': 0.12238805970149254, 'fraction_numerical': 0.014179104477611941, 'mean_word_length': 3.7451327433628316, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '225438', 'n_tokens_mistral': 920, 'n_tokens_neox': 897, 'n_words': 268}