<commit_before><?php
	declare(strict_types=1);
	namespace Edde\Utils;

	use Edde\Inject\Utils\StringUtils;
	use Edde\TestCase;

	class StringUtilsTest extends TestCase {
		use StringUtils;

		public function testMatch() {
			self::assertSame([
				'key'   => 'foo',
				'value' => 'bar',
			], $this->stringUtils->match('foo=bar', '~(?<key>[a-z]+)=(?<value>[a-z]+)~', true));
		}
	}<commit_msg>Tests: Wanna more and more tests!<commit_after><?php
	declare(strict_types=1);
	namespace Edde\Utils;

	use Edde\Inject\Utils\StringUtils;
	use Edde\TestCase;

	class StringUtilsTest extends TestCase {
		use StringUtils;

		public function testMatch() {
			self::assertSame([
				'key'   => 'foo',
				'value' => 'bar',
			], $this->stringUtils->match('foo=bar', '~(?<key>[a-z]+)=(?<value>[a-z]+)~', true));
		}

		public function testCapitalize() {
			self::assertSame('Foo Bar', $this->stringUtils->capitalize('foo bar'));
		}

		public function testFromCamelCase() {
			self::assertEquals([
				'Foo',
				'Bar',
			], $this->stringUtils->fromCamelCase('FooBar'));
			self::assertEquals([
				'Bar',
			], $this->stringUtils->fromCamelCase('FooBar', 1));
		}

		public function testRecamel() {
			self::assertEquals('foo-bar', $this->stringUtils->recamel('FooBar'));
			self::assertEquals('bar#prd', $this->stringUtils->recamel('FooBarPrd', '#', 1));
		}
	}
{'fraction_non_alphanumeric': 0.20531757754800592, 'fraction_numerical': 0.0029542097488921715, 'mean_word_length': 4.599173553719008, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 25, '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': '919793', 'n_tokens_mistral': 556, 'n_tokens_neox': 472, 'n_words': 82}