<commit_before><?php

namespace App\Http\Controllers\API;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class DeployController extends Controller
{
    public function getDeploy(Request $request)
    {
        $payload = decode_json($request->input("payload"));
        if (!$payload) {
            \Log::warn("Invalid payload received from github push event: $payload");
            return;
        }
        exec("cd " . base_path() . " && sh deploy.sh", $output, $return);
        \Log::info("Deploy ran: " . base64_encode($output) . ", return $return");<commit_msg>don't need to check payload... only pulling master<commit_after><?php

namespace App\Http\Controllers\API;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class DeployController extends Controller
{
    public function getDeploy(Request $request)
    {
        exec("cd " . base_path() . " && sh deploy.sh", $output, $return);
{'fraction_non_alphanumeric': 0.1376734258271078, 'fraction_numerical': 0.0021344717182497333, 'mean_word_length': 3.4454976303317535, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '1878067', 'n_tokens_mistral': 268, 'n_tokens_neox': 275, 'n_words': 66}