<commit_before>typedef void VOID;
typedef unsigned __int8  UINT8;
typedef unsigned __int16 UINT16, WCHAR;
typedef __int32 LONG32;
typedef unsigned __int32 ULONG32;
typedef __int64 INT64;
typedef unsigned __int64 UINT64;

struct HEAPTABLE {
	struct _HEAP *list[16];
};

struct _LIST_ENTRY {
	struct _LIST_ENTRY *FLink;
	struct _LIST_ENTRY *BLink;
};

typedef struct _SLIST_HEADER {
	struct _SLIST_HEADER *Next;
	UINT16       Depth;
	UINT16       Sequence;
} SLIST_HEADER, *PSLIST_HEADER;

struct _SINGLE_LIST_ENTRY {
	struct _SINGLE_LIST_ENTRY *Next;
};


typedef struct _HEAP_ENTRY {
	union {
		struct {
			UINT16       Size;
			UINT8        Flags;
			UINT8        SmallTagIndex;
			UINT8        _PADDING0_[0x4];
		};
		struct {
			VOID*        SubSegmentCode;
			UINT16       PreviousSize;
			union
			{
				UINT8        SegmentOffset;
				UINT8        LFHFlags;
			};
			UINT8        UnusedBytes;
		};
		struct
		{
			ULONG32      Code1;
			UINT16       Code2;
			UINT8        Code3;
			UINT8        Code4;
		};
		UINT64       AgregateCode;
	};
} HEAP_ENTRY, *PHEAP_ENTRY;

typedef struct _HEAP_COUNTERS
{
	ULONG32      TotalMemoryReserved;
	ULONG32      TotalMemoryCommitted;
	ULONG32      TotalMemoryLargeUCR;
	ULONG32      TotalSizeInVirtualBlocks;
	ULONG32      TotalSegments;
	ULONG32      TotalUCRs;
	ULONG32      CommittOps;
	ULONG32      DeCommitOps;
	ULONG32      LockAcquires;
	ULONG32      LockCollisions;
	ULONG32      CommitRate;
	ULONG32      DecommittRate;
	ULONG32      CommitFailures;
	ULONG32      InBlockCommitFailures;
	ULONG32      CompactHeapCalls;
	ULONG32      CompactedUCRs;
	ULONG32      AllocAndFreeOps;
	ULONG32      InBlockDeccommits;
	ULONG32      InBlockDeccomitSize;<commit_msg>heapscan/w7: update structs according to http://msdn.mirt.net/win7rtm_x64.html#_HEAP_ENTRY, more to go<commit_after>typedef void VOID;
typedef unsigned __int8  UINT8;
typedef unsigned __int16 UINT16, WCHAR;
typedef __int32 LONG32;
typedef unsigned __int32 ULONG32;
typedef __int64 INT64;
typedef unsigned __int64 UINT64;

struct HEAPTABLE {
	struct _HEAP *list[16];
};

struct _LIST_ENTRY {
	struct _LIST_ENTRY *FLink;
	struct _LIST_ENTRY *BLink;
};

typedef struct _SLIST_HEADER {
	struct _SLIST_HEADER *Next;
	UINT16       Depth;
	UINT16       Sequence;
} SLIST_HEADER, *PSLIST_HEADER;

struct _SINGLE_LIST_ENTRY {
	struct _SINGLE_LIST_ENTRY *Next;
};


typedef struct _HEAP_ENTRY {
	VOID*        PreviousBlockPrivateData;
	UINT16       Size;
	UINT8        Flags;
	UINT8        SmallTagIndex;
	UINT16       PreviousSize;
	union
	{
		UINT8        SegmentOffset;
		UINT8        LFHFlags;
	};
	UINT8        UnusedBytes;
} HEAP_ENTRY, *PHEAP_ENTRY;

typedef struct _HEAP_COUNTERS
{
	ULONG32      TotalMemoryReserved;
	ULONG32      TotalMemoryCommitted;
	ULONG32      TotalMemoryLargeUCR;
	ULONG32      TotalSizeInVirtualBlocks;
	ULONG32      TotalSegments;
	ULONG32      TotalUCRs;
	ULONG32      CommittOps;
	ULONG32      DeCommitOps;
	ULONG32      LockAcquires;
	ULONG32      LockCollisions;
	ULONG32      CommitRate;
	ULONG32      DecommittRate;
	ULONG32      CommitFailures;
	ULONG32      InBlockCommitFailures;
	ULONG32      CompactHeapCalls;
	ULONG32      CompactedUCRs;
	ULONG32      AllocAndFreeOps;
	ULONG32      InBlockDeccommits;
	ULONG32      InBlockDeccomitSize;
{'fraction_non_alphanumeric': 0.055724725943970765, 'fraction_numerical': 0.05176613885505481, 'mean_word_length': 3.0505548705302097, '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': '1872063', 'n_tokens_mistral': 1348, 'n_tokens_neox': 1177, 'n_words': 261}