<commit_before>#include "shape.hpp"

Shape::Shape():
        name_{},
        color_{0.0, 0.0, 0.0}
        {}

Shape::Shape(std::string const& name):
        name_{name},
        color_{1.0, 1.0, 1.0}
        {}

Shape::Shape(Color const& color):
        name_{},
        color_{color}
        {}

Shape::Shape(std::string const& name, Color const& color):
        name_{name},
        color_{color}
        {}

std::string Shape::getName() const {
        return name_;
}

Color Shape::getColor() const {
        return color_;
}

std::ostream& Shape::print(std::ostream& os) const {
        os << "Shape " << name_ << ", RGB: {" << color_.r << ", " << color_.g
        << ", " << color_.b << "}";
        return os;
}

std::ostream& operator<<(std::ostream& os, Shape const& s) {
        s.print(os);
        return os;
}<commit_msg>Switch to predefined color output.<commit_after>#include "shape.hpp"

Shape::Shape():
        name_{},
        color_{0.0, 0.0, 0.0}
        {}

Shape::Shape(std::string const& name):
        name_{name},
        color_{1.0, 1.0, 1.0}
        {}

Shape::Shape(Color const& color):
        name_{},
        color_{color}
        {}

Shape::Shape(std::string const& name, Color const& color):
        name_{name},
        color_{color}
        {}

std::string Shape::getName() const {
        return name_;
}

Color Shape::getColor() const {
        return color_;
}

std::ostream& Shape::print(std::ostream& os) const {
        os << "Shape " << name_ << ", RGB: " << color_;
        return os;
}

/* virtual */ std::ostream& operator<<(std::ostream& os, Shape const& s) {
        s.print(os);
        return os;
}
{'fraction_non_alphanumeric': 0.18314129775621588, 'fraction_numerical': 0.014554275318374773, 'mean_word_length': 2.2738095238095237, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 3, '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': '5481147', 'n_tokens_mistral': 558, 'n_tokens_neox': 537, 'n_words': 121}