<commit_before><?php

function Q_filters_googleClosureCompiler($params)
{
	$content = implode("\n\n", $params['parts']);
	$compilation_level = isset($params['compilation_level'])
		? $params['compilation_level']
		: 'SIMPLE_OPTIMIZATIONS';
	$service_url = "http://closure-compiler.appspot.com/compile";
	$options = array(
		'js_code' => $content,
		'compilation_level' => $compilation_level,
		'output_format' => 'text',
		'output_info' => 'compiled_code'
	);
	$result = Q_Utils::post($service_url, $options);
	if ($error = substr($result, 0, 5) === 'Error') {
		throw new Q_Exception(
			"Google Closure Compiler:\n" . $result
		);
	}
	if (!trim($result)) {
		$options['output_info'] = 'errors';
		throw new Q_Exception(
			"Google Closure Compiler:\n" . Q_Utils::post($service_url, $options)
		);
	}
	return $result;
}<commit_msg>Updated endpoint for Google Closure Compiler service<commit_after><?php

function Q_filters_googleClosureCompiler($params)
{
	$content = implode("\n\n", $params['parts']);
	$compilation_level = isset($params['compilation_level'])
		? $params['compilation_level']
		: 'SIMPLE_OPTIMIZATIONS';
	$service_url = "https://closure-compiler.appspot.com/compile";
	$options = array(
		'js_code' => $content,
		'compilation_level' => $compilation_level,
		'output_format' => 'text',
		'output_info' => 'compiled_code'
	);
	$result = Q_Utils::post($service_url, $options);
	if ($error = substr($result, 0, 5) === 'Error') {
		throw new Q_Exception(
			"Google Closure Compiler:\n" . $result
		);
	}
	if (!trim($result)) {
		$options['output_info'] = 'errors';
		throw new Q_Exception(
			"Google Closure Compiler:\n" . Q_Utils::post($service_url, $options)
		);
	}
	return $result;
}
{'fraction_non_alphanumeric': 0.18192488262910797, 'fraction_numerical': 0.002347417840375587, 'mean_word_length': 5.482889733840304, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 1, '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': '411523', 'n_tokens_mistral': 652, 'n_tokens_neox': 605, 'n_words': 110}