<commit_before>// Copyright (C) 2017 <NAME>
// This file is part of the Ouzel engine.

#include "Color.h"
#include "Vector3.h"
#include "Vector4.h"
#include "Utils.h"

namespace ouzel
{
    Color::Color(const std::string& color)
    {
        if (!color.empty())
        {
            uint32_t intValue = 0;

            if (color[0] == '#')
            {
                std::string newValue = "0x";
                newValue.append(color.begin() + 1, color.end());
                intValue = static_cast<uint32_t>(stringToLong(newValue));
            }
            else
            {
                intValue = static_cast<uint32_t>(stringToLong(color));
            }

            v[0] = static_cast<uint8_t>((intValue & 0xFF000000) >> 24);
            v[1] = static_cast<uint8_t>((intValue & 0x00FF0000) >> 16);
            v[2] = static_cast<uint8_t>((intValue & 0x0000FF00) >> 8);
            v[3] = static_cast<uint8_t>(intValue & 0x000000FF);
        }<commit_msg>Fix the path of Utils.h<commit_after>// Copyright (C) 2017 <NAME>
// This file is part of the Ouzel engine.

#include "Color.h"
#include "Vector3.h"
#include "Vector4.h"
#include "utils/Utils.h"

namespace ouzel
{
    Color::Color(const std::string& color)
    {
        if (!color.empty())
        {
            uint32_t intValue = 0;

            if (color[0] == '#')
            {
                std::string newValue = "0x";
                newValue.append(color.begin() + 1, color.end());
                intValue = static_cast<uint32_t>(stringToLong(newValue));
            }
            else
            {
                intValue = static_cast<uint32_t>(stringToLong(color));
            }

            v[0] = static_cast<uint8_t>((intValue & 0xFF000000) >> 24);
            v[1] = static_cast<uint8_t>((intValue & 0x00FF0000) >> 16);
            v[2] = static_cast<uint8_t>((intValue & 0x0000FF00) >> 8);
            v[3] = static_cast<uint8_t>(intValue & 0x000000FF);
        }
{'fraction_non_alphanumeric': 0.14606741573033707, 'fraction_numerical': 0.05822267620020429, 'mean_word_length': 1.937031484257871, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 29, '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': '4970469', 'n_tokens_mistral': 732, 'n_tokens_neox': 648, 'n_words': 122}