<commit_before>#pragma once
//=====================================================================//
/*!	@file
	@brief	コマンド入力クラス
	@author	平松邦仁 (<EMAIL>)
*/
//=====================================================================//
#include <cstring>

extern "C" {
	void sci_putch(char ch);
	void sci_puts(const char *str);
	char sci_getch(void);
	uint32_t sci_length(void);
};

namespace utils {

    //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
    /*!
        @brief  command class
		@param[in]	buffsize	バッファサイズ（最小でも９）
    */
    //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
	template <int16_t buffsize>
	class command {
		char	buff_[buffsize];
		int16_t	bpos_;
		int16_t	pos_;
		int16_t	len_;
		int16_t tab_top_;

		const char*	prompt_;

		bool	tab_;

		// VT-100 ESC シーケンス 
		static void clear_line_() {
			sci_putch(0x1b);<commit_msg>update return value<commit_after>#pragma once
//=====================================================================//
/*!	@file
	@brief	コマンド入力クラス
	@author	平松邦仁 (<EMAIL>)
*/
//=====================================================================//
#include <cstring>

extern "C" {
	void sci_putch(char ch);
	void sci_puts(const char *str);
	char sci_getch(void);
	uint16_t sci_length(void);
};

namespace utils {

    //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
    /*!
        @brief  command class
		@param[in]	buffsize	バッファサイズ（最小でも９）
    */
    //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
	template <int16_t buffsize>
	class command {
		char	buff_[buffsize];
		int16_t	bpos_;
		int16_t	pos_;
		int16_t	len_;
		int16_t tab_top_;

		const char*	prompt_;

		bool	tab_;

		// VT-100 ESC シーケンス 
		static void clear_line_() {
			sci_putch(0x1b);
{'fraction_non_alphanumeric': 0.4033333333333333, 'fraction_numerical': 0.02, 'mean_word_length': 4.681388012618297, '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': '1310231', 'n_tokens_mistral': 727, 'n_tokens_neox': 610, 'n_words': 117}