<commit_before>/*
 * Qumulus UML editor
 * Author: <NAME>
 *
 */

#include "Diagram.h"
#include "Style.h"

QUML_BEGIN_NAMESPACE_UD

Diagram::Diagram(QString name, double resolution) :
        mName(name),
        mResolution(resolution) {
    auto s = new Style;
    setLocalStyle(s);
    s->setFontName("sans-serif");
    s->setFontSize(12.0);
}

Diagram::Diagram(const Diagram& d) :
        Shape(d) {

}
<commit_msg>Set font size correctly on Mac and non-Mac.<commit_after>/*
 * Qumulus UML editor
 * Author: <NAME>
 *
 */

#include "Diagram.h"
#include "Style.h"

QUML_BEGIN_NAMESPACE_UD

constexpr static float kFontSize =
#ifdef Q_OS_MAC
        12.0;
#else
        10.0;
#endif

Diagram::Diagram(QString name, double resolution) :
        mName(name),
        mResolution(resolution) {
    auto s = new Style;
    setLocalStyle(s);
    s->setFontName("sans-serif");
    s->setFontSize(kFontSize);
}

Diagram::Diagram(const Diagram& d) :
        Shape(d) {

}

{'fraction_non_alphanumeric': 0.13975155279503104, 'fraction_numerical': 0.009316770186335404, 'mean_word_length': 3.186147186147186, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2997557', 'n_tokens_mistral': 373, 'n_tokens_neox': 363, 'n_words': 73}