<commit_before><?php

/**
 * @copyright  <NAME>
 * @license    http://www.makoframework.com/license
 */

namespace mako\application\commands\migrations;

use mako\application\commands\migrations\Command;
use mako\application\commands\migrations\RollbackTrait;

/**
 * Command that rolls back the last batch of migrations.
 * 
 * @author  <NAME>
 */

class Down extends Command
{
	use RollbackTrait;

	/**
	 * Command information.
	 * 
	 * @var array
	 */

	protected $commandInformation = 
	[
		'description' => 'Rolls back the last batch of migrations.',
		'arguments'   => 
		[
			'batches' => 
			[
				'optional'    => true,
				'description' => 'Number of batches to roll back'
			],
		],
		'options'     => [],
	];

	/**
	 * Executes the command.
	 * 
	 * @access  public
	 * @param   string  $arg2  Number of batches to roll back
	 */

	public function execute($arg2 = 1)
	{
		$this->rollback($arg2);
	}
}<commit_msg>Use option instead of argument<commit_after><?php

/**
 * @copyright  <NAME>
 * @license    http://www.makoframework.com/license
 */

namespace mako\application\commands\migrations;

use mako\application\commands\migrations\Command;
use mako\application\commands\migrations\RollbackTrait;

/**
 * Command that rolls back the last batch of migrations.
 * 
 * @author  <NAME>
 */

class Down extends Command
{
	use RollbackTrait;

	/**
	 * Command information.
	 * 
	 * @var array
	 */

	protected $commandInformation = 
	[
		'description' => 'Rolls back the last batch of migrations.',
		'arguments'   => [],
		'options'     => 
		[
			'batches' => 
			[
				'optional'    => true,
				'description' => 'Number of batches to roll back'
			],
		],
	];

	/**
	 * Executes the command.
	 * 
	 * @access  public
	 * @param   string  $batches  Number of batches to roll back
	 */

	public function execute($batches = 1)
	{
		$this->rollback($batches);
	}
}
{'fraction_non_alphanumeric': 0.14087513340448238, 'fraction_numerical': 0.0026680896478121665, 'mean_word_length': 2.914405010438413, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2396227', 'n_tokens_mistral': 677, 'n_tokens_neox': 613, 'n_words': 150}