<commit_before><?php
namespace php_active_record;

require_library('connectors/FishBaseAPI');

class test_connector_FishBase_api extends SimpletestUnitBase
{
    function testFishBaseAPI()
    {
        $test_run = true;
        $debug_info = false;
        $func = new FishBaseAPI($test_run, $debug_info);
        $page_taxa = $func->get_all_taxa('test'); //made-up resource_id 'test'
        $this->assertTrue(is_array($page_taxa), 'Taxa should be an array');
        foreach($page_taxa as $taxon)
        {
          $this->assertIsA($taxon, 'SchemaTaxon', 'Response should be an array of SchemaTaxon');
          if($dataObject = $taxon->dataObjects[0]) $this->assertIsA($dataObject, 'SchemaDataObject', 'Taxon should have a data object');
        }
    }
}
/*
$resource_id = 42;
$fishbase = new FishBaseAPI();
$fishbase->get_all_taxa($resource_id);

*/
?>

<commit_msg>Forgot to remove comments.<commit_after><?php
namespace php_active_record;
require_library('connectors/FishBaseAPI');

class test_connector_FishBase_api extends SimpletestUnitBase
{
    function testFishBaseAPI()
    {
        $test_run = true;
        $debug_info = false;
        $func = new FishBaseAPI($test_run, $debug_info);
        $page_taxa = $func->get_all_taxa('test'); //made-up resource_id 'test'
        $this->assertTrue(is_array($page_taxa), 'Taxa should be an array');
        foreach($page_taxa as $taxon)
        {
          $this->assertIsA($taxon, 'SchemaTaxon', 'Response should be an array of SchemaTaxon');
          if($dataObject = $taxon->dataObjects[0]) $this->assertIsA($dataObject, 'SchemaDataObject', 'Taxon should have a data object');
        }
    }
}
?>


{'fraction_non_alphanumeric': 0.1346153846153846, 'fraction_numerical': 0.002403846153846154, 'mean_word_length': 3.625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '922194', 'n_tokens_mistral': 546, 'n_tokens_neox': 537, 'n_words': 111}