<commit_before><?php
if (isset($_POST['payload'])){
    
    require_once __DIR__ . '/vendor/autoload.php';
    session_start();
    date_default_timezone_set('Europe/Paris');

    $result = [];
    $output = '';
    exec("git pull", $result);
    foreach ($result as $line) $output .= $line."\n";
    exec("rm -rf " . __DIR__ . "/src/templates/twig_cache/*");
    exec("touch " . __DIR__ . "/src/templates/twig_cache/.gitkeep");
    exec("php composer.phar update -o");
    $version = ($_SERVER["SERVER_NAME"] != 'tifod.com') ? json_decode($_POST['payload'])->after : json_decode($_POST['payload'])->release->tag_name;
    $db = MyApp\Utility\Db::getPDO();
    $reponse = $db->prepare ('INSERT INTO platform_data (data_name, data_value) VALUES("version", :version) ON DUPLICATE KEY UPDATE data_name="version", data_value=:version');
    $reponse->execute([ 'version' => $version ]);
    $reponse->closeCursor();<commit_msg>commit test<commit_after><?php
if (isset($_POST['payload'])){
    require_once __DIR__ . '/vendor/autoload.php';
    session_start();
    date_default_timezone_set('Europe/Paris');

    $result = [];
    $output = '';
    exec("git pull", $result);
    foreach ($result as $line) $output .= $line."\n";
    exec("rm -rf " . __DIR__ . "/src/templates/twig_cache/*");
    exec("touch " . __DIR__ . "/src/templates/twig_cache/.gitkeep");
    exec("php composer.phar update -o");
    $version = ($_SERVER["SERVER_NAME"] != 'tifod.com') ? json_decode($_POST['payload'])->after : json_decode($_POST['payload'])->release->tag_name;
    $db = MyApp\Utility\Db::getPDO();
    $reponse = $db->prepare ('INSERT INTO platform_data (data_name, data_value) VALUES("version", :version) ON DUPLICATE KEY UPDATE data_name="version", data_value=:version');
    $reponse->execute([ 'version' => $version ]);
    $reponse->closeCursor();
{'fraction_non_alphanumeric': 0.20315046170559478, 'fraction_numerical': 0.0, 'mean_word_length': 4.339130434782609, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '2936015', 'n_tokens_mistral': 616, 'n_tokens_neox': 605, 'n_words': 112}