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
Tickformatstop.value
(self)
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string
def value(self): """ string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str "...
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 116, 4 ]
[ 129, 28 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.__init__
( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs )
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.scene.z axis.Tickformatstop` dtickrange range [*min*, *...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.scene.z axis.Tickformatstop` dtickrange range [*min*, *...
def __init__( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs ): """ Construct a new Tickformatstop object Parameters ---------- arg dict...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "dtickrange", "=", "None", ",", "enabled", "=", "None", ",", "name", "=", "None", ",", "templateitemname", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "sup...
[ 172, 4 ]
[ 282, 34 ]
python
en
['en', 'error', 'th']
False
Moderation.warn
(self, ctx, member: discord.Member, *, reason: str = None)
Warn a member.
Warn a member.
async def warn(self, ctx, member: discord.Member, *, reason: str = None): """Warn a member.""" try: await ctx.message.delete() except discord.errors.NotFound: pass if checks.has_any_role(member, *self.protected_roles): return await ctx.send(f'That me...
[ "async", "def", "warn", "(", "self", ",", "ctx", ",", "member", ":", "discord", ".", "Member", ",", "*", ",", "reason", ":", "str", "=", "None", ")", ":", "try", ":", "await", "ctx", ".", "message", ".", "delete", "(", ")", "except", "discord", "...
[ 146, 4 ]
[ 167, 82 ]
python
en
['en', 'ku', 'en']
True
Moderation.tempmute
(self, ctx, member: discord.Member, duration: time.ShortTime, *, reason: str = None)
Temporarily mute a member.
Temporarily mute a member.
async def tempmute(self, ctx, member: discord.Member, duration: time.ShortTime, *, reason: str = None): """Temporarily mute a member.""" try: await ctx.message.delete() except discord.errors.NotFound: pass if checks.has_any_role(member, *self.protected_roles): ...
[ "async", "def", "tempmute", "(", "self", ",", "ctx", ",", "member", ":", "discord", ".", "Member", ",", "duration", ":", "time", ".", "ShortTime", ",", "*", ",", "reason", ":", "str", "=", "None", ")", ":", "try", ":", "await", "ctx", ".", "message...
[ 173, 4 ]
[ 199, 136 ]
python
en
['en', 'en', 'en']
True
Moderation.mute
(self, ctx, member: discord.Member, *, reason: str = None)
Mute a member.
Mute a member.
async def mute(self, ctx, member: discord.Member, *, reason: str = None): """Mute a member.""" try: await ctx.message.delete() except discord.errors.NotFound: pass if checks.has_any_role(member, *self.protected_roles): return await ctx.send(f'That me...
[ "async", "def", "mute", "(", "self", ",", "ctx", ",", "member", ":", "discord", ".", "Member", ",", "*", ",", "reason", ":", "str", "=", "None", ")", ":", "try", ":", "await", "ctx", ".", "message", ".", "delete", "(", ")", "except", "discord", "...
[ 205, 4 ]
[ 241, 81 ]
python
en
['en', 'co', 'en']
True
Moderation.unmute
(self, ctx, member: discord.Member, *, reason: str = None)
Unmute a member.
Unmute a member.
async def unmute(self, ctx, member: discord.Member, *, reason: str = None): """Unmute a member.""" try: await ctx.message.delete() except discord.errors.NotFound: pass if checks.has_any_role(member, *self.protected_roles): return await ctx.send(f'Tha...
[ "async", "def", "unmute", "(", "self", ",", "ctx", ",", "member", ":", "discord", ".", "Member", ",", "*", ",", "reason", ":", "str", "=", "None", ")", ":", "try", ":", "await", "ctx", ".", "message", ".", "delete", "(", ")", "except", "discord", ...
[ 247, 4 ]
[ 283, 83 ]
python
en
['en', 'la', 'en']
True
Moderation.kick
(self, ctx, member: discord.Member, *, reason: str = None)
Kick a member.
Kick a member.
async def kick(self, ctx, member: discord.Member, *, reason: str = None): """Kick a member.""" try: await ctx.message.delete() except discord.errors.NotFound: pass if checks.has_any_role(member, *self.protected_roles): return await ctx.send(f'That me...
[ "async", "def", "kick", "(", "self", ",", "ctx", ",", "member", ":", "discord", ".", "Member", ",", "*", ",", "reason", ":", "str", "=", "None", ")", ":", "try", ":", "await", "ctx", ".", "message", ".", "delete", "(", ")", "except", "discord", "...
[ 289, 4 ]
[ 312, 40 ]
python
en
['en', 'ht', 'en']
True
Moderation.tempban
(self, ctx, member: converters.UserConverter, duration: time.ShortTime, *, reason: str = None)
Temporarily ban a member.
Temporarily ban a member.
async def tempban(self, ctx, member: converters.UserConverter, duration: time.ShortTime, *, reason: str = None): """Temporarily ban a member.""" try: await ctx.message.delete() except discord.errors.NotFound: pass guild_member = ctx.guild.get_member(member.id) ...
[ "async", "def", "tempban", "(", "self", ",", "ctx", ",", "member", ":", "converters", ".", "UserConverter", ",", "duration", ":", "time", ".", "ShortTime", ",", "*", ",", "reason", ":", "str", "=", "None", ")", ":", "try", ":", "await", "ctx", ".", ...
[ 318, 4 ]
[ 346, 73 ]
python
en
['en', 'gl', 'en']
True
Moderation.ban
(self, ctx, member: converters.UserConverter, *, reason: str = None)
Ban a member.
Ban a member.
async def ban(self, ctx, member: converters.UserConverter, *, reason: str = None): """Ban a member.""" try: await ctx.message.delete() except discord.errors.NotFound: pass guild_member = ctx.guild.get_member(member.id) if guild_member is not None and ch...
[ "async", "def", "ban", "(", "self", ",", "ctx", ",", "member", ":", "converters", ".", "UserConverter", ",", "*", ",", "reason", ":", "str", "=", "None", ")", ":", "try", ":", "await", "ctx", ".", "message", ".", "delete", "(", ")", "except", "disc...
[ 352, 4 ]
[ 390, 73 ]
python
en
['en', 'su', 'en']
True
Moderation.unban
(self, ctx, member: converters.UserConverter, *, reason: str = None)
Unban a member.
Unban a member.
async def unban(self, ctx, member: converters.UserConverter, *, reason: str = None): """Unban a member.""" try: await ctx.message.delete() except discord.errors.NotFound: pass guild_member = ctx.guild.get_member(member.id) if guild_member is not None an...
[ "async", "def", "unban", "(", "self", ",", "ctx", ",", "member", ":", "converters", ".", "UserConverter", ",", "*", ",", "reason", ":", "str", "=", "None", ")", ":", "try", ":", "await", "ctx", ".", "message", ".", "delete", "(", ")", "except", "di...
[ 396, 4 ]
[ 429, 52 ]
python
ca
['hu', 'ca', 'en']
False
Moderation.case
(self, ctx, case: int)
View a mod case.
View a mod case.
async def case(self, ctx, case: int): """View a mod case.""" query = 'SELECT * FROM mod_cases WHERE id = $1;' record = await self.bot.pool.fetchrow(query, case) if record is None: return await ctx.send(f'Case #{case} not found.') action = record['action'] u...
[ "async", "def", "case", "(", "self", ",", "ctx", ",", "case", ":", "int", ")", ":", "query", "=", "'SELECT * FROM mod_cases WHERE id = $1;'", "record", "=", "await", "self", ".", "bot", ".", "pool", ".", "fetchrow", "(", "query", ",", "case", ")", "if", ...
[ 435, 4 ]
[ 481, 35 ]
python
en
['en', 'fr', 'en']
True
Moderation.case_update
(self, ctx, case: int, *, reason: str)
Update a mod case.
Update a mod case.
async def case_update(self, ctx, case: int, *, reason: str): """Update a mod case.""" query = 'UPDATE mod_cases SET reason = $1 WHERE id = $2 RETURNING *;' record = await self.bot.pool.fetchrow(query, reason, case) if record is None: return await ctx.send(f'Case #{case} not...
[ "async", "def", "case_update", "(", "self", ",", "ctx", ",", "case", ":", "int", ",", "*", ",", "reason", ":", "str", ")", ":", "query", "=", "'UPDATE mod_cases SET reason = $1 WHERE id = $2 RETURNING *;'", "record", "=", "await", "self", ".", "bot", ".", "p...
[ 487, 4 ]
[ 534, 39 ]
python
en
['en', 'co', 'en']
True
Moderation.case_pardon
(self, ctx, case: int)
Pardon a mod case.
Pardon a mod case.
async def case_pardon(self, ctx, case: int): """Pardon a mod case.""" query = 'DELETE FROM mod_cases WHERE id = $1 RETURNING *;' record = await self.bot.pool.fetchrow(query, case) if record is None: return await ctx.send(f'Case #{case} not found.') '''action = reco...
[ "async", "def", "case_pardon", "(", "self", ",", "ctx", ",", "case", ":", "int", ")", ":", "query", "=", "'DELETE FROM mod_cases WHERE id = $1 RETURNING *;'", "record", "=", "await", "self", ".", "bot", ".", "pool", ".", "fetchrow", "(", "query", ",", "case"...
[ 540, 4 ]
[ 574, 58 ]
python
en
['en', 'fr', 'en']
True
Moderation.cases
(self, ctx, member: converters.UserConverter)
View all mod cases for a member.
View all mod cases for a member.
async def cases(self, ctx, member: converters.UserConverter): """View all mod cases for a member.""" query = 'SELECT * FROM mod_cases WHERE user_id = $1 ORDER BY issued DESC;' records = await self.bot.pool.fetch(query, member.id) if len(records) == 0: return await ctx.send(...
[ "async", "def", "cases", "(", "self", ",", "ctx", ",", "member", ":", "converters", ".", "UserConverter", ")", ":", "query", "=", "'SELECT * FROM mod_cases WHERE user_id = $1 ORDER BY issued DESC;'", "records", "=", "await", "self", ".", "bot", ".", "pool", ".", ...
[ 580, 4 ]
[ 606, 26 ]
python
en
['en', 'en', 'en']
True
encode
(orig: Any)
Encode a credential value as an int. Encode credential attribute value, purely stringifying any int32 and leaving numeric int32 strings alone, but mapping any other input to a stringified 256-bit (but not 32-bit) integer. Predicates in indy-sdk operate on int32 values properly only when their ...
Encode a credential value as an int.
def encode(orig: Any) -> str: """ Encode a credential value as an int. Encode credential attribute value, purely stringifying any int32 and leaving numeric int32 strings alone, but mapping any other input to a stringified 256-bit (but not 32-bit) integer. Predicates in indy-sdk operate on i...
[ "def", "encode", "(", "orig", ":", "Any", ")", "->", "str", ":", "if", "isinstance", "(", "orig", ",", "int", ")", "and", "-", "I32_BOUND", "<=", "orig", "<", "I32_BOUND", ":", "return", "str", "(", "int", "(", "orig", ")", ")", "# python bools are i...
[ 8, 0 ]
[ 42, 18 ]
python
en
['en', 'error', 'th']
False
open_files
(names, mode='r')
Safely open a list of files in a context manager. Example: >>> with open_files(['foo.txt', 'bar.csv']) as (f1, f2): ... pass
Safely open a list of files in a context manager. Example: >>> with open_files(['foo.txt', 'bar.csv']) as (f1, f2): ... pass
def open_files(names, mode='r'): """ Safely open a list of files in a context manager. Example: >>> with open_files(['foo.txt', 'bar.csv']) as (f1, f2): ... pass """ files = [] try: for name_ in names: if name_ is None: file_ = sys.stdin if 'r' in mode ...
[ "def", "open_files", "(", "names", ",", "mode", "=", "'r'", ")", ":", "files", "=", "[", "]", "try", ":", "for", "name_", "in", "names", ":", "if", "name_", "is", "None", ":", "file_", "=", "sys", ".", "stdin", "if", "'r'", "in", "mode", "else", ...
[ 52, 0 ]
[ 70, 25 ]
python
en
['en', 'en', 'en']
True
initialize_vocabulary
(vocabulary_path)
Initialize vocabulary from file. We assume the vocabulary is stored one-item-per-line, so a file: dog cat will result in a vocabulary {'dog': 0, 'cat': 1}, and a reversed vocabulary ['dog', 'cat']. :param vocabulary_path: path to the file containing the vocabulary. :return: the ...
Initialize vocabulary from file.
def initialize_vocabulary(vocabulary_path): """ Initialize vocabulary from file. We assume the vocabulary is stored one-item-per-line, so a file: dog cat will result in a vocabulary {'dog': 0, 'cat': 1}, and a reversed vocabulary ['dog', 'cat']. :param vocabulary_path: path to the file...
[ "def", "initialize_vocabulary", "(", "vocabulary_path", ")", ":", "if", "os", ".", "path", ".", "exists", "(", "vocabulary_path", ")", ":", "rev_vocab", "=", "[", "]", "with", "open", "(", "vocabulary_path", ")", "as", "f", ":", "rev_vocab", ".", "extend",...
[ 136, 0 ]
[ 158, 73 ]
python
en
['en', 'error', 'th']
False
sentence_to_token_ids
(sentence, vocabulary, character_level=False)
Convert a string to list of integers representing token-ids. For example, a sentence "I have a dog" may become tokenized into ["I", "have", "a", "dog"] and with vocabulary {"I": 1, "have": 2, "a": 4, "dog": 7"} this function will return [1, 2, 4, 7]. :param sentence: a string, the sentence to con...
Convert a string to list of integers representing token-ids.
def sentence_to_token_ids(sentence, vocabulary, character_level=False): """ Convert a string to list of integers representing token-ids. For example, a sentence "I have a dog" may become tokenized into ["I", "have", "a", "dog"] and with vocabulary {"I": 1, "have": 2, "a": 4, "dog": 7"} this functio...
[ "def", "sentence_to_token_ids", "(", "sentence", ",", "vocabulary", ",", "character_level", "=", "False", ")", ":", "sentence", "=", "sentence", ".", "rstrip", "(", "'\\n'", ")", "if", "character_level", "else", "sentence", ".", "split", "(", ")", "return", ...
[ 161, 0 ]
[ 176, 56 ]
python
en
['en', 'error', 'th']
False
get_filenames
(data_dir, model_dir, extensions, train_prefix, dev_prefix, vocab_prefix, name=None, ref_ext=None, binary=None, decode=None, eval=None, align=None, **kwargs)
Get a bunch of file prefixes and extensions, and output the list of filenames to be used by the model. :param data_dir: directory where all the the data is stored :param extensions: list of file extensions, in the right order (last extension is always the target) :param train_prefix: name of the t...
Get a bunch of file prefixes and extensions, and output the list of filenames to be used by the model.
def get_filenames(data_dir, model_dir, extensions, train_prefix, dev_prefix, vocab_prefix, name=None, ref_ext=None, binary=None, decode=None, eval=None, align=None, **kwargs): """ Get a bunch of file prefixes and extensions, and output the list of filenames to be used by the model. :p...
[ "def", "get_filenames", "(", "data_dir", ",", "model_dir", ",", "extensions", ",", "train_prefix", ",", "dev_prefix", ",", "vocab_prefix", ",", "name", "=", "None", ",", "ref_ext", "=", "None", ",", "binary", "=", "None", ",", "decode", "=", "None", ",", ...
[ 179, 0 ]
[ 234, 45 ]
python
en
['en', 'error', 'th']
False
random_batch_iterator
(data, batch_size)
The most basic form of batch iterator. :param data: the dataset to segment into batches :param batch_size: the size of a batch :return: an iterator which yields random batches (indefinitely)
The most basic form of batch iterator.
def random_batch_iterator(data, batch_size): """ The most basic form of batch iterator. :param data: the dataset to segment into batches :param batch_size: the size of a batch :return: an iterator which yields random batches (indefinitely) """ while True: yield random.sample(data, b...
[ "def", "random_batch_iterator", "(", "data", ",", "batch_size", ")", ":", "while", "True", ":", "yield", "random", ".", "sample", "(", "data", ",", "batch_size", ")" ]
[ 279, 0 ]
[ 288, 45 ]
python
en
['en', 'error', 'th']
False
cycling_batch_iterator
(data, batch_size, shuffle=True, allow_smaller=True)
Indefinitely cycle through a dataset and yield batches (the dataset is shuffled at each new epoch) :param data: the dataset to segment into batches :param batch_size: the size of a batch :return: an iterator which yields batches (indefinitely)
Indefinitely cycle through a dataset and yield batches (the dataset is shuffled at each new epoch)
def cycling_batch_iterator(data, batch_size, shuffle=True, allow_smaller=True): """ Indefinitely cycle through a dataset and yield batches (the dataset is shuffled at each new epoch) :param data: the dataset to segment into batches :param batch_size: the size of a batch :return: an iterator whi...
[ "def", "cycling_batch_iterator", "(", "data", ",", "batch_size", ",", "shuffle", "=", "True", ",", "allow_smaller", "=", "True", ")", ":", "while", "True", ":", "iterator", "=", "basic_batch_iterator", "(", "data", ",", "batch_size", ",", "shuffle", "=", "sh...
[ 304, 0 ]
[ 316, 23 ]
python
en
['en', 'error', 'th']
False
read_ahead_batch_iterator
(data, batch_size, read_ahead=10, shuffle=True, allow_smaller=True, mode='standard', cycle=True, crash_test=False, **kwargs)
Same iterator as `cycling_batch_iterator`, except that it reads a number of batches at once, and sorts their content according to their size. This is useful for training, where all the sequences in one batch need to be padded to the same length as the longest sequence in the batch. :param data: ...
Same iterator as `cycling_batch_iterator`, except that it reads a number of batches at once, and sorts their content according to their size.
def read_ahead_batch_iterator(data, batch_size, read_ahead=10, shuffle=True, allow_smaller=True, mode='standard', cycle=True, crash_test=False, **kwargs): """ Same iterator as `cycling_batch_iterator`, except that it reads a number of batches at once, and sorts their content ac...
[ "def", "read_ahead_batch_iterator", "(", "data", ",", "batch_size", ",", "read_ahead", "=", "10", ",", "shuffle", "=", "True", ",", "allow_smaller", "=", "True", ",", "mode", "=", "'standard'", ",", "cycle", "=", "True", ",", "crash_test", "=", "False", ",...
[ 319, 0 ]
[ 369, 23 ]
python
en
['en', 'error', 'th']
False
get_batches
(data, batch_size, batches=0, allow_smaller=True)
Segment `data` into a given number of fixed-size batches. The dataset is automatically shuffled. This function is for smaller datasets, when you need access to the entire dataset at once (e.g. dev set). For larger (training) datasets, where you may want to lazily iterate over batches and cycle several...
Segment `data` into a given number of fixed-size batches. The dataset is automatically shuffled.
def get_batches(data, batch_size, batches=0, allow_smaller=True): """ Segment `data` into a given number of fixed-size batches. The dataset is automatically shuffled. This function is for smaller datasets, when you need access to the entire dataset at once (e.g. dev set). For larger (training) datasets...
[ "def", "get_batches", "(", "data", ",", "batch_size", ",", "batches", "=", "0", ",", "allow_smaller", "=", "True", ")", ":", "if", "not", "allow_smaller", ":", "max_batches", "=", "len", "(", "data", ")", "//", "batch_size", "else", ":", "max_batches", "...
[ 411, 0 ]
[ 436, 18 ]
python
en
['en', 'error', 'th']
False
read_binary_features
(filename, from_position=None)
Reads a binary file containing vector features. First two (int32) numbers correspond to number of entries (lines), and dimension of the vectors. Each entry is a numpy array of shape (nframes, dim). Use `scripts/speech/extract-audio-features.py` or `scripts/speech/extract.py` to create such a file for ...
Reads a binary file containing vector features. First two (int32) numbers correspond to number of entries (lines), and dimension of the vectors. Each entry is a numpy array of shape (nframes, dim).
def read_binary_features(filename, from_position=None): """ Reads a binary file containing vector features. First two (int32) numbers correspond to number of entries (lines), and dimension of the vectors. Each entry is a numpy array of shape (nframes, dim). Use `scripts/speech/extract-audio-feature...
[ "def", "read_binary_features", "(", "filename", ",", "from_position", "=", "None", ")", ":", "with", "open", "(", "filename", ",", "'rb'", ")", "as", "f", ":", "lines", ",", "dim", "=", "np", ".", "load", "(", "f", ")", "if", "from_position", "is", "...
[ 439, 0 ]
[ 460, 20 ]
python
en
['en', 'error', 'th']
False
create_logger
(log_file=None)
Initialize global logger and return it. :param log_file: log to this file, or to standard output if None :return: created logger
Initialize global logger and return it.
def create_logger(log_file=None): """ Initialize global logger and return it. :param log_file: log to this file, or to standard output if None :return: created logger """ formatter = logging.Formatter(fmt='%(asctime)s %(message)s', datefmt='%m/%d %H:%M:%S') if log_file is not None: ...
[ "def", "create_logger", "(", "log_file", "=", "None", ")", ":", "formatter", "=", "logging", ".", "Formatter", "(", "fmt", "=", "'%(asctime)s %(message)s'", ",", "datefmt", "=", "'%m/%d %H:%M:%S'", ")", "if", "log_file", "is", "not", "None", ":", "os", ".", ...
[ 496, 0 ]
[ 515, 17 ]
python
en
['en', 'error', 'th']
False
heatmap
(xlabels=None, ylabels=None, weights=None, output_file=None, reverse=False)
Draw a heatmap showing the alignment between two sequences. :param xlabels: input words :param ylabels: output words :param weights: numpy array of shape (len(xlabels), len(ylabels)) :param output_file: write the figure to this file, or show it into a window if None
Draw a heatmap showing the alignment between two sequences.
def heatmap(xlabels=None, ylabels=None, weights=None, output_file=None, reverse=False): """ Draw a heatmap showing the alignment between two sequences. :param xlabels: input words :param ylabels: output words :param weights: numpy array of shape (len(xlabels), len(ylabels)) :param output_file: ...
[ "def", "heatmap", "(", "xlabels", "=", "None", ",", "ylabels", "=", "None", ",", "weights", "=", "None", ",", "output_file", "=", "None", ",", "reverse", "=", "False", ")", ":", "import", "matplotlib", "from", "matplotlib", "import", "pyplot", "as", "plt...
[ 528, 0 ]
[ 600, 53 ]
python
en
['en', 'error', 'th']
False
alignment_to_text
(xlabels=None, ylabels=None, weights=None, output_file=None)
:param xlabels: input words :param ylabels: output words :param weights: numpy array of shape (len(xlabels), len(ylabels)) :param output_file: write the matrix in this file
:param xlabels: input words :param ylabels: output words :param weights: numpy array of shape (len(xlabels), len(ylabels)) :param output_file: write the matrix in this file
def alignment_to_text(xlabels=None, ylabels=None, weights=None, output_file=None): """ :param xlabels: input words :param ylabels: output words :param weights: numpy array of shape (len(xlabels), len(ylabels)) :param output_file: write the matrix in this file """ with open(output_file.replac...
[ "def", "alignment_to_text", "(", "xlabels", "=", "None", ",", "ylabels", "=", "None", ",", "weights", "=", "None", ",", "output_file", "=", "None", ")", ":", "with", "open", "(", "output_file", ".", "replace", "(", "'svg'", ",", "'txt'", ")", ".", "rep...
[ 603, 0 ]
[ 616, 35 ]
python
en
['en', 'error', 'th']
False
setup_args
()
Set up conversion args.
Set up conversion args.
def setup_args(): """ Set up conversion args. """ parser = ParlaiParser() parser.add_argument( '-n', '--num-episodes', default=-1, type=int, help='Total number of episodes to convert, -1 to convert all examples', ) parser.add_argument( '-of', ...
[ "def", "setup_args", "(", ")", ":", "parser", "=", "ParlaiParser", "(", ")", "parser", ".", "add_argument", "(", "'-n'", ",", "'--num-episodes'", ",", "default", "=", "-", "1", ",", "type", "=", "int", ",", "help", "=", "'Total number of episodes to convert,...
[ 22, 0 ]
[ 59, 17 ]
python
en
['en', 'error', 'th']
False
dump_data
(opt)
Dump task data to ACUTE-Eval.
Dump task data to ACUTE-Eval.
def dump_data(opt): """ Dump task data to ACUTE-Eval. """ # create repeat label agent and assign it to the specified task agent = RepeatLabelAgent(opt) world = create_task(opt, agent) task = opt.get('task') speaker_0_id = opt.get('speaker_0_id') or f'{task}_as_human' speaker_1_id = o...
[ "def", "dump_data", "(", "opt", ")", ":", "# create repeat label agent and assign it to the specified task", "agent", "=", "RepeatLabelAgent", "(", "opt", ")", "world", "=", "create_task", "(", "opt", ",", "agent", ")", "task", "=", "opt", ".", "get", "(", "'tas...
[ 62, 0 ]
[ 125, 61 ]
python
en
['en', 'error', 'th']
False
EvenniaTestSuiteRunner.build_suite
(self, test_labels, extra_tests=None, **kwargs)
Build a test suite for Evennia. test_labels is a list of apps to test. If not given, a subset of settings.INSTALLED_APPS will be used.
Build a test suite for Evennia. test_labels is a list of apps to test. If not given, a subset of settings.INSTALLED_APPS will be used.
def build_suite(self, test_labels, extra_tests=None, **kwargs): """ Build a test suite for Evennia. test_labels is a list of apps to test. If not given, a subset of settings.INSTALLED_APPS will be used. """ import evennia evennia._init() return super(EvenniaTestSu...
[ "def", "build_suite", "(", "self", ",", "test_labels", ",", "extra_tests", "=", "None", ",", "*", "*", "kwargs", ")", ":", "import", "evennia", "evennia", ".", "_init", "(", ")", "return", "super", "(", "EvenniaTestSuiteRunner", ",", "self", ")", ".", "b...
[ 42, 4 ]
[ 49, 110 ]
python
en
['en', 'error', 'th']
False
TestDeprecations.test_check_errors
(self)
All settings in deprecated_settings should raise a DeprecationWarning if they exist. WEBSERVER_PORTS raises an error if the iterable value passed does not have a tuple as its first element.
All settings in deprecated_settings should raise a DeprecationWarning if they exist. WEBSERVER_PORTS raises an error if the iterable value passed does not have a tuple as its first element.
def test_check_errors(self): """ All settings in deprecated_settings should raise a DeprecationWarning if they exist. WEBSERVER_PORTS raises an error if the iterable value passed does not have a tuple as its first element. """ for setting in self.deprecated_settings: ...
[ "def", "test_check_errors", "(", "self", ")", ":", "for", "setting", "in", "self", ".", "deprecated_settings", ":", "self", ".", "assertRaises", "(", "DeprecationWarning", ",", "check_errors", ",", "MockSettings", "(", "setting", ")", ")", "# test check for WEBSER...
[ 76, 4 ]
[ 87, 81 ]
python
en
['en', 'error', 'th']
False
init_argument_parser
(parser: ArgumentParser)
Initialize an argument parser with the module's arguments.
Initialize an argument parser with the module's arguments.
def init_argument_parser(parser: ArgumentParser): """Initialize an argument parser with the module's arguments.""" return arg.load_argument_groups( parser, *arg.group.get_registered(arg.CAT_PROVISION) )
[ "def", "init_argument_parser", "(", "parser", ":", "ArgumentParser", ")", ":", "return", "arg", ".", "load_argument_groups", "(", "parser", ",", "*", "arg", ".", "group", ".", "get_registered", "(", "arg", ".", "CAT_PROVISION", ")", ")" ]
[ 18, 0 ]
[ 22, 5 ]
python
en
['en', 'en', 'en']
True
provision
(settings: dict)
Perform provisioning.
Perform provisioning.
async def provision(settings: dict): """Perform provisioning.""" context_builder = DefaultContextBuilder(settings) context = await context_builder.build() try: public_did = await wallet_config(context, True) if await ledger_config(context, public_did, True): print("Ledger c...
[ "async", "def", "provision", "(", "settings", ":", "dict", ")", ":", "context_builder", "=", "DefaultContextBuilder", "(", "settings", ")", "context", "=", "await", "context_builder", ".", "build", "(", ")", "try", ":", "public_did", "=", "await", "wallet_conf...
[ 25, 0 ]
[ 38, 64 ]
python
en
['it', 'en', 'en']
False
execute
(argv: Sequence[str] = None)
Entrypoint.
Entrypoint.
def execute(argv: Sequence[str] = None): """Entrypoint.""" parser = ArgumentParser() parser.prog += " provision" get_settings = init_argument_parser(parser) args = parser.parse_args(argv) settings = get_settings(args) common_config(settings) loop = asyncio.get_event_loop() loop.run_...
[ "def", "execute", "(", "argv", ":", "Sequence", "[", "str", "]", "=", "None", ")", ":", "parser", "=", "ArgumentParser", "(", ")", "parser", ".", "prog", "+=", "\" provision\"", "get_settings", "=", "init_argument_parser", "(", "parser", ")", "args", "=", ...
[ 41, 0 ]
[ 51, 48 ]
python
en
['en', 'en', 'en']
False
query_features
(request: web.BaseRequest)
Request handler for inspecting supported protocols. Args: request: aiohttp request object Returns: The diclosed protocols response
Request handler for inspecting supported protocols.
async def query_features(request: web.BaseRequest): """ Request handler for inspecting supported protocols. Args: request: aiohttp request object Returns: The diclosed protocols response """ context = request.app["request_context"] registry: ProtocolRegistry = await contex...
[ "async", "def", "query_features", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "registry", ":", "ProtocolRegistry", "=", "await", "context", ".", "inject", "(", "ProtocolRegis...
[ 33, 0 ]
[ 48, 67 ]
python
en
['en', 'error', 'th']
False
register
(app: web.Application)
Register routes.
Register routes.
async def register(app: web.Application): """Register routes.""" app.add_routes([web.get("/features", query_features)])
[ "async", "def", "register", "(", "app", ":", "web", ".", "Application", ")", ":", "app", ".", "add_routes", "(", "[", "web", ".", "get", "(", "\"/features\"", ",", "query_features", ")", "]", ")" ]
[ 51, 0 ]
[ 54, 58 ]
python
en
['en', 'fr', 'en']
False
Font.color
(self)
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 hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
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 hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
def color(self): """ 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 hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 64, 28 ]
python
en
['en', 'error', 'th']
False
Font.colorsrc
(self)
Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' 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 color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def colorsrc(self): """ Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["colorsrc"]
[ "def", "colorsrc", "(", "self", ")", ":", "return", "self", "[", "\"colorsrc\"", "]" ]
[ 73, 4 ]
[ 84, 31 ]
python
en
['en', 'error', 'th']
False
Font.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 93, 4 ]
[ 116, 29 ]
python
en
['en', 'error', 'th']
False
Font.familysrc
(self)
Sets the source reference on Chart Studio Cloud for family . The 'familysrc' 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 family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def familysrc(self): """ Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["familysrc"]
[ "def", "familysrc", "(", "self", ")", ":", "return", "self", "[", "\"familysrc\"", "]" ]
[ 125, 4 ]
[ 136, 32 ]
python
en
['en', 'error', 'th']
False
Font.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray """ return self["size"...
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 145, 4 ]
[ 155, 27 ]
python
en
['en', 'error', 'th']
False
Font.sizesrc
(self)
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' 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 size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def sizesrc(self): """ Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["sizesrc"]
[ "def", "sizesrc", "(", "self", ")", ":", "return", "self", "[", "\"sizesrc\"", "]" ]
[ 164, 4 ]
[ 175, 30 ]
python
en
['en', 'error', 'th']
False
Font.__init__
( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs )
Construct a new Font object Sets the font used in hover labels. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.surface.hoverlabel.Font` color ...
Construct a new Font object Sets the font used in hover labels.
def __init__( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs ): """ Construct a new Font object Sets the font used in hover labels. Parameters ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "colorsrc", "=", "None", ",", "family", "=", "None", ",", "familysrc", "=", "None", ",", "size", "=", "None", ",", "sizesrc", "=", "None", ",", "*", "*", "kw...
[ 215, 4 ]
[ 329, 34 ]
python
en
['en', 'error', 'th']
False
Barpolar.base
(self)
Sets where the bar base is drawn (in radial axis units). In "stack" barmode, traces that set "base" will be excluded and drawn in "overlay" mode instead. The 'base' property accepts values of any type Returns ------- Any|numpy.ndarray
Sets where the bar base is drawn (in radial axis units). In "stack" barmode, traces that set "base" will be excluded and drawn in "overlay" mode instead. The 'base' property accepts values of any type
def base(self): """ Sets where the bar base is drawn (in radial axis units). In "stack" barmode, traces that set "base" will be excluded and drawn in "overlay" mode instead. The 'base' property accepts values of any type Returns ------- Any|numpy.nda...
[ "def", "base", "(", "self", ")", ":", "return", "self", "[", "\"base\"", "]" ]
[ 60, 4 ]
[ 72, 27 ]
python
en
['en', 'error', 'th']
False
Barpolar.basesrc
(self)
Sets the source reference on Chart Studio Cloud for base . The 'basesrc' 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 base . The 'basesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def basesrc(self): """ Sets the source reference on Chart Studio Cloud for base . The 'basesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["basesrc"]
[ "def", "basesrc", "(", "self", ")", ":", "return", "self", "[", "\"basesrc\"", "]" ]
[ 81, 4 ]
[ 92, 30 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 101, 4 ]
[ 115, 33 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 124, 4 ]
[ 136, 36 ]
python
en
['en', 'error', 'th']
False
Barpolar.dr
(self)
Sets the r coordinate step. The 'dr' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the r coordinate step. The 'dr' property is a number and may be specified as: - An int or float
def dr(self): """ Sets the r coordinate step. The 'dr' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["dr"]
[ "def", "dr", "(", "self", ")", ":", "return", "self", "[", "\"dr\"", "]" ]
[ 145, 4 ]
[ 156, 25 ]
python
en
['en', 'error', 'th']
False
Barpolar.dtheta
(self)
Sets the theta coordinate step. By default, the `dtheta` step equals the subplot's period divided by the length of the `r` coordinates. The 'dtheta' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the theta coordinate step. By default, the `dtheta` step equals the subplot's period divided by the length of the `r` coordinates. The 'dtheta' property is a number and may be specified as: - An int or float
def dtheta(self): """ Sets the theta coordinate step. By default, the `dtheta` step equals the subplot's period divided by the length of the `r` coordinates. The 'dtheta' property is a number and may be specified as: - An int or float Returns -----...
[ "def", "dtheta", "(", "self", ")", ":", "return", "self", "[", "\"dtheta\"", "]" ]
[ 165, 4 ]
[ 178, 29 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 187, 4 ]
[ 204, 32 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 213, 4 ]
[ 225, 35 ]
python
en
['en', 'error', 'th']
False
Barpolar.hoverlabel
(self)
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict properti...
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict properti...
def hoverlabel(self): """ The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor ...
[ "def", "hoverlabel", "(", "self", ")", ":", "return", "self", "[", "\"hoverlabel\"", "]" ]
[ 234, 4 ]
[ 284, 33 ]
python
en
['en', 'error', 'th']
False
Barpolar.hovertemplate
(self)
Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$...
Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$...
def hovertemplate(self): """ Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d...
[ "def", "hovertemplate", "(", "self", ")", ":", "return", "self", "[", "\"hovertemplate\"", "]" ]
[ 293, 4 ]
[ 325, 36 ]
python
en
['en', 'error', 'th']
False
Barpolar.hovertemplatesrc
(self)
Sets the source reference on Chart Studio Cloud for hovertemplate . The 'hovertemplatesrc' 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 hovertemplate . The 'hovertemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hovertemplatesrc(self): """ Sets the source reference on Chart Studio Cloud for hovertemplate . The 'hovertemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return se...
[ "def", "hovertemplatesrc", "(", "self", ")", ":", "return", "self", "[", "\"hovertemplatesrc\"", "]" ]
[ 334, 4 ]
[ 346, 39 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 355, 4 ]
[ 368, 32 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 377, 4 ]
[ 389, 35 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 398, 4 ]
[ 411, 26 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 420, 4 ]
[ 431, 29 ]
python
en
['en', 'error', 'th']
False
Barpolar.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
Barpolar.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties: ...
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties: ...
def marker(self): """ The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported ...
[ "def", "marker", "(", "self", ")", ":", "return", "self", "[", "\"marker\"", "]" ]
[ 463, 4 ]
[ 573, 29 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 582, 4 ]
[ 601, 27 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 610, 4 ]
[ 621, 30 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 630, 4 ]
[ 643, 27 ]
python
en
['en', 'error', 'th']
False
Barpolar.offset
(self)
Shifts the angular position where the bar is drawn (in "thetatunit" units). The 'offset' property is a number and may be specified as: - An int or float - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy...
Shifts the angular position where the bar is drawn (in "thetatunit" units). The 'offset' property is a number and may be specified as: - An int or float - A tuple, list, or one-dimensional numpy array of the above
def offset(self): """ Shifts the angular position where the bar is drawn (in "thetatunit" units). The 'offset' property is a number and may be specified as: - An int or float - A tuple, list, or one-dimensional numpy array of the above Returns --...
[ "def", "offset", "(", "self", ")", ":", "return", "self", "[", "\"offset\"", "]" ]
[ 652, 4 ]
[ 665, 29 ]
python
en
['en', 'error', 'th']
False
Barpolar.offsetsrc
(self)
Sets the source reference on Chart Studio Cloud for offset . The 'offsetsrc' 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 offset . The 'offsetsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def offsetsrc(self): """ Sets the source reference on Chart Studio Cloud for offset . The 'offsetsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["offsetsrc"]
[ "def", "offsetsrc", "(", "self", ")", ":", "return", "self", "[", "\"offsetsrc\"", "]" ]
[ 674, 4 ]
[ 685, 32 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 694, 4 ]
[ 705, 30 ]
python
en
['en', 'error', 'th']
False
Barpolar.r
(self)
Sets the radial coordinates The 'r' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the radial coordinates The 'r' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def r(self): """ Sets the radial coordinates The 'r' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["r"]
[ "def", "r", "(", "self", ")", ":", "return", "self", "[", "\"r\"", "]" ]
[ 714, 4 ]
[ 725, 24 ]
python
en
['en', 'error', 'th']
False
Barpolar.r0
(self)
Alternate to `r`. Builds a linear space of r coordinates. Use with `dr` where `r0` is the starting coordinate and `dr` the step. The 'r0' property accepts values of any type Returns ------- Any
Alternate to `r`. Builds a linear space of r coordinates. Use with `dr` where `r0` is the starting coordinate and `dr` the step. The 'r0' property accepts values of any type
def r0(self): """ Alternate to `r`. Builds a linear space of r coordinates. Use with `dr` where `r0` is the starting coordinate and `dr` the step. The 'r0' property accepts values of any type Returns ------- Any """ return self["r0"]
[ "def", "r0", "(", "self", ")", ":", "return", "self", "[", "\"r0\"", "]" ]
[ 734, 4 ]
[ 746, 25 ]
python
en
['en', 'error', 'th']
False
Barpolar.rsrc
(self)
Sets the source reference on Chart Studio Cloud for r . The 'rsrc' 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 r . The 'rsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def rsrc(self): """ Sets the source reference on Chart Studio Cloud for r . The 'rsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["rsrc"]
[ "def", "rsrc", "(", "self", ")", ":", "return", "self", "[", "\"rsrc\"", "]" ]
[ 755, 4 ]
[ 766, 27 ]
python
en
['en', 'error', 'th']
False
Barpolar.selected
(self)
The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.Selected` - A dict of string/value properties that will be passed to the Selected constructor Supported dict properties: ...
The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.Selected` - A dict of string/value properties that will be passed to the Selected constructor Supported dict properties: ...
def selected(self): """ The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.Selected` - A dict of string/value properties that will be passed to the Selected constructor ...
[ "def", "selected", "(", "self", ")", ":", "return", "self", "[", "\"selected\"", "]" ]
[ 775, 4 ]
[ 798, 31 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 807, 4 ]
[ 822, 37 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 831, 4 ]
[ 843, 33 ]
python
en
['en', 'error', 'th']
False
Barpolar.stream
(self)
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.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.barpolar.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.barpolar.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported ...
[ "def", "stream", "(", "self", ")", ":", "return", "self", "[", "\"stream\"", "]" ]
[ 852, 4 ]
[ 876, 29 ]
python
en
['en', 'error', 'th']
False
Barpolar.subplot
(self)
Sets a reference between this trace's data coordinates and a polar subplot. If "polar" (the default value), the data refer to `layout.polar`. If "polar2", the data refer to `layout.polar2`, and so on. The 'subplot' property is an identifier of a particular subplot, ...
Sets a reference between this trace's data coordinates and a polar subplot. If "polar" (the default value), the data refer to `layout.polar`. If "polar2", the data refer to `layout.polar2`, and so on. The 'subplot' property is an identifier of a particular subplot, ...
def subplot(self): """ Sets a reference between this trace's data coordinates and a polar subplot. If "polar" (the default value), the data refer to `layout.polar`. If "polar2", the data refer to `layout.polar2`, and so on. The 'subplot' property is an identifier of ...
[ "def", "subplot", "(", "self", ")", ":", "return", "self", "[", "\"subplot\"", "]" ]
[ 885, 4 ]
[ 901, 30 ]
python
en
['en', 'error', 'th']
False
Barpolar.text
(self)
Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. The 'text' property is a string and must be specified as: - A string...
Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. The 'text' property is a string and must be specified as: - A string...
def text(self): """ Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. The 'text' property is a string and must be specifi...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 910, 4 ]
[ 926, 27 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 935, 4 ]
[ 946, 30 ]
python
en
['en', 'error', 'th']
False
Barpolar.theta
(self)
Sets the angular coordinates The 'theta' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the angular coordinates The 'theta' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def theta(self): """ Sets the angular coordinates The 'theta' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["theta"]
[ "def", "theta", "(", "self", ")", ":", "return", "self", "[", "\"theta\"", "]" ]
[ 955, 4 ]
[ 966, 28 ]
python
en
['en', 'error', 'th']
False
Barpolar.theta0
(self)
Alternate to `theta`. Builds a linear space of theta coordinates. Use with `dtheta` where `theta0` is the starting coordinate and `dtheta` the step. The 'theta0' property accepts values of any type Returns ------- Any
Alternate to `theta`. Builds a linear space of theta coordinates. Use with `dtheta` where `theta0` is the starting coordinate and `dtheta` the step. The 'theta0' property accepts values of any type
def theta0(self): """ Alternate to `theta`. Builds a linear space of theta coordinates. Use with `dtheta` where `theta0` is the starting coordinate and `dtheta` the step. The 'theta0' property accepts values of any type Returns ------- Any ""...
[ "def", "theta0", "(", "self", ")", ":", "return", "self", "[", "\"theta0\"", "]" ]
[ 975, 4 ]
[ 987, 29 ]
python
en
['en', 'error', 'th']
False
Barpolar.thetasrc
(self)
Sets the source reference on Chart Studio Cloud for theta . The 'thetasrc' 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 theta . The 'thetasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def thetasrc(self): """ Sets the source reference on Chart Studio Cloud for theta . The 'thetasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["thetasrc"]
[ "def", "thetasrc", "(", "self", ")", ":", "return", "self", "[", "\"thetasrc\"", "]" ]
[ 996, 4 ]
[ 1007, 31 ]
python
en
['en', 'error', 'th']
False
Barpolar.thetaunit
(self)
Sets the unit of input "theta" values. Has an effect only when on "linear" angular axes. The 'thetaunit' property is an enumeration that may be specified as: - One of the following enumeration values: ['radians', 'degrees', 'gradians'] Returns ---...
Sets the unit of input "theta" values. Has an effect only when on "linear" angular axes. The 'thetaunit' property is an enumeration that may be specified as: - One of the following enumeration values: ['radians', 'degrees', 'gradians']
def thetaunit(self): """ Sets the unit of input "theta" values. Has an effect only when on "linear" angular axes. The 'thetaunit' property is an enumeration that may be specified as: - One of the following enumeration values: ['radians', 'degrees', 'gradian...
[ "def", "thetaunit", "(", "self", ")", ":", "return", "self", "[", "\"thetaunit\"", "]" ]
[ 1016, 4 ]
[ 1029, 32 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 1038, 4 ]
[ 1051, 26 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 1060, 4 ]
[ 1084, 33 ]
python
en
['en', 'error', 'th']
False
Barpolar.unselected
(self)
The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor Supported dict properti...
The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor Supported dict properti...
def unselected(self): """ The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor ...
[ "def", "unselected", "(", "self", ")", ":", "return", "self", "[", "\"unselected\"", "]" ]
[ 1093, 4 ]
[ 1116, 33 ]
python
en
['en', 'error', 'th']
False
Barpolar.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\"", "]" ]
[ 1125, 4 ]
[ 1139, 30 ]
python
en
['en', 'error', 'th']
False
Barpolar.width
(self)
Sets the bar angular width (in "thetaunit" units). The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray ...
Sets the bar angular width (in "thetaunit" units). The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] - A tuple, list, or one-dimensional numpy array of the above
def width(self): """ Sets the bar angular width (in "thetaunit" units). The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- ...
[ "def", "width", "(", "self", ")", ":", "return", "self", "[", "\"width\"", "]" ]
[ 1148, 4 ]
[ 1160, 28 ]
python
en
['en', 'error', 'th']
False
Barpolar.widthsrc
(self)
Sets the source reference on Chart Studio Cloud for width . The 'widthsrc' 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 width . The 'widthsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def widthsrc(self): """ Sets the source reference on Chart Studio Cloud for width . The 'widthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["widthsrc"]
[ "def", "widthsrc", "(", "self", ")", ":", "return", "self", "[", "\"widthsrc\"", "]" ]
[ 1169, 4 ]
[ 1180, 31 ]
python
en
['en', 'error', 'th']
False
Barpolar.__init__
( self, arg=None, base=None, basesrc=None, customdata=None, customdatasrc=None, dr=None, dtheta=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatesrc=None, hovertext=N...
Construct a new Barpolar object The data visualized by the radial span of the bars is set in `r` Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.Barpolar` ...
Construct a new Barpolar object The data visualized by the radial span of the bars is set in `r`
def __init__( self, arg=None, base=None, basesrc=None, customdata=None, customdatasrc=None, dr=None, dtheta=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatesrc=None, ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "base", "=", "None", ",", "basesrc", "=", "None", ",", "customdata", "=", "None", ",", "customdatasrc", "=", "None", ",", "dr", "=", "None", ",", "dtheta", "=", "None", ",", "hoverinfo", ...
[ 1388, 4 ]
[ 1855, 34 ]
python
en
['en', 'error', 'th']
False
Tickfont.color
(self)
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 hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
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 hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
def color(self): """ 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 hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 63, 28 ]
python
en
['en', 'error', 'th']
False
Tickfont.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 72, 4 ]
[ 94, 29 ]
python
en
['en', 'error', 'th']
False
Tickfont.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf]
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 103, 4 ]
[ 112, 27 ]
python
en
['en', 'error', 'th']
False
Tickfont.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.choropleth.colorbar.Tickfont` colo...
Construct a new Tickfont object Sets the color bar's tick label font
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an insta...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Tickfont", ",", "self", ")", ".", "__init__", "(", "\"tick...
[ 143, 4 ]
[ 226, 34 ]
python
en
['en', 'error', 'th']
False
order_clothes_list
(clothes_list)
Orders a given clothes list by the order specified in CLOTHING_TYPE_ORDER. Args: clothes_list (list): List of clothing items to put in order Returns: ordered_clothes_list (list): The same list as passed, but re-ordered according to the hierarchy of clo...
Orders a given clothes list by the order specified in CLOTHING_TYPE_ORDER.
def order_clothes_list(clothes_list): """ Orders a given clothes list by the order specified in CLOTHING_TYPE_ORDER. Args: clothes_list (list): List of clothing items to put in order Returns: ordered_clothes_list (list): The same list as passed, but re-ordered ...
[ "def", "order_clothes_list", "(", "clothes_list", ")", ":", "ordered_clothes_list", "=", "clothes_list", "# For each type of clothing that exists...", "for", "current_type", "in", "reversed", "(", "CLOTHING_TYPE_ORDER", ")", ":", "# Check each item in the given clothes list.", ...
[ 113, 0 ]
[ 138, 31 ]
python
en
['en', 'error', 'th']
False
get_worn_clothes
(character, exclude_covered=False)
Get a list of clothes worn by a given character. Args: character (obj): The character to get a list of worn clothes from. Kwargs: exclude_covered (bool): If True, excludes clothes covered by other clothing from the returned list. Returns: order...
Get a list of clothes worn by a given character.
def get_worn_clothes(character, exclude_covered=False): """ Get a list of clothes worn by a given character. Args: character (obj): The character to get a list of worn clothes from. Kwargs: exclude_covered (bool): If True, excludes clothes covered by other ...
[ "def", "get_worn_clothes", "(", "character", ",", "exclude_covered", "=", "False", ")", ":", "clothes_list", "=", "[", "]", "for", "thing", "in", "character", ".", "contents", ":", "# If uncovered or not excluding covered items", "if", "not", "thing", ".", "db", ...
[ 141, 0 ]
[ 167, 31 ]
python
en
['en', 'error', 'th']
False
clothing_type_count
(clothes_list)
Returns a dictionary of the number of each clothing type in a given list of clothing objects. Args: clothes_list (list): A list of clothing items from which to count the number of clothing types represented among them. Returns: ...
Returns a dictionary of the number of each clothing type in a given list of clothing objects.
def clothing_type_count(clothes_list): """ Returns a dictionary of the number of each clothing type in a given list of clothing objects. Args: clothes_list (list): A list of clothing items from which to count the number of clothing types ...
[ "def", "clothing_type_count", "(", "clothes_list", ")", ":", "types_count", "=", "{", "}", "for", "garment", "in", "clothes_list", ":", "if", "garment", ".", "db", ".", "clothing_type", ":", "type", "=", "garment", ".", "db", ".", "clothing_type", "if", "t...
[ 170, 0 ]
[ 193, 22 ]
python
en
['en', 'error', 'th']
False
single_type_count
(clothes_list, type)
Returns an integer value of the number of a given type of clothing in a list. Args: clothes_list (list): List of clothing objects to count from type (str): Clothing type to count Returns: type_count (int): Number of garments of the specified type in the given ...
Returns an integer value of the number of a given type of clothing in a list.
def single_type_count(clothes_list, type): """ Returns an integer value of the number of a given type of clothing in a list. Args: clothes_list (list): List of clothing objects to count from type (str): Clothing type to count Returns: type_count (int): Number of garments of the...
[ "def", "single_type_count", "(", "clothes_list", ",", "type", ")", ":", "type_count", "=", "0", "for", "garment", "in", "clothes_list", ":", "if", "garment", ".", "db", ".", "clothing_type", ":", "if", "garment", ".", "db", ".", "clothing_type", "==", "typ...
[ 196, 0 ]
[ 213, 21 ]
python
en
['en', 'error', 'th']
False
Clothing.wear
(self, wearer, wearstyle, quiet=False)
Sets clothes to 'worn' and optionally echoes to the room. Args: wearer (obj): character object wearing this clothing object wearstyle (True or str): string describing the style of wear or True for none Kwargs: quiet (bool): If false, does not message the ro...
Sets clothes to 'worn' and optionally echoes to the room.
def wear(self, wearer, wearstyle, quiet=False): """ Sets clothes to 'worn' and optionally echoes to the room. Args: wearer (obj): character object wearing this clothing object wearstyle (True or str): string describing the style of wear or True for none Kwargs: ...
[ "def", "wear", "(", "self", ",", "wearer", ",", "wearstyle", ",", "quiet", "=", "False", ")", ":", "# Set clothing as worn", "self", ".", "db", ".", "worn", "=", "wearstyle", "# Auto-cover appropirate clothing types, as specified above", "to_cover", "=", "[", "]",...
[ 218, 4 ]
[ 254, 51 ]
python
en
['en', 'error', 'th']
False
Clothing.remove
(self, wearer, quiet=False)
Removes worn clothes and optionally echoes to the room. Args: wearer (obj): character object wearing this clothing object Kwargs: quiet (bool): If false, does not message the room
Removes worn clothes and optionally echoes to the room.
def remove(self, wearer, quiet=False): """ Removes worn clothes and optionally echoes to the room. Args: wearer (obj): character object wearing this clothing object Kwargs: quiet (bool): If false, does not message the room """ self.db.worn = Fals...
[ "def", "remove", "(", "self", ",", "wearer", ",", "quiet", "=", "False", ")", ":", "self", ".", "db", ".", "worn", "=", "False", "remove_message", "=", "\"%s removes %s.\"", "%", "(", "wearer", ",", "self", ".", "name", ")", "uncovered_list", "=", "[",...
[ 256, 4 ]
[ 280, 56 ]
python
en
['en', 'error', 'th']
False
Clothing.at_get
(self, getter)
Makes absolutely sure clothes aren't already set as 'worn' when they're picked up, in case they've somehow had their location changed without getting removed.
Makes absolutely sure clothes aren't already set as 'worn' when they're picked up, in case they've somehow had their location changed without getting removed.
def at_get(self, getter): """ Makes absolutely sure clothes aren't already set as 'worn' when they're picked up, in case they've somehow had their location changed without getting removed. """ self.db.worn = False
[ "def", "at_get", "(", "self", ",", "getter", ")", ":", "self", ".", "db", ".", "worn", "=", "False" ]
[ 282, 4 ]
[ 288, 28 ]
python
en
['en', 'error', 'th']
False
ClothedCharacter.return_appearance
(self, looker)
This formats a description. It is the hook a 'look' command should call. Args: looker (Object): Object doing the looking. Notes: The name of every clothing item carried and worn by the character is appended to their description. If the clothing's db...
This formats a description. It is the hook a 'look' command should call.
def return_appearance(self, looker): """ This formats a description. It is the hook a 'look' command should call. Args: looker (Object): Object doing the looking. Notes: The name of every clothing item carried and worn by the character is app...
[ "def", "return_appearance", "(", "self", ",", "looker", ")", ":", "if", "not", "looker", ":", "return", "\"\"", "# get description, build string", "string", "=", "\"|c%s|n\\n\"", "%", "self", ".", "get_display_name", "(", "looker", ")", "desc", "=", "self", "....
[ 298, 4 ]
[ 335, 21 ]
python
en
['en', 'error', 'th']
False
CmdWear.func
(self)
This performs the actual command.
This performs the actual command.
def func(self): """ This performs the actual command. """ if not self.args: self.caller.msg("Usage: wear <obj> [wear style]") return clothing = self.caller.search(self.arglist[0], candidates=self.caller.contents) wearstyle = True if not clo...
[ "def", "func", "(", "self", ")", ":", "if", "not", "self", ".", "args", ":", "self", ".", "caller", ".", "msg", "(", "\"Usage: wear <obj> [wear style]\"", ")", "return", "clothing", "=", "self", ".", "caller", ".", "search", "(", "self", ".", "arglist", ...
[ 359, 4 ]
[ 398, 45 ]
python
en
['en', 'error', 'th']
False