<commit_before>/*
 * This file is a part of Xpiks - cross platform application for
 * keywording and uploading images for microstocks
 * Copyright (C) 2014-2017 <NAME> <<EMAIL>>
 *
 * Xpiks is distributed under the GNU Lesser General Public License, version 3.0
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "switcherconfig.h"
#include "../Helpers/asynccoordinator.h"
#include "apimanager.h"

namespace Conectivity {
#ifdef QT_DEBUG
    #define LOCAL_SWITCHER_CONFIG "debug_switcher.json"
#else
    #define LOCAL_SWITCHER_CONFIG "switcher.json"
#endif

#define OVERWRITE_KEY QLatin1String("overwrite")
#define DONATE_CAMPAIGN_1_KEY QLatin1String("donateCampaign1")
#define OVERWRITE_SWITCHER_CONFIG true

    SwitcherConfig::SwitcherConfig(QObject *parent):
        Models::AbstractConfigUpdaterModel(OVERWRITE_SWITCHER_CONFIG, parent)
    {
    }

    void SwitcherConfig::initializeConfigs(Helpers::AsyncCoordinator *initCoordinator) {
        Helpers::AsyncCoordinatorLocker locker(initCoordinator);
        Helpers::AsyncCoordinatorUnlocker unlocker(initCoordinator);
        Q_UNUSED(locker); Q_UNUSED(unlocker);
<commit_msg>Build fixes<commit_after>/*
 * This file is a part of Xpiks - cross platform application for
 * keywording and uploading images for microstocks
 * Copyright (C) 2014-2017 <NAME> <<EMAIL>>
 *
 * Xpiks is distributed under the GNU Lesser General Public License, version 3.0
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "switcherconfig.h"
#include <QDir>
#include <QJsonValue>
#include "../Helpers/asynccoordinator.h"
#include "apimanager.h"

namespace Conectivity {
#ifdef QT_DEBUG
    #define LOCAL_SWITCHER_CONFIG "debug_switcher.json"
#else
    #define LOCAL_SWITCHER_CONFIG "switcher.json"
#endif

#define OVERWRITE_KEY QLatin1String("overwrite")
#define DONATE_CAMPAIGN_1_KEY QLatin1String("donateCampaign1")
#define OVERWRITE_SWITCHER_CONFIG true

    SwitcherConfig::SwitcherConfig(QObject *parent):
        Models::AbstractConfigUpdaterModel(OVERWRITE_SWITCHER_CONFIG, parent)
    {
    }

    void SwitcherConfig::initializeConfigs(Helpers::AsyncCoordinator *initCoordinator) {
        Helpers::AsyncCoordinatorLocker locker(initCoordinator);
        Helpers::AsyncCoordinatorUnlocker unlocker(initCoordinator);
        Q_UNUSED(locker); Q_UNUSED(unlocker);

{'fraction_non_alphanumeric': 0.07782754759238522, 'fraction_numerical': 0.0083986562150056, 'mean_word_length': 4.725961538461538, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7476825', 'n_tokens_mistral': 1052, 'n_tokens_neox': 1016, 'n_words': 359}