<commit_before><?php

// Use in the "Post-Receive URLs" section of your GitHub repo.

if ( isset($_POST['payload']) ) {
  shell_exec( 'cd /var/www/html/ckxu.uleth.ca/public_html/ && git fetch --all && git pull' );
}

?>hi<commit_msg>fix webhook path<commit_after><?php

// Use in the "Post-Receive URLs" section of your GitHub repo.

if ( isset($_POST['payload']) ) {
    shell_exec( 'cd /var/www/html/ckxu.uleth.ca/public_html/ && git fetch --all && git pull' );
    $headers = array();
    foreach($_SERVER as $key => $value) {
        if (substr($key, 0, 5) <> 'X-Git') {
            continue;
        }
        $header = str_replace(' ', '-', ucwords(str_replace('_', ' ', strtolower(substr($key, 5)))));
        $headers[$header] = $value;
    }
    error_log("Recieved GitHub push with ID ".$headers['X-Github-Delivery'].
            " RE:".$headers['X-Github-Event']);
}

?>hi
{'fraction_non_alphanumeric': 0.19818799546998866, 'fraction_numerical': 0.0033975084937712344, 'mean_word_length': 2.981981981981982, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '2045998', 'n_tokens_mistral': 318, 'n_tokens_neox': 306, 'n_words': 71}