<commit_before><?php

/*
 * This file is part of the AntiMattr MongoDB Migrations Library, a library by <NAME>.
 *
 * (c) 2014 <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AntiMattr\MongoDB\Migrations;

use AntiMattr\MongoDB\Migrations\Configuration\Configuration;
use AntiMattr\MongoDB\Migrations\Exception\AbortException;
use AntiMattr\MongoDB\Migrations\Exception\IrreversibleException;
use AntiMattr\MongoDB\Migrations\Exception\SkipException;
use Doctrine\MongoDB\Collection;
use Doctrine\MongoDB\Database;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
abstract class AbstractMigration
{
    /**
     * @var AntiMattr\MongoDB\Migrations\Configuration\Configuration
     */
    private $configuration;

    /**
     * @var AntiMattr\MongoDB\Migrations\OutputWriter
     */
    private $outputWriter;

    /**
     * @var Doctrine\MongoDB\Connection
     */
    protected $connection;

    /**
     * @var Symfony\Component\DependencyInjection\ContainerInterface
     */
    protected $container;

    /**
     * @var Doctrine\MongoDB\Database
     */
    protected $db;

    /**
     * @var AntiMattr\MongoDB\Migrations\Version
     */
    protected $version;

    public function __construct(Version $version, ContainerInterface $container = null)
    {
        $this->configuration = $version->getConfiguration();
        $this->outputWriter = $this->configuration->getOutputWriter();
        $this->connection = $this->configuration->getConnection();
        $this->connection = $this->connection->selectDatabase(
            $this->configuration->getMigrationsDatabaseName()
        );
        $this->version = $version;
        $this->container = $container;
    }

    /**
     * Get custom migration description
     *
     * @return string
     */<commit_msg>Resolved merge conflicts with master<commit_after><?php

/*
 * This file is part of the AntiMattr MongoDB Migrations Library, a library by <NAME>.
 *
 * (c) 2014 <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AntiMattr\MongoDB\Migrations;

use AntiMattr\MongoDB\Migrations\Configuration\Configuration;
use AntiMattr\MongoDB\Migrations\Exception\AbortException;
use AntiMattr\MongoDB\Migrations\Exception\IrreversibleException;
use AntiMattr\MongoDB\Migrations\Exception\SkipException;
use Doctrine\MongoDB\Collection;
use Doctrine\MongoDB\Database;

/**
 * @author <NAME> <<EMAIL>>
 */
abstract class AbstractMigration
{
    /**
     * @var AntiMattr\MongoDB\Migrations\Configuration\Configuration
     */
    private $configuration;

    /**
     * @var AntiMattr\MongoDB\Migrations\OutputWriter
     */
    private $outputWriter;

    /**
     * @var Doctrine\MongoDB\Connection
     */
    protected $connection;

    /**
     * @var Doctrine\MongoDB\Database
     */
    protected $db;

    /**
     * @var AntiMattr\MongoDB\Migrations\Version
     */
    protected $version;

    public function __construct(Version $version)
    {
        $this->configuration = $version->getConfiguration();
        $this->outputWriter = $this->configuration->getOutputWriter();
        $this->connection = $this->configuration->getConnection();
        $this->connection = $this->connection->selectDatabase(
            $this->configuration->getMigrationsDatabaseName()
        );
        $this->version = $version;
    }

    /**
     * Get custom migration description
     *
     * @return string
     */
{'fraction_non_alphanumeric': 0.11695101816180517, 'fraction_numerical': 0.002201430930104568, 'mean_word_length': 3.144811858608894, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 42, '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': '1787056', 'n_tokens_mistral': 1060, 'n_tokens_neox': 1038, 'n_words': 211}