<commit_before><?php
/**
 * Populate DB schema with module's initial data
 * .
 * User: <NAME> <<EMAIL>>
 */
namespace Praxigento\BonusLoyalty\Setup;

use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;

class InstallData extends \Praxigento\Core\Setup\Data\Base
{
    protected function _setup(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
        // TODO: Implement _setup() method.
    }


}<commit_msg>MOBI-265 - data setup migration<commit_after><?php
/**
 * Populate DB schema with module's initial data
 * .
 * User: <NAME> <<EMAIL>>
 */
namespace Praxigento\BonusLoyalty\Setup;

use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Praxigento\Accounting\Lib\Entity\Type\Operation as TypeOperation;
use Praxigento\Bonus\Base\Lib\Entity\Type\Calc as TypeCalc;
use Praxigento\Bonus\Loyalty\Lib\Config as Cfg;

class InstallData extends \Praxigento\Core\Setup\Data\Base
{
    private function _addAccountingOperationsTypes()
    {
        $this->_getConn()->insertArray(
            $this->_getTableName(TypeOperation::ENTITY_NAME),
            [TypeOperation::ATTR_CODE, TypeOperation::ATTR_NOTE],
            [
                [Cfg::CODE_TYPE_OPER_BONUS_LOYALTY, 'Loyalty bonus.']
            ]
        );
    }

    private function _addBonusCalculationsTypes()
    {
        $this->_getConn()->insertArray(
            $this->_getTableName(TypeCalc::ENTITY_NAME),
            [TypeCalc::ATTR_CODE, TypeCalc::ATTR_NOTE],
            [
                [Cfg::CODE_TYPE_CALC_COMPRESSION, 'Compression for Loyalty bonus.'],
                [Cfg::CODE_TYPE_CALC_QUALIFICATION, 'Qualification parameters for Loyalty bonus.'],
                [Cfg::CODE_TYPE_CALC_BONUS, 'Loyalty bonus itself.']
            ]
        );
    }

    protected function _setup(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
        $this->_addAccountingOperationsTypes();
        $this->_addBonusCalculationsTypes();
    }
}
{'fraction_non_alphanumeric': 0.11127237542331882, 'fraction_numerical': 0.001451378809869376, 'mean_word_length': 3.2904564315352696, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '5493022', 'n_tokens_mistral': 638, 'n_tokens_neox': 625, 'n_words': 107}