<commit_before><?php
namespace SimpleHealth;

use \SimpleHealth\ValidatorInterface as ValidatorInterface;
use \SimpleHealth\ValidatorResult as ValidatorResult;

class CurlValidator implements ValidatorInterface {
	function __construct() {
	}

	public function isValid(\Guzzle\ResponseInterface $data) {
		$http_status = $data->getStatusCode();

		if($http_status === 200) {
			return new ValidatorResult(true, '');
		}

		return new ValidatorResult(false, "Unhealthy http response code ({$http_status})");
	}
}<commit_msg>Fixed bad type hinting.<commit_after><?php
namespace SimpleHealth;

use \SimpleHealth\ValidatorInterface as ValidatorInterface;
use \SimpleHealth\ValidatorResult as ValidatorResult;
use \GuzzleHttp\Psr7\Response;

class CurlValidator implements ValidatorInterface {
	function __construct() {
	}

	public function isValid(\GuzzleHttp\Psr7\Response $data) {
		$http_status = $data->getStatusCode();

		if($http_status === 200) {
			return new ValidatorResult(true, '');
		}

		return new ValidatorResult(false, "Unhealthy http response code ({$http_status})");
	}
}
{'fraction_non_alphanumeric': 0.11244239631336406, 'fraction_numerical': 0.007373271889400922, 'mean_word_length': 5.917197452229299, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2868019', 'n_tokens_mistral': 341, 'n_tokens_neox': 314, 'n_words': 77}