<commit_before>﻿using System;
using System.Runtime.InteropServices;

namespace Assignments.Core.Handlers.WCT
{
    [StructLayout(LayoutKind.Sequential)]
    public struct WAITCHAIN_NODE_INFO
    {
        public WCT_OBJECT_TYPE ObjectType;
        public WCT_OBJECT_STATUS ObjectStatus;
        public _WAITCHAIN_NODE_INFO_UNION Union;
    }


    [StructLayout(LayoutKind.Explicit)]
    public struct _WAITCHAIN_NODE_INFO_UNION
    {
        [FieldOffset(0)]
        public _WAITCHAIN_NODE_INFO_LOCK_OBJECT LockObject;
        [FieldOffset(0)]
        public _WAITCHAIN_NODE_INFO_THREAD_OBJECT ThreadObject;
    }

    public struct _WAITCHAIN_NODE_INFO_LOCK_OBJECT
    {
        /*The name of the object. Object names are only available for certain object, such as mutexes. If the object does not have a name, this member is an empty string.*/
        object ObjectName;//[WctApiConst.WCT_OBJNAME_LENGTH];// = ushort[WctApiConst.WCT_OBJNAME_LENGTH];<commit_msg>WAITCHAIN_NODE_INFO  structure declaration fixed (unsafe)<commit_after>﻿using System;
using System.Runtime.InteropServices;

namespace Assignments.Core.Handlers.WCT
{
    [StructLayout(LayoutKind.Sequential)]
    public struct WAITCHAIN_NODE_INFO
    {
        public WCT_OBJECT_TYPE ObjectType;
        public WCT_OBJECT_STATUS ObjectStatus;
        public _WAITCHAIN_NODE_INFO_UNION Union;
    }


    [StructLayout(LayoutKind.Explicit)]
    public struct _WAITCHAIN_NODE_INFO_UNION
    {
        [FieldOffset(0)]
        public _WAITCHAIN_NODE_INFO_LOCK_OBJECT LockObject;
        [FieldOffset(0)]
        public _WAITCHAIN_NODE_INFO_THREAD_OBJECT ThreadObject;
    }

    public unsafe struct _WAITCHAIN_NODE_INFO_LOCK_OBJECT
    {
        /*The name of the object. Object names are only available for certain object, such as mutexes. If the object does not have a name, this member is an empty string.*/
        public fixed ushort ObjectName[WctApiConst.WCT_OBJNAME_LENGTH];
{'fraction_non_alphanumeric': 0.06073082861554297, 'fraction_numerical': 0.002058672156459084, 'mean_word_length': 3.673076923076923, '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': '3136873', 'n_tokens_mistral': 594, 'n_tokens_neox': 580, 'n_words': 139}