<commit_before><?php
/**
 * User: <NAME>
 * Date: 2013-02-19
 * Time: 08:26 PM
 * Auto-generated by "generate.filters.php"
 */
namespace Sherlock\components\filters;

use Sherlock\components;

/**
 * @method \Sherlock\components\filters\HasChild type() type(\string $value)
 * @method \Sherlock\components\filters\HasChild query() query(\sherlock\components\QueryInterface $value)

 */
class HasChild extends \Sherlock\components\BaseComponent implements \Sherlock\components\FilterInterface
{
    public function __construct($hashMap = null)
    {

        parent::__construct($hashMap);
    }

    public function toArray()
    {
        $ret = NULL;

        return $ret;
    }

}<commit_msg>Fix HasChild...still need proper test<commit_after><?php
/**
 * User: <NAME>
 * Date: 2013-02-19
 * Time: 08:26 PM
 * Auto-generated by "generate.filters.php"
 */
namespace Sherlock\components\filters;

use Sherlock\components;

/**
 * @method \Sherlock\components\filters\HasChild type() type(\string $value)
 * @method \Sherlock\components\filters\HasChild query() query(\sherlock\components\QueryInterface $value)

 */
class HasChild extends \Sherlock\components\BaseComponent implements \Sherlock\components\FilterInterface
{
    public function __construct($hashMap = null)
    {

        parent::__construct($hashMap);
    }

    public function toArray()
    {
		$ret = array (
			'has_child' =>
			array (
				'type' => $this->params["type"],
				'query' => $this->params["query"]->toArray(),
				//'_cache' => $this->params["_cache"],
			),
		);

        return $ret;
    }

}
{'fraction_non_alphanumeric': 0.15063291139240506, 'fraction_numerical': 0.015189873417721518, 'mean_word_length': 3.4787535410764874, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '2484495', 'n_tokens_mistral': 531, 'n_tokens_neox': 479, 'n_words': 98}