<commit_before><?php

namespace Bolt\Provider;

use Bolt\Database\Schema\Manager;
use Bolt\Database\Table;
use Doctrine\DBAL\Schema\Schema;
use Silex\Application;
use Silex\ServiceProviderInterface;

class DatabaseSchemaProvider implements ServiceProviderInterface
{
    public function register(Application $app)
    {
        $app['schema'] = $app->share(
            function ($app) {
                return new Manager($app);
            }
        );

        $app['schema.tables'] = $app->share(function (Application $app) {
            /** @var \Doctrine\DBAL\Platforms\AbstractPlatform $platform */
            $platform = $app['db']->getDatabasePlatform();

            return new \Pimple([
                // @codingStandardsIgnoreStart
                'authtoken'  => $app->share(function () use ($app, $platform) { return new Table\AuthToken($platform); }),
                'cron'       => $app->share(function () use ($app, $platform) { return new Table\Cron($platform); }),
                'log_change' => $app->share(function () use ($app, $platform) { return new Table\LogChange($platform); }),
                'log_system' => $app->share(function () use ($app, $platform) { return new Table\LogSystem($platform); }),
                'relations'  => $app->share(function () use ($app, $platform) { return new Table\Relations($platform); }),
                'taxonomy'   => $app->share(function () use ($app, $platform) { return new Table\Taxonomy($platform); }),
                'users'      => $app->share(function () use ($app, $platform) { return new Table\Users($platform); }),
                // @codingStandardsIgnoreEnd
            ]);
        });
    }

    public function boot(Application $app)
    {<commit_msg>Remove unused $app<commit_after><?php

namespace Bolt\Provider;

use Bolt\Database\Schema\Manager;
use Bolt\Database\Table;
use Doctrine\DBAL\Schema\Schema;
use Silex\Application;
use Silex\ServiceProviderInterface;

class DatabaseSchemaProvider implements ServiceProviderInterface
{
    public function register(Application $app)
    {
        $app['schema'] = $app->share(
            function ($app) {
                return new Manager($app);
            }
        );

        $app['schema.tables'] = $app->share(function (Application $app) {
            /** @var \Doctrine\DBAL\Platforms\AbstractPlatform $platform */
            $platform = $app['db']->getDatabasePlatform();

            return new \Pimple([
                // @codingStandardsIgnoreStart
                'authtoken'  => $app->share(function () use ($platform) { return new Table\AuthToken($platform); }),
                'cron'       => $app->share(function () use ($platform) { return new Table\Cron($platform); }),
                'log_change' => $app->share(function () use ($platform) { return new Table\LogChange($platform); }),
                'log_system' => $app->share(function () use ($platform) { return new Table\LogSystem($platform); }),
                'relations'  => $app->share(function () use ($platform) { return new Table\Relations($platform); }),
                'taxonomy'   => $app->share(function () use ($platform) { return new Table\Taxonomy($platform); }),
                'users'      => $app->share(function () use ($platform) { return new Table\Users($platform); }),
                // @codingStandardsIgnoreEnd
            ]);
        });
    }

    public function boot(Application $app)
    {
{'fraction_non_alphanumeric': 0.155659004946174, 'fraction_numerical': 0.0, 'mean_word_length': 2.5153374233128836, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, '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': '918188', 'n_tokens_mistral': 939, 'n_tokens_neox': 920, 'n_words': 199}