<commit_before><?php

class HTMLPurifier_URIScheme_tel extends \HTMLPurifier_URIScheme
{
    public $browsable = true;

    public $may_omit_host = true;

    public function doValidate(&$uri, $config, $context)
    {
        return preg_match('|\+?\d+(x[\d]+)?|', $uri);
    }
}<commit_msg>Validation needs to return boolean<commit_after><?php

class HTMLPurifier_URIScheme_tel extends \HTMLPurifier_URIScheme
{
    public $browsable = true;

    public $may_omit_host = true;

    public function doValidate(&$uri, $config, $context)
    {
        return preg_match('|\+?\d+(x[\d]+)?|', $uri->path) === 1;
    }
}
{'fraction_non_alphanumeric': 0.15447154471544716, 'fraction_numerical': 0.0016260162601626016, 'mean_word_length': 3.888888888888889, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '1864885', 'n_tokens_mistral': 229, 'n_tokens_neox': 218, 'n_words': 43}