<commit_before>package nallar.transparentwindows.jna

import com.sun.jna.Native
import com.sun.jna.Pointer
import com.sun.jna.platform.win32.*
import com.sun.jna.ptr.ByteByReference
import com.sun.jna.ptr.IntByReference

object User32Fast {
	init {
		Native.register("User32")
	}

	external fun FindWindowA(className: String, windowName: String?): WinDef.HWND?

	external fun GetWindow(hWnd: WinDef.HWND, flag: Int): WinDef.HWND?

	external fun GetTopWindow(hWnd: WinDef.HWND): WinDef.HWND?

	external fun GetWindowRect(hWnd: WinDef.HWND, r: WinDef.RECT): Boolean

	external fun IsWindowVisible(hWnd: WinDef.HWND): Boolean

	external fun GetWindowTextA(hWnd: WinDef.HWND, lpString: ByteArray, nMaxCount: Int): Int

	external fun EnumWindows(lpEnumFunc: WinUser.WNDENUMPROC, arg: Pointer): Boolean

	external fun SetWindowLongPtrA(hWnd: WinDef.HWND, index: Int, newLong: BaseTSD.LONG_PTR): BaseTSD.LONG_PTR

	external fun GetWindowLongPtrA(hWnd: WinDef.HWND, nIndex: Int): BaseTSD.LONG_PTR

	external fun GetWindowThreadProcessId(hwnd: WinDef.HWND, pid: IntByReference): Int

	external fun SetLayeredWindowAttributes(hwnd: WinDef.HWND, crKey: Int, bAlpha: Byte, dwFlags: Int): Boolean

	external fun GetLayeredWindowAttributes(hwnd: WinDef.HWND, pcrKey: IntByReference, pbAlpha: ByteByReference, pdwFlags: IntByReference): Boolean

	external fun GetForegroundWindow(): WinDef.HWND?
<commit_msg>Correct signature in User32Fast<commit_after>package nallar.transparentwindows.jna

import com.sun.jna.Native
import com.sun.jna.Pointer
import com.sun.jna.platform.win32.*
import com.sun.jna.ptr.ByteByReference
import com.sun.jna.ptr.IntByReference

object User32Fast {
	init {
		Native.register("User32")
	}

	external fun FindWindowA(className: String, windowName: String?): WinDef.HWND?

	external fun GetWindow(hWnd: WinDef.HWND?, flag: Int): WinDef.HWND?

	external fun GetTopWindow(hWnd: WinDef.HWND): WinDef.HWND?

	external fun GetWindowRect(hWnd: WinDef.HWND, r: WinDef.RECT): Boolean

	external fun IsWindowVisible(hWnd: WinDef.HWND): Boolean

	external fun GetWindowTextA(hWnd: WinDef.HWND, lpString: ByteArray, nMaxCount: Int): Int

	external fun EnumWindows(lpEnumFunc: WinUser.WNDENUMPROC, arg: Pointer): Boolean

	external fun SetWindowLongPtrA(hWnd: WinDef.HWND, index: Int, newLong: BaseTSD.LONG_PTR): BaseTSD.LONG_PTR

	external fun GetWindowLongPtrA(hWnd: WinDef.HWND, nIndex: Int): BaseTSD.LONG_PTR

	external fun GetWindowThreadProcessId(hwnd: WinDef.HWND, pid: IntByReference): Int

	external fun SetLayeredWindowAttributes(hwnd: WinDef.HWND, crKey: Int, bAlpha: Byte, dwFlags: Int): Boolean

	external fun GetLayeredWindowAttributes(hwnd: WinDef.HWND, pcrKey: IntByReference, pbAlpha: ByteByReference, pdwFlags: IntByReference): Boolean

	external fun GetForegroundWindow(): WinDef.HWND?

{'fraction_non_alphanumeric': 0.10017825311942959, 'fraction_numerical': 0.004991087344028521, 'mean_word_length': 6.38421052631579, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4438672', 'n_tokens_mistral': 1002, 'n_tokens_neox': 969, 'n_words': 227}