<commit_before>#include "CSteam.h"

CSteam::CSteam():
    m_CallbackUserStatsReceived(this, &CSteam::OnUserStatsReceived),
    m_CallbackUserStatsStored(this, &CSteam::OnUserStatsStored),
    m_CallbackAchievementStored(this, &CSteam::OnAchievementStored),
    m_CallbackGameOverlayActivated(this, &CSteam::OnGameOverlayActivated)
{
	m_iAppID = SteamUtils()->GetAppID();
	m_bInitialized = (SteamUserStats() != NULL && SteamUser() != NULL);
	RequestStats();
}

bool CSteam::RequestStats() {
	// Is Steam loaded? If not we can't get stats.
	if (!m_bInitialized) return false;

	// Is the user logged on? If not we can't get stats.
	if (!SteamUser()->BLoggedOn()) return false;

	// Request user stats.
	return SteamUserStats()->RequestCurrentStats();
}

bool CSteam::SetAchievement(const char* ID) {
	if (!m_bInitialized) return false;

	SteamUserStats()->SetAchievement(ID);
	return SteamUserStats()->StoreStats();
}

bool CSteam::ClearAchievement(const char* ID) {
	if (!m_bInitialized) return false;<commit_msg>Fix build error on Windows<commit_after>#include "CSteam.h"

CSteam::CSteam():
    m_CallbackUserStatsReceived(this, &CSteam::OnUserStatsReceived),
    m_CallbackUserStatsStored(this, &CSteam::OnUserStatsStored),
    m_CallbackAchievementStored(this, &CSteam::OnAchievementStored),
    m_CallbackGameOverlayActivated(this, &CSteam::OnGameOverlayActivated)
{
	m_iAppID = SteamUtils()->GetAppID();
	m_bInitialized = (SteamUserStats() != NULL && SteamUser() != NULL);
	RequestStats();
}

CSteam::~CSteam() {};

bool CSteam::RequestStats() {
	// Is Steam loaded? If not we can't get stats.
	if (!m_bInitialized) return false;

	// Is the user logged on? If not we can't get stats.
	if (!SteamUser()->BLoggedOn()) return false;

	// Request user stats.
	return SteamUserStats()->RequestCurrentStats();
}

bool CSteam::SetAchievement(const char* ID) {
	if (!m_bInitialized) return false;

	SteamUserStats()->SetAchievement(ID);
	return SteamUserStats()->StoreStats();
}

bool CSteam::ClearAchievement(const char* ID) {
	if (!m_bInitialized) return false;
{'fraction_non_alphanumeric': 0.1407766990291262, 'fraction_numerical': 0.0, 'mean_word_length': 6.257042253521127, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '7561589', 'n_tokens_mistral': 694, 'n_tokens_neox': 695, 'n_words': 150}