id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
324,400
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/ext/command_util.py
botpy.ext.command_util.Commands
from functools import wraps from botpy.message import BaseMessage class Commands: """ 指令装饰器 Args: args (tuple): 字符串元组。 """ def __init__(self, *args): self.commands = args def __call__(self, func): @wraps(func) async def decorated(*args, **kwargs): m...
class Commands: ''' 指令装饰器 Args: args (tuple): 字符串元组。 ''' def __init__(self, *args): pass def __call__(self, func): pass @wraps(func) async def decorated(*args, **kwargs): pass
5
1
8
0
7
1
2
0.43
0
1
1
0
2
1
2
2
24
4
14
9
9
6
13
8
9
3
0
2
5
324,401
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/flags.py
botpy.flags.BaseFlags
from typing import Callable, overload, Optional, Any, Type, ClassVar, Dict, Iterator, Tuple, TypeVar class BaseFlags: VALID_FLAGS: ClassVar[Dict[str, int]] DEFAULT_VALUE: ClassVar[int] value: int __slots__ = ('value',) def __init__(self, **kwargs: bool): self.value = self.DEFAULT_VALUE ...
class BaseFlags: def __init__(self, **kwargs: bool): pass @classmethod def _from_value(cls, value): pass def __eq__(self, other: object) -> bool: pass def __ne__(self, other: object) -> bool: pass def __hash__(self) -> int: pass def __repr__(self...
11
0
3
0
3
0
2
0
0
6
1
2
8
0
9
9
48
11
37
15
26
0
34
14
24
3
0
2
15
324,402
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/flags.py
botpy.flags.Flag
from typing import Callable, overload, Optional, Any, Type, ClassVar, Dict, Iterator, Tuple, TypeVar class Flag: def __init__(self, func: Callable[[Any], int]): self.flag: int = func(None) self.__doc__: Optional[str] = func.__doc__ @overload def __get__(self, instance: None, owner: Type[B...
class Flag: def __init__(self, func: Callable[[Any], int]): pass @overload def __get__(self, instance: None, owner: Type[BF]) -> Any: pass @overload def __get__(self, instance: None, owner: Type[BF]) -> Any: pass def __get__(self, instance: None, owner: Type[BF]) -> Any...
9
0
3
0
3
0
1
0
0
4
0
0
6
2
6
6
23
5
18
11
9
0
16
9
9
2
0
1
7
324,403
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/flags.py
botpy.flags.Intents
@fill_with_flags() class Intents(BaseFlags): """ public_messages 群/C2C公域消息事件 public_guild_messages 公域消息事件 guild_messages 消息事件 (仅 私域 机器人能够设置此 intents) direct_message 私信事件 guild_message_reactions 消息相关互动事件 guilds 频道事件 guild_members 频道成员事件 interaction 互动事件 message_audit 消息审核事件 fo...
@fill_with_flags() class Intents(BaseFlags): ''' public_messages 群/C2C公域消息事件 public_guild_messages 公域消息事件 guild_messages 消息事件 (仅 私域 机器人能够设置此 intents) direct_message 私信事件 guild_message_reactions 消息相关互动事件 guilds 频道事件 guild_members 频道成员事件 interaction 互动事件 messag...
35
17
11
2
3
6
1
1.42
1
4
0
0
14
1
17
26
235
51
76
40
42
108
60
24
42
3
1
2
19
324,404
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/flags.py
botpy.flags.Permission
@fill_with_flags() class Permission(BaseFlags): def __init__(self, **kwargs: bool) -> None: super().__init__(**kwargs) self.value: int = self.DEFAULT_VALUE for key, value in kwargs.items(): if key not in self.VALID_FLAGS: raise TypeError(f'{key!r} is not a valid ...
@fill_with_flags() class Permission(BaseFlags): def __init__(self, **kwargs: bool) -> None: pass @Flag def view_permission(self): '''可查看子频道 0x0000000001 (1 << 0) 支持指定成员可见类型,支持身份组可见类型''' pass @Flag def manager_permission(self): '''可管理子频道 0x0000000002 (1 << 1)...
11
4
4
0
3
1
1
0.2
1
4
0
0
5
1
5
14
28
4
20
12
10
4
16
8
10
3
1
2
7
324,405
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/forum.py
botpy.forum.OpenThread
from .types import forum from .api import BotAPI class OpenThread: __slots__ = ('_api', 'thread_info', 'channel_id', 'guild_id', 'author_id', 'event_id') def __init__(self, api: BotAPI, data: forum.OpenForumEvent): self._api = api self.guild_id = data.get('guild_id', None) self.channel...
class OpenThread: def __init__(self, api: BotAPI, data: forum.OpenForumEvent): pass def __repr__(self): pass
3
0
4
1
4
0
1
0
0
3
2
0
2
4
2
2
18
3
15
8
12
0
9
8
6
1
0
0
2
324,406
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/forum.py
botpy.forum.Thread
from .types import forum from json import loads from .api import BotAPI class Thread: __slots__ = ('_api', 'thread_info', 'channel_id', 'guild_id', 'author_id', 'event_id') def __init__(self, api: BotAPI, event_id, data: forum.Thread): self._api = api self.author_id = data.get('author_id', Non...
class Thread: def __init__(self, api: BotAPI, event_id, data: forum.Thread): pass def __repr__(self): pass class _ThreadInfo: def __init__(self, api: BotAPI, event_id, data: forum.Thread): pass def __repr__(self): pass class _Title: def __init__(se...
24
0
3
0
3
0
1
0
0
4
3
0
2
6
2
2
83
17
66
48
42
0
57
48
33
5
0
1
20
324,407
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/forum.py
botpy.forum._Image
class _Image: def __init__(self, data): self.plat_image = self._PlatImage(data.get('plat_image', {})) def __repr__(self): return str(self.__dict__) class _PlatImage: def __init__(self, data): self.url = data.get('url', None) self.width = data.get('width', ...
class _Image: def __init__(self, data): pass def __repr__(self): pass class _PlatImage: def __init__(self, data): pass def __repr__(self): pass
6
0
3
0
3
0
1
0
0
2
1
0
2
1
2
2
16
3
13
11
7
0
13
11
7
1
0
0
4
324,408
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/forum.py
botpy.forum._Text
class _Text: def __init__(self, data): self.text = data.get('text', None) def __repr__(self): return str(self.__dict__)
class _Text: def __init__(self, data): pass def __repr__(self): pass
3
0
2
0
2
0
1
0
0
1
0
0
2
1
2
2
6
1
5
4
2
0
5
4
2
1
0
0
2
324,409
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/forum.py
botpy.forum._Url
class _Url: def __init__(self, data): self.url = data.get('url', None) self.desc = data.get('desc', None) def __repr__(self): return str(self.__dict__)
class _Url: def __init__(self, data): pass def __repr__(self): pass
3
0
3
0
3
0
1
0
0
1
0
0
2
2
2
2
7
1
6
5
3
0
6
5
3
1
0
0
2
324,410
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/forum.py
botpy.forum._Video
class _Video: def __init__(self, data): self.plat_video = self._PlatVideo(data.get('plat_video', {})) def __repr__(self): return str(self.__dict__) class _PlatVideo: def __init__(self, data): self.url = data.get('url', None) self.width = data.get('width', ...
class _Video: def __init__(self, data): pass def __repr__(self): pass class _PlatVideo: def __init__(self, data): pass def __repr__(self): pass class _Cover: def __init__(self, data): pass def __repr__(self): pass
9
0
3
0
3
0
1
0
0
2
1
0
2
1
2
2
26
5
21
18
12
0
21
18
12
1
0
0
6
324,411
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/gateway.py
botpy.gateway.BotWebSocket
from aiohttp import WSMessage, ClientWebSocketResponse, TCPConnector, ClientSession, WSMsgType import asyncio from ssl import SSLContext from .types.session import Session from .connection import ConnectionSession from .types import gateway import json from typing import Optional import traceback class BotWebSocket: ...
class BotWebSocket: '''Bot的Websocket实现 CODE 名称 客户端操作 描述 0 Dispatch Receive 服务端进行消息推送 1 Heartbeat Send/Receive 客户端或服务端发送心跳 2 Identify Send 客户端发送鉴权 6 Resume Send 客户端恢复连接 7 Reconnect Receive 服务端通知客户端重新连接 9 Invalid Session Receive ...
13
7
16
1
12
2
3
0.23
0
8
3
0
12
9
12
12
221
26
158
45
145
37
134
43
121
7
0
4
38
324,412
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/guild.py
botpy.guild.Guild
from .types import guild from .api import BotAPI class Guild: __slots__ = ('_api', '_ctx', 'id', 'name', 'icon', 'owner_id', 'is_owner', 'member_count', 'max_members', 'description', 'joined_at', 'event_id') def __init__(self, api: BotAPI, event_id, data: guild.GuildPayload): self._api = api s...
class Guild: def __init__(self, api: BotAPI, event_id, data: guild.GuildPayload): pass def __repr__(self): pass
3
0
8
1
7
0
1
0
0
3
2
0
2
11
2
2
32
3
29
15
26
0
16
15
13
1
0
0
2
324,413
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/http.py
botpy.http.BotHttp
from .robot import Token from .types import robot from ssl import SSLContext from aiohttp import ClientResponse, FormData, TCPConnector, multipart, hdrs, payload import aiohttp import asyncio from typing import Any, Optional, ClassVar, Union, Dict class BotHttp: """ TODO 增加请求重试功能 @veehou TODO 增加并发请求的锁控制 @v...
class BotHttp: ''' TODO 增加请求重试功能 @veehou TODO 增加并发请求的锁控制 @veehou ''' def __init__(self, timeout: int, is_sandbox: bool=False, app_id: str=None, secret: str=None): pass def __del__(self): pass async def close(self) -> None: pass async def check_session(self): ...
7
2
14
1
13
1
3
0.09
0
15
4
0
6
6
6
6
94
11
76
25
63
7
54
18
47
10
0
6
19
324,414
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/http.py
botpy.http.Route
from typing import Any, Optional, ClassVar, Union, Dict class Route: DOMAIN: ClassVar[str] = 'api.sgroup.qq.com' SANDBOX_DOMAIN: ClassVar[str] = 'sandbox.api.sgroup.qq.com' SCHEME: ClassVar[str] = 'https' def __init__(self, method: str, path: str, is_sandbox: str=False, **parameters: Any) -> None: ...
class Route: def __init__(self, method: str, path: str, is_sandbox: str=False, **parameters: Any) -> None: pass @property def url(self): pass
4
0
8
1
7
1
2
0.05
0
2
0
0
2
4
2
2
23
3
19
13
15
1
17
12
14
3
0
1
4
324,415
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/http.py
botpy.http._FormData
from aiohttp import ClientResponse, FormData, TCPConnector, multipart, hdrs, payload class _FormData(FormData): def _gen_form_data(self) -> multipart.MultipartWriter: """Encode a list of fields using the multipart/form-data MIME format""" if self._is_processed: return self._writer ...
class _FormData(FormData): def _gen_form_data(self) -> multipart.MultipartWriter: '''Encode a list of fields using the multipart/form-data MIME format''' pass
2
1
38
3
34
2
6
0.06
1
3
0
0
1
1
1
8
39
3
35
6
33
2
19
5
17
6
1
3
6
324,416
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/interaction.py
botpy.interaction.Interaction
from .types import interaction from .api import BotAPI class Interaction: __slots__ = ('_api', '_ctx', 'id', 'application_id', 'type', 'scene', 'chat_type', 'event_id', 'data', 'guild_id', 'channel_id', 'user_openid', 'group_openid', 'group_member_openid', 'timestamp', 'version') def __init__(self, api: BotAP...
class Interaction: def __init__(self, api: BotAPI, event_id, data: interaction.InteractionPayload): pass def __repr__(self): pass class _Data: def __init__(self, api: BotAPI, event_id, data: interaction.InteractionPayload): pass def __repr__(self): pass cla...
9
0
5
0
5
0
1
0
0
4
3
0
2
15
2
2
59
7
52
32
43
0
35
32
26
1
0
0
6
324,417
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/manage.py
botpy.manage.C2CManageEvent
from .api import BotAPI from typing import Dict class C2CManageEvent: __slots__ = ('_api', 'event_id', 'timestamp', 'openid') def __init__(self, api: BotAPI, event_id, data: Dict): self._api = api self.event_id = event_id self.timestamp = data.get('timestamp', None) self.openid...
class C2CManageEvent: def __init__(self, api: BotAPI, event_id, data: Dict): pass def __repr__(self): pass
3
0
4
0
4
0
1
0
0
2
1
0
2
4
2
2
16
2
14
8
11
0
9
8
6
1
0
0
2
324,418
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/manage.py
botpy.manage.GroupManageEvent
from typing import Dict from .api import BotAPI class GroupManageEvent: __slots__ = ('_api', 'event_id', 'timestamp', 'group_openid', 'op_member_openid') def __init__(self, api: BotAPI, event_id, data: Dict): self._api = api self.event_id = event_id self.timestamp = data.get('timestamp...
class GroupManageEvent: def __init__(self, api: BotAPI, event_id, data: Dict): pass def __repr__(self): pass
3
0
4
0
4
0
1
0
0
2
1
0
2
5
2
2
18
2
16
9
13
0
10
9
7
1
0
0
2
324,419
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/message.py
botpy.message.BaseMessage
from .api import BotAPI from .types import gateway class BaseMessage: __slots__ = ('_api', 'content', 'id', 'message_reference', 'mentions', 'attachments', 'msg_seq', 'timestamp', 'event_id') def __init__(self, api: BotAPI, event_id, data: gateway.MessagePayload): self._api = api self.id = dat...
class BaseMessage: def __init__(self, api: BotAPI, event_id, data: gateway.MessagePayload): pass def __repr__(self): pass class _MessageRef: def __init__(self, api: BotAPI, event_id, data: gateway.MessagePayload): pass def __repr__(self): pass class _Attach...
9
0
4
0
4
0
1
0.03
0
5
4
2
2
9
2
2
46
6
40
27
31
1
30
27
21
1
0
0
6
324,420
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/message.py
botpy.message.C2CMessage
from .types import gateway from .api import BotAPI class C2CMessage(BaseMessage): __slots__ = ('author',) def __init__(self, api: BotAPI, event_id, data: gateway.MessagePayload): super().__init__(api, event_id, data) self.author = self._User(data.get('author', {})) def __repr__(self): ...
class C2CMessage(BaseMessage): def __init__(self, api: BotAPI, event_id, data: gateway.MessagePayload): pass def __repr__(self): pass class _User: def __init__(self, api: BotAPI, event_id, data: gateway.MessagePayload): pass def __repr__(self): pass async d...
7
0
3
0
2
0
1
0
1
5
3
0
3
1
3
5
21
6
15
11
8
0
15
11
8
1
1
0
5
324,421
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/message.py
botpy.message.DirectMessage
from .types import gateway from .api import BotAPI class DirectMessage: __slots__ = ('_api', 'author', 'content', 'direct_message', 'channel_id', 'id', 'guild_id', 'member', 'message_reference', 'attachments', 'seq', 'seq_in_channel', 'src_guild_id', 'timestamp', 'event_id') def __init__(self, api: BotAPI, ev...
class DirectMessage: def __init__(self, api: BotAPI, event_id, data: gateway.DirectMessagePayload): pass def __repr__(self): pass class _User: def __init__(self, api: BotAPI, event_id, data: gateway.DirectMessagePayload): pass def __repr__(self): pass class...
16
0
4
0
4
0
1
0.03
0
7
6
0
3
15
3
3
78
12
66
44
50
2
50
44
34
1
0
0
11
324,422
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/message.py
botpy.message.GroupMessage
from .api import BotAPI from .types import gateway class GroupMessage(BaseMessage): __slots__ = ('author', 'group_openid') def __init__(self, api: BotAPI, event_id, data: gateway.MessagePayload): super().__init__(api, event_id, data) self.author = self._User(data.get('author', {})) sel...
class GroupMessage(BaseMessage): def __init__(self, api: BotAPI, event_id, data: gateway.MessagePayload): pass def __repr__(self): pass class _User: def __init__(self, api: BotAPI, event_id, data: gateway.MessagePayload): pass def __repr__(self): pass async...
7
0
3
0
3
0
1
0
1
5
3
0
3
2
3
5
24
5
19
12
12
0
16
12
9
1
1
0
5
324,423
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/message.py
botpy.message.Message
from .types import gateway from .api import BotAPI class Message: __slots__ = ('_api', 'author', 'content', 'channel_id', 'id', 'guild_id', 'member', 'message_reference', 'mentions', 'attachments', 'seq', 'seq_in_channel', 'timestamp', 'event_id') def __init__(self, api: BotAPI, event_id, data: gateway.Messag...
class Message: def __init__(self, api: BotAPI, event_id, data: gateway.MessagePayload): pass def __repr__(self): pass class _User: def __init__(self, api: BotAPI, event_id, data: gateway.MessagePayload): pass def __repr__(self): pass class _Member: def...
16
0
4
0
4
0
1
0.04
0
7
6
0
3
14
3
3
80
12
67
46
51
3
52
46
36
1
0
0
11
324,424
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/message.py
botpy.message.MessageAudit
from .types import gateway from .api import BotAPI class MessageAudit: __slots__ = ('_api', 'audit_id', 'message_id', 'channel_id', 'guild_id', 'event_id') def __init__(self, api: BotAPI, event_id, data: gateway.MessageAuditPayload): self._api = api self.audit_id = data.get('audit_id', None) ...
class MessageAudit: def __init__(self, api: BotAPI, event_id, data: gateway.MessageAuditPayload): pass def __repr__(self): pass
3
0
5
1
5
0
1
0
0
3
2
0
2
6
2
2
21
3
18
10
15
0
11
10
8
1
0
0
2
324,425
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/reaction.py
botpy.reaction.Reaction
from .types import reaction from .api import BotAPI class Reaction: __slots__ = ('_api', '_ctx', 'user_id', 'channel_id', 'guild_id', 'emoji', 'target', 'event_id') def __init__(self, api: BotAPI, event_id, data: reaction.Reaction): self._api = api self.user_id = data.get('user_id', None) ...
class Reaction: def __init__(self, api: BotAPI, event_id, data: reaction.Reaction): pass def __repr__(self): pass class _Emoji: def __init__(self, api: BotAPI, event_id, data: reaction.Reaction): pass def __repr__(self): pass class _Target: def __init_...
9
0
4
0
3
0
1
0.03
0
5
4
0
2
7
2
2
39
7
32
21
23
1
24
21
15
1
0
0
6
324,426
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/robot.py
botpy.robot.Robot
from botpy.types import robot class Robot: def __init__(self, data: robot.Robot): self._update(data) def _update(self, data: robot.Robot) -> None: self.name = data.get('username') self.id = int(data['id']) self.avatar = data.get('avatar')
class Robot: def __init__(self, data: robot.Robot): pass def _update(self, data: robot.Robot) -> None: pass
3
0
3
0
3
0
1
0
0
2
1
0
2
3
2
2
8
1
7
6
4
0
7
6
4
1
0
0
2
324,427
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/robot.py
botpy.robot.Token
import asyncio import time import aiohttp class Token: TYPE_BOT = 'QQBot' TYPE_NORMAL = 'Bearer' def __init__(self, app_id: str, secret: str): """ :param app_id: 机器人appid :param secret: 机器人密钥 """ self.app_id = app_id self.secret = sec...
class Token: def __init__(self, app_id: str, secret: str): ''' :param app_id: 机器人appid :param secret: 机器人密钥 ''' pass async def check_token(self): pass async def update_access_token(self): pass def bot_token(self): ...
7
1
8
0
7
1
2
0.2
0
6
0
0
6
5
6
6
59
6
44
18
37
9
36
16
29
3
0
2
10
324,428
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/announce.py
botpy.types.announce.Announce
from typing import List, TypedDict class Announce(TypedDict): guild_id: str channel_id: str message_id: str announces_type: AnnouncesType recommend_channels: List[RecommendChannel]
class Announce(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
1
5
0
6
1
5
0
1
0
0
324,429
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/announce.py
botpy.types.announce.AnnouncesType
from enum import Enum class AnnouncesType(Enum): MEMBER = 0 WELCOME = 1 def __int__(self) -> int: return self.value
class AnnouncesType(Enum): def __int__(self) -> int: pass
2
0
2
0
2
0
1
0.4
1
1
0
0
1
0
1
50
6
1
5
4
3
2
5
4
3
1
4
0
1
324,430
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/announce.py
botpy.types.announce.RecommendChannel
from typing import List, TypedDict class RecommendChannel(TypedDict): channel_id: str introduce: str
class RecommendChannel(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
324,431
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/audio.py
botpy.types.audio.AudioAction
from typing import TypedDict, Literal class AudioAction(TypedDict): guild_id: str channel_id: str audio_url: str text: str
class AudioAction(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
324,432
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/audio.py
botpy.types.audio.AudioControl
from typing import TypedDict, Literal class AudioControl(TypedDict): audio_url: str text: str status: AudioStatus
class AudioControl(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
324,433
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/audio.py
botpy.types.audio.AudioLive
from typing import TypedDict, Literal class AudioLive(TypedDict): guild_id: str channel_id: str channel_type: PublicAudioType user_id: str
class AudioLive(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
324,434
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/channel.py
botpy.types.channel.ChannelPayload
from typing import TypedDict class ChannelPayload(TypedDict): id: str guild_id: str name: str type: ChannelType sub_type: ChannelSubType position: int parent_id: str owner_id: str private_type: PrivateType speak_permission: SpeakPermission application_id: str permissions...
class ChannelPayload(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
13
0
13
1
12
0
13
1
12
0
1
0
0
324,435
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/channel.py
botpy.types.channel.ChannelPermissions
from typing import TypedDict class ChannelPermissions(TypedDict): channel_id: str user_id: str permissions: str role_id: str
class ChannelPermissions(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
324,436
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/channel.py
botpy.types.channel.ChannelSubType
from enum import Enum class ChannelSubType(Enum): TALK = 0 POST = 1 CHEAT = 2 BLACK = 3 def __int__(self) -> int: return self.value
class ChannelSubType(Enum): def __int__(self) -> int: pass
2
0
2
0
2
0
1
0.57
1
1
0
0
1
0
1
50
8
1
7
6
5
4
7
6
5
1
4
0
1
324,437
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/channel.py
botpy.types.channel.ChannelType
from enum import Enum class ChannelType(Enum): TEXT_CHANNEL = 0 VOICE_CHANNEL = 2 GROUP_CHANNEL = 4 LIVE_CHANNEL = 10005 APP_CHANNEL = 10006 DISCUSSION_CHANNEL = 10007 def __int__(self) -> int: return self.value
class ChannelType(Enum): def __int__(self) -> int: pass
2
0
2
0
2
0
1
0.89
1
1
0
0
1
0
1
50
12
1
9
8
7
8
9
8
7
1
4
0
1
324,438
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/channel.py
botpy.types.channel.PrivateType
from enum import Enum class PrivateType(Enum): PUBLIC = 0 ADMIN = 1 SPECIFIED_USER = 2 def __int__(self) -> int: return self.value
class PrivateType(Enum): def __int__(self) -> int: pass
2
0
2
0
2
0
1
0.5
1
1
0
0
1
0
1
50
7
1
6
5
4
3
6
5
4
1
4
0
1
324,439
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/channel.py
botpy.types.channel.SpeakPermission
from enum import Enum class SpeakPermission(Enum): INVALID = 0 EVERYONE = 1 ADMIN = 2 def __int__(self) -> int: return self.value
class SpeakPermission(Enum): def __int__(self) -> int: pass
2
0
2
0
2
0
1
0.5
1
1
0
0
1
0
1
50
7
1
6
5
4
3
6
5
4
1
4
0
1
324,440
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/emoji.py
botpy.types.emoji.Emoji
from typing import Literal, TypedDict class Emoji(TypedDict): id: str type: EmojiType
class Emoji(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
324,441
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/forum.py
botpy.types.forum.AuditResult
from typing import TypedDict, Literal, List from botpy.types.rich_text import AuditType class AuditResult(TypedDict): guild_id: str channel_id: str author_id: str thread_id: str post_id: str reply_id: str type: AuditType result: int err_msg: str
class AuditResult(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
10
0
10
1
9
0
10
1
9
0
1
0
0
324,442
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/forum.py
botpy.types.forum.ForumRsp
from typing import TypedDict, Literal, List class ForumRsp(TypedDict): threads: List[Thread] is_finish: int
class ForumRsp(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
324,443
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/forum.py
botpy.types.forum.OpenForumEvent
from typing import TypedDict, Literal, List class OpenForumEvent(TypedDict): guild_id: str channel_id: str author_id: str
class OpenForumEvent(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
324,444
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/forum.py
botpy.types.forum.Post
from typing import TypedDict, Literal, List class Post(TypedDict): guild_id: str channel_id: str author_id: str post_info: PostInfo
class Post(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
324,445
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/forum.py
botpy.types.forum.PostInfo
from typing import TypedDict, Literal, List class PostInfo(TypedDict): thread_id: str post_id: str content: str date_time: str
class PostInfo(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
324,446
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/forum.py
botpy.types.forum.PostThreadRsp
from typing import TypedDict, Literal, List class PostThreadRsp(TypedDict): task_id: str create_time: str
class PostThreadRsp(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
324,447
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/forum.py
botpy.types.forum.Reply
from typing import TypedDict, Literal, List class Reply(TypedDict): guild_id: str channel_id: str author_id: str reply_info: ReplyInfo
class Reply(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
324,448
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/forum.py
botpy.types.forum.ReplyInfo
from typing import TypedDict, Literal, List class ReplyInfo(TypedDict): thread_id: str post_id: str reply_id: str content: str date_time: str
class ReplyInfo(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
1
5
0
6
1
5
0
1
0
0
324,449
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/forum.py
botpy.types.forum.Thread
from typing import TypedDict, Literal, List class Thread(TypedDict): guild_id: str channel_id: str author_id: str thread_info: ThreadInfo
class Thread(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
324,450
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/forum.py
botpy.types.forum.ThreadInfo
from typing import TypedDict, Literal, List class ThreadInfo(TypedDict): thread_id: str title: str content: str date_time: str
class ThreadInfo(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
324,451
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/gateway.py
botpy.types.gateway.DirectMessagePayload
from typing import TypedDict, List from .user import Member class DirectMessagePayload(TypedDict): author: UserPayload channel_id: str content: str direct_message: bool guild_id: str id: str member: Member message_reference: MessageRefPayload attachments: List[MessageAttachPayload] ...
class DirectMessagePayload(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
14
0
14
1
13
0
14
1
13
0
1
0
0
324,452
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/gateway.py
botpy.types.gateway.MessageAttachPayload
from typing import TypedDict, List class MessageAttachPayload(TypedDict): content_type: str filename: str height: int width: int id: str size: int url: str
class MessageAttachPayload(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
8
0
8
1
7
0
8
1
7
0
1
0
0
324,453
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/gateway.py
botpy.types.gateway.MessageAuditPayload
from typing import TypedDict, List class MessageAuditPayload(TypedDict): audit_id: str message_id: str guild_id: str channel_id: str audit_time: str create_time: str seq_in_channel: str
class MessageAuditPayload(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
8
0
8
1
7
0
8
1
7
0
1
0
0
324,454
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/gateway.py
botpy.types.gateway.MessagePayload
from typing import TypedDict, List from .user import Member class MessagePayload(TypedDict): author: UserPayload channel_id: str content: str guild_id: str id: str member: Member message_reference: MessageRefPayload mentions: List[UserPayload] attachments: List[MessageAttachPayload]...
class MessagePayload(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
13
0
13
1
12
0
13
1
12
0
1
0
0
324,455
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/gateway.py
botpy.types.gateway.MessageRefPayload
from typing import TypedDict, List class MessageRefPayload(TypedDict): message_id: str
class MessageRefPayload(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
324,456
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/gateway.py
botpy.types.gateway.ReadyEvent
from typing import TypedDict, List class ReadyEvent(TypedDict): version: int session_id: str user: UserPayload shard: List[int]
class ReadyEvent(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
324,457
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/gateway.py
botpy.types.gateway.UserPayload
from typing import TypedDict, List class UserPayload(TypedDict): id: str username: str bot: bool status: int avatar: str
class UserPayload(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
1
5
0
6
1
5
0
1
0
0
324,458
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/gateway.py
botpy.types.gateway.WsContext
from typing import TypedDict, List class WsContext(TypedDict): id: str
class WsContext(TypedDict): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
0
2
0
2
1
1
1
2
1
1
0
1
0
0
324,459
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/gateway.py
botpy.types.gateway.WsUrlPayload
from typing import TypedDict, List class WsUrlPayload(TypedDict): url: str
class WsUrlPayload(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
324,460
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/guild.py
botpy.types.guild.GuildMembers
from botpy.types.user import User from typing import TypedDict, List class GuildMembers(TypedDict): user: List[User] nick: str roles: List[Role] joined_at: str
class GuildMembers(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
324,461
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/guild.py
botpy.types.guild.GuildPayload
from typing import TypedDict, List class GuildPayload(TypedDict): id: str name: str icon: str owner_id: str owner: bool member_count: int max_members: int description: str joined_at: str
class GuildPayload(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
10
0
10
1
9
0
10
1
9
0
1
0
0
324,462
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/guild.py
botpy.types.guild.GuildRole
from typing import TypedDict, List class GuildRole(TypedDict): guild_id: str role_id: str role: Role
class GuildRole(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
324,463
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/guild.py
botpy.types.guild.GuildRoles
from typing import TypedDict, List class GuildRoles(TypedDict): guild_id: str roles: List[Role] role_num_limit: str
class GuildRoles(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
324,464
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/guild.py
botpy.types.guild.Role
from typing import TypedDict, List class Role(TypedDict): id: str name: str color: int hoist: int number: int number_limit: int
class Role(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
7
0
7
1
6
0
7
1
6
0
1
0
0
324,465
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/inline.py
botpy.types.inline.Action
from typing import List, TypedDict class Action(TypedDict): type: int permission: Permission click_limit: int data: str at_bot_show_channel_list: bool
class Action(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
1
5
0
6
1
5
0
1
0
0
324,466
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/inline.py
botpy.types.inline.Button
from typing import List, TypedDict class Button(TypedDict): id: str render_data: RenderData action: Action
class Button(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
324,467
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/inline.py
botpy.types.inline.Keyboard
from typing import List, TypedDict class Keyboard(TypedDict): rows: List[KeyboardRow]
class Keyboard(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
324,468
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/inline.py
botpy.types.inline.KeyboardRow
from typing import List, TypedDict class KeyboardRow(TypedDict): buttons: List[Button]
class KeyboardRow(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
324,469
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/inline.py
botpy.types.inline.Permission
from typing import List, TypedDict class Permission(TypedDict): type: int specify_role_ids: List[str] specify_user_ids: List[str]
class Permission(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
324,470
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/inline.py
botpy.types.inline.RenderData
from typing import List, TypedDict class RenderData(TypedDict): label: str visited_label: str style: int
class RenderData(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
324,471
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/interaction.py
botpy.types.interaction.InteractionData
class InteractionData: type: int resolved: object
class InteractionData: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
0
0
0
324,472
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/interaction.py
botpy.types.interaction.InteractionDataType
from enum import Enum class InteractionDataType(Enum): CHAT_INPUT_SEARCH = 9 HTTP_PROXY = 10 INLINE_KEYBOARD_BUTTON_CLICK = 11 def __int__(self) -> int: return self.value
class InteractionDataType(Enum): def __int__(self) -> int: pass
2
0
2
0
2
0
1
0
1
1
0
0
1
0
1
50
7
1
6
5
4
0
6
5
4
1
4
0
1
324,473
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/interaction.py
botpy.types.interaction.InteractionPayload
from typing import TypedDict class InteractionPayload(TypedDict): id: str application_id: int type: int scene: str chat_type: int data: InteractionData guild_id: int channel_id: int user_openid: str group_openid: str group_member_openid: str timestamp: int version: i...
class InteractionPayload(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
14
0
14
1
13
0
14
1
13
0
1
0
0
324,474
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/interaction.py
botpy.types.interaction.InteractionType
from enum import Enum class InteractionType(Enum): PING = 1 APPLICATION_COMMAND = 2 HTTP_PROXY = 10 INLINE_KEYBOARD = 11 def __int__(self) -> int: return self.value
class InteractionType(Enum): def __int__(self) -> int: pass
2
0
2
0
2
0
1
0
1
1
0
0
1
0
1
50
8
1
7
6
5
0
7
6
5
1
4
0
1
324,475
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.Ark
from typing import List, TypedDict class Ark(TypedDict): template_id: int kv: List[ArkKv]
class Ark(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
324,476
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.ArkKv
from typing import List, TypedDict class ArkKv(TypedDict, total=False): key: str value: str obj: List[ArkObj]
class ArkKv(TypedDict, total=False): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
324,477
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.ArkObj
from typing import List, TypedDict class ArkObj(TypedDict): obj_kv: List[ArkObjKv]
class ArkObj(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
324,478
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.ArkObjKv
from typing import List, TypedDict class ArkObjKv(TypedDict): key: str value: str
class ArkObjKv(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
324,479
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.Attachment
from typing import List, TypedDict class Attachment(TypedDict): url: str
class Attachment(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
324,480
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.DMOriginalAuthor
from typing import List, TypedDict class DMOriginalAuthor(TypedDict): id: str username: str bot: bool
class DMOriginalAuthor(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
324,481
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.DeletedMessage
from typing import List, TypedDict class DeletedMessage(TypedDict): guild_id: str channel_id: str id: str author: DMOriginalAuthor
class DeletedMessage(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
324,482
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.DeletedMessageInfo
from typing import List, TypedDict class DeletedMessageInfo(TypedDict): message: DeletedMessage op_user: DeletionOperator
class DeletedMessageInfo(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
324,483
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.DeletionOperator
from typing import List, TypedDict class DeletionOperator(TypedDict): id: str
class DeletionOperator(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
324,484
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.DmsPayload
from typing import List, TypedDict class DmsPayload(TypedDict): guild_id: str channel_id: str creat_time: str
class DmsPayload(TypedDict): pass
1
0
0
0
0
0
0
0.25
1
0
0
0
0
0
0
0
4
0
4
1
3
1
4
1
3
0
1
0
0
324,485
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.Embed
from typing import List, TypedDict class Embed(TypedDict, total=False): title: str prompt: str thumbnail: Thumbnail fields: List[EmbedField]
class Embed(TypedDict, total=False): pass
1
0
0
0
0
0
0
0.8
2
0
0
0
0
0
0
0
5
0
5
1
4
4
5
1
4
0
1
0
0
324,486
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.EmbedField
from typing import List, TypedDict class EmbedField(TypedDict): name: str
class EmbedField(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
324,487
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.KeyboardPayload
from .inline import Keyboard from typing import List, TypedDict class KeyboardPayload(TypedDict, total=False): id: str content: Keyboard
class KeyboardPayload(TypedDict, total=False): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
324,488
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.MarkdownPayload
from typing import List, TypedDict class MarkdownPayload(TypedDict, total=False): custom_template_id: str params: List[MessageMarkdownParams] content: str
class MarkdownPayload(TypedDict, total=False): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
324,489
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.Media
from typing import List, TypedDict class Media(TypedDict): file_uuid: str file_info: str ttl: int
class Media(TypedDict): pass
1
0
0
0
0
0
0
0.75
1
0
0
0
0
0
0
0
4
0
4
1
3
3
4
1
3
0
1
0
0
324,490
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.Message
from .gateway import MessagePayload from typing import List, TypedDict class Message(MessagePayload): edited_timestamp: str mention_everyone: str attachments: List[Attachment] embeds: List[Embed] ark: Ark message_reference: Reference markdown: MarkdownPayload keyboard: KeyboardPayload
class Message(MessagePayload): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
9
0
9
1
8
0
9
1
8
0
2
0
0
324,491
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.MessageMarkdownParams
from typing import List, TypedDict class MessageMarkdownParams(TypedDict): key: str values: List[str]
class MessageMarkdownParams(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
324,492
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.MessagesPager
from typing import List, TypedDict class MessagesPager(TypedDict): type: TypesEnum id: str limit: str
class MessagesPager(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
324,493
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.Reference
from typing import List, TypedDict class Reference(TypedDict): message_id: str ignore_get_message_error: bool
class Reference(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
324,494
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.Thumbnail
from typing import List, TypedDict class Thumbnail(TypedDict): url: str
class Thumbnail(TypedDict): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
0
2
0
2
1
1
1
2
1
1
0
1
0
0
324,495
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/message.py
botpy.types.message.TypesEnum
from enum import Enum class TypesEnum(Enum): around = 'around' before = 'before' after = 'after' latest = ''
class TypesEnum(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
5
0
5
5
4
0
5
5
4
0
4
0
0
324,496
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/permission.py
botpy.types.permission.APIPermission
from typing import TypedDict class APIPermission(TypedDict): path: str method: str desc: str auth_status: int
class APIPermission(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
324,497
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/permission.py
botpy.types.permission.APIPermissionDemand
from typing import TypedDict class APIPermissionDemand(TypedDict): guild_id: str channel_id: str api_identify: APIPermissionDemandIdentify title: str desc: str
class APIPermissionDemand(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
1
5
0
6
1
5
0
1
0
0
324,498
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/permission.py
botpy.types.permission.APIPermissionDemandIdentify
from typing import TypedDict class APIPermissionDemandIdentify(TypedDict): path: str method: str
class APIPermissionDemandIdentify(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
324,499
kldhsh123/hiklqqbot
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/kldhsh123_hiklqqbot/botpy/botpy/types/pins_message.py
botpy.types.pins_message.PinsMessage
from typing import List class PinsMessage: guild_id: str channel_id: str message_ids: List[str]
class PinsMessage: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
0
0
0