<commit_before><?php
namespace qnd;

use InvalidArgumentException;

/**
 * Runs application
 *
 * @return void
 */
function app(): void
{
    // Dispatch request
    $prefix = fqn('action_');
    $action = request('action');
    $eUid = request('entity');
    $entity = data('entity', $eUid);
    $args = $entity ? [$entity] : [];

    foreach ([$prefix . $eUid . '_' . $action, $prefix . $action] as $call) {
        if (is_callable($call)) {
            allowed() ? $call(...$args) : action_denied();
            return;
        }
    }

    action_error();
}

/**
 * Internal registry
 *
 * @param string $id
 *
 * @return array|null
 */
function & registry(string $id): ?array
{
    static $data = [];

    if ($id === null) {
        $old = $data;
        $data = [];
<commit_msg>- comment<commit_after><?php
namespace qnd;

use InvalidArgumentException;

/**
 * Runs application
 *
 * @return void
 */
function app(): void
{
    $prefix = fqn('action_');
    $action = request('action');
    $eUid = request('entity');
    $entity = data('entity', $eUid);
    $args = $entity ? [$entity] : [];

    foreach ([$prefix . $eUid . '_' . $action, $prefix . $action] as $call) {
        if (is_callable($call)) {
            allowed() ? $call(...$args) : action_denied();
            return;
        }
    }

    action_error();
}

/**
 * Internal registry
 *
 * @param string $id
 *
 * @return array|null
 */
function & registry(string $id): ?array
{
    static $data = [];

    if ($id === null) {
        $old = $data;
        $data = [];

{'fraction_non_alphanumeric': 0.19390402075226978, 'fraction_numerical': 0.0, 'mean_word_length': 2.368995633187773, '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': '445233', 'n_tokens_mistral': 520, 'n_tokens_neox': 508, 'n_words': 119}