<commit_before><?php namespace Spec\Sange;

use PhpSpec\ObjectBehavior;

class TransformerSpec extends ObjectBehavior {

    function it_is_initializable()
    {
        $this->shouldHaveType('Sange\Transformer');
    }

    function it_replaces_equal_sign_with_a_white_space()
    {
        $this->transform('foo --param=value')->shouldBe('foo --param value');

        $this->transform('foo --param="value"')->shouldBe('foo --param "value"');

        $this->transform('foo --param="--param=value"')->shouldBe('foo --param "--param=value"');
    }

    function it_discloses_combined_options()
    {
        $this->transform('foo -abc --bar')->shouldBe('foo -a -b -c --bar');
    }

}
<commit_msg>Add one more test to TransformerSpec<commit_after><?php namespace Spec\Sange;

use PhpSpec\ObjectBehavior;

class TransformerSpec extends ObjectBehavior {

    function it_is_initializable()
    {
        $this->shouldHaveType('Sange\Transformer');
    }

    function it_replaces_equal_sign_with_a_white_space()
    {
        $this->transform('foo --param=value')->shouldBe('foo --param value');

        $this->transform('foo --param="value"')->shouldBe('foo --param "value"');

        $this->transform('foo --param="--param=value"')->shouldBe('foo --param "--param=value"');
    }

    function it_discloses_combined_options()
    {
        $this->transform('foo -abc --bar')->shouldBe('foo -a -b -c --bar');
    }

    function it_adds_a_white_space_between_a_short_option_and_its_value()
    {
        $this->transform('foo -n10')->shouldBe('foo -n 10');

        $this->transform('foo -abc10')->shouldBe('foo -a -b -c 10');
    }

}

{'fraction_non_alphanumeric': 0.17571690054911532, 'fraction_numerical': 0.004881025015253203, 'mean_word_length': 3.2487046632124352, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5698734', 'n_tokens_mistral': 538, 'n_tokens_neox': 519, 'n_words': 87}