<commit_before><?php
namespace Concrete\Package\VividStore;

use Package;
use \Concrete\Package\VividStore\Src\VividStore\Payment\Method as PaymentMethod;
use \Concrete\Package\VividStore\Src\VividStore\Shipping\ShippingMethodType as ShippingMethodType;
use \Concrete\Package\VividStore\Src\VividStore\Utilities\Installer;
use Whoops\Exception\ErrorException;
use Route;
use Asset;
use AssetList;
use View;

class controller extends Package
{
    protected $pkgHandle = 'vivid_store';
    protected $appVersionRequired = '5.7.5.7';
    protected $pkgVersion = '3.1.1dev1';
    public function getPackageDescription()
    {
        return t("Add a Store to your Site");
    }

    public function getPackageName()
    {
        return t("Vivid Store");
    }

    public function installStore()
    {
        $pkg = Package::getByHandle('vivid_store');
        if (version_compare($pkg->getPackageVersion(), '2.1', '<')) {
            Installer::renameDatabaseTables($pkg);
        }
        if (version_compare(APP_VERSION, '5.7.4', '<')) {
            Installer::refreshDatabase($pkg);
        }
        Installer::installSinglePages($pkg);<commit_msg>version up for bug fixes.<commit_after><?php
namespace Concrete\Package\VividStore;

use Package;
use \Concrete\Package\VividStore\Src\VividStore\Payment\Method as PaymentMethod;
use \Concrete\Package\VividStore\Src\VividStore\Shipping\ShippingMethodType as ShippingMethodType;
use \Concrete\Package\VividStore\Src\VividStore\Utilities\Installer;
use Whoops\Exception\ErrorException;
use Route;
use Asset;
use AssetList;
use View;

class controller extends Package
{
    protected $pkgHandle = 'vivid_store';
    protected $appVersionRequired = '5.7.5.7';
    protected $pkgVersion = '3.1.1';
    public function getPackageDescription()
    {
        return t("Add a Store to your Site");
    }

    public function getPackageName()
    {
        return t("Vivid Store");
    }

    public function installStore()
    {
        $pkg = Package::getByHandle('vivid_store');
        if (version_compare($pkg->getPackageVersion(), '2.1', '<')) {
            Installer::renameDatabaseTables($pkg);
        }
        if (version_compare(APP_VERSION, '5.7.4', '<')) {
            Installer::refreshDatabase($pkg);
        }
        Installer::installSinglePages($pkg);
{'fraction_non_alphanumeric': 0.1240276577355229, 'fraction_numerical': 0.010803802938634399, 'mean_word_length': 3.521484375, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5673915', 'n_tokens_mistral': 696, 'n_tokens_neox': 690, 'n_words': 139}