<commit_before><?php
require_once('PHPUnit/Autoload.php');
require_once(dirname(__FILE__).'/../LRUCache/LRUCache.php');

class LRUCacheTest extends PHPUnit_Framework_TestCase {

    public function testStartsEmpty() {
        $lru = new LRUCache(1000);
        $this->assertNull($lru->get(1));
    }

    public function testGet() {
        $lru = new LRUCache(1000);
        $key = 'key1';
        $data = 'content for key1';
        $lru->put($key, $data);
        $this->assertEquals($lru->get($key), $data);
    }

    public function testMultipleGet() {
        $lru = new LRUCache(1000);
        $key = 'key1';
        $data = 'content for key1';
        $key2 = 'key2';
        $data2 = 'content for key2';

        $lru->put($key, $data);
        $lru->put($key2, $data2);

        $this->assertEquals($lru->get($key), $data);
        $this->assertEquals($lru->get($key2), $data2);
        
    }

    public function testPut() {}
}<commit_msg>Added testMassivePut.<commit_after><?php
require_once('PHPUnit/Autoload.php');
require_once(dirname(__FILE__).'/../LRUCache/LRUCache.php');

class LRUCacheTest extends PHPUnit_Framework_TestCase {

    public function testStartsEmpty() {
        $lru = new LRUCache(1000);
        $this->assertNull($lru->get(1));
    }

    public function testGet() {
        $lru = new LRUCache(1000);
        $key = 'key1';
        $data = 'content for key1';
        $lru->put($key, $data);
        $this->assertEquals($lru->get($key), $data);
    }

    public function testMultipleGet() {
        $lru = new LRUCache(1000);
        $key = 'key1';
        $data = 'content for key1';
        $key2 = 'key2';
        $data2 = 'content for key2';

        $lru->put($key, $data);
        $lru->put($key2, $data2);

        $this->assertEquals($lru->get($key), $data);
        $this->assertEquals($lru->get($key2), $data2);
    }

    public function testPut() {}

    public function testMassivePut() {
        $numEntries = 100000;
        $lru = new LRUCache($numEntries);

        while($numEntries > 0) {
            $lru->put($numEntries - 9999, 'some value...');
            $numEntries--;
        }
    }
}
{'fraction_non_alphanumeric': 0.17472118959107807, 'fraction_numerical': 0.028345724907063198, 'mean_word_length': 2.439297124600639, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '1728006', 'n_tokens_mistral': 769, 'n_tokens_neox': 712, 'n_words': 134}