<commit_before>#!/bin/bash
# called by Travis CI

set -x

#repos=$(find vendor/easyengine -type d -name 'features')
sub_commands=(
	vendor/easyengine/site-command/features
	vendor/easyengine/site-type-php/features
	vendor/easyengine/site-type-wp/features
)

export COMPOSE_INTERACTIVE_NO_CLI=1

for command in "${sub_commands[@]}"; do
	IFS='/' read -r -a array <<< "$command"
	rm -rf features/*
	rsync -av --delete $command/ features/ > /dev/null
	for file in features/*.feature; do mv "$file" "${file%.feature}_${array[2]}.feature"; done
	composer du
	echo "Running tests for $command"
	sudo ./vendor/bin/behat
done
<commit_msg>Remove composer du<commit_after>#!/bin/bash
# called by Travis CI

set -x

#repos=$(find vendor/easyengine -type d -name 'features')
sub_commands=(
	vendor/easyengine/site-command/features
	vendor/easyengine/site-type-php/features
	vendor/easyengine/site-type-wp/features
)

for command in "${sub_commands[@]}"; do
	IFS='/' read -r -a array <<< "$command"
	rm -rf features/*
	rsync -av --delete $command/ features/ > /dev/null
	for file in features/*.feature; do mv "$file" "${file%.feature}_${array[2]}.feature"; done
	echo "Running tests for $command"
	sudo ./vendor/bin/behat
done

{'fraction_non_alphanumeric': 0.16075845012366036, 'fraction_numerical': 0.00247320692497939, 'mean_word_length': 4.301310043668122, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2927713', 'n_tokens_mistral': 438, 'n_tokens_neox': 417, 'n_words': 114}