<commit_before>/*
 * Copyright (C) 2015 <NAME>
 * All rights reserved.
 */
#pragma once
#include <cstdint>
namespace game
{
  struct Color
  {
    uint8_t r;
    uint8_t g;
    uint8_t b;
  };

  inline bool operator==(Color const& c1, Color const& c2) noexcept
  {
    return c1.r == c2.r && c1.g == c2.g && c1.b == c2.b;
  }
  inline bool operator!=(Color const& c1, Color const& c2) noexcept
  {
    return !(c1 == c2);
  }

  namespace colors
  {
    constexpr Color white {0xff, 0xff, 0xff};
    constexpr Color black {0x00, 0x00, 0x00};
    constexpr Color red   {0xff, 0x00, 0x00};
    constexpr Color green {0x00, 0xff, 0x00};
    constexpr Color blue  {0x00, 0x00, 0xff};
  }
}<commit_msg>Color structure now has an alpha component.<commit_after>/*
 * Copyright (C) 2015 <NAME>
 * All rights reserved.
 */
#pragma once
#include <cstdint>
namespace game
{
  struct Color
  {
    // CTs WIN!
    using c_t = uint8_t;

    constexpr Color(c_t r = 0xff, // <- Default to some weird salmon color so
                    c_t g = 0x8f, // we know when the client forgot to
                    c_t b = 0xab, // initialize it's color!
                    c_t a = 0xff) noexcept : r(r), g(g), b(b), a(a) {}

    c_t r;
    c_t g;
    c_t b;
    c_t a;
  };

  inline bool operator==(Color const& c1, Color const& c2) noexcept
  {
    return c1.r == c2.r && c1.g == c2.g && c1.b == c2.b && c1.a == c2.a;
  }
  inline bool operator!=(Color const& c1, Color const& c2) noexcept
  {
    return !(c1 == c2);
  }

  namespace colors
  {
    constexpr Color white {0xff, 0xff, 0xff, 0xff};
    constexpr Color black {0x00, 0x00, 0x00, 0xff};
    constexpr Color red   {0xff, 0x00, 0x00, 0xff};
    constexpr Color green {0x00, 0xff, 0x00, 0xff};
    constexpr Color blue  {0x00, 0x00, 0xff, 0xff};
  }
}
{'fraction_non_alphanumeric': 0.13322185061315497, 'fraction_numerical': 0.06354515050167224, 'mean_word_length': 2.4386973180076628, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, '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': '3261596', 'n_tokens_mistral': 768, 'n_tokens_neox': 701, 'n_words': 219}