<commit_before>#include <platform_win.h>
#include <hooks/shellhook.h>

// https://blogs.msdn.microsoft.com/oldnewthing/20031211-00/?p=41543
#include <Shlwapi.h>
void initShellHook32 (LPSTR pszCmdLine)
{
	LONGLONG llHandle;
	if (StrToInt64ExA(pszCmdLine, STIF_DEFAULT, &llHandle))
	{
		HWND bbHwnd = (HWND)(INT_PTR)llHandle;
		initShellHook32(bbHwnd);
	}
}

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pszCmdLine, int iCmdShow)
{
	system("pause");
	initShellHook32(pszCmdLine);

  MSG msg;
  while (GetMessage(&msg, NULL, 0, 0) && WM_QUIT != msg.message)
	{
  	TranslateMessage(&msg);
    DispatchMessage(&msg);
  }

  doneShellHook();
  return static_cast<int>(msg.wParam);
}
<commit_msg>- dbg<commit_after>#include <platform_win.h>
#include <hooks/shellhook.h>

// https://blogs.msdn.microsoft.com/oldnewthing/20031211-00/?p=41543
#include <Shlwapi.h>
void initShellHook32 (LPSTR pszCmdLine)
{
	LONGLONG llHandle;
	if (StrToInt64ExA(pszCmdLine, STIF_DEFAULT, &llHandle))
	{
		HWND bbHwnd = (HWND)(INT_PTR)llHandle;
		initShellHook32(bbHwnd);
	}
}

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pszCmdLine, int iCmdShow)
{
	//system("pause");
	initShellHook32(pszCmdLine);

  MSG msg;
  while (GetMessage(&msg, NULL, 0, 0) && WM_QUIT != msg.message)
	{
  	TranslateMessage(&msg);
    DispatchMessage(&msg);
  }

  doneShellHook();
  return static_cast<int>(msg.wParam);
}

{'fraction_non_alphanumeric': 0.14396067415730338, 'fraction_numerical': 0.0351123595505618, 'mean_word_length': 5.390134529147982, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '4423115', 'n_tokens_mistral': 618, 'n_tokens_neox': 574, 'n_words': 97}