<commit_before><?php
/**
 * 
 * This file is part of the Aura project for PHP.
 * 
 * @license http://opensource.org/licenses/bsd-license.php BSD
 * 
 */
namespace Aura\Framework;

/**
 * Show status of the system as a whole.
 */
`git status`;

/**
 * Show status of the library packages.
 */
 
// the package directory
$dir = __DIR__ . DIRECTORY_SEPARATOR . 'package';

// get the list of available repositories
$url = 'http://github.com/api/v2/json/repos/show/auraphp';
$context = stream_context_create(array(
    'http' => array(
        'method' => "GET",
    ),
));
$json = file_get_contents($url, FALSE, $context);
$data = json_decode($json);

// for each of the repositories ...
foreach ($data->repositories as $repo) {
    
    // only use 'Aura.Package' repositories as packages
    if (! preg_match('/Aura\.[A-Z0-9_]+/', $repo->name)) {
        continue;
    }
    
    // does the package exist locally ?
    $sub = $dir . DIRECTORY_SEPARATOR . $repo->name;
    if (is_dir($sub)) {
        echo $sub . PHP_EOL;
        passthru("cd $sub; git status");
        echo PHP_EOL . '# # #' . PHP_EOL . PHP_EOL;
    }
}

// done!
echo 'Done!' . PHP_EOL;<commit_msg>make the output a little nicer-looking and better organized<commit_after><?php
/**
 * 
 * This file is part of the Aura project for PHP.
 * 
 * @license http://opensource.org/licenses/bsd-license.php BSD
 * 
 */
namespace Aura\Framework;

/**
 * Show status of the system as a whole.
 */
echo '------------------------------' . PHP_EOL . PHP_EOL;
echo 'system' . PHP_EOL . PHP_EOL;
passthru('git status');

/**
 * Show status of the library packages.
 */
 
// the package directory
$dir = __DIR__ . DIRECTORY_SEPARATOR . 'package';

// get the list of available repositories
$url = 'http://github.com/api/v2/json/repos/show/auraphp';
$context = stream_context_create(array(
    'http' => array(
        'method' => "GET",
    ),
));
$json = file_get_contents($url, FALSE, $context);
$data = json_decode($json);

// sort the repos
$repos = array();
foreach ($data->repositories as $repo) {
    $repos[$repo->name] = $repo;
}
ksort($repos);

// for each of the repositories ...
foreach ($repos as $repo) {
    
    // only use 'Aura.Package' repositories as packages
    if (! preg_match('/Aura\.[A-Z0-9_]+/', $repo->name)) {
        continue;
    }
    
    // does the package exist locally ?
    $sub = $dir . DIRECTORY_SEPARATOR . $repo->name;
    if (is_dir($sub)) {
        echo PHP_EOL . '------------------------------' . PHP_EOL . PHP_EOL;
        echo $repo->name . PHP_EOL . PHP_EOL;
        passthru("cd $sub; git status");
    }
}

// done!
echo PHP_EOL . '------------------------------' . PHP_EOL . PHP_EOL;
echo 'Done!' . PHP_EOL;
{'fraction_non_alphanumeric': 0.19210914454277286, 'fraction_numerical': 0.0022123893805309734, 'mean_word_length': 2.4255050505050506, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '6286675', 'n_tokens_mistral': 944, 'n_tokens_neox': 908, 'n_words': 239}