<commit_before><?php

class ManagementApiController {
	public function request($func) {
		
		$method = "";
		switch ($func['method']) {
			case null:
			case 'get':
			case 'pull':
				$method = $func['zone'] . "Get";
				break;

			case 'post':
			case 'push':
				$method = $func['zone'] . "Post";
				break;

			default:
				return array();
				
				break;
		}

		if(!method_exists($this, $method)) return array();
		
		return $this->$method();
	}
	
	private function overviewGet() {
		return array(
			'springname' => \SpringDvs\Config::$spec['springname'],
			'hostname' => \SpringDvs\Config::$spec['hostname'],
			'service' => \SpringDvs\Config::$net['service'],
			'address' => $_SERVER['SERVER_ADDR'],
		);
	}
	
	private function registerPost() {
		
	}
}<commit_msg>api: Add master_addr and geosub to config<commit_after><?php

class ManagementApiController {
	public function request($func) {
		
		$method = "";
		switch ($func['method']) {
			case null:
			case 'get':
			case 'pull':
				$method = $func['zone'] . "Get";
				break;

			case 'post':
			case 'push':
				$method = $func['zone'] . "Post";
				break;

			default:
				return array();
				
				break;
		}

		if(!method_exists($this, $method)) return array();
		
		return $this->$method();
	}
	
	private function overviewGet() {
		return array(
			'springname' => \SpringDvs\Config::$spec['springname'],
			'hostname' => \SpringDvs\Config::$spec['hostname'],
			'service' => \SpringDvs\Config::$net['service'],
			'address' => $_SERVER['SERVER_ADDR'],
			
			'master_addr' => \SpringDvs\Config::$net['master'],
			'geosub' => 'esusx.uk',
		);
	}
	
	private function registerPost() {
		
	}
}
{'fraction_non_alphanumeric': 0.1931407942238267, 'fraction_numerical': 0.0, 'mean_word_length': 3.3534031413612566, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '5099427', 'n_tokens_mistral': 680, 'n_tokens_neox': 558, 'n_words': 116}