<commit_before><?php

namespace Oro\Bundle\EmailBundle\Migrations\Schema\v1_3;

use Psr\Log\LoggerInterface;

use Metadata\MetadataFactory;

use Oro\Bundle\EntityConfigBundle\Metadata\EntityMetadata;
use Oro\Bundle\EntityConfigBundle\Metadata\FieldMetadata;
use Oro\Bundle\MigrationBundle\Migration\ArrayLogger;
use Oro\Bundle\MigrationBundle\Migration\ParametrizedMigrationQuery;

/**
 * Sets value of email.available_in_template attribute to TRUE for all fields
 * except a value of this attribute is changed by an user
 * and has own @ConfigField annotations with email.available_in_template attribute
 */
class UpdateAvailableInTemplateQuery extends ParametrizedMigrationQuery
{
    protected static $allowedTypes = [
        'string'    => true,
        'integer'   => true,
        'smallint'  => true,
        'bigint'    => true,
        'boolean'   => true,<commit_msg>CRM-1610: Create migrations for incompatible initial migrations - fixed namespace<commit_after><?php

namespace Oro\Bundle\EmailBundle\Migrations\Schema\v1_2;

use Psr\Log\LoggerInterface;

use Metadata\MetadataFactory;

use Oro\Bundle\EntityConfigBundle\Metadata\EntityMetadata;
use Oro\Bundle\EntityConfigBundle\Metadata\FieldMetadata;
use Oro\Bundle\MigrationBundle\Migration\ArrayLogger;
use Oro\Bundle\MigrationBundle\Migration\ParametrizedMigrationQuery;

/**
 * Sets value of email.available_in_template attribute to TRUE for all fields
 * except a value of this attribute is changed by an user
 * and has own @ConfigField annotations with email.available_in_template attribute
 */
class UpdateAvailableInTemplateQuery extends ParametrizedMigrationQuery
{
    protected static $allowedTypes = [
        'string'    => true,
        'integer'   => true,
        'smallint'  => true,
        'bigint'    => true,
        'boolean'   => true,
{'fraction_non_alphanumeric': 0.0849780701754386, 'fraction_numerical': 0.0043859649122807015, 'mean_word_length': 4.33625730994152, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '3144715', 'n_tokens_mistral': 508, 'n_tokens_neox': 520, 'n_words': 129}