<commit_before><?php
/**
 * This is a part of Maketok Site. Licensed under GPL 3.0
 * Please do not use for your own profit.
 * @project site
 * @developer Slayer <EMAIL> maketok.com
 */

namespace Maketok\Installer\Ddl\Mysql;

use Maketok\Installer\Ddl\ResourceInterface;
use Maketok\Installer\DirectivesInterface;
use Maketok\Installer\Exception;
use Zend\Db\Adapter\Adapter;
use Zend\Db\Sql\Ddl\AlterTable;
use Zend\Db\Sql\Ddl\Column\ColumnInterface;
use Zend\Db\Sql\Ddl\CreateTable;
use Zend\Db\Sql\Ddl\DropTable;
use Zend\Db\Sql\Ddl\Index\Index;
use Zend\Db\Sql\Ddl\SqlInterface;
use Zend\Db\Sql\Sql;

class Resource implements ResourceInterface
{

    /** @var array */
    protected  $_availableConstraintTypes = ['primaryKey', 'uniqueKey', 'foreignKey'];

    /** @var \Zend\Db\Adapter\Adapter  */
    protected $_adapter;

    /** @var array  */
    protected $_typeMap = [
        'int' => 'integer',
        'datetime' => 'dateTime',
    ];
    /**
     * @var \Zend\Db\Sql\Sql
     */
    private $sql;
    /** @var array|\Iterator */
    private $_procedures;

    public function __construct(Adapter $adapter, Sql $sql)
    {
        $this->_adapter = $adapter;
        $this->sql = $sql;
    }

    /**
     * {@inheritdoc}
     */
    public function getTable($table)
    {
        $data = $this->_getTableArray($table);
        if (empty($data)) {
            return [];
        }
        $fLine = array_shift($data);<commit_msg>remove datetime mapping from mysql/resource<commit_after><?php
/**
 * This is a part of Maketok Site. Licensed under GPL 3.0
 * Please do not use for your own profit.
 * @project site
 * @developer Slayer <EMAIL> maketok.com
 */

namespace Maketok\Installer\Ddl\Mysql;

use Maketok\Installer\Ddl\ResourceInterface;
use Maketok\Installer\DirectivesInterface;
use Maketok\Installer\Exception;
use Zend\Db\Adapter\Adapter;
use Zend\Db\Sql\Ddl\AlterTable;
use Zend\Db\Sql\Ddl\Column\ColumnInterface;
use Zend\Db\Sql\Ddl\CreateTable;
use Zend\Db\Sql\Ddl\DropTable;
use Zend\Db\Sql\Ddl\Index\Index;
use Zend\Db\Sql\Ddl\SqlInterface;
use Zend\Db\Sql\Sql;

class Resource implements ResourceInterface
{

    /** @var array */
    protected  $_availableConstraintTypes = ['primaryKey', 'uniqueKey', 'foreignKey'];

    /** @var \Zend\Db\Adapter\Adapter  */
    protected $_adapter;

    /** @var array  */
    protected $_typeMap = [
        'int' => 'integer',
    ];
    /**
     * @var \Zend\Db\Sql\Sql
     */
    private $sql;
    /** @var array|\Iterator */
    private $_procedures;

    public function __construct(Adapter $adapter, Sql $sql)
    {
        $this->_adapter = $adapter;
        $this->sql = $sql;
    }

    /**
     * {@inheritdoc}
     */
    public function getTable($table)
    {
        $data = $this->_getTableArray($table);
        if (empty($data)) {
            return [];
        }
        $fLine = array_shift($data);
{'fraction_non_alphanumeric': 0.14542936288088643, 'fraction_numerical': 0.0013850415512465374, 'mean_word_length': 2.727741935483871, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 14, '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': '2225292', 'n_tokens_mistral': 983, 'n_tokens_neox': 949, 'n_words': 205}