<commit_before>//
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2009 <NAME> <<EMAIL>>
//

#include "global.h"
#include "global_p.h"


namespace Marble
{

MarbleGlobalPrivate::MarbleGlobalPrivate()
    : m_profiles( MarbleGlobal::Default ) 
{
}

MarbleGlobalPrivate::~MarbleGlobalPrivate()
{
}

MarbleGlobal::MarbleGlobal()
    : d ( new MarbleGlobalPrivate )
{
}

MarbleGlobal::~MarbleGlobal()
{
    delete d;
}

MarbleGlobal * MarbleGlobal::getInstance()
{
    static MarbleGlobal instance; 
    return &instance; 
}

MarbleLocale * MarbleGlobal::locale() const
{
    return &d->m_locale; 
}

MarbleGlobal::Profiles MarbleGlobal::profiles() const {
    return d->m_profiles;
}

void MarbleGlobal::setProfiles( MarbleGlobal::Profiles profiles ) {
    d->m_profiles = profiles;
}

MarbleGlobal::Profiles MarbleGlobal::detectProfiles() {
    MarbleGlobal::Profile profile = MarbleGlobal::Default;
    // Checking Qt for maemo flags to find out if we are on a small screen device.
#ifdef Q_WS_HILDON // flag for Qt 4.5 (diablo and fremantle)
    profile |= MarbleGlobal::SmallScreen;
#endif
#ifdef Q_WS_MAEMO_5
    profile |= MarbleGlobal::SmallScreen;
#endif

    return profile;
}

}
<commit_msg>Fix Q_WS_HILDON / Q_WS_MAEMO_5 compilation<commit_after>//
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2009 <NAME> <<EMAIL>>
//

#include "global.h"
#include "global_p.h"


namespace Marble
{

MarbleGlobalPrivate::MarbleGlobalPrivate()
    : m_profiles( MarbleGlobal::Default ) 
{
}

MarbleGlobalPrivate::~MarbleGlobalPrivate()
{
}

MarbleGlobal::MarbleGlobal()
    : d ( new MarbleGlobalPrivate )
{
}

MarbleGlobal::~MarbleGlobal()
{
    delete d;
}

MarbleGlobal * MarbleGlobal::getInstance()
{
    static MarbleGlobal instance; 
    return &instance; 
}

MarbleLocale * MarbleGlobal::locale() const
{
    return &d->m_locale; 
}

MarbleGlobal::Profiles MarbleGlobal::profiles() const {
    return d->m_profiles;
}

void MarbleGlobal::setProfiles( MarbleGlobal::Profiles profiles ) {
    d->m_profiles = profiles;
}

MarbleGlobal::Profiles MarbleGlobal::detectProfiles() {
    MarbleGlobal::Profiles profile = MarbleGlobal::Default;
    // Checking Qt for maemo flags to find out if we are on a small screen device.
#ifdef Q_WS_HILDON // flag for Qt 4.5 (diablo and fremantle)
    profile |= MarbleGlobal::SmallScreen;
#endif
#ifdef Q_WS_MAEMO_5
    profile |= MarbleGlobal::SmallScreen;
#endif

    return profile;
}

}

{'fraction_non_alphanumeric': 0.11306532663316583, 'fraction_numerical': 0.005384063173007897, 'mean_word_length': 4.161111111111111, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4468403', 'n_tokens_mistral': 936, 'n_tokens_neox': 917, 'n_words': 247}