<commit_before><?php

/**
 * @package BaseX 
 * 
 * @copyright Copyright (c) 2012, <NAME>
 * @author <NAME> <<EMAIL>>
 * @license BSD License
 */

namespace BaseX\Iterator;

use FilterIterator;
use InvalidArgumentException;
use Traversable;
use FilterIterator;

/**
 * CallbackFilterIterator for php 5.3
 *
 * @author alxarch
 */
class CallbackFilter extends FilterIterator
{

  protected $callback;

  public function __construct(Traversable $iter, $callback)
  {
    parent::__construct($iter);

    if (!is_callable($callback))
      throw new InvalidArgumentException('Invalid Callback');
<commit_msg>- Fix BaseX\Iterator\FilterIterator import issues<commit_after><?php

/**
 * @package BaseX 
 * 
 * @copyright Copyright (c) 2012, <NAME>
 * @author <NAME> <<EMAIL>>
 * @license BSD License
 */

namespace BaseX\Iterator;

use InvalidArgumentException;
use Traversable;
use FilterIterator;

/**
 * CallbackFilterIterator for php 5.3
 *
 * @author alxarch
 */
class CallbackFilter extends FilterIterator
{

  protected $callback;

  public function __construct(Traversable $iter, $callback)
  {
    parent::__construct($iter);

    if (!is_callable($callback))
      throw new InvalidArgumentException('Invalid Callback');

{'fraction_non_alphanumeric': 0.11908646003262642, 'fraction_numerical': 0.009787928221859706, 'mean_word_length': 4.577272727272727, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '5699165', 'n_tokens_mistral': 380, 'n_tokens_neox': 354, 'n_words': 98}