<commit_before><?php

namespace Sulphur;

class FilterableListTest extends \PHPUnit_Framework_TestCase {

	/**
	 * @var FilterableList
	 */
	protected $list;

	protected function setUp() {
		$this->list = new FilterableList(
				array(
					new Filterable(array('Title' => 'Minor Melee', 'League' => false)),
					new Filterable(array('Title' => 'Minor Melee', 'League' => true)),
					new Filterable(array('Title' => 'Clepal'))
				), null);
	}

	/**
	 * @covers Sulphur\FilterableList::__call
	 */
	public function test__call() {
		$references = $this->list->where('Title')->is('Minor Melee');
		$this->assertEquals('Minor Melee', $references[0]->Title);
	}

	/**
	 * @depends test__call
	 * @covers Sulphur\FilterableList::where
	 */
	public function testWhere() {
		$this->assertEquals(2, count($this->list->where('Title')->is('Minor Melee')));
		$this->assertEquals(1, count($this->list->where('Title')->is('Minor Melee')->where('League')->is(true)));
	}

	/**
	 * @covers Sulphur\FilterableList::getIterator
	 */
	public function testGetIterator() {
		$this->isInstanceOf('\Traversable', $this->list->getIterator());
	}

	/**
	 * @covers Sulphur\FilterableList::count
	 */
	public function testCount() {
		$this->assertInternalType('int', $this->list->count());
	}

	/**
	 * @covers Sulphur\FilterableList::offsetExists
	 */
	public function testOffsetExists() {
		$this->assertEquals(true, $this->list->offsetExists(0));
		$this->assertEquals(false, $this->list->offsetExists(3));
	}

	/**
	 * @covers Sulphur\FilterableList::offsetGet
	 */
	public function testOffsetGet() {
		$this->assertInstanceOf('Sulphur\Filterable', $this->list->offsetGet(0));
	}

}<commit_msg>fix risky test warning in FilterableListTest<commit_after><?php

namespace Sulphur;

class FilterableListTest extends \PHPUnit_Framework_TestCase {

	/**
	 * @var FilterableList
	 */
	protected $list;

	protected function setUp() {
		$this->list = new FilterableList(
				array(
					new Filterable(array('Title' => 'Minor Melee', 'League' => false)),
					new Filterable(array('Title' => 'Minor Melee', 'League' => true)),
					new Filterable(array('Title' => 'Clepal'))
				), null);
	}

	/**
	 * @covers Sulphur\FilterableList::__call
	 */
	public function test__call() {
		$references = $this->list->where('Title')->is('Minor Melee');
		$this->assertEquals('Minor Melee', $references[0]->Title);
	}

	/**
	 * @depends test__call
	 * @covers Sulphur\FilterableList::where
	 */
	public function testWhere() {
		$this->assertEquals(2, count($this->list->where('Title')->is('Minor Melee')));
		$this->assertEquals(1, count($this->list->where('Title')->is('Minor Melee')->where('League')->is(true)));
	}

	/**
	 * @covers Sulphur\FilterableList::getIterator
	 */
	public function testGetIterator() {
		$this->assertInstanceOf('\Traversable', $this->list->getIterator());
	}

	/**
	 * @covers Sulphur\FilterableList::count
	 */
	public function testCount() {
		$this->assertInternalType('int', $this->list->count());
	}

	/**
	 * @covers Sulphur\FilterableList::offsetExists
	 */
	public function testOffsetExists() {
		$this->assertEquals(true, $this->list->offsetExists(0));
		$this->assertEquals(false, $this->list->offsetExists(3));
	}

	/**
	 * @covers Sulphur\FilterableList::offsetGet
	 */
	public function testOffsetGet() {
		$this->assertInstanceOf('Sulphur\Filterable', $this->list->offsetGet(0));
	}

}
{'fraction_non_alphanumeric': 0.19368172423974017, 'fraction_numerical': 0.00354295837023915, 'mean_word_length': 4.722972972972973, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 75, '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': '2209839', 'n_tokens_mistral': 1230, 'n_tokens_neox': 1109, 'n_words': 181}