<commit_before>#include <coffee/core/CApplication>
#include <coffee/core/CFiles>
#include <coffee/core/CDebug>
#include <coffee/core/CPlatform>
#include <coffee/asio/net_profiling.h>

#include <stdarg.h>

#include <coffee/core/plat/plat_sensor.h>

using namespace Coffee;

int32 coffee_main(int32, cstring_w*)
{
#if defined(FEATURE_USE_ASIO)
    Net::RegisterProfiling();
#endif

    State::SetInternalState(State::CreateNewState());

    CResources::FileResourcePrefix("sample_data/");

    Profiler::PushContext("Configuration data");
    {
        /* Check out system directory strings and user data directories */
        Url test_dir = MkUrl("config", RSCA::ConfigFile);
        Url cfg_dir  = MkUrl("", RSCA::ConfigFile);
        Profiler::Profile("Get userdata directory");

        cDebug("Test directory: {0} '{1}'", test_dir, *test_dir);

        CString app_dir  = Env::ApplicationDir();
        CString exe_name = Env::ExecutableName();
        Profiler::Profile("Get application location");

        cDebug("Settings directory: {0}",*cfg_dir);
        cDebug("Program directory:  {0}",app_dir);
        cDebug("Launching from      {0}",exe_name);
        cDebug("Current directory:  {0}",Env::CurrentDir());
<commit_msg> - Remove line from example causing crash<commit_after>#include <coffee/core/CApplication>
#include <coffee/core/CFiles>
#include <coffee/core/CDebug>
#include <coffee/core/CPlatform>
#include <coffee/asio/net_profiling.h>

#include <stdarg.h>

#include <coffee/core/plat/plat_sensor.h>

using namespace Coffee;

int32 coffee_main(int32, cstring_w*)
{
#if defined(FEATURE_USE_ASIO)
    Net::RegisterProfiling();
#endif

    CResources::FileResourcePrefix("sample_data/");

    Profiler::PushContext("Configuration data");
    {
        /* Check out system directory strings and user data directories */
        Url test_dir = MkUrl("config", RSCA::ConfigFile);
        Url cfg_dir  = MkUrl("", RSCA::ConfigFile);
        Profiler::Profile("Get userdata directory");

        cDebug("Test directory: {0} '{1}'", test_dir, *test_dir);

        CString app_dir  = Env::ApplicationDir();
        CString exe_name = Env::ExecutableName();
        Profiler::Profile("Get application location");

        cDebug("Settings directory: {0}",*cfg_dir);
        cDebug("Program directory:  {0}",app_dir);
        cDebug("Launching from      {0}",exe_name);
        cDebug("Current directory:  {0}",Env::CurrentDir());

{'fraction_non_alphanumeric': 0.14678146781467816, 'fraction_numerical': 0.008200082000820008, 'mean_word_length': 4.115303983228512, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '903832', 'n_tokens_mistral': 804, 'n_tokens_neox': 774, 'n_words': 155}