<commit_before>import os
import sys
from SteamworksParser import steamworksparser

g_TypeConversionDict = {
    "uint8": "byte",
    "uint16": "ushort",
    "uint32": "uint",
    "uint64": "ulong",

    "char": "string",
    "int32": "int",

    "uint8 *": "IntPtr",
    "const char *": "string",
    "const char **": "IntPtr",

    # This is for CallbackMsg_t
    "HSteamUser": "int"
}

g_CustomPackSize = {
    # Callbacks
    "AvatarImageLoaded_t": "4",
    "FriendRichPresenceUpdate_t": "4",
    "GameConnectedClanChatMsg_t": "4",
    "GameConnectedChatLeave_t": "1",
    "JoinClanChatRoomCompletionResult_t": "4",
    "GameConnectedFriendChatMsg_t": "4",
    "FriendsGetFollowerCount_t": "4",
    "FriendsIsFollowing_t": "4",
    "FriendsEnumerateFollowingList_t": "4",
    "GSClientDeny_t": "4",
    "GSClientKick_t": "4",
    "GSClientGroupStatus_t": "1",
    "GSStatsReceived_t": "4",
    "GSStatsStored_t": "4",
    "P2PSessionConnectFail_t": "1",
    "SocketStatusCallback_t": "4",
    "ValidateAuthTicketResponse_t": "4",

    # Structs
    "ControllerAnalogActionData_t": "1",
    "ControllerDigitalActionData_t": "1",
}

g_SkippedStructs = (
    # All PS3 stuff.
    "PSNGameBootInviteResult_t",
    "PS3TrophiesInstalled_t",
    "NetStartDialogFinished_t",
    "NetStartDialogUnloaded_t",
    "PS3SystemMenuClosed_t",
    "PS3NPMessageSelected_t",
    "PS3KeyboardDialogFinished_t",
    "PS3PSNStatusChange_t",
)

g_SequentialStructs = (
    "MatchMakingKeyValuePair_t",
)

g_SpecialFieldTypes = {
    "PersonaStateChange_t": {
        "m_nChangeFlags": "EPersonaChange"
    },

    "HTML_NeedsPaint_t": {
        "pBGRA": "IntPtr"
    },<commit_msg>Made ControllerAnalogActionData_t, and ControllerDigitalActionData_t blittable types.<commit_after>import os
import sys
from SteamworksParser import steamworksparser

g_TypeConversionDict = {
    "uint8": "byte",
    "uint16": "ushort",
    "uint32": "uint",
    "uint64": "ulong",

    "char": "string",
    "int32": "int",

    "uint8 *": "IntPtr",
    "const char *": "string",
    "const char **": "IntPtr",

    # This is for CallbackMsg_t
    "HSteamUser": "int"
}

g_CustomPackSize = {
    # Callbacks
    "AvatarImageLoaded_t": "4",
    "FriendRichPresenceUpdate_t": "4",
    "GameConnectedClanChatMsg_t": "4",
    "GameConnectedChatLeave_t": "1",
    "JoinClanChatRoomCompletionResult_t": "4",
    "GameConnectedFriendChatMsg_t": "4",
    "FriendsGetFollowerCount_t": "4",
    "FriendsIsFollowing_t": "4",
    "FriendsEnumerateFollowingList_t": "4",
    "GSClientDeny_t": "4",
    "GSClientKick_t": "4",
    "GSClientGroupStatus_t": "1",
    "GSStatsReceived_t": "4",
    "GSStatsStored_t": "4",
    "P2PSessionConnectFail_t": "1",
    "SocketStatusCallback_t": "4",
    "ValidateAuthTicketResponse_t": "4",

    # Structs
    "ControllerAnalogActionData_t": "1",
    "ControllerDigitalActionData_t": "1",
}

g_SkippedStructs = (
    # All PS3 stuff.
    "PSNGameBootInviteResult_t",
    "PS3TrophiesInstalled_t",
    "NetStartDialogFinished_t",
    "NetStartDialogUnloaded_t",
    "PS3SystemMenuClosed_t",
    "PS3NPMessageSelected_t",
    "PS3KeyboardDialogFinished_t",
    "PS3PSNStatusChange_t",
)

g_SequentialStructs = (
    "MatchMakingKeyValuePair_t",
)

g_SpecialFieldTypes = {
    "PersonaStateChange_t": {
        "m_nChangeFlags": "EPersonaChange"
    },

    "HTML_NeedsPaint_t": {
        "pBGRA": "IntPtr"
    },

    # These two are returned by a function and the struct needs to be blittable.
    "ControllerAnalogActionData_t": {
        "bActive": "byte" # Originally bool
    },

    "ControllerDigitalActionData_t": {
        "bState": "byte", # Originally bool
        "bActive": "byte" # Originally bool
    }
{'fraction_non_alphanumeric': 0.14304993252361672, 'fraction_numerical': 0.019433198380566803, 'mean_word_length': 3.9151193633952253, 'pattern_counts': {'":': 71, '<': 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': '3245366', 'n_tokens_mistral': 1405, 'n_tokens_neox': 1366, 'n_words': 227}