<commit_before>// -----------------------------------------------------------------------
// pion-common: a collection of common libraries used by the Pion Platform
// -----------------------------------------------------------------------
// Copyright (C) 2007-2008 Atomic Labs, Inc.  (http://www.atomiclabs.com)
//
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
//

#ifndef __PION_PIONADMINRIGHTS_HEADER__
#define __PION_PIONADMINRIGHTS_HEADER__

#include <pion/PionConfig.hpp>
#include <pion/PionLogger.hpp>
#include <boost/cstdint.hpp>
#include <boost/thread/mutex.hpp>


namespace pion {	// begin namespace pion


///
/// PionAdminRights: obtains administrative rights for the process
///
class PionAdminRights {
public:

	/// constructs object, obtaining administrative rights; will block
	/// if another thread has already obtained rights<commit_msg>Added PION_COMMON_API qualifier to class PionAdminRights.<commit_after>// -----------------------------------------------------------------------
// pion-common: a collection of common libraries used by the Pion Platform
// -----------------------------------------------------------------------
// Copyright (C) 2007-2008 Atomic Labs, Inc.  (http://www.atomiclabs.com)
//
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
//

#ifndef __PION_PIONADMINRIGHTS_HEADER__
#define __PION_PIONADMINRIGHTS_HEADER__

#include <pion/PionConfig.hpp>
#include <pion/PionLogger.hpp>
#include <boost/cstdint.hpp>
#include <boost/thread/mutex.hpp>


namespace pion {	// begin namespace pion


///
/// PionAdminRights: obtains administrative rights for the process
///
class PION_COMMON_API PionAdminRights {
public:

	/// constructs object, obtaining administrative rights; will block
	/// if another thread has already obtained rights
{'fraction_non_alphanumeric': 0.24471458773784355, 'fraction_numerical': 0.012684989429175475, 'mean_word_length': 2.1655518394648827, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '961524', 'n_tokens_mistral': 540, 'n_tokens_neox': 499, 'n_words': 145}