<commit_before><?php
namespace App\Repository\Code\Tests;

class ExplodeExtensionTest extends TestInterface
{
    public function getDescription()
    {
        return 'Obtain file extension with explode';
    }

    public function run($loop)
    {
        $file = '/tmp/'.uniqid().'.jpg';

        $this->start($loop);

        for ($i = 0; $i < $this->loop; ++$i) {
            $value = explode('.', $file);
            $value = strtolower(end($value));
        }

        return $this->end();
    }
}<commit_msg>Moved test file creation inside start on ExplodeExtensionTest<commit_after><?php
namespace App\Repository\Code\Tests;

class ExplodeExtensionTest extends TestInterface
{
    public function getDescription()
    {
        return 'Obtain file extension with explode';
    }

    public function run($loop)
    {
        $this->start($loop);

        $file = '/tmp/'.uniqid().'.jpg';

        for ($i = 0; $i < $this->loop; ++$i) {
            $value = explode('.', $file);
            $value = strtolower(end($value));
        }

        return $this->end();
    }
}
{'fraction_non_alphanumeric': 0.15555555555555556, 'fraction_numerical': 0.001851851851851852, 'mean_word_length': 2.2957317073170733, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '3517799', 'n_tokens_mistral': 326, 'n_tokens_neox': 318, 'n_words': 77}