<commit_before><?php
    // THIS FILE STARTS WEBSOCKET SERVER

    //  receive the parameters
    $resolution = $_GET['resolution'];

    $pidPythonServer = exec("sudo python3 server.py > /dev/null 2>&1 & echo $!");
    sleep(0.5);
	$pidPythonServer = exec("pidof python3");
    $command = "sudo sh ../../bash/start_camera.sh " . $resolution . " > /dev/null 2>&1 & echo $!";
    $pidMjpegStream = exec($command);
	sleep(1);
	$pidMjpegStream = exec("pidof mjpg_streamer");
    echo $pidPythonServer;
    echo "\r\n";
    echo $pidMjpegStream;
    echo "\r\n";
    echo "0";
?><commit_msg>resolve #12 - workaround by killing processes<commit_after><?php
    // THIS FILE STARTS WEBSOCKET SERVER

    //  receive the parameters
    $resolution = $_GET['resolution'];

    //  kill old processes
    exec ("sudo killall python3");
    exec ("sudo killall mjpeg_streamer");
    sleep(0.5);

    $pidPythonServer = exec("sudo python3 server.py > /dev/null 2>&1 & echo $!");
    sleep(0.5);
	$pidPythonServer = exec("pidof python3");
    $command = "sudo sh ../../bash/start_camera.sh " . $resolution . " > /dev/null 2>&1 & echo $!";
    $pidMjpegStream = exec($command);
	sleep(1);
	$pidMjpegStream = exec("pidof mjpg_streamer");
    echo $pidPythonServer;
    echo "\r\n";
    echo $pidMjpegStream;
    echo "\r\n";
    echo "0";
?>
{'fraction_non_alphanumeric': 0.17181612660135645, 'fraction_numerical': 0.018839487565938208, 'mean_word_length': 3.0736196319018405, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6594619', 'n_tokens_mistral': 488, 'n_tokens_neox': 447, 'n_words': 109}