<commit_before><?php
/******************************************************************************
 * An iterator interface over the Leagues flysystem.
 * Copyright (c) 2014, 2015 <NAME> <<EMAIL>>
 *
 * This software is licensed under The MIT License. You should have received 
 * a copy of the along with the code.
 */

class FlightcontrolTest extends _TestCaseBase {
    public function test_getExisting() {
        $this->assertNotNull($this->flightcontrol->get("/root"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_1"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_1/file_1_1"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_1/file_1_2"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_2"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_2/dir_2_1"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_2/dir_2_1/file_2_1_1"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_2/dir_2_1/file_2_1_2"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_2/file_2_1"));
    }

    public function test_nonExisting() {
        $this->assertNull($this->flightcontrol->get("/rootz/"));
        $this->assertNull($this->flightcontrol->get("/root/dir_1/foo_file"));
    } 

    public function test_directory() {
        $this->assertNotNull($this->flightcontrol->directory("/root"));
        $this->assertNotNull($this->flightcontrol->directory("/root/dir_1"));
        $this->assertNull($this->flightcontrol->directory("/root/dir_1/file_1_1"));
        $this->assertNull($this->flightcontrol->directory("/root/dir_1/file_1_2"));
        $this->assertNotNull($this->flightcontrol->directory("/root/dir_2"));
        $this->assertNotNull($this->flightcontrol->directory("/root/dir_2/dir_2_1"));
        $this->assertNull($this->flightcontrol->directory("/root/dir_2/dir_2_1/file_2_1_1"));
        $this->assertNull($this->flightcontrol->directory("/root/dir_2/dir_2_1/file_2_1_2"));
        $this->assertNull($this->flightcontrol->directory("/root/dir_2/file_2_1"));
    }

    public function test_file() {
        $this->assertNull($this->flightcontrol->file("/root"));
        $this->assertNull($this->flightcontrol->file("/root/dir_1"));
        $this->assertNotNull($this->flightcontrol->file("/root/dir_1/file_1_1"));
        $this->assertNotNull($this->flightcontrol->file("/root/dir_1/file_1_2"));
        $this->assertNull($this->flightcontrol->file("/root/dir_2"));
        $this->assertNull($this->flightcontrol->file("/root/dir_2/dir_2_1"));
        $this->assertNotNull($this->flightcontrol->file("/root/dir_2/dir_2_1/file_2_1_1"));
        $this->assertNotNull($this->flightcontrol->file("/root/dir_2/dir_2_1/file_2_1_2"));
        $this->assertNotNull($this->flightcontrol->file("/root/dir_2/file_2_1"));
    }
}<commit_msg>test on makeFDirectory<commit_after><?php
/******************************************************************************
 * An iterator interface over the Leagues flysystem.
 * Copyright (c) 2014, 2015 <NAME> <<EMAIL>>
 *
 * This software is licensed under The MIT License. You should have received 
 * a copy of the along with the code.
 */

class FlightcontrolTest extends _TestCaseBase {
    public function test_getExisting() {
        $this->assertNotNull($this->flightcontrol->get("/root"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_1"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_1/file_1_1"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_1/file_1_2"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_2"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_2/dir_2_1"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_2/dir_2_1/file_2_1_1"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_2/dir_2_1/file_2_1_2"));
        $this->assertNotNull($this->flightcontrol->get("/root/dir_2/file_2_1"));
    }

    public function test_nonExisting() {
        $this->assertNull($this->flightcontrol->get("/rootz/"));
        $this->assertNull($this->flightcontrol->get("/root/dir_1/foo_file"));
    } 

    public function test_directory() {
        $this->assertNotNull($this->flightcontrol->directory("/root"));
        $this->assertNotNull($this->flightcontrol->directory("/root/dir_1"));
        $this->assertNull($this->flightcontrol->directory("/root/dir_1/file_1_1"));
        $this->assertNull($this->flightcontrol->directory("/root/dir_1/file_1_2"));
        $this->assertNotNull($this->flightcontrol->directory("/root/dir_2"));
        $this->assertNotNull($this->flightcontrol->directory("/root/dir_2/dir_2_1"));
        $this->assertNull($this->flightcontrol->directory("/root/dir_2/dir_2_1/file_2_1_1"));
        $this->assertNull($this->flightcontrol->directory("/root/dir_2/dir_2_1/file_2_1_2"));
        $this->assertNull($this->flightcontrol->directory("/root/dir_2/file_2_1"));
    }

    public function test_file() {
        $this->assertNull($this->flightcontrol->file("/root"));
        $this->assertNull($this->flightcontrol->file("/root/dir_1"));
        $this->assertNotNull($this->flightcontrol->file("/root/dir_1/file_1_1"));
        $this->assertNotNull($this->flightcontrol->file("/root/dir_1/file_1_2"));
        $this->assertNull($this->flightcontrol->file("/root/dir_2"));
        $this->assertNull($this->flightcontrol->file("/root/dir_2/dir_2_1"));
        $this->assertNotNull($this->flightcontrol->file("/root/dir_2/dir_2_1/file_2_1_1"));
        $this->assertNotNull($this->flightcontrol->file("/root/dir_2/dir_2_1/file_2_1_2"));
        $this->assertNotNull($this->flightcontrol->file("/root/dir_2/file_2_1"));
    }

    public function test_makeFDirectoryWithDottedName() {
        $fdir = $this->flightcontrol->makeFDirectory("dir.foo", array());
        $this->assertEquals("dir.foo", $fdir->name());
    }
}
{'fraction_non_alphanumeric': 0.21837928153717628, 'fraction_numerical': 0.029072681704260653, 'mean_word_length': 4.2926613616268785, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 187, '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': '4304201', 'n_tokens_mistral': 1936, 'n_tokens_neox': 1844, 'n_words': 168}