<commit_before>/**
 * @file		iauth.hpp
 * @brief		authentication interface
 * @author		<NAME><<EMAIL>>
 * @date 		2015. 7. 29
 * @details	authentication interface class
 */

#ifndef _COSSB_INTERFACE_IAUTH_HPP_
#define _COSSB_INTERFACE_IAUTH_HPP_

namespace cossb {
namespace interface {

typedef struct {
	char code[16];
} authcode16;

typedef struct {
	char code[32];
} authcode32;

enum class authResponse : int {
	NOT_ACCESSIBLE = -1,	// Cannot access Auth system
	NOT_PERMIT = 1,		// Auth Fail
	SUCCESS = 10, 		// Auth Success
};

class iauth {
	virtual ~iauth() { }

	virtual bool authenticate16(authcode16* acode) = 0;
	virtual bool authenticate32(authcode32* acode) = 0;
};

} /* namespace interface */
} /* namespace cossb */



#endif /* _COSSB_INTERFACE_IAUTH_HPP_ */<commit_msg>edit interface<commit_after>/**
 * @file		iauth.hpp
 * @brief		authentication interface
 * @author		<NAME><<EMAIL>>
 * @date 		2015. 7. 29
 * @details	authentication interface class
 */

#ifndef _COSSB_INTERFACE_IAUTH_HPP_
#define _COSSB_INTERFACE_IAUTH_HPP_

namespace cossb {
namespace auth {

typedef struct {
	char code[32] = {0x00, };
} authcode;

enum class authResponse : int {
	NOT_ACCESSIBLE = -1,	// Cannot access Auth system
	NOT_PERMIT = 1,		// Auth Fail
	SUCCESS = 10, 		// Auth Success
};

}
namespace interface {

class iauth {
public:
	virtual ~iauth() { }

	virtual bool authenticate(auth::authcode code, unsigned int len) = 0;
};

} /* namespace interface */
} /* namespace cossb */



#endif /* _COSSB_INTERFACE_IAUTH_HPP_ */
{'fraction_non_alphanumeric': 0.12002609262883235, 'fraction_numerical': 0.030006523157208087, 'mean_word_length': 3.9166666666666665, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6245330', 'n_tokens_mistral': 616, 'n_tokens_neox': 551, 'n_words': 144}