<commit_before><?php

namespace MikeAlmond\Color;

class CssGeneratorTest extends \PHPUnit_Framework_TestCase
{

    public function testRgb()
    {
        $this->assertEquals('rgb(0, 255, 0)', CssGenerator::rgb(Color::fromHex('00FF00')));

        $this->assertEquals('rgb(0, 255, 0)', CssGenerator::rgb(Color::fromRgb(0, 255, 0)));
    }

    public function testRgba()
    {
        $this->assertEquals('rgb(0, 255, 0, 1)', CssGenerator::rgba(Color::fromHex('00FF00'), 1));

        $this->assertEquals('rgb(0, 255, 0, 0.5)', CssGenerator::rgba(Color::fromRgb(0, 255, 0), 0.5));
        $this->assertEquals('rgb(0, 255, 0, 0.55)', CssGenerator::rgba(Color::fromRgb(0, 255, 0), 0.55));
    }
<commit_msg>Fix unit tests<commit_after><?php

namespace MikeAlmond\Color;

class CssGeneratorTest extends \PHPUnit_Framework_TestCase
{

    public function testRgb()
    {
        $this->assertEquals('rgb(0, 255, 0)', CssGenerator::rgb(Color::fromHex('00FF00')));

        $this->assertEquals('rgb(0, 255, 0)', CssGenerator::rgb(Color::fromRgb(0, 255, 0)));
    }

    public function testRgba()
    {
        $this->assertEquals('rgba(0, 255, 0, 1)', CssGenerator::rgba(Color::fromHex('00FF00'), 1));

        $this->assertEquals('rgba(0, 255, 0, 0.5)', CssGenerator::rgba(Color::fromRgb(0, 255, 0), 0.5));
        $this->assertEquals('rgba(0, 255, 0, 0.55)', CssGenerator::rgba(Color::fromRgb(0, 255, 0), 0.55));
    }

{'fraction_non_alphanumeric': 0.2002820874471086, 'fraction_numerical': 0.0846262341325811, 'mean_word_length': 4.354716981132076, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '7290183', 'n_tokens_mistral': 598, 'n_tokens_neox': 503, 'n_words': 92}