<commit_before>#include "qt/routing_settings_dialog.hpp"

#include "map/framework.hpp"

#include "routing/router.hpp"

#include "platform/settings.hpp"

#include "base/logging.hpp"
#include "base/macros.hpp"
#include "base/string_utils.hpp"

#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QMessageBox>

namespace
{
char constexpr kDelim[] = " ,\t";
}  // namespace

namespace qt
{
std::string const RoutingSettings::kShowTurnsSettings = "show_turns_desktop";
std::string const RoutingSettings::kUseCachedRoutingSettings = "use_cached_settings_desktop";
std::string const RoutingSettings::kStartCoordsCachedSettings = "start_coords_desktop";
std::string const RoutingSettings::kFinishCoordsCachedSettings = "finish_coords_desktop";
std::string const RoutingSettings::kRouterTypeCachedSettings = "router_type_desktop";

// static
bool RoutingSettings::TurnsEnabled()
{
  bool enabled = false;
  settings::Get(kShowTurnsSettings, enabled);
  return enabled;
}

// static
bool RoutingSettings::IsCacheEnabled()
{
  bool enable = false;<commit_msg>[qt] Fix for ignoring function's val with 'warn_unused_result'<commit_after>#include "qt/routing_settings_dialog.hpp"

#include "map/framework.hpp"

#include "routing/router.hpp"

#include "platform/settings.hpp"

#include "base/logging.hpp"
#include "base/macros.hpp"
#include "base/string_utils.hpp"

#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QMessageBox>

namespace
{
char constexpr kDelim[] = " ,\t";
}  // namespace

namespace qt
{
std::string const RoutingSettings::kShowTurnsSettings = "show_turns_desktop";
std::string const RoutingSettings::kUseCachedRoutingSettings = "use_cached_settings_desktop";
std::string const RoutingSettings::kStartCoordsCachedSettings = "start_coords_desktop";
std::string const RoutingSettings::kFinishCoordsCachedSettings = "finish_coords_desktop";
std::string const RoutingSettings::kRouterTypeCachedSettings = "router_type_desktop";

// static
bool RoutingSettings::TurnsEnabled()
{
  bool enabled = false;
  if (settings::Get(kShowTurnsSettings, enabled))
    return enable;

  return false;
}

// static
bool RoutingSettings::IsCacheEnabled()
{
  bool enable = false;
{'fraction_non_alphanumeric': 0.11833550065019506, 'fraction_numerical': 0.0, 'mean_word_length': 7.611940298507463, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6062335', 'n_tokens_mistral': 752, 'n_tokens_neox': 738, 'n_words': 141}