<commit_before>#include "SplashScreen.hpp"
#include "version.h"

namespace URDE
{

#define SPLASH_WIDTH 555
#define SPLASH_HEIGHT 300

#define WIRE_START 0
#define WIRE_FRAMES 60
#define SOLID_START 40
#define SOLID_FRAMES 40
#define TEXT_START 80
#define TEXT_FRAMES 40

#define LINE_WIDTH 2
#define TEXT_MARGIN 10

SplashScreen::SplashScreen(ViewManager& vm, Specter::ViewResources& res)
: ModalWindow(res, vm.rootView(),
              Specter::RectangleConstraint(SPLASH_WIDTH * res.pixelFactor(),
                                           SPLASH_HEIGHT * res.pixelFactor())),
  m_vm(vm),
  m_textColor(res.themeData().uiText()),
  m_textColorClear(m_textColor),
  m_buildInfoStr(HECL::Format("%s: %s\n%s: %s\n%s: %s",
                              vm.translateOr("branch", "Branch").c_str(), GIT_BRANCH,
                              vm.translateOr("commit", "Commit").c_str(), GIT_COMMIT_HASH,
                              vm.translateOr("date", "Date").c_str(), GIT_COMMIT_DATE)),
  m_newString(m_vm.translateOr("new_project", "New Project")),
  m_newProjBind(*this),
  m_openString(m_vm.translateOr("open_project", "Open Project")),
  m_openProjBind(*this),
  m_extractString(m_vm.translateOr("extract_game", "Extract Game")),
  m_extractProjBind(*this)
{<commit_msg>Hide commit information when none exists<commit_after>#include "SplashScreen.hpp"
#include "version.h"

namespace URDE
{

#define SPLASH_WIDTH 555
#define SPLASH_HEIGHT 300

#define WIRE_START 0
#define WIRE_FRAMES 60
#define SOLID_START 40
#define SOLID_FRAMES 40
#define TEXT_START 80
#define TEXT_FRAMES 40

#define LINE_WIDTH 2
#define TEXT_MARGIN 10

SplashScreen::SplashScreen(ViewManager& vm, Specter::ViewResources& res)
: ModalWindow(res, vm.rootView(),
              Specter::RectangleConstraint(SPLASH_WIDTH * res.pixelFactor(),
                                           SPLASH_HEIGHT * res.pixelFactor())),
  m_vm(vm),
  m_textColor(res.themeData().uiText()),
  m_textColorClear(m_textColor),
  m_newString(m_vm.translateOr("new_project", "New Project")),
  m_newProjBind(*this),
  m_openString(m_vm.translateOr("open_project", "Open Project")),
  m_openProjBind(*this),
  m_extractString(m_vm.translateOr("extract_game", "Extract Game")),
  m_extractProjBind(*this)
{
    if (GIT_COMMIT_DATE[0] != '\0' &&
        GIT_COMMIT_HASH[0] != '\0' &&
        GIT_BRANCH[0]      != '\0')
    {
        m_buildInfoStr = HECL::Format("%s: %s\n%s: %s\n%s: %s",
                                      vm.translateOr("branch", "Branch").c_str(), GIT_BRANCH,
                                      vm.translateOr("commit", "Commit").c_str(), GIT_COMMIT_HASH,
                                      vm.translateOr("date", "Date").c_str(), GIT_COMMIT_DATE);
    }

{'fraction_non_alphanumeric': 0.1360146252285192, 'fraction_numerical': 0.016819012797074956, 'mean_word_length': 3.3776, 'pattern_counts': {'":': 0, '<': 3, '<?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': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3589195', 'n_tokens_mistral': 999, 'n_tokens_neox': 941, 'n_words': 161}