<commit_before><?php

exec('/bin/df -h|awk \'{print $1","$2","$3","$4","$5","$6}\'', $result);

header('Content-Type: application/json; charset=UTF-8');
echo "[";
$x = 0;
$max = count($result)-1;
foreach ($result as $a) {
    if ($x==0) {
        $x++;
        continue;
    }
    echo json_encode(explode(',', $result[$x]));
    echo ($x==$max) ? '' : ',';
    unset($result[$x], $a);
    $x++;
}
echo ']';<commit_msg>POSIX compliant df -Ph to suppress linebreaks<commit_after><?php

exec('/bin/df -Ph|awk \'{print $1","$2","$3","$4","$5","$6}\'', $result);

header('Content-Type: application/json; charset=UTF-8');
echo "[";
$x = 0;
$max = count($result)-1;
foreach ($result as $a) {
    if ($x==0) {
        $x++;
        continue;
    }
    echo json_encode(explode(',', $result[$x]));
    echo ($x==$max) ? '' : ',';
    unset($result[$x], $a);
    $x++;
}
echo ']';
{'fraction_non_alphanumeric': 0.29965556831228474, 'fraction_numerical': 0.022962112514351322, 'mean_word_length': 3.4948453608247423, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1810001', 'n_tokens_mistral': 355, 'n_tokens_neox': 352, 'n_words': 68}