<commit_before><?php

namespace App\Shell;

use Cake\Console\Shell;
use Cake\Datasource\ConnectionManager;

/**
 *  Set value of the datetime field in case it allows null and it has value 0000-00-00 00:00:0
 */
class FixNullDatesShell extends Shell
{
    /**
     *  Default datetime field name
     */
    const DEFAULT_COLUMN_NAME = 'trashed';

    /**
     *  Default field type
     */
    const TARGET_COLUMN_TYPE = 'datetime';

    /**
     *  Run update process
     */
    public function main()
    {
        $targetTable = !empty($this->args[0]) ? $this->args[0] : null;
        $targetColumn = !empty($this->args[1]) ? $this->args[1] : self::DEFAULT_COLUMN_NAME;

        $db = ConnectionManager::get('default');
        $collection = $db->schemaCollection();

        if (!empty($targetTable)) {
            $tables = [$targetTable];
        } else {
            $tables = $collection->listTables();
        }<commit_msg>fix cs warning<commit_after><?php

namespace App\Shell;

use Cake\Console\Shell;
use Cake\Datasource\ConnectionManager;

/**
 *  Set value of the datetime field in case it allows null and it has value 0000-00-00 00:00:0
 */
class FixNullDatesShell extends Shell
{
    /**
     *  Default datetime field name
     */
    const DEFAULT_COLUMN_NAME = 'trashed';

    /**
     *  Default field type
     */
    const TARGET_COLUMN_TYPE = 'datetime';

    /**
     *  Run update process
     *
     * @return void
     */
    public function main()
    {
        $targetTable = !empty($this->args[0]) ? $this->args[0] : null;
        $targetColumn = !empty($this->args[1]) ? $this->args[1] : self::DEFAULT_COLUMN_NAME;

        $db = ConnectionManager::get('default');
        $collection = $db->schemaCollection();

        if (!empty($targetTable)) {
            $tables = [$targetTable];
        } else {
            $tables = $collection->listTables();
        }
{'fraction_non_alphanumeric': 0.1409714889123548, 'fraction_numerical': 0.01795142555438226, 'mean_word_length': 2.439201451905626, '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': '4716154', 'n_tokens_mistral': 598, 'n_tokens_neox': 572, 'n_words': 136}