<commit_before>#include "Sidebar.h"
#include "TabWidget.h"

#include <QPainter>
#include <QStyleOption>
#include <QLayout>
#include <QLabel>

/** MainPanel constructor
* Constructs the sidebar by depth - back to front.
* \param p Inherited palette configuration for setting StyleSheets.
* \param parent Pointer to parent widget.
*/
Sidebar::Sidebar(QSettings* p, QWidget* parent) : QWidget(parent)
{
    setObjectName("sidebar");

    setMinimumWidth(224);
    setMaximumWidth(224);
    setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
    setStyleSheet("Sidebar#sidebar {background-image: url(:/Elements/Sidebar.png);}");

    // Main layout
    QVBoxLayout* mainLayout = new QVBoxLayout;
    mainLayout->setSpacing(0);
    mainLayout->setMargin(0);
    setLayout(mainLayout);

    // Upper layout
    QVBoxLayout* upperLayout = new QVBoxLayout;
    upperLayout->setSpacing(5);
    upperLayout->setMargin(18);
    mainLayout->addLayout(upperLayout);

    // User dropdown label
    QWidget* userDropdown = new QWidget(this);
    userDropdown->setObjectName("userDropdown");
    userDropdown->setMinimumWidth(188);
    userDropdown->setMinimumHeight(58);
    userDropdown->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
    userDropdown->setStyleSheet("QWidget#userDropdown {background-color: " + 
                                p->value("Primary/DarkElement").toString() + ";}");
    upperLayout->addWidget(userDropdown);

    // User dropdown layout
    QVBoxLayout* dropdownLayout = new QVBoxLayout;
    dropdownLayout->setSpacing(8);
    dropdownLayout->setMargin(8);
    userDropdown->setLayout(dropdownLayout);

    // Dropdown title
    QLabel* dropdownTitle = new QLabel(userDropdown);
    dropdownTitle->setObjectName("dropdownTitle");
    dropdownTitle->setStyleSheet("color: " + p->value("Primary/LightText").toString() + ";");
    dropdownTitle->setFont(QFont("SourceSansPro", 12, QFont::Black));
    dropdownTitle->setText("Project Ascension");
    dropdownLayout->addWidget(dropdownTitle);<commit_msg>Fix weight on dropdown title<commit_after>#include "Sidebar.h"
#include "TabWidget.h"

#include <QPainter>
#include <QStyleOption>
#include <QLayout>
#include <QLabel>

/** MainPanel constructor
* Constructs the sidebar by depth - back to front.
* \param p Inherited palette configuration for setting StyleSheets.
* \param parent Pointer to parent widget.
*/
Sidebar::Sidebar(QSettings* p, QWidget* parent) : QWidget(parent)
{
    setObjectName("sidebar");

    setMinimumWidth(224);
    setMaximumWidth(224);
    setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
    setStyleSheet("Sidebar#sidebar {background-image: url(:/Elements/Sidebar.png);}");

    // Main layout
    QVBoxLayout* mainLayout = new QVBoxLayout;
    mainLayout->setSpacing(0);
    mainLayout->setMargin(0);
    setLayout(mainLayout);

    // Upper layout
    QVBoxLayout* upperLayout = new QVBoxLayout;
    upperLayout->setSpacing(5);
    upperLayout->setMargin(18);
    mainLayout->addLayout(upperLayout);

    // User dropdown label
    QWidget* userDropdown = new QWidget(this);
    userDropdown->setObjectName("userDropdown");
    userDropdown->setMinimumWidth(188);
    userDropdown->setMinimumHeight(58);
    userDropdown->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
    userDropdown->setStyleSheet("QWidget#userDropdown {background-color: " + 
                                p->value("Primary/DarkElement").toString() + ";}");
    upperLayout->addWidget(userDropdown);

    // User dropdown layout
    QVBoxLayout* dropdownLayout = new QVBoxLayout;
    dropdownLayout->setSpacing(8);
    dropdownLayout->setMargin(8);
    userDropdown->setLayout(dropdownLayout);

    // Dropdown title
    QLabel* dropdownTitle = new QLabel(userDropdown);
    dropdownTitle->setObjectName("dropdownTitle");
    dropdownTitle->setStyleSheet("color: " + p->value("Primary/LightText").toString() + ";");
    dropdownTitle->setFont(QFont("SourceSansPro", 12, QFont::DemiBold));
    dropdownTitle->setText("Project Ascension");
    dropdownLayout->addWidget(dropdownTitle);
{'fraction_non_alphanumeric': 0.13190034196384953, 'fraction_numerical': 0.009770395701025891, 'mean_word_length': 4.586630286493861, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 53, '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': '1730922', 'n_tokens_mistral': 1279, 'n_tokens_neox': 1207, 'n_words': 219}