<commit_before>/*
    Copyright 2014 <NAME>
    See included LICENSE file for details.
*/

#include <unistd.h>

#include <easylogging++.h>

#define ELPP_UNICODE
#define ELPP_NO_DEFAULT_LOG_FILE

#include <Game.h>

INITIALIZE_EASYLOGGINGPP

//system data
const int version = 0;
const int revision = 1;
const int width = 1280;
const int height = 720;
const std::string name = "SpaceFight";

int main(int argc, char *argv[]) {
    std::string logFilename = name;
    logFilename.append(".log");
    // remove existing log file, easylogging++ doesn't currently support non-append logs
    unlink(logFilename.c_str());

    START_EASYLOGGINGPP(argc, argv);

    el::Configurations logConf;
    logConf.setToDefault();
    logConf.setGlobally(el::ConfigurationType::Format, "%datetime{%H:%m:%s.%g} %level %msg");
    logConf.setGlobally(el::ConfigurationType::Filename, logFilename);
    logConf.setGlobally(el::ConfigurationType::Enabled, "true");
    logConf.setGlobally(el::ConfigurationType::ToFile, "true");
    logConf.setGlobally(el::ConfigurationType::ToStandardOutput, "true");
    logConf.setGlobally(el::ConfigurationType::MillisecondsWidth, "3");
    logConf.set(el::Level::Debug, el::ConfigurationType::Format, "%datetime{%H:%m:%s.%g} %level %loc %func %msg");
    el::Loggers::reconfigureAllLoggers(logConf);

    LOG(INFO) << name << " v" << version << "." << revision;
    LOG(INFO) << "Built " << __DATE__ << " " << __TIME__;
    LOG(INFO) << "GCC " << __VERSION__;
    LOG(INFO) << "SFML " << SFML_VERSION_MAJOR << "." << SFML_VERSION_MINOR;

    Game *game = Game::getGame();
    game->init(name, width, height);
    game->run();

    return EXIT_SUCCESS;
}<commit_msg>Tweak version logging, and initial size. Fits on 1366x768 Ubuntu screen now, still 16:9<commit_after>/*
    Copyright 2014 <NAME>
    See included LICENSE file for details.
*/

#include <unistd.h>

#define ELPP_NO_DEFAULT_LOG_FILE
#include <easylogging++.h>

#include <Game.h>

INITIALIZE_EASYLOGGINGPP

//system data
const unsigned int majorVersion = 0;
const unsigned int minorVersion = 2;
const unsigned int revision = 0;
const int width = 1200;
const int height = 675;
const std::string gameName = "SpaceFight";

int main(int argc, char *argv[]) {
    std::string logFilename = gameName;
    logFilename.append(".log");
    // remove existing log file, easylogging++ doesn't currently support non-append logs
    unlink(logFilename.c_str());

    START_EASYLOGGINGPP(argc, argv);

    el::Configurations logConf;
    logConf.setToDefault();
    logConf.setGlobally(el::ConfigurationType::Format, "%datetime{%H:%m:%s.%g} %level %msg");
    logConf.setGlobally(el::ConfigurationType::Filename, logFilename);
    logConf.setGlobally(el::ConfigurationType::Enabled, "true");
    logConf.setGlobally(el::ConfigurationType::ToFile, "true");
    logConf.setGlobally(el::ConfigurationType::ToStandardOutput, "true");
    logConf.setGlobally(el::ConfigurationType::MillisecondsWidth, "3");
    logConf.set(el::Level::Debug, el::ConfigurationType::Format, "%datetime{%H:%m:%s.%g} %level %loc %func %msg");
    el::Loggers::reconfigureAllLoggers(logConf);

    LOG(INFO) << gameName << " v" << majorVersion << "." << minorVersion << "." << revision;
    LOG(INFO) << "Built " << __DATE__ << " " << __TIME__;
    LOG(INFO) << "GCC " << __VERSION__;
    LOG(INFO) << "SFML " << SFML_VERSION_MAJOR << "." << SFML_VERSION_MINOR;

    Game *game = Game::getGame();
    game->init(gameName, width, height);
    game->run();

    return EXIT_SUCCESS;
}
{'fraction_non_alphanumeric': 0.16022727272727272, 'fraction_numerical': 0.011079545454545455, 'mean_word_length': 4.858569051580699, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 15, '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': '306781', 'n_tokens_mistral': 1219, 'n_tokens_neox': 1157, 'n_words': 249}