<commit_before><?php

/**
 * 
 * @author <EMAIL>
 * @copyright Telaxus LLC
 * @license MIT
 * @version 1.0
 * @package epesi-Base
 * @subpackage EpesiStore
 */
defined("_VALID_ACCESS") || die('Direct access forbidden');

class Base_EpesiStoreInstall extends ModuleInstall {

    public function install() {
		Base_ThemeCommon::install_default_theme($this->get_type());
        $ret = true;
        $ret &= DB::CreateTable('epesi_store_modules', '
            module_id I4 PRIMARY KEY,
            version C(10),
            order_id I4 NOTNULL,
            file C(20)');
        if (!$ret) {
            print('Unable to create table epesi_store_modules.<br>');
            return false;
        }
        if ($this->create_data_dir())
            return true;
        return false;
    }

    public function uninstall() {
		Base_ThemeCommon::uninstall_default_theme($this->get_type());
        DB::DropTable('epesi_store_modules');
        $this->remove_data_dir();
        return true;
    }

    public function version() {
        return array("1.0");
    }

    public function requires($v) {
        return array(
            array('name' => 'Base/Admin', 'version' => 0),<commit_msg>fix bug in installing module<commit_after><?php

/**
 * 
 * @author <EMAIL>
 * @copyright Telaxus LLC
 * @license MIT
 * @version 1.0
 * @package epesi-Base
 * @subpackage EpesiStore
 */
defined("_VALID_ACCESS") || die('Direct access forbidden');

class Base_EpesiStoreInstall extends ModuleInstall {

    public function install() {
		Base_ThemeCommon::install_default_theme($this->get_type());
        $ret = true;
        $ret &= DB::CreateTable('epesi_store_modules', '
            module_id I4 PRIMARY KEY,
            version C(10),
            module_license_id I4 NOTNULL,
            file C(20)');
        if (!$ret) {
            print('Unable to create table epesi_store_modules.<br>');
            return false;
        }
        if ($this->create_data_dir())
            return true;
        return false;
    }

    public function uninstall() {
		Base_ThemeCommon::uninstall_default_theme($this->get_type());
        DB::DropTable('epesi_store_modules');
        $this->remove_data_dir();
        return true;
    }

    public function version() {
        return array("1.0");
    }

    public function requires($v) {
        return array(
            array('name' => 'Base/Admin', 'version' => 0),
{'fraction_non_alphanumeric': 0.1313383208645054, 'fraction_numerical': 0.00914380714879468, 'mean_word_length': 2.473304473304473, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, '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': '2264666', 'n_tokens_mistral': 728, 'n_tokens_neox': 702, 'n_words': 159}