<commit_before>#ifndef __Exception_Dump_H__
#define __Exception_Dump_H__

#include <setjmp.h>
#include <signal.h>


#ifdef _WIN32
#define SET_JMP setjmp
#else
#define SET_JMP sigsetjmp
#endif //!_WIN32

#ifdef _WIN32
	#define __SET_JMP\
	int __jmp_ret = SET_JMP(ExceptionDump::get_jmp_buff());\
	if (0 == __jmp_ret)\
	{\
	}\
	else if (SIGSEGV == __jmp_ret)\
	{\
		std::cout << "SIGSEGV\n";\
	}\
	else if (SIGFPE == __jmp_ret)\
	{\
		std::cout << "SIGFPE\n";\
	}\
	else\
	{\
		std::cout << "error sig : " << __jmp_ret;\
	}
#else
	#define __SET_JMP\
	int __jmp_ret = SET_JMP(ExceptionDump::get_jmp_buff(), 1);\
	if (0 == __jmp_ret)\
	{\
	}\
	else if (SIGSEGV == __jmp_ret)\
	{\
		std::cout << "SIGSEGV\n";\
	}\
	else if (SIGFPE == __jmp_ret)\
	{\
		std::cout << "SIGFPE\n";\
	}\
	else\
	{\
		std::cout << "error sig : " << __jmp_ret << "\n";\
	}
#endif  //!_WIN32
	
namespace ExceptionDump
{
	void RegExceptionHandler();

	jmp_buf& get_jmp_buff();
};

#endif // !__Exception_Dump_H__

<commit_msg>修改报错信息<commit_after>#ifndef __Exception_Dump_H__
#define __Exception_Dump_H__

#include <setjmp.h>
#include <signal.h>


#ifdef _WIN32
#define SET_JMP setjmp
#else
#define SET_JMP sigsetjmp
#endif //!_WIN32

#ifdef _WIN32
	#define __SET_JMP\
	int __jmp_ret = SET_JMP(ExceptionDump::get_jmp_buff());\
	if (0 == __jmp_ret)\
	{\
	}\
	else if (SIGSEGV == __jmp_ret)\
	{\
		std::cout << "SIGSEGV\n";\
	}\
	else if (SIGFPE == __jmp_ret)\
	{\
		std::cout << "SIGFPE\n";\
	}\
	else\
	{\
		std::cout << "error sig : " << __jmp_ret << "\n";\
	}
#else
	#define __SET_JMP\
	int __jmp_ret = SET_JMP(ExceptionDump::get_jmp_buff(), 1);\
	if (0 == __jmp_ret)\
	{\
	}\
	else if (SIGSEGV == __jmp_ret)\
	{\
		std::cout << "SIGSEGV\n";\
	}\
	else if (SIGFPE == __jmp_ret)\
	{\
		std::cout << "SIGFPE\n";\
	}\
	else\
	{\
		std::cout << "error sig : " << __jmp_ret << "\n";\
	}
#endif  //!_WIN32
	
namespace ExceptionDump
{
	void RegExceptionHandler();

	jmp_buf& get_jmp_buff();
};

#endif // !__Exception_Dump_H__


{'fraction_non_alphanumeric': 0.19236564540431944, 'fraction_numerical': 0.011049723756906077, 'mean_word_length': 3.4663677130044843, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 7, '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': '7640774', 'n_tokens_mistral': 968, 'n_tokens_neox': 931, 'n_words': 169}