<commit_before><?php


/**
* Licensed under The Apache License
*
* @copyright Copyright 2012-2013 <NAME>, <NAME>, <NAME> (PaTaGa)
* @link https://github.com/pataga/SAS
* @since SAS v1.0.0
* @license Apache License v2 (http://www.apache.org/licenses/LICENSE-2.0.txt
* @author <NAME>
*
*/

?>

<h3> Hier ensteht die Seite "Taskmanager"</h3>
<fieldset>
	<table>
    <?php 
    	$proc = new Process($main);
    	$data = $proc->getProcessArray();
    	//print_r($data);
    	for ($i=0; $i<count($data); $i++) {
    		echo "</tr><td>".$data[$i][1]."</td><td>".$data[$i][0]."</td><td>".$data[$i][2]."</td><td>".$data[$i][3]."</td><td>".$data[$i][10]."</td></tr>";
    	}
    ?>
	</table>
</fieldset>
<p style="text-align: center; font-weight: 700;">Entwickler: Patrick</p><commit_msg>Tools/Taskmanager: Prozesse können nun beendet werden<commit_after><?php


/**
* Licensed under The Apache License
*
* @copyright Copyright 2012-2013 <NAME>, <NAME>, <NAME> (PaTaGa)
* @link https://github.com/pataga/SAS
* @since SAS v1.0.0
* @license Apache License v2 (http://www.apache.org/licenses/LICENSE-2.0.txt
* @author <NAME>
*
*/

?>

<?php
$proc = new Process($main);

if (isset($_POST['kill'])) {
    for ($i=0;$i<6000;$i++) {
        if (isset($_POST["pid_".$i])) {
            $pid = $_POST["pid_".$i];
            echo $pid."<br>";
            $ssh->execute("kill ".$pid);
        }
    }
}

?>

<h3> Hier ensteht die Seite "Taskmanager"</h3>
<fieldset>
    <form action="index.php?p=tools&s=taskmgr" method="post">
        <table>
            <tr>
                <td> 
                    <input type="submit" value="Prozess beenden" name="kill">
                    <input type="submit" value="H&ouml;here Priorit&auml;t" name="nice"> 
                </td>
            </tr>
        </table>
    	<table>

        <?php 
            echo "<input type='hidden' name='count' value='1".count($data)."'>";
        	$data = $proc->getProcessArray();
        	//print_r($data);
        	for ($i=0; $i<count($data); $i++) {
        		echo "</tr><td><input type='checkbox' value='".$data[$i][1]."' name='pid_".$i."'></td><td>".$data[$i][1]."</td><td>".$data[$i][0]."</td><td>".$data[$i][2]."</td><td>".$data[$i][3]."</td><td>".$data[$i][10]."</td></tr>";
        	}
        ?>
    	</table>
    </form>
</fieldset>
<p style="text-align: center; font-weight: 700;">Entwickler: Patrick</p>
{'fraction_non_alphanumeric': 0.2548441449031171, 'fraction_numerical': 0.02485256950294861, 'mean_word_length': 2.8183279742765275, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 0, '>': 74, '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': '6976330', 'n_tokens_mistral': 942, 'n_tokens_neox': 896, 'n_words': 153}