<commit_before><?php

namespace Tytot\AutoRestart;

use pocketmine\Server;
use pocketmine\scheduler\PluginTask;
use pocketmine\utils\TextFormat;

class Timer extends PluginTask{
	public function __construct($plugin){
  	$this->plugin = $plugin;
  	parent::__construct($plugin);
	}
  
  public function onRun($tick){
  	$time = microtime(true) - \pocketmine\START_TIME;
		$seconds = floor($time % 60);
		$minutes = null;
		$hours = null;
		if($time >= 60){
			$minutes = floor(($time % 3600) / 60);
			if($time >= 3600){
				$hours = floor(($time % (3600 * 24)) / 3600);
			}
		}
		
		if($minutes >= 58 && $hours == 1){
     	$this->getServer()->broadcastMessage(TextFormat::RED ."PotatoCraft will restart in 30 seconds!");
      	sleep(20);
     	$this->getServer()->broadcastMessage(TextFormat::RED ."PotatoCraft is restarting in 10 seconds!");
      	sleep(9);
     	$this->getServer()->broadcastMessage(TextFormat::RED ."PotatoCraft is restarting NOW!");
      	$p->kick("PotatoCraft restarted!);
      	sleep(1);
     	$this->getServer()->shutdown();
     	return;
    }
	}
}<commit_msg>Formatting fixes<commit_after><?php

namespace Tytot\AutoRestart;

use pocketmine\Server;
use pocketmine\scheduler\PluginTask;
use pocketmine\utils\TextFormat;

class Timer extends PluginTask{
	public function __construct($plugin){
  		$this->plugin = $plugin;
  		parent::__construct($plugin);
	}
  
  	public function onRun($tick){
  		$time = microtime(true) - \pocketmine\START_TIME;
			$seconds = floor($time % 60);
			$minutes = null;
			$hours = null;
		if($time >= 60){
			$minutes = floor(($time % 3600) / 60);
		}
		if($time >= 3600){
			$hours = floor(($time % (3600 * 24)) / 3600);
		}
		if($minutes >= 58 && $hours == 1){
			$this->getServer()->broadcastMessage(TextFormat::RED ."PotatoCraft will restart in 30 seconds!");
				sleep(20);
			$this->getServer()->broadcastMessage(TextFormat::RED ."PotatoCraft is restarting in 10 seconds!");
				sleep(9);
			$this->getServer()->broadcastMessage(TextFormat::RED ."PotatoCraft is restarting NOW!");
				$p->kick("PotatoCraft restarted!);
				sleep(1);
			$this->getServer()->shutdown();
			return;
		}
	}
}
{'fraction_non_alphanumeric': 0.1715345387111729, 'fraction_numerical': 0.03245248029670839, 'mean_word_length': 3.9045454545454548, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '1187251', 'n_tokens_mistral': 865, 'n_tokens_neox': 726, 'n_words': 151}