<commit_before><?php

return [
    'propel' => [
        'general' => [
            'project' => 'MyProject',
            'version' => '1.0',
        ],

        'paths' => [
            'projectDir' => app_path('/propel'),
            'schemaDir'  => app_path('/database'),
            'outputDir'  => base_path('/resources/propel'),
            'phpDir'     => app_path('/Models'),
            'phpConfDir' => base_path('/config/propel'),
            'sqlDir'     => base_path('/database'),
            'migrationDir' => app_path('/database/migrations'),
            'composerDir' => base_path(),
        ],

        'database' => [
            'connections' => array_map(function($item) {
                if (in_array($item['driver'], ['pgsql', 'mysql'])) {
                    return [
                        'adapter'  => $item['driver'],
                        'dsn'      => $item['driver'] . ':host=' . $item['host'] . ';port=' . (empty($item['port']) ? '3306' : $item['port']) . ';dbname=' . $item['database'],
                        'user'     => $item['username'],
                        'password' => $<PASSWORD>'],
                        'settings' => [
                            'charset' => $item['charset'],
                            'queries' => [
                                'SET NAMES utf8 COLLATE utf8_unicode_ci, COLLATION_CONNECTION = utf8_unicode_ci, COLLATION_DATABASE = utf8_unicode_ci, COLLATION_SERVER = utf8_unicode_ci'
                            ],
                        ],
                    ];
                }
            }, app('config')->get('database.connections')),
            'adapters' => [
                'mysql' => [
                    'tableType' => 'InnoDB'
                ],
            ],
        ],

        'runtime' => [
            'defaultConnection' => app('config')->get('database.default'),
            'connections' => array_filter( app('config')->get('database.connections'), function($item) {
                return in_array($item['driver'], ['pgsql', 'mysql']);
            })
        ],

        'generator' => [
            'defaultConnection' => app('config')->get('database.default'),
            'connections' => array_filter( app('config')->get('database.connections'), function($item) {
                return in_array($item['driver'], ['pgsql', 'mysql']);
            }),

            'targetPackage' => '',
            'namespaceAutoPackage' => false,
        ],

    ]
];
<commit_msg>Correct fix of config example<commit_after><?php

return [
    'propel' => [
        'general' => [
            'project' => 'Dachnik',
            'version' => '1.0',
        ],
        'paths' => [
            'projectDir' => app_path('resources/propel'),
            'schemaDir'  => app_path('database'),
            'outputDir'  => base_path('resources/propel'),
            'phpDir'     => app_path('Models'),
            'phpConfDir' => base_path('config/propel'),
            'sqlDir'     => base_path('database'),
            'migrationDir' => app_path('database/migrations'),
            'composerDir' => base_path(),
        ],

        'database' => [
            'connections' => array_map(function($item) {
                    return [
                        'adapter'  => $item['driver'],
                        'dsn'      => $item['driver'] . ':host=' . $item['host'] . ';port=' . (empty($item['port']) ? '3306' : $item['port']) . ';dbname=' . $item['database'],
                        'user'     => $item['username'],
                        'password' => $item['password'],
                        'settings' => [
                            'charset' => $item['charset'],
                            'queries' => [
                                'SET NAMES utf8 COLLATE utf8_unicode_ci, COLLATION_CONNECTION = utf8_unicode_ci, COLLATION_DATABASE = utf8_unicode_ci, COLLATION_SERVER = utf8_unicode_ci'
                            ],
                        ],
                    ];
                },
                array_filter(app('config')->get('database.connections'), function($item) {
                    return in_array($item['driver'], ['pgsql', 'mysql']);
                })
            ),
            'adapters' => [
                'mysql' => [
                    'tableType' => 'InnoDB'
                ],
            ],
        ],

        'runtime' => [
            'defaultConnection' => app('config')->get('database.default'),
            'connections' => array_keys(array_filter( app('config')->get('database.connections'), function($item) {
                return in_array($item['driver'], ['pgsql', 'mysql']);
            }))
        ],

        'generator' => [
            'defaultConnection' => app('config')->get('database.default'),
            'connections' => array_keys(array_filter( app('config')->get('database.connections'), function($item) {
                return in_array($item['driver'], ['pgsql', 'mysql']);
            })),

            'targetPackage' => '',
            'namespaceAutoPackage' => false,
        ],

    ]
];

{'fraction_non_alphanumeric': 0.17895985762309669, 'fraction_numerical': 0.004350405378683014, 'mean_word_length': 1.5014836795252227, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 80, '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': '7556348', 'n_tokens_mistral': 1402, 'n_tokens_neox': 1331, 'n_words': 193}