Search is not available for this dataset
identifier stringlengths 1 155 | parameters stringlengths 2 6.09k | docstring stringlengths 11 63.4k | docstring_summary stringlengths 0 63.4k | function stringlengths 29 99.8k | function_tokens list | start_point list | end_point list | language stringclasses 1
value | docstring_language stringlengths 2 7 | docstring_language_predictions stringlengths 18 23 | is_langid_reliable stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
MessageReceipt.recipient_verkey | (self, verkey: str) |
Setter for the recipient public key used to pack the incoming request.
Args:
verkey: This context's recipient's verkey
|
Setter for the recipient public key used to pack the incoming request. | def recipient_verkey(self, verkey: str):
"""
Setter for the recipient public key used to pack the incoming request.
Args:
verkey: This context's recipient's verkey
"""
self._recipient_verkey = verkey | [
"def",
"recipient_verkey",
"(",
"self",
",",
"verkey",
":",
"str",
")",
":",
"self",
".",
"_recipient_verkey",
"=",
"verkey"
] | [
192,
4
] | [
200,
39
] | python | en | ['en', 'error', 'th'] | False |
MessageReceipt.sender_did | (self) |
Accessor for the sender DID which corresponds with the verkey.
Returns:
The sender did
|
Accessor for the sender DID which corresponds with the verkey. | def sender_did(self) -> str:
"""
Accessor for the sender DID which corresponds with the verkey.
Returns:
The sender did
"""
return self._sender_did | [
"def",
"sender_did",
"(",
"self",
")",
"->",
"str",
":",
"return",
"self",
".",
"_sender_did"
] | [
203,
4
] | [
211,
31
] | python | en | ['en', 'error', 'th'] | False |
MessageReceipt.sender_did | (self, did: str) |
Setter for the sender DID which corresponds with the verkey.
Args:
The new sender did
|
Setter for the sender DID which corresponds with the verkey. | def sender_did(self, did: str):
"""
Setter for the sender DID which corresponds with the verkey.
Args:
The new sender did
"""
self._sender_did = did | [
"def",
"sender_did",
"(",
"self",
",",
"did",
":",
"str",
")",
":",
"self",
".",
"_sender_did",
"=",
"did"
] | [
214,
4
] | [
222,
30
] | python | en | ['en', 'error', 'th'] | False |
MessageReceipt.sender_verkey | (self) |
Accessor for the sender public key used to pack the incoming request.
Returns:
This context's sender's verkey
|
Accessor for the sender public key used to pack the incoming request. | def sender_verkey(self) -> str:
"""
Accessor for the sender public key used to pack the incoming request.
Returns:
This context's sender's verkey
"""
return self._sender_verkey | [
"def",
"sender_verkey",
"(",
"self",
")",
"->",
"str",
":",
"return",
"self",
".",
"_sender_verkey"
] | [
225,
4
] | [
233,
34
] | python | en | ['en', 'error', 'th'] | False |
MessageReceipt.sender_verkey | (self, verkey: str) |
Setter for the sender public key used to pack the incoming request.
Args:
verkey: This context's sender's verkey
|
Setter for the sender public key used to pack the incoming request. | def sender_verkey(self, verkey: str):
"""
Setter for the sender public key used to pack the incoming request.
Args:
verkey: This context's sender's verkey
"""
self._sender_verkey = verkey | [
"def",
"sender_verkey",
"(",
"self",
",",
"verkey",
":",
"str",
")",
":",
"self",
".",
"_sender_verkey",
"=",
"verkey"
] | [
236,
4
] | [
244,
36
] | python | en | ['en', 'error', 'th'] | False |
MessageReceipt.thread_id | (self) |
Accessor for the identifier of the message thread.
Returns:
The delivery thread ID
|
Accessor for the identifier of the message thread. | def thread_id(self) -> str:
"""
Accessor for the identifier of the message thread.
Returns:
The delivery thread ID
"""
return self._thread_id | [
"def",
"thread_id",
"(",
"self",
")",
"->",
"str",
":",
"return",
"self",
".",
"_thread_id"
] | [
247,
4
] | [
255,
30
] | python | en | ['en', 'error', 'th'] | False |
MessageReceipt.thread_id | (self, thread: str) |
Setter for the message thread identifier.
Args:
thread: The new thread identifier
|
Setter for the message thread identifier. | def thread_id(self, thread: str):
"""
Setter for the message thread identifier.
Args:
thread: The new thread identifier
"""
self._thread_id = thread | [
"def",
"thread_id",
"(",
"self",
",",
"thread",
":",
"str",
")",
":",
"self",
".",
"_thread_id",
"=",
"thread"
] | [
258,
4
] | [
266,
32
] | python | en | ['en', 'error', 'th'] | False |
MessageReceipt.__repr__ | (self) |
Provide a human readable representation of this object.
Returns:
A human readable representation of this object
|
Provide a human readable representation of this object. | def __repr__(self) -> str:
"""
Provide a human readable representation of this object.
Returns:
A human readable representation of this object
"""
skip = ()
items = (
"{}={}".format(k, repr(v))
for k, v in self.__dict__.items()
... | [
"def",
"__repr__",
"(",
"self",
")",
"->",
"str",
":",
"skip",
"=",
"(",
")",
"items",
"=",
"(",
"\"{}={}\"",
".",
"format",
"(",
"k",
",",
"repr",
"(",
"v",
")",
")",
"for",
"k",
",",
"v",
"in",
"self",
".",
"__dict__",
".",
"items",
"(",
")... | [
268,
4
] | [
282,
75
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.at_first_save | (self) |
Called by the typeclass system the very first time the channel
is saved to the database. Generally, don't overload this but
the hooks called by this method.
|
Called by the typeclass system the very first time the channel
is saved to the database. Generally, don't overload this but
the hooks called by this method. | def at_first_save(self):
"""
Called by the typeclass system the very first time the channel
is saved to the database. Generally, don't overload this but
the hooks called by this method.
"""
self.basetype_setup()
self.at_channel_creation()
self.attributes.... | [
"def",
"at_first_save",
"(",
"self",
")",
":",
"self",
".",
"basetype_setup",
"(",
")",
"self",
".",
"at_channel_creation",
"(",
")",
"self",
".",
"attributes",
".",
"add",
"(",
"\"log_file\"",
",",
"\"channel_%s.log\"",
"%",
"self",
".",
"key",
")",
"if",... | [
21,
4
] | [
47,
58
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.at_channel_creation | (self) |
Called once, when the channel is first created.
|
Called once, when the channel is first created. | def at_channel_creation(self):
"""
Called once, when the channel is first created.
"""
pass | [
"def",
"at_channel_creation",
"(",
"self",
")",
":",
"pass"
] | [
59,
4
] | [
64,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.has_connection | (self, subscriber) |
Checks so this account is actually listening
to this channel.
Args:
subscriber (Account or Object): Entity to check.
Returns:
has_sub (bool): Whether the subscriber is subscribing to
this channel or not.
Notes:
This will fir... |
Checks so this account is actually listening
to this channel. | def has_connection(self, subscriber):
"""
Checks so this account is actually listening
to this channel.
Args:
subscriber (Account or Object): Entity to check.
Returns:
has_sub (bool): Whether the subscriber is subscribing to
this channel ... | [
"def",
"has_connection",
"(",
"self",
",",
"subscriber",
")",
":",
"has_sub",
"=",
"self",
".",
"subscriptions",
".",
"has",
"(",
"subscriber",
")",
"if",
"not",
"has_sub",
"and",
"hasattr",
"(",
"subscriber",
",",
"\"account\"",
")",
":",
"# it's common to ... | [
68,
4
] | [
90,
22
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.mute | (self, subscriber, **kwargs) |
Adds an entity to the list of muted subscribers.
A muted subscriber will no longer see channel messages,
but may use channel commands.
Args:
subscriber (Object or Account): Subscriber to mute.
**kwargs (dict): Arbitrary, optional arguments for users
... |
Adds an entity to the list of muted subscribers.
A muted subscriber will no longer see channel messages,
but may use channel commands. | def mute(self, subscriber, **kwargs):
"""
Adds an entity to the list of muted subscribers.
A muted subscriber will no longer see channel messages,
but may use channel commands.
Args:
subscriber (Object or Account): Subscriber to mute.
**kwargs (dict): Arb... | [
"def",
"mute",
"(",
"self",
",",
"subscriber",
",",
"*",
"*",
"kwargs",
")",
":",
"mutelist",
"=",
"self",
".",
"mutelist",
"if",
"subscriber",
"not",
"in",
"mutelist",
":",
"mutelist",
".",
"append",
"(",
"subscriber",
")",
"self",
".",
"db",
".",
"... | [
108,
4
] | [
125,
20
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.unmute | (self, subscriber, **kwargs) |
Removes an entity to the list of muted subscribers. A muted subscriber will no longer see channel messages,
but may use channel commands.
Args:
subscriber (Object or Account): The subscriber to unmute.
**kwargs (dict): Arbitrary, optional arguments for users
... |
Removes an entity to the list of muted subscribers. A muted subscriber will no longer see channel messages,
but may use channel commands. | def unmute(self, subscriber, **kwargs):
"""
Removes an entity to the list of muted subscribers. A muted subscriber will no longer see channel messages,
but may use channel commands.
Args:
subscriber (Object or Account): The subscriber to unmute.
**kwargs (dict):... | [
"def",
"unmute",
"(",
"self",
",",
"subscriber",
",",
"*",
"*",
"kwargs",
")",
":",
"mutelist",
"=",
"self",
".",
"mutelist",
"if",
"subscriber",
"in",
"mutelist",
":",
"mutelist",
".",
"remove",
"(",
"subscriber",
")",
"self",
".",
"db",
".",
"mute_li... | [
127,
4
] | [
143,
20
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.connect | (self, subscriber, **kwargs) |
Connect the user to this channel. This checks access.
Args:
subscriber (Account or Object): the entity to subscribe
to this channel.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
Return... |
Connect the user to this channel. This checks access. | def connect(self, subscriber, **kwargs):
"""
Connect the user to this channel. This checks access.
Args:
subscriber (Account or Object): the entity to subscribe
to this channel.
**kwargs (dict): Arbitrary, optional arguments for users
over... | [
"def",
"connect",
"(",
"self",
",",
"subscriber",
",",
"*",
"*",
"kwargs",
")",
":",
"# check access",
"if",
"not",
"self",
".",
"access",
"(",
"subscriber",
",",
"'listen'",
")",
":",
"return",
"False",
"# pre-join hook",
"connect",
"=",
"self",
".",
"p... | [
145,
4
] | [
173,
19
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.disconnect | (self, subscriber, **kwargs) |
Disconnect entity from this channel.
Args:
subscriber (Account of Object): the
entity to disconnect.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
Returns:
success (bool): W... |
Disconnect entity from this channel. | def disconnect(self, subscriber, **kwargs):
"""
Disconnect entity from this channel.
Args:
subscriber (Account of Object): the
entity to disconnect.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by de... | [
"def",
"disconnect",
"(",
"self",
",",
"subscriber",
",",
"*",
"*",
"kwargs",
")",
":",
"# pre-disconnect hook",
"disconnect",
"=",
"self",
".",
"pre_leave_channel",
"(",
"subscriber",
")",
"if",
"not",
"disconnect",
":",
"return",
"False",
"# disconnect",
"se... | [
175,
4
] | [
200,
19
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.access | (self, accessing_obj, access_type='listen', default=False, no_superuser_bypass=False, **kwargs) |
Determines if another object has permission to access.
Args:
accessing_obj (Object): Object trying to access this one.
access_type (str, optional): Type of access sought.
default (bool, optional): What to return if no lock of access_type was found
no_sup... |
Determines if another object has permission to access. | def access(self, accessing_obj, access_type='listen', default=False, no_superuser_bypass=False, **kwargs):
"""
Determines if another object has permission to access.
Args:
accessing_obj (Object): Object trying to access this one.
access_type (str, optional): Type of acce... | [
"def",
"access",
"(",
"self",
",",
"accessing_obj",
",",
"access_type",
"=",
"'listen'",
",",
"default",
"=",
"False",
",",
"no_superuser_bypass",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"self",
".",
"locks",
".",
"check",
"(",
"access... | [
202,
4
] | [
220,
89
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.delete | (self) |
Deletes channel while also cleaning up channelhandler.
|
Deletes channel while also cleaning up channelhandler. | def delete(self):
"""
Deletes channel while also cleaning up channelhandler.
"""
self.attributes.clear()
self.aliases.clear()
super(DefaultChannel, self).delete()
from evennia.comms.channelhandler import CHANNELHANDLER
CHANNELHANDLER.update() | [
"def",
"delete",
"(",
"self",
")",
":",
"self",
".",
"attributes",
".",
"clear",
"(",
")",
"self",
".",
"aliases",
".",
"clear",
"(",
")",
"super",
"(",
"DefaultChannel",
",",
"self",
")",
".",
"delete",
"(",
")",
"from",
"evennia",
".",
"comms",
"... | [
222,
4
] | [
231,
31
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.message_transform | (self, msgobj, emit=False, prefix=True,
sender_strings=None, external=False, **kwargs) |
Generates the formatted string sent to listeners on a channel.
Args:
msgobj (Msg): Message object to send.
emit (bool, optional): In emit mode the message is not associated
with a specific sender name.
prefix (bool, optional): Prefix `msg` with a tex... |
Generates the formatted string sent to listeners on a channel. | def message_transform(self, msgobj, emit=False, prefix=True,
sender_strings=None, external=False, **kwargs):
"""
Generates the formatted string sent to listeners on a channel.
Args:
msgobj (Msg): Message object to send.
emit (bool, optional): In... | [
"def",
"message_transform",
"(",
"self",
",",
"msgobj",
",",
"emit",
"=",
"False",
",",
"prefix",
"=",
"True",
",",
"sender_strings",
"=",
"None",
",",
"external",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"sender_strings",
"or",
"external",... | [
233,
4
] | [
256,
21
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.distribute_message | (self, msgobj, online=False, **kwargs) |
Method for grabbing all listeners that a message should be
sent to on this channel, and sending them a message.
Args:
msgobj (Msg or TempMsg): Message to distribute.
online (bool): Only send to receivers who are actually online
(not currently used):
... |
Method for grabbing all listeners that a message should be
sent to on this channel, and sending them a message. | def distribute_message(self, msgobj, online=False, **kwargs):
"""
Method for grabbing all listeners that a message should be
sent to on this channel, and sending them a message.
Args:
msgobj (Msg or TempMsg): Message to distribute.
online (bool): Only send to rec... | [
"def",
"distribute_message",
"(",
"self",
",",
"msgobj",
",",
"online",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"# get all accounts or objects connected to this channel and send to them",
"if",
"online",
":",
"subs",
"=",
"self",
".",
"subscriptions",
".",
... | [
258,
4
] | [
292,
107
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.msg | (self, msgobj, header=None, senders=None, sender_strings=None,
keep_log=None, online=False, emit=False, external=False) |
Send the given message to all accounts connected to channel. Note that
no permission-checking is done here; it is assumed to have been
done before calling this method. The optional keywords are not used if
persistent is False.
Args:
msgobj (Msg, TempMsg or str): If ... |
Send the given message to all accounts connected to channel. Note that
no permission-checking is done here; it is assumed to have been
done before calling this method. The optional keywords are not used if
persistent is False. | def msg(self, msgobj, header=None, senders=None, sender_strings=None,
keep_log=None, online=False, emit=False, external=False):
"""
Send the given message to all accounts connected to channel. Note that
no permission-checking is done here; it is assumed to have been
done befo... | [
"def",
"msg",
"(",
"self",
",",
"msgobj",
",",
"header",
"=",
"None",
",",
"senders",
"=",
"None",
",",
"sender_strings",
"=",
"None",
",",
"keep_log",
"=",
"None",
",",
"online",
"=",
"False",
",",
"emit",
"=",
"False",
",",
"external",
"=",
"False"... | [
294,
4
] | [
349,
19
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.tempmsg | (self, message, header=None, senders=None) |
A wrapper for sending non-persistent messages.
Args:
message (str): Message to send.
header (str, optional): Header of message to send.
senders (Object or list, optional): Senders of message to send.
|
A wrapper for sending non-persistent messages. | def tempmsg(self, message, header=None, senders=None):
"""
A wrapper for sending non-persistent messages.
Args:
message (str): Message to send.
header (str, optional): Header of message to send.
senders (Object or list, optional): Senders of message to send.
... | [
"def",
"tempmsg",
"(",
"self",
",",
"message",
",",
"header",
"=",
"None",
",",
"senders",
"=",
"None",
")",
":",
"self",
".",
"msg",
"(",
"message",
",",
"senders",
"=",
"senders",
",",
"header",
"=",
"header",
",",
"keep_log",
"=",
"False",
")"
] | [
351,
4
] | [
361,
73
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.channel_prefix | (self, msg=None, emit=False, **kwargs) |
Hook method. How the channel should prefix itself for users.
Args:
msg (str, optional): Prefix text
emit (bool, optional): Switches to emit mode, which usually
means to not prefix the channel's info.
**kwargs (dict): Arbitrary, optional arguments for... |
Hook method. How the channel should prefix itself for users. | def channel_prefix(self, msg=None, emit=False, **kwargs):
"""
Hook method. How the channel should prefix itself for users.
Args:
msg (str, optional): Prefix text
emit (bool, optional): Switches to emit mode, which usually
means to not prefix the channel's... | [
"def",
"channel_prefix",
"(",
"self",
",",
"msg",
"=",
"None",
",",
"emit",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"''",
"if",
"emit",
"else",
"'[%s] '",
"%",
"self",
".",
"key"
] | [
365,
4
] | [
380,
49
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.format_senders | (self, senders=None, **kwargs) |
Hook method. Function used to format a list of sender names.
Args:
senders (list): Sender object names.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
Returns:
formatted_list (str): The list... |
Hook method. Function used to format a list of sender names. | def format_senders(self, senders=None, **kwargs):
"""
Hook method. Function used to format a list of sender names.
Args:
senders (list): Sender object names.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).... | [
"def",
"format_senders",
"(",
"self",
",",
"senders",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"not",
"senders",
":",
"return",
"''",
"return",
"', '",
".",
"join",
"(",
"senders",
")"
] | [
382,
4
] | [
402,
33
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.pose_transform | (self, msgobj, sender_string, **kwargs) |
Hook method. Detects if the sender is posing, and modifies the
message accordingly.
Args:
msgobj (Msg or TempMsg): The message to analyze for a pose.
sender_string (str): The name of the sender/poser.
**kwargs (dict): Arbitrary, optional arguments for users
... |
Hook method. Detects if the sender is posing, and modifies the
message accordingly. | def pose_transform(self, msgobj, sender_string, **kwargs):
"""
Hook method. Detects if the sender is posing, and modifies the
message accordingly.
Args:
msgobj (Msg or TempMsg): The message to analyze for a pose.
sender_string (str): The name of the sender/poser.... | [
"def",
"pose_transform",
"(",
"self",
",",
"msgobj",
",",
"sender_string",
",",
"*",
"*",
"kwargs",
")",
":",
"pose",
"=",
"False",
"message",
"=",
"msgobj",
".",
"message",
"message_start",
"=",
"message",
".",
"lstrip",
"(",
")",
"if",
"message_start",
... | [
404,
4
] | [
434,
54
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.format_external | (self, msgobj, senders, emit=False, **kwargs) |
Hook method. Used for formatting external messages. This is
needed as a separate operation because the senders of external
messages may not be in-game objects/accounts, and so cannot
have things like custom user preferences.
Args:
msgobj (Msg or TempMsg): The messag... |
Hook method. Used for formatting external messages. This is
needed as a separate operation because the senders of external
messages may not be in-game objects/accounts, and so cannot
have things like custom user preferences. | def format_external(self, msgobj, senders, emit=False, **kwargs):
"""
Hook method. Used for formatting external messages. This is
needed as a separate operation because the senders of external
messages may not be in-game objects/accounts, and so cannot
have things like custom use... | [
"def",
"format_external",
"(",
"self",
",",
"msgobj",
",",
"senders",
",",
"emit",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"emit",
"or",
"not",
"senders",
":",
"return",
"msgobj",
".",
"message",
"senders",
"=",
"', '",
".",
"join",
"(... | [
436,
4
] | [
457,
51
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.format_message | (self, msgobj, emit=False, **kwargs) |
Hook method. Formats a message body for display.
Args:
msgobj (Msg or TempMsg): The message object to send.
emit (bool, optional): The message is agnostic of senders.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unuse... |
Hook method. Formats a message body for display. | def format_message(self, msgobj, emit=False, **kwargs):
"""
Hook method. Formats a message body for display.
Args:
msgobj (Msg or TempMsg): The message object to send.
emit (bool, optional): The message is agnostic of senders.
**kwargs (dict): Arbitrary, opti... | [
"def",
"format_message",
"(",
"self",
",",
"msgobj",
",",
"emit",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"# We don't want to count things like external sources as senders for",
"# the purpose of constructing the message string.",
"senders",
"=",
"[",
"sender",
"... | [
459,
4
] | [
483,
55
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.pre_join_channel | (self, joiner, **kwargs) |
Hook method. Runs right before a channel is joined. If this
returns a false value, channel joining is aborted.
Args:
joiner (object): The joining object.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
... |
Hook method. Runs right before a channel is joined. If this
returns a false value, channel joining is aborted. | def pre_join_channel(self, joiner, **kwargs):
"""
Hook method. Runs right before a channel is joined. If this
returns a false value, channel joining is aborted.
Args:
joiner (object): The joining object.
**kwargs (dict): Arbitrary, optional arguments for users
... | [
"def",
"pre_join_channel",
"(",
"self",
",",
"joiner",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"True"
] | [
485,
4
] | [
499,
19
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.post_join_channel | (self, joiner, **kwargs) |
Hook method. Runs right after an object or account joins a channel.
Args:
joiner (object): The joining object.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
|
Hook method. Runs right after an object or account joins a channel. | def post_join_channel(self, joiner, **kwargs):
"""
Hook method. Runs right after an object or account joins a channel.
Args:
joiner (object): The joining object.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by defau... | [
"def",
"post_join_channel",
"(",
"self",
",",
"joiner",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
501,
4
] | [
511,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.pre_leave_channel | (self, leaver, **kwargs) |
Hook method. Runs right before a user leaves a channel. If this returns a false
value, leaving the channel will be aborted.
Args:
leaver (object): The leaving object.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by... |
Hook method. Runs right before a user leaves a channel. If this returns a false
value, leaving the channel will be aborted. | def pre_leave_channel(self, leaver, **kwargs):
"""
Hook method. Runs right before a user leaves a channel. If this returns a false
value, leaving the channel will be aborted.
Args:
leaver (object): The leaving object.
**kwargs (dict): Arbitrary, optional argument... | [
"def",
"pre_leave_channel",
"(",
"self",
",",
"leaver",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"True"
] | [
513,
4
] | [
527,
19
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.post_leave_channel | (self, leaver, **kwargs) |
Hook method. Runs right after an object or account leaves a channel.
Args:
leaver (object): The leaving object.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
|
Hook method. Runs right after an object or account leaves a channel. | def post_leave_channel(self, leaver, **kwargs):
"""
Hook method. Runs right after an object or account leaves a channel.
Args:
leaver (object): The leaving object.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by def... | [
"def",
"post_leave_channel",
"(",
"self",
",",
"leaver",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
529,
4
] | [
539,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.pre_send_message | (self, msg, **kwargs) |
Hook method. Runs before a message is sent to the channel and
should return the message object, after any transformations.
If the message is to be discarded, return a false value.
Args:
msg (Msg or TempMsg): Message to send.
**kwargs (dict): Arbitrary, optional... |
Hook method. Runs before a message is sent to the channel and
should return the message object, after any transformations.
If the message is to be discarded, return a false value. | def pre_send_message(self, msg, **kwargs):
"""
Hook method. Runs before a message is sent to the channel and
should return the message object, after any transformations.
If the message is to be discarded, return a false value.
Args:
msg (Msg or TempMsg): Message to ... | [
"def",
"pre_send_message",
"(",
"self",
",",
"msg",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"msg"
] | [
541,
4
] | [
556,
18
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.post_send_message | (self, msg, **kwargs) |
Hook method. Run after a message is sent to the channel.
Args:
msg (Msg or TempMsg): Message sent.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
|
Hook method. Run after a message is sent to the channel. | def post_send_message(self, msg, **kwargs):
"""
Hook method. Run after a message is sent to the channel.
Args:
msg (Msg or TempMsg): Message sent.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
"... | [
"def",
"post_send_message",
"(",
"self",
",",
"msg",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
558,
4
] | [
568,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultChannel.at_init | (self) |
Hook method. This is always called whenever this channel is
initiated -- that is, whenever it its typeclass is cached from
memory. This happens on-demand first time the channel is used
or activated in some way after being created but also after
each server restart or reload.
... |
Hook method. This is always called whenever this channel is
initiated -- that is, whenever it its typeclass is cached from
memory. This happens on-demand first time the channel is used
or activated in some way after being created but also after
each server restart or reload. | def at_init(self):
"""
Hook method. This is always called whenever this channel is
initiated -- that is, whenever it its typeclass is cached from
memory. This happens on-demand first time the channel is used
or activated in some way after being created but also after
each... | [
"def",
"at_init",
"(",
"self",
")",
":",
"pass"
] | [
570,
4
] | [
579,
12
] | python | en | ['en', 'error', 'th'] | False |
SimpleTokenizer.__init__ | (self, **kwargs) |
Args:
annotators: None or empty set (only tokenizes).
|
Args:
annotators: None or empty set (only tokenizes).
| def __init__(self, **kwargs):
"""
Args:
annotators: None or empty set (only tokenizes).
"""
self._regexp = regex.compile(
'(%s)|(%s)' % (self.ALPHA_NUM, self.NON_WS),
flags=regex.IGNORECASE + regex.UNICODE + regex.MULTILINE,
)
if len(kw... | [
"def",
"__init__",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_regexp",
"=",
"regex",
".",
"compile",
"(",
"'(%s)|(%s)'",
"%",
"(",
"self",
".",
"ALPHA_NUM",
",",
"self",
".",
"NON_WS",
")",
",",
"flags",
"=",
"regex",
".",
"IGNO... | [
19,
4
] | [
33,
31
] | python | en | ['en', 'error', 'th'] | False |
TestPresentation.test_init | (self) | Test initializer. | Test initializer. | def test_init(self):
"""Test initializer."""
assert PRES.presentations_attach[0].indy_dict == INDY_PROOF
assert PRES.indy_proof(0) == INDY_PROOF | [
"def",
"test_init",
"(",
"self",
")",
":",
"assert",
"PRES",
".",
"presentations_attach",
"[",
"0",
"]",
".",
"indy_dict",
"==",
"INDY_PROOF",
"assert",
"PRES",
".",
"indy_proof",
"(",
"0",
")",
"==",
"INDY_PROOF"
] | [
1672,
4
] | [
1675,
47
] | python | de | ['de', 'pl', 'en'] | False |
TestPresentation.test_deserialize | (self) | Test deserialization. | Test deserialization. | def test_deserialize(self):
"""Test deserialization."""
dump = json.dumps(
{
"@type": PRESENTATION,
"comment": "Hello World",
"presentations~attach": [
AttachDecorator.from_indy_dict(
indy_dict=INDY_P... | [
"def",
"test_deserialize",
"(",
"self",
")",
":",
"dump",
"=",
"json",
".",
"dumps",
"(",
"{",
"\"@type\"",
":",
"PRESENTATION",
",",
"\"comment\"",
":",
"\"Hello World\"",
",",
"\"presentations~attach\"",
":",
"[",
"AttachDecorator",
".",
"from_indy_dict",
"(",... | [
1681,
4
] | [
1696,
49
] | python | de | ['ro', 'de', 'en'] | False |
TestPresentation.test_serialize | (self) | Test serialization. | Test serialization. | def test_serialize(self):
"""Test serialization."""
pres_dict = PRES.serialize()
pres_dict.pop("@id")
assert pres_dict == {
"@type": PRESENTATION,
"presentations~attach": [
AttachDecorator.from_indy_dict(
indy_dict=INDY_PROOF, ... | [
"def",
"test_serialize",
"(",
"self",
")",
":",
"pres_dict",
"=",
"PRES",
".",
"serialize",
"(",
")",
"pres_dict",
".",
"pop",
"(",
"\"@id\"",
")",
"assert",
"pres_dict",
"==",
"{",
"\"@type\"",
":",
"PRESENTATION",
",",
"\"presentations~attach\"",
":",
"[",... | [
1698,
4
] | [
1711,
9
] | python | en | ['en', 'fy', 'en'] | False |
TestPresentationSchema.test_make_model | (self) | Test making model. | Test making model. | def test_make_model(self):
"""Test making model."""
pres_dict = PRES.serialize()
"""
Looks like: {
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/present-proof/1.0/presentation",
"@id": "f49773e3-bd56-4868-a5f1-456d1e6d1a16",
"comment": "Test",
... | [
"def",
"test_make_model",
"(",
"self",
")",
":",
"pres_dict",
"=",
"PRES",
".",
"serialize",
"(",
")",
"\"\"\"\n Looks like: {\n \"@type\": \"did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/present-proof/1.0/presentation\",\n \"@id\": \"f49773e3-bd56-4868-a5f1-456d1e6d1a16... | [
1717,
4
] | [
1737,
55
] | python | en | ['en', 'no', 'en'] | True |
setup | (bot) |
Mandatory function to add the Cog to the bot.
|
Mandatory function to add the Cog to the bot.
| def setup(bot):
"""
Mandatory function to add the Cog to the bot.
"""
bot.add_cog(TemplateCheckerCog(bot)) | [
"def",
"setup",
"(",
"bot",
")",
":",
"bot",
".",
"add_cog",
"(",
"TemplateCheckerCog",
"(",
"bot",
")",
")"
] | [
251,
0
] | [
255,
40
] | python | en | ['en', 'error', 'th'] | False |
TemplateCheckerCog.check_template | (self, ctx, all_items_file=True, case_insensitive: bool = False) |
Checks all Classnames inside a provided template.
Needs to have the tempalte as attachment to the invoking message.
Returns the list of classnames it can't find in the config along with possible correction.
Returns also a corrected version of the template file.
Args:
... |
Checks all Classnames inside a provided template. | async def check_template(self, ctx, all_items_file=True, case_insensitive: bool = False):
"""
Checks all Classnames inside a provided template.
Needs to have the tempalte as attachment to the invoking message.
Returns the list of classnames it can't find in the config along with possib... | [
"async",
"def",
"check_template",
"(",
"self",
",",
"ctx",
",",
"all_items_file",
"=",
"True",
",",
"case_insensitive",
":",
"bool",
"=",
"False",
")",
":",
"attachment",
"=",
"ctx",
".",
"message",
".",
"attachments",
"[",
"0",
"]",
"if",
"attachment",
... | [
128,
4
] | [
212,
46
] | python | en | ['en', 'error', 'th'] | False |
common_config | (settings: Mapping[str, Any]) | Perform common app configuration. | Perform common app configuration. | def common_config(settings: Mapping[str, Any]):
"""Perform common app configuration."""
# Set up logging
log_config = settings.get("log.config")
log_level = settings.get("log.level") or os.getenv("LOG_LEVEL")
log_file = settings.get("log.file")
LoggingConfigurator.configure(log_config, log_level... | [
"def",
"common_config",
"(",
"settings",
":",
"Mapping",
"[",
"str",
",",
"Any",
"]",
")",
":",
"# Set up logging",
"log_config",
"=",
"settings",
".",
"get",
"(",
"\"log.config\"",
")",
"log_level",
"=",
"settings",
".",
"get",
"(",
"\"log.level\"",
")",
... | [
12,
0
] | [
25,
30
] | python | en | ['en', 'fr', 'en'] | True |
ByteSize.__init__ | (self, min_size: int = 0, max_size: int = 0) | Initialize the ByteSize parser. | Initialize the ByteSize parser. | def __init__(self, min_size: int = 0, max_size: int = 0):
"""Initialize the ByteSize parser."""
self.min_size = min_size
self.max_size = max_size | [
"def",
"__init__",
"(",
"self",
",",
"min_size",
":",
"int",
"=",
"0",
",",
"max_size",
":",
"int",
"=",
"0",
")",
":",
"self",
".",
"min_size",
"=",
"min_size",
"self",
".",
"max_size",
"=",
"max_size"
] | [
31,
4
] | [
34,
32
] | python | en | ['en', 'zu', 'en'] | True |
ByteSize.__call__ | (self, arg: str) | Interpret the argument value. | Interpret the argument value. | def __call__(self, arg: str) -> int:
"""Interpret the argument value."""
if not arg:
raise ArgumentTypeError("Expected value")
parts = re.match(r"^(\d+)([kKmMgGtT]?)[bB]?$", arg)
if not parts:
raise ArgumentTypeError("Invalid format")
size = int(parts[1])
... | [
"def",
"__call__",
"(",
"self",
",",
"arg",
":",
"str",
")",
"->",
"int",
":",
"if",
"not",
"arg",
":",
"raise",
"ArgumentTypeError",
"(",
"\"Expected value\"",
")",
"parts",
"=",
"re",
".",
"match",
"(",
"r\"^(\\d+)([kKmMgGtT]?)[bB]?$\"",
",",
"arg",
")",... | [
36,
4
] | [
61,
19
] | python | en | ['en', 'fr', 'en'] | True |
ByteSize.__repr__ | (self) | Format for in error reporting. | Format for in error reporting. | def __repr__(self):
"""Format for in error reporting."""
return self.__class__.__name__ | [
"def",
"__repr__",
"(",
"self",
")",
":",
"return",
"self",
".",
"__class__",
".",
"__name__"
] | [
63,
4
] | [
65,
38
] | python | en | ['en', 'en', 'en'] | True |
load_git_config | (non_string_options=None) | Return the git configuration as a dictionary.
All options are assumed to be strings unless in `non_string_options`, in which
is a dictionary mapping option name (in lower case) to either "--bool" or
"--int". | Return the git configuration as a dictionary. | def load_git_config(non_string_options=None):
"""Return the git configuration as a dictionary.
All options are assumed to be strings unless in `non_string_options`, in which
is a dictionary mapping option name (in lower case) to either "--bool" or
"--int"."""
if non_string_options is None:
... | [
"def",
"load_git_config",
"(",
"non_string_options",
"=",
"None",
")",
":",
"if",
"non_string_options",
"is",
"None",
":",
"non_string_options",
"=",
"{",
"}",
"out",
"=",
"{",
"}",
"for",
"entry",
"in",
"run",
"(",
"'git'",
",",
"'config'",
",",
"'--list'... | [
234,
0
] | [
249,
14
] | python | en | ['en', 'en', 'en'] | True |
interpret_args | (args, dash_dash, default_commit) | Interpret `args` as "[commits] [--] [files]" and return (commits, files).
It is assumed that "--" and everything that follows has been removed from
args and placed in `dash_dash`.
If "--" is present (i.e., `dash_dash` is non-empty), the arguments to its
left (if present) are taken as commits. Otherwi... | Interpret `args` as "[commits] [--] [files]" and return (commits, files). | def interpret_args(args, dash_dash, default_commit):
"""Interpret `args` as "[commits] [--] [files]" and return (commits, files).
It is assumed that "--" and everything that follows has been removed from
args and placed in `dash_dash`.
If "--" is present (i.e., `dash_dash` is non-empty), the arguments... | [
"def",
"interpret_args",
"(",
"args",
",",
"dash_dash",
",",
"default_commit",
")",
":",
"if",
"dash_dash",
":",
"if",
"len",
"(",
"args",
")",
"==",
"0",
":",
"commits",
"=",
"[",
"default_commit",
"]",
"else",
":",
"commits",
"=",
"args",
"for",
"com... | [
252,
0
] | [
288,
25
] | python | en | ['en', 'en', 'en'] | True |
disambiguate_revision | (value) | Returns True if `value` is a revision, False if it is a file, or dies. | Returns True if `value` is a revision, False if it is a file, or dies. | def disambiguate_revision(value):
"""Returns True if `value` is a revision, False if it is a file, or dies."""
# If `value` is ambiguous (neither a commit nor a file), the following
# command will die with an appropriate error message.
run('git', 'rev-parse', value, verbose=False)
object_type = get_... | [
"def",
"disambiguate_revision",
"(",
"value",
")",
":",
"# If `value` is ambiguous (neither a commit nor a file), the following",
"# command will die with an appropriate error message.",
"run",
"(",
"'git'",
",",
"'rev-parse'",
",",
"value",
",",
"verbose",
"=",
"False",
")",
... | [
291,
0
] | [
302,
29
] | python | en | ['en', 'en', 'en'] | True |
get_object_type | (value) | Returns a string description of an object's type, or None if it is not
a valid git object. | Returns a string description of an object's type, or None if it is not
a valid git object. | def get_object_type(value):
"""Returns a string description of an object's type, or None if it is not
a valid git object."""
cmd = ['git', 'cat-file', '-t', value]
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p.communicate()
if p.returncode != 0:
... | [
"def",
"get_object_type",
"(",
"value",
")",
":",
"cmd",
"=",
"[",
"'git'",
",",
"'cat-file'",
",",
"'-t'",
",",
"value",
"]",
"p",
"=",
"subprocess",
".",
"Popen",
"(",
"cmd",
",",
"stdout",
"=",
"subprocess",
".",
"PIPE",
",",
"stderr",
"=",
"subpr... | [
305,
0
] | [
313,
41
] | python | en | ['en', 'en', 'en'] | True |
compute_diff_and_extract_lines | (commits, files) | Calls compute_diff() followed by extract_lines(). | Calls compute_diff() followed by extract_lines(). | def compute_diff_and_extract_lines(commits, files):
"""Calls compute_diff() followed by extract_lines()."""
diff_process = compute_diff(commits, files)
changed_lines = extract_lines(diff_process.stdout)
diff_process.stdout.close()
diff_process.wait()
if diff_process.returncode != 0:
# As... | [
"def",
"compute_diff_and_extract_lines",
"(",
"commits",
",",
"files",
")",
":",
"diff_process",
"=",
"compute_diff",
"(",
"commits",
",",
"files",
")",
"changed_lines",
"=",
"extract_lines",
"(",
"diff_process",
".",
"stdout",
")",
"diff_process",
".",
"stdout",
... | [
316,
0
] | [
325,
24
] | python | en | ['en', 'en', 'en'] | True |
compute_diff | (commits, files) | Return a subprocess object producing the diff from `commits`.
The return value's `stdin` file object will produce a patch with the
differences between the working directory and the first commit if a single
one was specified, or the difference between both specified commits, filtered
on `files` (if non-... | Return a subprocess object producing the diff from `commits`. | def compute_diff(commits, files):
"""Return a subprocess object producing the diff from `commits`.
The return value's `stdin` file object will produce a patch with the
differences between the working directory and the first commit if a single
one was specified, or the difference between both specified ... | [
"def",
"compute_diff",
"(",
"commits",
",",
"files",
")",
":",
"git_tool",
"=",
"'diff-index'",
"if",
"len",
"(",
"commits",
")",
">",
"1",
":",
"git_tool",
"=",
"'diff-tree'",
"cmd",
"=",
"[",
"'git'",
",",
"git_tool",
",",
"'-p'",
",",
"'-U0'",
"]",
... | [
328,
0
] | [
342,
12
] | python | en | ['en', 'en', 'en'] | True |
extract_lines | (patch_file) | Extract the changed lines in `patch_file`.
The return value is a dictionary mapping filename to a list of (start_line,
line_count) pairs.
The input must have been produced with ``-U0``, meaning unidiff format with
zero lines of context. The return value is a dict mapping filename to a
list of lin... | Extract the changed lines in `patch_file`. | def extract_lines(patch_file):
"""Extract the changed lines in `patch_file`.
The return value is a dictionary mapping filename to a list of (start_line,
line_count) pairs.
The input must have been produced with ``-U0``, meaning unidiff format with
zero lines of context. The return value is a dict... | [
"def",
"extract_lines",
"(",
"patch_file",
")",
":",
"matches",
"=",
"{",
"}",
"for",
"line",
"in",
"patch_file",
":",
"line",
"=",
"convert_string",
"(",
"line",
")",
"match",
"=",
"re",
".",
"search",
"(",
"r'^\\+\\+\\+\\ [^/]+/(.*)'",
",",
"line",
")",
... | [
345,
0
] | [
369,
18
] | python | en | ['en', 'en', 'en'] | True |
filter_by_extension | (dictionary, allowed_extensions) | Delete every key in `dictionary` that doesn't have an allowed extension.
`allowed_extensions` must be a collection of lowercase file extensions,
excluding the period. | Delete every key in `dictionary` that doesn't have an allowed extension. | def filter_by_extension(dictionary, allowed_extensions):
"""Delete every key in `dictionary` that doesn't have an allowed extension.
`allowed_extensions` must be a collection of lowercase file extensions,
excluding the period."""
allowed_extensions = frozenset(allowed_extensions)
for filename in li... | [
"def",
"filter_by_extension",
"(",
"dictionary",
",",
"allowed_extensions",
")",
":",
"allowed_extensions",
"=",
"frozenset",
"(",
"allowed_extensions",
")",
"for",
"filename",
"in",
"list",
"(",
"dictionary",
".",
"keys",
"(",
")",
")",
":",
"base_ext",
"=",
... | [
372,
0
] | [
383,
36
] | python | en | ['en', 'en', 'en'] | True |
cd_to_toplevel | () | Change to the top level of the git repository. | Change to the top level of the git repository. | def cd_to_toplevel():
"""Change to the top level of the git repository."""
toplevel = run('git', 'rev-parse', '--show-toplevel')
os.chdir(toplevel) | [
"def",
"cd_to_toplevel",
"(",
")",
":",
"toplevel",
"=",
"run",
"(",
"'git'",
",",
"'rev-parse'",
",",
"'--show-toplevel'",
")",
"os",
".",
"chdir",
"(",
"toplevel",
")"
] | [
386,
0
] | [
389,
22
] | python | en | ['en', 'en', 'en'] | True |
create_tree_from_workdir | (filenames) | Create a new git tree with the given files from the working directory.
Returns the object ID (SHA-1) of the created tree. | Create a new git tree with the given files from the working directory. | def create_tree_from_workdir(filenames):
"""Create a new git tree with the given files from the working directory.
Returns the object ID (SHA-1) of the created tree."""
return create_tree(filenames, '--stdin') | [
"def",
"create_tree_from_workdir",
"(",
"filenames",
")",
":",
"return",
"create_tree",
"(",
"filenames",
",",
"'--stdin'",
")"
] | [
392,
0
] | [
396,
44
] | python | en | ['en', 'en', 'en'] | True |
run_clang_format_and_save_to_tree | (changed_lines, revision=None,
binary='clang-format', style=None) | Run clang-format on each file and save the result to a git tree.
Returns the object ID (SHA-1) of the created tree. | Run clang-format on each file and save the result to a git tree. | def run_clang_format_and_save_to_tree(changed_lines, revision=None,
binary='clang-format', style=None):
"""Run clang-format on each file and save the result to a git tree.
Returns the object ID (SHA-1) of the created tree."""
def iteritems(container):
try:
... | [
"def",
"run_clang_format_and_save_to_tree",
"(",
"changed_lines",
",",
"revision",
"=",
"None",
",",
"binary",
"=",
"'clang-format'",
",",
"style",
"=",
"None",
")",
":",
"def",
"iteritems",
"(",
"container",
")",
":",
"try",
":",
"return",
"container",
".",
... | [
399,
0
] | [
431,
62
] | python | en | ['en', 'en', 'en'] | True |
create_tree | (input_lines, mode) | Create a tree object from the given input.
If mode is '--stdin', it must be a list of filenames. If mode is
'--index-info' is must be a list of values suitable for "git update-index
--index-info", such as "<mode> <SP> <sha1> <TAB> <filename>". Any other mode
is invalid. | Create a tree object from the given input. | def create_tree(input_lines, mode):
"""Create a tree object from the given input.
If mode is '--stdin', it must be a list of filenames. If mode is
'--index-info' is must be a list of values suitable for "git update-index
--index-info", such as "<mode> <SP> <sha1> <TAB> <filename>". Any other mode
... | [
"def",
"create_tree",
"(",
"input_lines",
",",
"mode",
")",
":",
"assert",
"mode",
"in",
"(",
"'--stdin'",
",",
"'--index-info'",
")",
"cmd",
"=",
"[",
"'git'",
",",
"'update-index'",
",",
"'--add'",
",",
"'-z'",
",",
"mode",
"]",
"with",
"temporary_index_... | [
434,
0
] | [
451,
22
] | python | en | ['en', 'en', 'en'] | True |
clang_format_to_blob | (filename, line_ranges, revision=None,
binary='clang-format', style=None) | Run clang-format on the given file and save the result to a git blob.
Runs on the file in `revision` if not None, or on the file in the working
directory if `revision` is None.
Returns the object ID (SHA-1) of the created blob. | Run clang-format on the given file and save the result to a git blob. | def clang_format_to_blob(filename, line_ranges, revision=None,
binary='clang-format', style=None):
"""Run clang-format on the given file and save the result to a git blob.
Runs on the file in `revision` if not None, or on the file in the working
directory if `revision` is None.
... | [
"def",
"clang_format_to_blob",
"(",
"filename",
",",
"line_ranges",
",",
"revision",
"=",
"None",
",",
"binary",
"=",
"'clang-format'",
",",
"style",
"=",
"None",
")",
":",
"clang_format_cmd",
"=",
"[",
"binary",
"]",
"if",
"style",
":",
"clang_format_cmd",
... | [
454,
0
] | [
503,
48
] | python | en | ['en', 'en', 'en'] | True |
temporary_index_file | (tree=None) | Context manager for setting GIT_INDEX_FILE to a temporary file and deleting
the file afterward. | Context manager for setting GIT_INDEX_FILE to a temporary file and deleting
the file afterward. | def temporary_index_file(tree=None):
"""Context manager for setting GIT_INDEX_FILE to a temporary file and deleting
the file afterward."""
index_path = create_temporary_index(tree)
old_index_path = os.environ.get('GIT_INDEX_FILE')
os.environ['GIT_INDEX_FILE'] = index_path
try:
yield
... | [
"def",
"temporary_index_file",
"(",
"tree",
"=",
"None",
")",
":",
"index_path",
"=",
"create_temporary_index",
"(",
"tree",
")",
"old_index_path",
"=",
"os",
".",
"environ",
".",
"get",
"(",
"'GIT_INDEX_FILE'",
")",
"os",
".",
"environ",
"[",
"'GIT_INDEX_FILE... | [
507,
0
] | [
520,
29
] | python | en | ['en', 'en', 'en'] | True |
create_temporary_index | (tree=None) | Create a temporary index file and return the created file's path.
If `tree` is not None, use that as the tree to read in. Otherwise, an
empty index is created. | Create a temporary index file and return the created file's path. | def create_temporary_index(tree=None):
"""Create a temporary index file and return the created file's path.
If `tree` is not None, use that as the tree to read in. Otherwise, an
empty index is created."""
gitdir = run('git', 'rev-parse', '--git-dir')
path = os.path.join(gitdir, temp_index_basename... | [
"def",
"create_temporary_index",
"(",
"tree",
"=",
"None",
")",
":",
"gitdir",
"=",
"run",
"(",
"'git'",
",",
"'rev-parse'",
",",
"'--git-dir'",
")",
"path",
"=",
"os",
".",
"path",
".",
"join",
"(",
"gitdir",
",",
"temp_index_basename",
")",
"if",
"tree... | [
523,
0
] | [
533,
15
] | python | en | ['en', 'en', 'en'] | True |
print_diff | (old_tree, new_tree) | Print the diff between the two trees to stdout. | Print the diff between the two trees to stdout. | def print_diff(old_tree, new_tree):
"""Print the diff between the two trees to stdout."""
# We use the porcelain 'diff' and not plumbing 'diff-tree' because the output
# is expected to be viewed by the user, and only the former does nice things
# like color and pagination.
#
# We also only print... | [
"def",
"print_diff",
"(",
"old_tree",
",",
"new_tree",
")",
":",
"# We use the porcelain 'diff' and not plumbing 'diff-tree' because the output",
"# is expected to be viewed by the user, and only the former does nice things",
"# like color and pagination.",
"#",
"# We also only print modifie... | [
536,
0
] | [
546,
33
] | python | en | ['en', 'en', 'en'] | True |
apply_changes | (old_tree, new_tree, force=False, patch_mode=False) | Apply the changes in `new_tree` to the working directory.
Bails if there are local changes in those files and not `force`. If
`patch_mode`, runs `git checkout --patch` to select hunks interactively. | Apply the changes in `new_tree` to the working directory. | def apply_changes(old_tree, new_tree, force=False, patch_mode=False):
"""Apply the changes in `new_tree` to the working directory.
Bails if there are local changes in those files and not `force`. If
`patch_mode`, runs `git checkout --patch` to select hunks interactively."""
changed_files = run('git', ... | [
"def",
"apply_changes",
"(",
"old_tree",
",",
"new_tree",
",",
"force",
"=",
"False",
",",
"patch_mode",
"=",
"False",
")",
":",
"changed_files",
"=",
"run",
"(",
"'git'",
",",
"'diff-tree'",
",",
"'--diff-filter=M'",
",",
"'-r'",
",",
"'-z'",
",",
"'--nam... | [
549,
0
] | [
579,
24
] | python | en | ['en', 'en', 'en'] | True |
BaseStats.get_stats_by_player | (self, indexed_logs, players, profiles_by_id) |
players is expected to be a list of dict, such as:
[{"steam_id_64": ..., "name": ...}, ...]
|
players is expected to be a list of dict, such as:
[{"steam_id_64": ..., "name": ...}, ...]
| def get_stats_by_player(self, indexed_logs, players, profiles_by_id):
"""
players is expected to be a list of dict, such as:
[{"steam_id_64": ..., "name": ...}, ...]
"""
stats_by_player = {}
actions_processors = {
"KILL": self._add_kill,
"TEAM KIL... | [
"def",
"get_stats_by_player",
"(",
"self",
",",
"indexed_logs",
",",
"players",
",",
"profiles_by_id",
")",
":",
"stats_by_player",
"=",
"{",
"}",
"actions_processors",
"=",
"{",
"\"KILL\"",
":",
"self",
".",
"_add_kill",
",",
"\"TEAM KILL\"",
":",
"self",
"."... | [
142,
4
] | [
197,
30
] | python | en | ['en', 'error', 'th'] | False |
Marker.color | (self) |
Sets the marker color of all intermediate sums and total
values.
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hs... |
Sets the marker color of all intermediate sums and total
values.
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hs... | def color(self):
"""
Sets the marker color of all intermediate sums and total
values.
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,1... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
66,
28
] | python | en | ['en', 'error', 'th'] | False |
Marker.line | (self) |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.totals.marker.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.totals.marker.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... | def line(self):
"""
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.totals.marker.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Suppo... | [
"def",
"line",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"line\"",
"]"
] | [
75,
4
] | [
96,
27
] | python | en | ['en', 'error', 'th'] | False |
Marker.__init__ | (self, arg=None, color=None, line=None, **kwargs) |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.waterfall.totals.Marker`
color
Sets the marker color of all intermedia... |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.waterfall.totals.Marker`
color
Sets the marker color of all intermedia... | def __init__(self, arg=None, color=None, line=None, **kwargs):
"""
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.waterfall.totals... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"line",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Marker",
",",
"self",
")",
".",
"__init__",
"(",
"\"marker\"",
")",
"if",
"\"_parent\"",... | [
115,
4
] | [
180,
34
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.close | (self) |
Sets the close values.
The 'close' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the close values.
The 'close' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def close(self):
"""
Sets the close values.
The 'close' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["close"] | [
"def",
"close",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"close\"",
"]"
] | [
56,
4
] | [
67,
28
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.closesrc | (self) |
Sets the source reference on Chart Studio Cloud for close .
The 'closesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for close .
The 'closesrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def closesrc(self):
"""
Sets the source reference on Chart Studio Cloud for close .
The 'closesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["closesrc"] | [
"def",
"closesrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"closesrc\"",
"]"
] | [
76,
4
] | [
87,
31
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.customdata | (self) |
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be specified as a tuple,
list,... |
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be specified as a tuple,
list,... | def customdata(self):
"""
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be sp... | [
"def",
"customdata",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"customdata\"",
"]"
] | [
96,
4
] | [
110,
33
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.customdatasrc | (self) |
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def customdatasrc(self):
"""
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["cust... | [
"def",
"customdatasrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"customdatasrc\"",
"]"
] | [
119,
4
] | [
131,
36
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.decreasing | (self) |
The 'decreasing' property is an instance of Decreasing
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Decreasing`
- A dict of string/value properties that will be passed
to the Decreasing constructor
Supported dict prope... |
The 'decreasing' property is an instance of Decreasing
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Decreasing`
- A dict of string/value properties that will be passed
to the Decreasing constructor
Supported dict prope... | def decreasing(self):
"""
The 'decreasing' property is an instance of Decreasing
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Decreasing`
- A dict of string/value properties that will be passed
to the Decreasing constructor
... | [
"def",
"decreasing",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"decreasing\"",
"]"
] | [
140,
4
] | [
164,
33
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.high | (self) |
Sets the high values.
The 'high' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the high values.
The 'high' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def high(self):
"""
Sets the high values.
The 'high' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["high"] | [
"def",
"high",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"high\"",
"]"
] | [
173,
4
] | [
184,
27
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.highsrc | (self) |
Sets the source reference on Chart Studio Cloud for high .
The 'highsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for high .
The 'highsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def highsrc(self):
"""
Sets the source reference on Chart Studio Cloud for high .
The 'highsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["highsrc"] | [
"def",
"highsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"highsrc\"",
"]"
] | [
193,
4
] | [
204,
30
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.hoverinfo | (self) |
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
as a string containing:
... |
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
as a string containing:
... | def hoverinfo(self):
"""
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
... | [
"def",
"hoverinfo",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverinfo\"",
"]"
] | [
213,
4
] | [
230,
32
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.hoverinfosrc | (self) |
Sets the source reference on Chart Studio Cloud for hoverinfo
.
The 'hoverinfosrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for hoverinfo
.
The 'hoverinfosrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def hoverinfosrc(self):
"""
Sets the source reference on Chart Studio Cloud for hoverinfo
.
The 'hoverinfosrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["hoverin... | [
"def",
"hoverinfosrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverinfosrc\"",
"]"
] | [
239,
4
] | [
251,
35
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.hoverlabel | (self) |
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
Supported dict prope... |
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
Supported dict prope... | def hoverlabel(self):
"""
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
... | [
"def",
"hoverlabel",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverlabel\"",
"]"
] | [
260,
4
] | [
313,
33
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.hovertext | (self) |
Same as `text`.
The 'hovertext' property is a string and must be specified as:
- A string
- A number that will be converted to a string
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
str|numpy.ndarray
|
Same as `text`.
The 'hovertext' property is a string and must be specified as:
- A string
- A number that will be converted to a string
- A tuple, list, or one-dimensional numpy array of the above | def hovertext(self):
"""
Same as `text`.
The 'hovertext' property is a string and must be specified as:
- A string
- A number that will be converted to a string
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
... | [
"def",
"hovertext",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertext\"",
"]"
] | [
322,
4
] | [
335,
32
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.hovertextsrc | (self) |
Sets the source reference on Chart Studio Cloud for hovertext
.
The 'hovertextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for hovertext
.
The 'hovertextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def hovertextsrc(self):
"""
Sets the source reference on Chart Studio Cloud for hovertext
.
The 'hovertextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["hoverte... | [
"def",
"hovertextsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertextsrc\"",
"]"
] | [
344,
4
] | [
356,
35
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.ids | (self) |
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Retur... |
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def ids(self):
"""
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pa... | [
"def",
"ids",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ids\"",
"]"
] | [
365,
4
] | [
378,
26
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.idssrc | (self) |
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def idssrc(self):
"""
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["idssrc"] | [
"def",
"idssrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"idssrc\"",
"]"
] | [
387,
4
] | [
398,
29
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.increasing | (self) |
The 'increasing' property is an instance of Increasing
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Increasing`
- A dict of string/value properties that will be passed
to the Increasing constructor
Supported dict prope... |
The 'increasing' property is an instance of Increasing
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Increasing`
- A dict of string/value properties that will be passed
to the Increasing constructor
Supported dict prope... | def increasing(self):
"""
The 'increasing' property is an instance of Increasing
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Increasing`
- A dict of string/value properties that will be passed
to the Increasing constructor
... | [
"def",
"increasing",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"increasing\"",
"]"
] | [
407,
4
] | [
431,
33
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.legendgroup | (self) |
Sets the legend group for this trace. Traces part of the same
legend group hide/show at the same time when toggling legend
items.
The 'legendgroup' property is a string and must be specified as:
- A string
- A number that will be converted to a string
R... |
Sets the legend group for this trace. Traces part of the same
legend group hide/show at the same time when toggling legend
items.
The 'legendgroup' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def legendgroup(self):
"""
Sets the legend group for this trace. Traces part of the same
legend group hide/show at the same time when toggling legend
items.
The 'legendgroup' property is a string and must be specified as:
- A string
- A number that will b... | [
"def",
"legendgroup",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"legendgroup\"",
"]"
] | [
440,
4
] | [
454,
34
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.line | (self) |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... | def line(self):
"""
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict pr... | [
"def",
"line",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"line\"",
"]"
] | [
463,
4
] | [
484,
27
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.low | (self) |
Sets the low values.
The 'low' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the low values.
The 'low' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def low(self):
"""
Sets the low values.
The 'low' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["low"] | [
"def",
"low",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"low\"",
"]"
] | [
493,
4
] | [
504,
26
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.lowsrc | (self) |
Sets the source reference on Chart Studio Cloud for low .
The 'lowsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for low .
The 'lowsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def lowsrc(self):
"""
Sets the source reference on Chart Studio Cloud for low .
The 'lowsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["lowsrc"] | [
"def",
"lowsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"lowsrc\"",
"]"
] | [
513,
4
] | [
524,
29
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.meta | (self) |
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text all support `meta`. To acce... |
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text all support `meta`. To acce... | def meta(self):
"""
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text ... | [
"def",
"meta",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"meta\"",
"]"
] | [
533,
4
] | [
552,
27
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.metasrc | (self) |
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def metasrc(self):
"""
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["metasrc"] | [
"def",
"metasrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"metasrc\"",
"]"
] | [
561,
4
] | [
572,
30
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.name | (self) |
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def name(self):
"""
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
... | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"name\"",
"]"
] | [
581,
4
] | [
594,
27
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.opacity | (self) |
Sets the opacity of the trace.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
|
Sets the opacity of the trace.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1] | def opacity(self):
"""
Sets the opacity of the trace.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
"""
return self["opacity"] | [
"def",
"opacity",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"opacity\"",
"]"
] | [
603,
4
] | [
614,
30
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.open | (self) |
Sets the open values.
The 'open' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the open values.
The 'open' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def open(self):
"""
Sets the open values.
The 'open' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["open"] | [
"def",
"open",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"open\"",
"]"
] | [
623,
4
] | [
634,
27
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.opensrc | (self) |
Sets the source reference on Chart Studio Cloud for open .
The 'opensrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for open .
The 'opensrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def opensrc(self):
"""
Sets the source reference on Chart Studio Cloud for open .
The 'opensrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["opensrc"] | [
"def",
"opensrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"opensrc\"",
"]"
] | [
643,
4
] | [
654,
30
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.selectedpoints | (self) |
Array containing integer indices of selected points. Has an
effect only for traces that support selections. Note that an
empty array means an empty selection where the `unselected` are
turned on for all points, whereas, any other non-array values
means no selection all where the... |
Array containing integer indices of selected points. Has an
effect only for traces that support selections. Note that an
empty array means an empty selection where the `unselected` are
turned on for all points, whereas, any other non-array values
means no selection all where the... | def selectedpoints(self):
"""
Array containing integer indices of selected points. Has an
effect only for traces that support selections. Note that an
empty array means an empty selection where the `unselected` are
turned on for all points, whereas, any other non-array values
... | [
"def",
"selectedpoints",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"selectedpoints\"",
"]"
] | [
663,
4
] | [
678,
37
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.showlegend | (self) |
Determines whether or not an item corresponding to this trace
is shown in the legend.
The 'showlegend' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not an item corresponding to this trace
is shown in the legend.
The 'showlegend' property must be specified as a bool
(either True, or False) | def showlegend(self):
"""
Determines whether or not an item corresponding to this trace
is shown in the legend.
The 'showlegend' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showle... | [
"def",
"showlegend",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showlegend\"",
"]"
] | [
687,
4
] | [
699,
33
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.stream | (self) |
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported dict properties:
... |
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported dict properties:
... | def stream(self):
"""
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.candlestick.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Support... | [
"def",
"stream",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"stream\"",
"]"
] | [
708,
4
] | [
732,
29
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.text | (self) |
Sets hover text elements associated with each sample point. If
a single string, the same string appears over all the data
points. If an array of string, the items are mapped in order to
this trace's sample points.
The 'text' property is a string and must be specified as:
... |
Sets hover text elements associated with each sample point. If
a single string, the same string appears over all the data
points. If an array of string, the items are mapped in order to
this trace's sample points.
The 'text' property is a string and must be specified as:
... | def text(self):
"""
Sets hover text elements associated with each sample point. If
a single string, the same string appears over all the data
points. If an array of string, the items are mapped in order to
this trace's sample points.
The 'text' property is a string a... | [
"def",
"text",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"text\"",
"]"
] | [
741,
4
] | [
757,
27
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.textsrc | (self) |
Sets the source reference on Chart Studio Cloud for text .
The 'textsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for text .
The 'textsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def textsrc(self):
"""
Sets the source reference on Chart Studio Cloud for text .
The 'textsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["textsrc"] | [
"def",
"textsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textsrc\"",
"]"
] | [
766,
4
] | [
777,
30
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.uid | (self) |
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
... |
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def uid(self):
"""
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Return... | [
"def",
"uid",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uid\"",
"]"
] | [
786,
4
] | [
799,
26
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.uirevision | (self) |
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driven trace attribute changes are co... |
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driven trace attribute changes are co... | def uirevision(self):
"""
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driv... | [
"def",
"uirevision",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uirevision\"",
"]"
] | [
808,
4
] | [
832,
33
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.visible | (self) |
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One of the following enumeration va... |
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One of the following enumeration va... | def visible(self):
"""
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One o... | [
"def",
"visible",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"visible\"",
"]"
] | [
841,
4
] | [
855,
30
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.whiskerwidth | (self) |
Sets the width of the whiskers relative to the box' width. For
example, with 1, the whiskers are as wide as the box(es).
The 'whiskerwidth' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
... |
Sets the width of the whiskers relative to the box' width. For
example, with 1, the whiskers are as wide as the box(es).
The 'whiskerwidth' property is a number and may be specified as:
- An int or float in the interval [0, 1] | def whiskerwidth(self):
"""
Sets the width of the whiskers relative to the box' width. For
example, with 1, the whiskers are as wide as the box(es).
The 'whiskerwidth' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
... | [
"def",
"whiskerwidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"whiskerwidth\"",
"]"
] | [
864,
4
] | [
876,
35
] | python | en | ['en', 'error', 'th'] | False |
Candlestick.x | (self) |
Sets the x coordinates. If absent, linear coordinate will be
generated.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the x coordinates. If absent, linear coordinate will be
generated.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def x(self):
"""
Sets the x coordinates. If absent, linear coordinate will be
generated.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self[... | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
885,
4
] | [
897,
24
] | python | en | ['en', 'error', 'th'] | False |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.