<commit_before><?php

return [

    'name' => 'system/meta',

    'events' => [

        'site' => function () use ($app) {

            $app->on('view.meta', function ($event, $meta) use ($app) {

                $config = $app->config('system/site');

                $meta([
                    'og:site_name' => $config->get('title'),
                    'og:title' => $app['node']->title,
                    'og:image' => $config->get('meta.image') ? $app['url']->getStatic($config->get('meta.image'), [], 0) : '',
                    'og:description' => $config->get('meta.description'),
                    'og:url' => $meta->get('canonical'),
                ]);

                if ($app['node']->get('meta')) {
                    $meta($app['node']->get('meta'));
                }

            }, 50);<commit_msg>cleanup<commit_after><?php

return [

    'name' => 'system/meta',

    'events' => [

        'site' => function () use ($app) {

            $app->on('view.meta', function ($event, $meta) use ($app) {

                $config = $app->config('system/site');

                $meta([
                    'og:site_name' => $config->get('title'),
                    'og:title' => $app['node']->title,
                    'og:image' => $config->get('meta.image') ? $app['url']->getStatic($config->get('meta.image'), [], 0) : false,
                    'og:description' => $config->get('meta.description'),
                    'og:url' => $meta->get('canonical'),
                ]);

                if ($app['node']->get('meta')) {
                    $meta($app['node']->get('meta'));
                }

            }, 50);
{'fraction_non_alphanumeric': 0.22801697998787143, 'fraction_numerical': 0.0036385688295936932, 'mean_word_length': 1.5660964230171073, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, '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': '6253834', 'n_tokens_mistral': 506, 'n_tokens_neox': 463, 'n_words': 68}