<commit_before><?php
use Models\Institution;

Class InstitutionTest extends \PHPUnit_Framework_TestCase {

	private $graph;

	function setUp(){
		EasyRdf_Namespace::set('schema', 'http://schema.org/');
        EasyRdf_Namespace::set('wcir', 'http://purl.org/oclc/ontology/wcir/');
        EasyRdf_TypeMapper::set('schema:Organization', 'OCLC\WorldCatRegistryDemo\Models\Institution');
        EasyRdf_TypeMapper::set('wcir:hoursSpecification', 'OCLC\WorldCatRegistryDemo\Models\HoursSpec');
        $this->graph = new EasyRdf_Graph();
        $this->graph->parseFile("sample-data/organization.rdf");
        $this->graph->parseFile("sample-data/normal-hours.rdf");
        $this->graph->parseFile("sample-data/special-hours.rdf");
	}
	
	/** can parse Organization */
	function testParse(){
	    $orgs = $this->graph->allOfType('schema:Organization');
	    $org = $orgs[0];
	    $this->assertEquals('OCLC WorldShare Platform Sandbox Institution', $org->getName());
	    
	    $this->assertNotNull($org->getNormalHoursSpecs());
	    $this->assertCount(7, $org->getNormalHoursSpecs());
	    $normalHours = $org->getNormalHoursSpecs();
	    $this->assertInstanceOf('OCLC\WorldCatRegistryDemo\Models\HoursSpec', $normalHours[1]);
	    $SundayHours = $normalHours[1];
	    $this->assertEquals('Sunday', $SundayHours->getDayOfWeek());
	    
	    $this->assertNotNull($org->getSortedSpecialHoursSpecs());
	    $this->assertCount(2, $org->getSortedSpecialHoursSpecs());
	    $specialHours = $org->getSortedSpecialHoursSpecs();
	    $this->assertInstanceOf('OCLC\WorldCatRegistryDemo\Models\HoursSpec', $specialHours[0]);
	    
	}
}<commit_msg>Added placeholders for negative tests<commit_after><?php
use Models\Institution;

Class InstitutionTest extends \PHPUnit_Framework_TestCase {

	private $graph;

	function setUp(){
		EasyRdf_Namespace::set('schema', 'http://schema.org/');
        EasyRdf_Namespace::set('wcir', 'http://purl.org/oclc/ontology/wcir/');
        EasyRdf_TypeMapper::set('schema:Organization', 'OCLC\WorldCatRegistryDemo\Models\Institution');
        EasyRdf_TypeMapper::set('wcir:hoursSpecification', 'OCLC\WorldCatRegistryDemo\Models\HoursSpec');
        $this->graph = new EasyRdf_Graph();
        $this->graph->parseFile("sample-data/organization.rdf");
        $this->graph->parseFile("sample-data/normal-hours.rdf");
        $this->graph->parseFile("sample-data/special-hours.rdf");
	}
	
	/** can parse Organization */
	function testParse(){
	    $orgs = $this->graph->allOfType('schema:Organization');
	    $org = $orgs[0];
	    $this->assertEquals('OCLC WorldShare Platform Sandbox Institution', $org->getName());
	    
	    $this->assertNotNull($org->getNormalHoursSpecs());
	    $this->assertCount(7, $org->getNormalHoursSpecs());
	    $normalHours = $org->getNormalHoursSpecs();
	    $this->assertInstanceOf('OCLC\WorldCatRegistryDemo\Models\HoursSpec', $normalHours[1]);
	    $SundayHours = $normalHours[1];
	    $this->assertEquals('Sunday', $SundayHours->getDayOfWeek());
	    
	    $this->assertNotNull($org->getSortedSpecialHoursSpecs());
	    $this->assertCount(2, $org->getSortedSpecialHoursSpecs());
	    $specialHours = $org->getSortedSpecialHoursSpecs();
	    $this->assertInstanceOf('OCLC\WorldCatRegistryDemo\Models\HoursSpec', $specialHours[0]);
	    
	}
	
	/** Load Organization but not Hours part of graph */
	
	/** Organization with no special hours */
	
	/** Organization with no hours */
}
{'fraction_non_alphanumeric': 0.16705539358600582, 'fraction_numerical': 0.003498542274052478, 'mean_word_length': 4.615384615384615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 53, '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': '5146507', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1069, 'n_words': 137}