<commit_before><?php
Yii::import('application.commands.AbstractCommand');

/**
 * Yiic command to delete assets and cache
 */
class GameTasksCommand extends AbstractCommand
{

	/**
	 * if confirmation prompt is displayed or not
	 *
	 * @var boolean
	 */
	public $interactive = 1;

	/**
	 * @see CConsoleCommand::init()
	 * @return void
	 */
	public function init()
	{
		parent::init();
		$this->defaultAction = 'help';
	}

	/**
	 * update inhabited islands
	 *
	 * @param integer $world_id
	 * @return void
	 */
	public function actionUpdateIslands($world_id)
	{
		foreach (Island::model()->getWorldIslands($world_id) as $island) {
			if ($island instanceof Island && $island->ownerId !== null)
			{
				$this->verbose('Update island %d:%s with resources', $island->id, $island->name);
				$ts = $island->updateResources();
			}
		}
	}

}<commit_msg>add output<commit_after><?php
Yii::import('application.commands.AbstractCommand');

/**
 * Yiic command to delete assets and cache
 */
class GameTasksCommand extends AbstractCommand
{

	/**
	 * if confirmation prompt is displayed or not
	 *
	 * @var boolean
	 */
	public $interactive = 1;

	/**
	 * @see CConsoleCommand::init()
	 * @return void
	 */
	public function init()
	{
		parent::init();
		$this->defaultAction = 'help';
	}

	/**
	 * update inhabited islands
	 *
	 * @param integer $world_id
	 * @return void
	 */
	public function actionUpdateIslands($world_id)
	{
		$this->printf('[UpdateIslands] %s Start update islands for world %s', date('Y-m-d H:i:s'), $world_id);
		$updated = 0;
		foreach (Island::model()->getWorldIslands($world_id) as $island) {
			if ($island instanceof Island && $island->ownerId !== null)
			{
				$this->verbose("\t[UpdateIslands] Update island %d:%s with resources", $island->id, $island->name);
				$ts = $island->updateResources();
				$updated++;
			}
		}
		$this->printf('[UpdateIslands] %s End update islands for world %s, updated %d', date('Y-m-d H:i:s'), $world_id, $updated);
	}

}
{'fraction_non_alphanumeric': 0.16590794132524025, 'fraction_numerical': 0.0015174506828528073, 'mean_word_length': 3.836185819070905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '3418960', 'n_tokens_mistral': 712, 'n_tokens_neox': 639, 'n_words': 160}