<commit_before><?php
/**
 * @codeCoverageIgnore
 */
 
/* @var $installer Mage_Core_Model_Resource_Setup */
$installer = $this;

$installer->startSetup();

$table = $installer->getConnection()
    ->newTable($installer->getTable('sheep_debug/request_info'))
    ->addColumn('id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
        'nullable'  => false,
        'primary' => 'true',
    ), 'Id')
    ->addColumn('token', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
        'nullable'  => false,
    ), 'Request Token')
    ->addColumn('http_method', Varien_Db_Ddl_Table::TYPE_VARCHAR, 32, array(
        'nullable' => false,
    ), 'Http Method')
    ->addColumn('request_path', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
        'nullable'  => false,
    ), 'Request Path')
    ->addColumn('response_code', Varien_Db_Ddl_Table::TYPE_TINYINT, null, array(
        'nullable'  => false,
    ), 'Http Response Status Code')
    ->addColumn('session_id', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
        'nullable'  => true,
    ), 'Session Id')
    ->addColumn('date', Varien_Db_Ddl_Table::TYPE_DATETIME, null, array(
        'nullable'  => false,
    ), 'Date')
    ->addColumn('time', Varien_Db_Ddl_Table::TYPE_DECIMAL, array(15,2), array(
        'nullable' => true,
    ), 'Total Time')
    ->addColumn('peak_memory', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
        'nullable' => false
    ), 'Peak Memory used in bytes')
    ->addColumn('info', Varien_Db_Ddl_Table::TYPE_BLOB, 16777216, array(
        'nullable' => false,
        'default' => '',
    ), 'Serialized Info')
    ->addIndex($this->getIdxName('sheep_debug/request_info', array('token')), array('token'))
    ->addIndex($this->getIdxName('sheep_debug/request_info', array('session_id')), array('session_id'))
    ->addIndex($this->getIdxName('sheep_debug/request_info', array('request_path')), array('request_path'))
;

$this->getConnection()->createTable($table);

$installer->endSetup();<commit_msg>Oops forgot to mark id as entity to get AUTOINCREMENT #41<commit_after><?php
/**
 * @codeCoverageIgnore
 */

/* @var $installer Mage_Core_Model_Resource_Setup */
$installer = $this;

$installer->startSetup();

$table = $installer->getConnection()
    ->newTable($installer->getTable('sheep_debug/request_info'))
    ->addColumn('id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
        'identity' => true,
        'nullable' => false,
        'primary'  => true,
    ), 'Id')
    ->addColumn('token', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
        'nullable' => false,
    ), 'Request Token')
    ->addColumn('http_method', Varien_Db_Ddl_Table::TYPE_VARCHAR, 32, array(
        'nullable' => false,
    ), 'Http Method')
    ->addColumn('request_path', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
        'nullable' => false,
    ), 'Request Path')
    ->addColumn('response_code', Varien_Db_Ddl_Table::TYPE_TINYINT, null, array(
        'nullable' => false,
    ), 'Http Response Status Code')
    ->addColumn('session_id', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
        'nullable' => true,
    ), 'Session Id')
    ->addColumn('date', Varien_Db_Ddl_Table::TYPE_DATETIME, null, array(
        'nullable' => false,
    ), 'Date')
    ->addColumn('time', Varien_Db_Ddl_Table::TYPE_DECIMAL, array(15, 2), array(
        'nullable' => true,
    ), 'Total Time')
    ->addColumn('peak_memory', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
        'nullable' => false
    ), 'Peak Memory used in bytes')
    ->addColumn('info', Varien_Db_Ddl_Table::TYPE_BLOB, 16777216, array(
        'nullable' => false,
        'default'  => '',
    ), 'Serialized Info')
    ->addIndex($this->getIdxName('sheep_debug/request_info', array('token')), array('token'))
    ->addIndex($this->getIdxName('sheep_debug/request_info', array('session_id')), array('session_id'))
    ->addIndex($this->getIdxName('sheep_debug/request_info', array('request_path')), array('request_path'));

$this->getConnection()->createTable($table);

$installer->endSetup();
{'fraction_non_alphanumeric': 0.17741536940943908, 'fraction_numerical': 0.011366444279713369, 'mean_word_length': 4.277705345501956, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 74, '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': '2761431', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1395, 'n_words': 228}