<commit_before><?php
file_put_contents('log.log', var_export($_SERVER, true));
file_put_contents('post.log', var_export($_POST, true));

$travis_token = '…';
$hook_url = 'https://hooks.slack.com/services/…/…;

$repository = $_SERVER['HTTP_TRAVIS_REPO_SLUG'] ?? '';
$authorization = $_SERVER['HTTP_AUTHORIZATION'] ?? '';

if(empty($repository) || empty($authorization) || $repository != 'ungdev/EtuUTT' || hash_equals(hash('sha256', $repository.$travis_token), $authorization)){
	exit;
}

chdir('/var/www/EtuUTT');
<commit_msg>Update deploy.php<commit_after><?php
file_put_contents('log.log', var_export($_SERVER, true));
file_put_contents('post.log', var_export($_POST, true));

$travis_token = '…';
$hook_url = 'https://hooks.slack.com/services/…/…;

$repository = $_SERVER['HTTP_TRAVIS_REPO_SLUG'] ?? '';
$authorization = $_SERVER['HTTP_AUTHORIZATION'] ?? '';

if(empty($repository) || empty($authorization) || $repository != 'ungdev/EtuUTT' || ! hash_equals(hash('sha256', $repository.$travis_token), $authorization)){
	exit;
}

chdir('/var/www/EtuUTT');

{'fraction_non_alphanumeric': 0.21739130434782608, 'fraction_numerical': 0.005671077504725898, 'mean_word_length': 8.129310344827585, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '162717', 'n_tokens_mistral': 387, 'n_tokens_neox': 390, 'n_words': 49}