<commit_before><?php
include('../include.php');
use Tivoka\Server as JsonRpc;

$methods = array(
	'demo.sayHello' => function($request)
	{
		$request->result('Hello World!');
	},
	
	'demo.substract' => function($request)
	{
		if(!is_array($request->params)) return $request->error(-32602);
		return $request->result(intval($request->params[0]) - intval($request->params[1]));
	}
);

Tivoka\Server::provide($methods)->dispatch();<commit_msg>Strip out unnecessary statement<commit_after><?php
include('../include.php');

$methods = array(
	'demo.sayHello' => function($request)
	{
		$request->result('Hello World!');
	},
	
	'demo.substract' => function($request)
	{
		if(!is_array($request->params)) return $request->error(-32602);
		return $request->result(intval($request->params[0]) - intval($request->params[1]));
	}
);

Tivoka\Server::provide($methods)->dispatch();
{'fraction_non_alphanumeric': 0.22350230414746544, 'fraction_numerical': 0.016129032258064516, 'mean_word_length': 6.065040650406504, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '3992195', 'n_tokens_mistral': 308, 'n_tokens_neox': 292, 'n_words': 40}