<commit_before><?php
	require_once('../panelwidgets/abstract.widget.php');

	class SystemWidget extends AbstractWidget
	{
		public $host;
		public $current_time;
		public $system;
		public $kernel;
		public $firmware;
		public $uptime;
		
		public function load()
		{
			$this->current_time = exec("date +'%d %b %Y<br />%T %Z'");
			
			list($this->system, $this->host, $this->kernel, $this->firmware) = preg_split("/\s/", exec("uname -a"), 5);
			
			$uptime_array = explode(" ", exec("cat /proc/uptime"));
			$seconds = round($uptime_array[0], 0);
			$minutes = $seconds / 60;
			$hours = $minutes / 60;
			$days = floor($hours / 24);
			$hours = sprintf('%02d', floor($hours - ($days * 24)));
			$minutes = sprintf('%02d', floor($minutes - ($days * 24 * 60) - ($hours * 60)));
			
			$this->uptime = ($days <= 0 ? $days . "d " : "") .  $hours . "h " .  $minutes . "m";
		}
		
		public function manage_post($post)
		{
			return 0;
		}
	}
?><commit_msg>Removed <br /> from date<commit_after><?php
	require_once('../panelwidgets/abstract.widget.php');

	class SystemWidget extends AbstractWidget
	{
		public $host;
		public $current_time;
		public $system;
		public $kernel;
		public $firmware;
		public $uptime;
		
		public function load()
		{
			$this->current_time = exec("date +'%d %b %Y %T %Z'");
			
			list($this->system, $this->host, $this->kernel, $this->firmware) = preg_split("/\s/", exec("uname -a"), 5);
			
			$uptime_array = explode(" ", exec("cat /proc/uptime"));
			$seconds = round($uptime_array[0], 0);
			$minutes = $seconds / 60;
			$hours = $minutes / 60;
			$days = floor($hours / 24);
			$hours = sprintf('%02d', floor($hours - ($days * 24)));
			$minutes = sprintf('%02d', floor($minutes - ($days * 24 * 60) - ($hours * 60)));
			
			$this->uptime = ($days <= 0 ? $days . "d " : "") .  $hours . "h " .  $minutes . "m";
		}
		
		public function manage_post($post)
		{
			return 0;
		}
	}
?>
{'fraction_non_alphanumeric': 0.21212121212121213, 'fraction_numerical': 0.024033437826541274, 'mean_word_length': 3.136069114470842, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1066140', 'n_tokens_mistral': 852, 'n_tokens_neox': 689, 'n_words': 161}