<commit_before><?php


namespace Nikoms\FailLover\TestCaseResult;


class TestCaseTest extends \PHPUnit_Framework_TestCase
{
    public function testGetName()
    {
        $testCase = new TestCase('ClassName','method');
        $this->assertSame('ClassName::method', $testCase->getName());
    }

    public function testGetNameWithNamespace()
    {
        $testCase = new TestCase('TestNamespace\TestCaseClass','testMethod');
        $this->assertSame('TestNamespace\TestCaseClass::testMethod', $testCase->getName());
    }

    public function testGetNameWithIndexedData()
    {
        $testCase = new TestCase('TestNamespace\TestCaseClass','testMethod', 0);
        $this->assertSame('TestNamespace\TestCaseClass::testMethod with data set #0', $testCase->getName());
    }

    public function testGetNameWithNamedData()
    {
        $testCase = new TestCase('TestNamespace\TestCaseClass','testMethod', 'my named data');
        $this->assertSame('TestNamespace\TestCaseClass::testMethod with data set "my named data"', $testCase->getName());
    }<commit_msg>Refactor TestCase<commit_after><?php


namespace Nikoms\FailLover\TestCaseResult;


class TestCaseTest extends \PHPUnit_Framework_TestCase
{
    public function testGetName()
    {
        $testCase = new TestCase('ClassName','method');
        $this->assertSame('ClassName::method', $testCase->getName());
    }

    public function testGetNameWithNamespace()
    {
        $testCase = new TestCase('TestNamespace\TestCaseClass','testMethod');
        $this->assertSame('TestNamespace\TestCaseClass::testMethod', $testCase->getName());
    }

    public function testGetNameWithIndexedData()
    {
        $testCase = new TestCase('TestNamespace\TestCaseClass','testMethod', 0);
        $this->assertSame('TestNamespace\TestCaseClass::testMethod#0', $testCase->getName());
    }

    public function testGetNameWithNamedData()
    {
        $testCase = new TestCase('TestNamespace\TestCaseClass','testMethod', 'my named data');
        $this->assertSame('TestNamespace\TestCaseClass::testMethod@my named data', $testCase->getName());
    }
{'fraction_non_alphanumeric': 0.13526340768865686, 'fraction_numerical': 0.0018984337921214998, 'mean_word_length': 4.3232323232323235, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '5201105', 'n_tokens_mistral': 571, 'n_tokens_neox': 559, 'n_words': 99}