id
stringlengths
17
116
task
stringclasses
1 value
context_length
stringclasses
1 value
documents
listlengths
10
1.02k
question
stringlengths
332
403
question_with_choices
stringlengths
332
403
answer
stringlengths
40
43.3k
answer_raw
stringlengths
42
43.8k
n_chunks_full
int64
10
61.9k
truncated
bool
2 classes
repo
stringlengths
7
54
target_name
stringlengths
1
72
document_id
int64
2.87k
144k
LDU_FT/git-afsantos/bonsai/walk_preorder
LDU_FT
[ "<BEGIN>\n## `_build_for_statement`", "NOTE: this is not a complete implementation of for loop parsing.\n Turns out for loops allow a number of wacky things going on,\n such as declaring a variable in place of a condition.\n These more peculiar cases are not covered. See\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk_preorder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk_preorder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Iterates the program tree starting from this object, going down.
"Iterates the program tree starting from this object, going down."
111
false
git-afsantos/bonsai
walk_preorder
35,873
LDU_FT/thefab/tornadis/clear
LDU_FT
[ "<BEGIN>\n## `pubsub_pop_message`", "Pops a message for a subscribed client.", " Args:\n deadline (int): max number of seconds to wait (None => no timeout)", " Returns:\n Future with the popped message as result (or None if timeout\n or ConnectionError object...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Resets the object at its initial (empty) state.
"Resets the object at its initial (empty) state."
89
false
thefab/tornadis
clear
35,874
LDU_FT/mlperf/training/eval_detection_voc
LDU_FT
[ "<BEGIN>\n## `sorted_product_set`", "Compute the product set of array_a and array_b and sort it.\n<END>", "<BEGIN>\n## `set_low_quality_matches_`", "Produce additional matches for predictions that have only low-quality matches.\n Specifically, for each ground-truth find the set of predictions that have...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_detection_voc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_detection_voc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Evaluate on voc dataset. Args: pred_boxlists(list[BoxList]): pred boxlist, has labels and scores fields. gt_boxlists(list[BoxList]): ground truth boxlist, has labels field. iou_thresh: iou thresh use_07_metric: boolean Returns: dict represents the results
"Evaluate on voc dataset.\n Args:\n pred_boxlists(list[BoxList]): pred boxlist, has labels and scores fields.\n gt_boxlists(list[BoxList]): ground truth boxlist, has labels field.\n iou_thresh: iou thresh\n use_07_metric: boolean\n Returns:\n dict represents the results"
1,285
true
mlperf/training
eval_detection_voc
35,875
LDU_FT/mjj4791/python-buienradar/parse_xml_data
LDU_FT
[ "<BEGIN>\n## `__to_float`", "Convert val into float with digits decimal.\n<END>", "<BEGIN>\n## `__getBarFC`", "Parse the pressure and return FC (numerical).\n<END>", "<BEGIN>\n## `__getBarFCName`", "Parse the pressure and return FC (String).\n<END>", "<BEGIN>\n## `get_json_data`", "Get buienradar json...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_xml_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_xml_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Parse the raw data and return as data dictionary.
"Parse the raw data and return as data dictionary."
50
false
mjj4791/python-buienradar
parse_xml_data
35,876
LDU_FT/calmjs/calmjs.parse/p_with_statement
LDU_FT
[ "<BEGIN>\n## `optimize_structure_handler`", "Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>", "<BEGIN>\n## `optimize_layout_handler`", "Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_with_statement API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_with_statement API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
with_statement : WITH LPAREN expr RPAREN statement
"with_statement : WITH LPAREN expr RPAREN statement"
253
false
calmjs/calmjs.parse
p_with_statement
35,877
LDU_FT/epfl-lts2/pygsp/set_signal
LDU_FT
[ "<BEGIN>\n## `compute_avg_adj_deg`", "r\"\"\"\n Compute the average adjacency degree for each node.", " The average adjacency degree is the average of the degrees of a node and\n its neighbors.", " Parameters\n ----------\n G: Graph\n Graph on which the statistic is extracted\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_signal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_signal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
r"""Attach a signal to the graph. Attached signals can be accessed (and modified or deleted) through the :attr:`signals` dictionary. Parameters ---------- signal : array_like A sequence that assigns a value to each vertex. The value of the signal at vert...
"r\"\"\"Attach a signal to the graph.\n\n Attached signals can be accessed (and modified or deleted) through the\n :attr:`signals` dictionary.\n\n Parameters\n ----------\n signal : array_like\n A sequence that assigns a value to each vertex.\n The value of the s...
617
false
epfl-lts2/pygsp
set_signal
35,878
LDU_FT/Chilipp/funcargparse/setup_args
LDU_FT
[ "<BEGIN>\n## `get_param_doc`", "Get the documentation and datatype for a parameter", " This function returns the documentation and the argument for a\n napoleon like structured docstring `doc`", " Parameters\n ----------\n doc: str\n The base docstring to use\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add the parameters from the given `func` to the parameter settings Parameters ---------- func: function The function to use. If None, a function will be returned that can be used as a decorator setup_as: str The attribute that shall be assigned to the...
"Add the parameters from the given `func` to the parameter settings\n\n Parameters\n ----------\n func: function\n The function to use. If None, a function will be returned that can\n be used as a decorator\n setup_as: str\n The attribute that shall be assign...
105
false
Chilipp/funcargparse
setup_args
35,879
LDU_FT/lalinsky/python-phoenixdb/cursor
LDU_FT
[ "<BEGIN>\n## `connect`", "Connects to a Phoenix query server.", " :param url:\n URL to the Phoenix query server, e.g. ``http://localhost:8765/``", " :param autocommit:\n Switch the connection to autocommit mode.", " :param readonly:\n Switch the connection to readonly mode.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Creates a new cursor. :param cursor_factory: This argument can be used to create non-standard cursors. The class returned must be a subclass of :class:`~phoenixdb.cursor.Cursor` (for example :class:`~phoenixdb.cursor.DictCursor`). A default factory for the connec...
"Creates a new cursor.\n\n :param cursor_factory:\n This argument can be used to create non-standard cursors.\n The class returned must be a subclass of\n :class:`~phoenixdb.cursor.Cursor` (for example :class:`~phoenixdb.cursor.DictCursor`).\n A default factory for the...
86
false
lalinsky/python-phoenixdb
cursor
35,880
LDU_FT/nickmckay/LiPD-utilities/unwrap_arrays
LDU_FT
[ "<BEGIN>\n## `update_dois`", "Get DOI publication info for a batch of DOIs. This is LiPD-independent and only requires a CSV file with all DOIs\n listed in a single column. The output is LiPD-formatted publication data for each entry.", " :param str csv_source: Local path to CSV file\n :param bool writ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unwrap_arrays API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unwrap_arrays API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Unwrap nested lists to be one "flat" list of lists. Mainly for prepping ensemble data for DataFrame() creation :param list l: Nested lists :return list l2: Flattened lists
"Unwrap nested lists to be one \"flat\" list of lists. Mainly for prepping ensemble data for DataFrame() creation\n\n :param list l: Nested lists\n :return list l2: Flattened lists"
796
false
nickmckay/LiPD-utilities
unwrap_arrays
35,881
LDU_FT/erget/StereoVision/_set_value
LDU_FT
[ "<BEGIN>\n## `get_frames_singleimage`", "Get current left and right frames from a single image,\n by splitting the image in half.\n<END>", "<BEGIN>\n## `show_frames`", "Show current frames from cameras.", " ``wait`` is the wait interval in milliseconds before the window closes.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Try setting new parameter on ``block_matcher`` and update map.
"Try setting new parameter on ``block_matcher`` and update map."
83
false
erget/StereoVision
_set_value
35,882
LDU_FT/ContextLab/quail/load_egg
LDU_FT
[ "<BEGIN>\n## `analyze`", "General analysis function that groups data by subject/list number and performs analysis.", " Parameters\n ----------\n egg : Egg data object\n The data to be analyzed", " subjgroup : list of strings or ints\n String/int variables indicating how to group over...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_egg API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_egg API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Loads pickled egg Parameters ---------- filepath : str Location of pickled egg update : bool If true, updates egg to latest format Returns ---------- egg : Egg data object A loaded unpickled egg
"Loads pickled egg\n\n Parameters\n ----------\n filepath : str\n Location of pickled egg\n\n update : bool\n If true, updates egg to latest format\n\n Returns\n ----------\n egg : Egg data object\n A loaded unpickled egg"
201
false
ContextLab/quail
load_egg
35,883
LDU_FT/Apstra/aeon-venos/get_device
LDU_FT
[ "<BEGIN>\n## `sudoers`", "This method is used to enable/disable bash sudo commands running\n through the guestshell virtual service. By default sudo access\n is prevented due to the setting in the 'sudoers' file. Therefore\n the setting must be disabled in the file to enable sudo commands."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_device API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_device API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Automatically determine device type based on device interrogation. :param target: IP address or hostname of target :param user: Username to login to target :param passwd: Password to login to target :param nos_only: Only check for device nos and return as string, do not return device object :return:...
"Automatically determine device type based on device interrogation.\n :param target: IP address or hostname of target\n :param user: Username to login to target\n :param passwd: Password to login to target\n :param nos_only: Only check for device nos and return as string, do not return device object\n :r...
18
false
Apstra/aeon-venos
get_device
35,884
LDU_FT/deepmind/sonnet/calculate_bias_shape
LDU_FT
[ "<BEGIN>\n## `generate_code`", "Generates code samples.", " Args:\n max_length: int. max literal length.\n max_nest: int. max nesting level.\n ops: CodeOp. set of allowable operations.", " Returns:\n 1. (str) output value.\n 2. (str) Code operation.\n<END>", "<BEGIN>\n## `get_tokens`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_bias_shape API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_bias_shape API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Calculate `bias_shape` based on the `input_shape` and `bias_dims`. Args: input_shape: Shape of the input being passed into the module. The leading dimension is the minibatch size. bias_dims: The dimensions that bias should be applied over. The remaining dimensions will get broadcasted over. ...
"Calculate `bias_shape` based on the `input_shape` and `bias_dims`.\n\n Args:\n input_shape: Shape of the input being passed into the module. The leading\n dimension is the minibatch size.\n bias_dims: The dimensions that bias should be applied over. The remaining\n dimensions will get broadcasted ...
937
false
deepmind/sonnet
calculate_bias_shape
35,885
LDU_FT/angr/pyvex/_lift
LDU_FT
[ "<BEGIN>\n## `lift`", "This is the main body of the \"lifting\" for the instruction.\n This can/should be overriden to provide the general flow of how instructions in your arch work.\n For example, in MSP430, this is:", " - Figure out what your operands are by parsing the addressing, and lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lift API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lift API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Wrapper around the `lift` method on Lifters. Should not be overridden in child classes. :param data: The bytes to lift as either a python string of bytes or a cffi buffer object. :param bytes_offset: The offset into `data` to start lifting at. :param max_bytes: T...
"Wrapper around the `lift` method on Lifters. Should not be overridden in child classes.\n\n :param data: The bytes to lift as either a python string of bytes or a cffi buffer object.\n :param bytes_offset: The offset into `data` to start lifting at.\n :param max_bytes: ...
87
false
angr/pyvex
_lift
35,886
LDU_FT/Nachtfeuer/pipeline/save
LDU_FT
[ "<BEGIN>\n## `calculate_columns`", "Find all row names and the maximum column widths.", " Args:\n columns (dict): the keys are the column name and the value the max length.", " Returns:\n dict: column names (key) and widths (value).\n<END>", "<BEGIN>\n## `calculate_row_format`", "Calcu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Saving stored files at a given path (relative paths are added). Args: path (str): root path where to save the files.
"Saving stored files at a given path (relative paths are added).\n\n Args:\n path (str): root path where to save the files."
196
false
Nachtfeuer/pipeline
save
35,887
LDU_FT/JasonKessler/scattertext/set_categories
LDU_FT
[ "<BEGIN>\n## `coarse_tag_str`", "Convert POS sequence to our coarse system, formatted as a string.\n<END>", "<BEGIN>\n## `extract_finditer`", "The \"GreedyFSA\" method in Handler et al. 2016.\n\tReturns token position spans of valid ngrams.\n<END>", "<BEGIN>\n## `extract_ngram_filter`", "The \"FilterFSA\"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_categories API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_categories API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Specify the category to score. Optionally, score against a specific set of categories.
"Specify the category to score. Optionally, score against a specific set of categories."
419
false
JasonKessler/scattertext
set_categories
35,888
LDU_FT/ttroy50/pyephember/_login
LDU_FT
[ "<BEGIN>\n## `_requires_refresh_token`", "Check if a refresh of the token is needed\n<END>", "<BEGIN>\n## `_login`", "Login using username / password and get the first auth token\n<END>", "<BEGIN>\n## `get_zone`", "Get the information about a particular zone\n<END>", "<BEGIN>\n## `set_target_temperature...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Login using username / password and get the first auth token
"Login using username / password and get the first auth token"
18
false
ttroy50/pyephember
_login
35,889
LDU_FT/inveniosoftware/invenio-assets/init_app
LDU_FT
[ "<BEGIN>\n## `setup`", "Setup filter (only called when filter is actually used).\n<END>", "<BEGIN>\n## `setup`", "Initialize filter just before it will be used.\n<END>", "<BEGIN>\n## `collect_staticroot_removal`", "Remove collect's static root folder from list.\n<END>", "<BEGIN>\n## `init_app`", "Init...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Initialize application object. :param app: An instance of :class:`~flask.Flask`. :param entry_point_group: A name of entry point group used to load ``webassets`` bundles. .. versionchanged:: 1.0.0b2 The *entrypoint* has been renamed to *entry_point_group*.
"Initialize application object.\n\n :param app: An instance of :class:`~flask.Flask`.\n :param entry_point_group: A name of entry point group used to load\n ``webassets`` bundles.\n\n .. versionchanged:: 1.0.0b2\n The *entrypoint* has been renamed to *entry_point_group*."
22
false
inveniosoftware/invenio-assets
init_app
35,890
LDU_FT/KeithSSmith/switcheo-python/sign_execute_withdrawal
LDU_FT
[ "<BEGIN>\n## `neo_get_scripthash_from_address`", "Convert a Public Address String to a ScriptHash (Address) String.", " :param address: The Public address to convert.\n :type address: str\n :return: String containing the converted ScriptHash.\n<END>", "<BEGIN>\n## `num2hexstring`", "Converts a numb...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_execute_withdrawal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_execute_withdrawal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Function to execute the withdrawal request by signing the transaction generated from the create withdrawal function. Execution of this function is as follows:: sign_execute_withdrawal(withdrawal_params=signable_params, private_key=eth_private_key) The expected return result for this function is as fol...
"Function to execute the withdrawal request by signing the transaction generated from the create withdrawal function.\n Execution of this function is as follows::\n\n sign_execute_withdrawal(withdrawal_params=signable_params, private_key=eth_private_key)\n\n The expected return result for this function is ...
218
false
KeithSSmith/switcheo-python
sign_execute_withdrawal
35,891
LDU_FT/rikrd/inspire/recognise_model
LDU_FT
[ "<BEGIN>\n## `load_parameter`", "Load HTK parameter/feature file.", " :param input_filename:\n :param only_header: only load the metadata\n :return: a named tuple representing the HTK parmeter file\n<END>", "<BEGIN>\n## `create_parameter`", "Create a HTK Parameter object from an array of samples an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recognise_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recognise_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Perform recognition using a model and assuming a single word language. If the list_words_filename is == '' then all the words in the dictionary are used as language words.
"Perform recognition using a model and assuming a single word language.\n\n If the list_words_filename is == '' then all the words in the dictionary are used as language words."
91
false
rikrd/inspire
recognise_model
35,892
LDU_FT/Cymmetria/honeycomb/read_lines
LDU_FT
[ "<BEGIN>\n## `config_field_type`", "Validate a config field against a type.", " Similar functionality to :func:`validate_field_matches_type` but returns :obj:`honeycomb.defs.ConfigField`\n<END>", "<BEGIN>\n## `validate_config`", "Validate a JSON file configuration against list of :obj:`honeycomb.defs.Con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_lines API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_lines API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Fetch lines from file. In case the file handler changes (logrotate), reopen the file. :param file_path: Path to file :param empty_lines: Return empty lines :param signal_ready: Report signal ready on start
"Fetch lines from file.\n\n In case the file handler changes (logrotate), reopen the file.\n\n :param file_path: Path to file\n :param empty_lines: Return empty lines\n :param signal_ready: Report signal ready on start"
90
false
Cymmetria/honeycomb
read_lines
35,893
LDU_FT/IntelPython/mkl_fft/rfftn
LDU_FT
[ "<BEGIN>\n## `fft`", "Compute the one-dimensional discrete Fourier Transform.", " This function computes the one-dimensional *n*-point discrete Fourier\n Transform (DFT) with the efficient Fast Fourier Transform (FFT)\n algorithm [CT].", " Parameters\n ----------\n a : array_like\n In...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rfftn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rfftn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Compute the N-dimensional discrete Fourier Transform for real input. This function computes the N-dimensional discrete Fourier Transform over any number of axes in an M-dimensional real array by means of the Fast Fourier Transform (FFT). By default, all axes are transformed, with the real transform pe...
"Compute the N-dimensional discrete Fourier Transform for real input.\n\n This function computes the N-dimensional discrete Fourier Transform over\n any number of axes in an M-dimensional real array by means of the Fast\n Fourier Transform (FFT). By default, all axes are transformed, with the\n real transf...
156
false
IntelPython/mkl_fft
rfftn
35,894
LDU_FT/swift-nav/libsbp/add_callback
LDU_FT
[ "<BEGIN>\n## `read`", "Read wrapper.", " Parameters\n ----------\n size : int\n Number of bytes to read.\n<END>", "<BEGIN>\n## `handle_fields`", "Helper for handling naming and sizing of fields. It's terrible.\n<END>", "<BEGIN>\n## `convert`", "Converts to a C language appr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add per message type or global callback. Parameters ---------- callback : fn Callback function msg_type : int | iterable Message type to register callback against. Default `None` means global callback. Iterable type adds the callback to all the message type...
"Add per message type or global callback.\n\n Parameters\n ----------\n callback : fn\n Callback function\n msg_type : int | iterable\n Message type to register callback against. Default `None` means global callback.\n Iterable type adds the callback to all the mes...
114
false
swift-nav/libsbp
add_callback
35,895
LDU_FT/argaen/aiocache/multi_set
LDU_FT
[ "<BEGIN>\n## `loads`", "Deserialize value using ``msgpack.loads``.", " :param value: bytes\n :returns: obj\n<END>", "<BEGIN>\n## `parse_uri_path`", "Given a uri path, return the Redis specific configuration\n options in that path string according to iana definition\n http://www.i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Stores multiple values in the given keys. :param pairs: list of two element iterables. First is key and second is value :param ttl: int the expiration time in seconds. Due to memcached restrictions if you want compatibility use int. In case you need miliseconds, redis and memory...
"Stores multiple values in the given keys.\n\n :param pairs: list of two element iterables. First is key and second is value\n :param ttl: int the expiration time in seconds. Due to memcached\n restrictions if you want compatibility use int. In case you\n need miliseconds, redis and ...
77
false
argaen/aiocache
multi_set
35,896
LDU_FT/Spirent/py-stcrestclient/create
LDU_FT
[ "<BEGIN>\n## `url`", "Construct a URL from the given components.\n<END>", "<BEGIN>\n## `download_file`", "Download a file.", " If a timeout defined, it is not a time limit on the entire download;\n rather, an exception is raised if the server has not issued a response\n for timeout seco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create a new automation object. Arguments: object_type -- Type of object to create. under -- Handle of the parent of the new object. attributes -- Dictionary of attributes (name-value pairs). kwattrs -- Optional keyword attributes (name=value pairs). Return: ...
"Create a new automation object.\n\n Arguments:\n object_type -- Type of object to create.\n under -- Handle of the parent of the new object.\n attributes -- Dictionary of attributes (name-value pairs).\n kwattrs -- Optional keyword attributes (name=value pairs).\n\n ...
102
false
Spirent/py-stcrestclient
create
35,897
LDU_FT/eugene-eeo/mailthon/format_addresses
LDU_FT
[ "<BEGIN>\n## `guess`", "Using the mimetypes library, guess the mimetype and\n encoding for a given *filename*. If the mimetype\n cannot be guessed, *fallback* is assumed instead.", " :param filename: Filename- can be absolute path.\n :param fallback: A fallback mimetype.\n<END>", "<BEGIN>\n## `for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_addresses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_addresses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Given an iterable of addresses or name-address tuples *addrs*, return a header value that joins all of them together with a space and a comma.
"Given an iterable of addresses or name-address\n tuples *addrs*, return a header value that joins\n all of them together with a space and a comma."
31
false
eugene-eeo/mailthon
format_addresses
35,898
LDU_FT/PolyJIT/benchbuild/exit_code_from_run_infos
LDU_FT
[ "<BEGIN>\n## `write_makeconfig`", "Write a valid gentoo make.conf file to :path:.", " Args:\n path - The output path of the make.conf\n<END>", "<BEGIN>\n## `write_bashrc`", "Write a valid gentoo bashrc file to :path:.", " Args:\n path - The output path of the make.conf\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exit_code_from_run_infos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exit_code_from_run_infos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Generate a single exit code from a list of RunInfo objects. Takes a list of RunInfos and returns the exit code that is furthest away from 0. Args: run_infos (t.List[RunInfo]): [description] Returns: int: [description]
"Generate a single exit code from a list of RunInfo objects.\n\n Takes a list of RunInfos and returns the exit code that is furthest away\n from 0.\n\n Args:\n run_infos (t.List[RunInfo]): [description]\n\n Returns:\n int: [description]"
401
false
PolyJIT/benchbuild
exit_code_from_run_infos
35,899
LDU_FT/thefab/tornadis/get_client_nowait
LDU_FT
[ "<BEGIN>\n## `pubsub_pop_message`", "Pops a message for a subscribed client.", " Args:\n deadline (int): max number of seconds to wait (None => no timeout)", " Returns:\n Future with the popped message as result (or None if timeout\n or ConnectionError object...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_client_nowait API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_client_nowait API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Gets a Client object (not necessary connected). If max_size is reached, this method will return None (and won't block). Returns: A Client instance (not necessary connected) as result (or None).
"Gets a Client object (not necessary connected).\n\n If max_size is reached, this method will return None (and won't block).\n\n Returns:\n A Client instance (not necessary connected) as result (or None)."
89
false
thefab/tornadis
get_client_nowait
35,900
LDU_FT/dhondta/tinyscript/_sorted_actions
LDU_FT
[ "<BEGIN>\n## `_filtered_actions`", "Get actions filtered on a list of action types.", " :param a_type: argparse.Action instance name (e.g. count, append)\n<END>", "<BEGIN>\n## `_input_arg`", "Ask the user for input of a single argument.", " :param a: argparse.Action instance\n :return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sorted_actions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sorted_actions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Generate the sorted list of actions based on the "last" attribute.
"Generate the sorted list of actions based on the \"last\" attribute."
74
false
dhondta/tinyscript
_sorted_actions
35,901
LDU_FT/google-research/batch-ppo/submit
LDU_FT
[ "<BEGIN>\n## `count_weights`", "Count learnable parameters.", " Args:\n scope: Restrict the count to a variable scope.\n exclude: Regex to match variable names to exclude.\n graph: Operate on a graph other than the current default graph.", " Returns:\n Number of learnable parameters as integer.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Submit a single or batch tensor to refine the streaming mean.
"Submit a single or batch tensor to refine the streaming mean."
362
false
google-research/batch-ppo
submit
35,902
LDU_FT/reincubate/ricloud/_set_allowed_services_and_actions
LDU_FT
[ "<BEGIN>\n## `error_message_and_exit`", "Prints error messages in blue, the failed task result and quits.\n<END>", "<BEGIN>\n## `print_prompt_values`", "Prints prompt title and choices with a bit of formatting.\n<END>", "<BEGIN>\n## `prompt_for_input`", "Prints prompt instruction and does basic input pars...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_allowed_services_and_actions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_allowed_services_and_actions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Expect services to be a list of service dictionaries, each with `name` and `actions` keys.
"Expect services to be a list of service dictionaries, each with `name` and `actions` keys."
50
false
reincubate/ricloud
_set_allowed_services_and_actions
35,903
LDU_FT/jssimporter/python-jss/exists
LDU_FT
[ "<BEGIN>\n## `get`", "GET a url, handle errors, and return an etree.", " In general, it is better to use a higher level interface for\n API requests, like the search methods on this class, or the\n JSSObjects themselves.", " Args:\n url_path: String API endpoint path to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Report whether a file exists on the distribution point. Determines file type by extension. Args: filename: Filename you wish to check. (No path! e.g.: "AdobeFlashPlayer-14.0.0.176.pkg")
"Report whether a file exists on the distribution point.\n\n Determines file type by extension.\n\n Args:\n filename: Filename you wish to check. (No path! e.g.:\n \"AdobeFlashPlayer-14.0.0.176.pkg\")"
331
false
jssimporter/python-jss
exists
35,904
LDU_FT/jedie/DragonPy/_posix_get_window_size
LDU_FT
[ "<BEGIN>\n## `create_environment`", "Creates a new environment in ``home_dir``.", " If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.", " If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>", "<BEGIN>\n## `path...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _posix_get_window_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _posix_get_window_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return (width, height) of console terminal on POSIX system. (0, 0) on IOError, i.e. when no console is allocated.
"Return (width, height) of console terminal on POSIX system.\n (0, 0) on IOError, i.e. when no console is allocated."
223
false
jedie/DragonPy
_posix_get_window_size
35,905
LDU_FT/gwastro/pycbc-glue/reset_next_ids
LDU_FT
[ "<BEGIN>\n## `component_offsetvectors`", "Given an iterable of offset vectors, return the shortest list of\n\tthe unique n-instrument offset vectors from which all the vectors\n\tin the input iterable can be constructed. This can be used to\n\tdetermine the minimal set of n-instrument coincs required to\n\tconst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_next_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_next_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
For each class in the list, if the .next_id attribute is not None (meaning the table has an ID generator associated with it), set .next_id to 0. This has the effect of reseting the ID generators, and is useful in applications that process multiple documents and add new rows to tables in those documents. Calling t...
"For each class in the list, if the .next_id attribute is not None\n\t(meaning the table has an ID generator associated with it), set\n\t.next_id to 0. This has the effect of reseting the ID generators,\n\tand is useful in applications that process multiple documents and\n\tadd new rows to tables in those documents. ...
1,048
true
gwastro/pycbc-glue
reset_next_ids
35,906
LDU_FT/thebjorn/pydeps/name2rgb
LDU_FT
[ "<BEGIN>\n## `write`", "Write ``txt`` to file and output stream (StringIO).\n<END>", "<BEGIN>\n## `write_attributes`", "Write comma separated attribute values (if exists).\n<END>", "<BEGIN>\n## `is_noise`", "Is this module just noise? (too common either at top or bottom of\n the graph).\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name2rgb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name2rgb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Originally used to calculate color based on module name.
"Originally used to calculate color based on module name."
60
false
thebjorn/pydeps
name2rgb
35,907
LDU_FT/dnanhkhoa/logone/use_loggly
LDU_FT
[ "<BEGIN>\n## `get_logger`", "Return a logger with the specified name, creating it if necessary.\n<END>", "<BEGIN>\n## `set_level`", "Set the logging level of this logger.", " :param level: must be an int or a str.\n<END>", "<BEGIN>\n## `redirect_stdout`", "Redirect sys.stdout to file-like object....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_loggly API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_loggly API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Enable handler for sending the record to Loggly service.
"Enable handler for sending the record to Loggly service."
19
false
dnanhkhoa/logone
use_loggly
35,908
LDU_FT/zsethna/OLGA/gen_rnd_prod_CDR3
LDU_FT
[ "<BEGIN>\n## `nt2aa`", "Translate a nucleotide sequence into an amino acid sequence.", " Parameters\n ----------\n ntseq : str\n Nucleotide sequence composed of A, C, G, or T (uppercase or lowercase)", " Returns\n -------\n aaseq : str\n Amino acid sequence", " Example\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_rnd_prod_CDR3 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_rnd_prod_CDR3 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Generate a productive CDR3 seq from a Monte Carlo draw of the model. Parameters ---------- conserved_J_residues : str, optional Conserved amino acid residues defining the CDR3 on the J side (normally F, V, and/or W) Returns ------- ntseq : str ...
"Generate a productive CDR3 seq from a Monte Carlo draw of the model.\n\n Parameters\n ----------\n conserved_J_residues : str, optional\n Conserved amino acid residues defining the CDR3 on the J side (normally\n F, V, and/or W)\n\n Returns\n -------\n nts...
287
false
zsethna/OLGA
gen_rnd_prod_CDR3
35,909
LDU_FT/abw333/dominoes/_all_possible_partitionings
LDU_FT
[ "<BEGIN>\n## `_randomized_hands`", ":return: 4 hands, obtained by shuffling the 28 dominoes used in\n this variation of the game, and distributing them evenly\n<END>", "<BEGIN>\n## `_validate_player`", "Checks that a player is a valid player. Valid players are: 0, 1, 2, and 3.", " :param int ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _all_possible_partitionings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _all_possible_partitionings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Helper function for Game.all_possible_hands(). Given a set of elements and the sizes of partitions, yields all possible partitionings of the elements into partitions of the provided sizes. :param set elements: a set of elements to partition. :param list sizes: a list of sizes for the partitions. The su...
"Helper function for Game.all_possible_hands(). Given a set of elements\n and the sizes of partitions, yields all possible partitionings of the\n elements into partitions of the provided sizes.\n\n :param set elements: a set of elements to partition.\n :param list sizes: a list of sizes for the partitions. ...
70
false
abw333/dominoes
_all_possible_partitionings
35,910
LDU_FT/nephila/django-knocker/as_knock
LDU_FT
[ "<BEGIN>\n## `notify_items`", "Signal endpoint that actually sends knocks whenever an instance is created / saved\n<END>", "<BEGIN>\n## `active_knocks`", "Checks whether knocks are enabled for the model given as argument", " :param obj: model instance\n :return True if knocks are active\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_knock API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_knock API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns a dictionary with the knock data built from _knocker_data
"Returns a dictionary with the knock data built from _knocker_data"
16
false
nephila/django-knocker
as_knock
35,911
LDU_FT/envi-idl/envipyengine/set
LDU_FT
[ "<BEGIN>\n## `task`", "Returns an ENVI Py Engine Task object. See ENVI Py Engine Task for examples.", " :param task_name: The name of the task to retrieve.\n :return: An ENVI Py Engine Task object.\n<END>", "<BEGIN>\n## `tasks`", "Returns a list of all tasks known to the engine.", " :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Sets the configuration property to the specified value. :param property_name: The name of the property to set. :param value: The value for the property. :keyword system: Set to True to modify the system configuration file. If not set, the user config file will be modified.
"Sets the configuration property to the specified value.\n\n :param property_name: The name of the property to set.\n :param value: The value for the property.\n :keyword system: Set to True to modify the system configuration file.\n If not set, the user config file will be modified."
42
false
envi-idl/envipyengine
set
35,912
LDU_FT/openvax/pepdata/_prepare_memoization_key
LDU_FT
[ "<BEGIN>\n## `local_path`", "Downloads allele database from IEDB, returns local path to XML file.\n<END>", "<BEGIN>\n## `load_alleles`", "Parses the IEDB MhcAlleleName XML file and returns a list of Allele\n namedtuple objects containing information about that each allele's HLA\n class and source organi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_memoization_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_memoization_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Make a tuple of arguments which can be used as a key for a memoized function's lookup_table. If some object can't be hashed then used its __repr__ instead.
"Make a tuple of arguments which can be used as a key\n for a memoized function's lookup_table. If some object can't be hashed\n then used its __repr__ instead."
40
false
openvax/pepdata
_prepare_memoization_key
35,913
LDU_FT/jaraco/irc/process_data
LDU_FT
[ "<BEGIN>\n## `handle_nick`", "Handle the initial setting of the user's nickname and nick changes.\n<END>", "<BEGIN>\n## `handle_user`", "Handle the USER command which identifies the user to the server.\n<END>", "<BEGIN>\n## `handle_join`", "Handle the JOINing of a user to a channel. Valid channel names st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Called when there is more data to read on connection sockets. Arguments: sockets -- A list of socket objects. See documentation for Reactor.__init__.
"Called when there is more data to read on connection sockets.\n\n Arguments:\n\n sockets -- A list of socket objects.\n\n See documentation for Reactor.__init__."
193
false
jaraco/irc
process_data
35,914
LDU_FT/mickbad/mblibs/working_tomorrow
LDU_FT
[ "<BEGIN>\n## `reload`", "fonction de chargement automatique de la configuration\n\t\t\tdepuis le fichier extérieur\n<END>", "<BEGIN>\n## `get`", "Récupération d'une configuration \n\t\t\tle paramètre ```name``` peut être soit un nom ou \n\t\t\tun chemin vers la valeur (séparateur /)", "\t\t\t```parent_searc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the working_tomorrow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the working_tomorrow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Retourne la date de demain depuis maintenant ou depuis une date fournie seulement sur les jours ouvrableq. Ainsi lundi devient samedi et samedi devient vendredi :param: :date_from date de référence :return datetime
"Retourne la date de demain depuis maintenant ou depuis une date fournie\n\t\tseulement sur les jours ouvrableq.\n\t\tAinsi lundi devient samedi et samedi devient vendredi\n\n\t\t:param: :date_from date de référence\n\t\t:return datetime"
52
false
mickbad/mblibs
working_tomorrow
35,915
LDU_FT/dvdotsenko/jsonrpc.py/call
LDU_FT
[ "<BEGIN>\n## `clean_dict_keys`", "Convert all keys of the dict 'd' to (ascii-)strings.", " :Raises: UnicodeEncodeError\n<END>", "<BEGIN>\n## `json_dumps`", "A rewrap of json.dumps done for one reason - to inject a custom `cls` kwarg", " :param obj:\n :param kwargs:\n :return:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
In context of a batch we return the request's ID else we return the actual json
"In context of a batch we return the request's ID\n else we return the actual json"
58
false
dvdotsenko/jsonrpc.py
call
35,916
LDU_FT/marshmallow-code/apispec/schema_helper
LDU_FT
[ "<BEGIN>\n## `load_operations_from_docstring`", "Return a dictionary of OpenAPI operations parsed from a\n a docstring.\n<END>", "<BEGIN>\n## `resolve_schema_instance`", "Return schema instance for given schema (instance or class)", " :param type|Schema|str schema: instance, class or class name of mar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schema_helper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schema_helper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Definition helper that allows using a marshmallow :class:`Schema <marshmallow.Schema>` to provide OpenAPI metadata. :param type|Schema schema: A marshmallow Schema class or instance.
"Definition helper that allows using a marshmallow\n :class:`Schema <marshmallow.Schema>` to provide OpenAPI\n metadata.\n\n :param type|Schema schema: A marshmallow Schema class or instance."
149
false
marshmallow-code/apispec
schema_helper
35,917
LDU_FT/django-fluent/django-fluent-comments/get_comments_for_model
LDU_FT
[ "<BEGIN>\n## `moderate_model`", "Register a parent model (e.g. ``Blog`` or ``Article``) that should receive comment moderation.", " :param ParentModel: The parent model, e.g. a ``Blog`` or ``Article`` model.\n :param publication_date_field: The field name of a :class:`~django.db.models.DateTimeField` in t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_comments_for_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_comments_for_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return the QuerySet with all comments for a given model.
"Return the QuerySet with all comments for a given model."
39
false
django-fluent/django-fluent-comments
get_comments_for_model
35,918
LDU_FT/bachiraoun/pysimplelog/log
LDU_FT
[ "<BEGIN>\n## `__stream_format_allowed`", "Check whether a stream allows formatting such as coloring.\n Inspired from Python cookbook, #475186\n<END>", "<BEGIN>\n## `lastLogged`", "Get a dictionary of last logged messages.\n Keys are log types and values are the the last messages.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
log a message of a certain logtype. :Parameters: #. logType (string): A defined logging type. #. message (string): Any message to log. #. data (None, object): Any type of data to print and/or write to log file after log message #. tback (None, str, lis...
"log a message of a certain logtype.\n\n :Parameters:\n #. logType (string): A defined logging type.\n #. message (string): Any message to log.\n #. data (None, object): Any type of data to print and/or write to log file\n after log message\n #. tback (None, ...
56
false
bachiraoun/pysimplelog
log
35,919
LDU_FT/edwards-lab/MVtest/RunAnalysis
LDU_FT
[ "<BEGIN>\n## `standardize`", "Standardize the variables within a range [-1.0 and 1.0]", " This replaces the local copies of this data. When it's time to\n scale back, use destandardize from the datasource for that.\n<END>", "<BEGIN>\n## `destandardize`", "Revert the betas and variance componen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the RunAnalysis API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the RunAnalysis API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Run the actual analysis on all valid loci for each phenotype :param dataset: GWAS parser object :param pheno_covar: holds all of the variables This acts as a standard iterator, returning a single MVResult for each locus/phenotype combination. Missing is evaluated as anything missing in any of the...
"Run the actual analysis on all valid loci for each phenotype\n\n :param dataset: GWAS parser object\n :param pheno_covar: holds all of the variables\n\n This acts as a standard iterator, returning a single MVResult for\n each locus/phenotype combination.\n\n Missing is evaluated as anything missing in a...
44
false
edwards-lab/MVtest
RunAnalysis
35,920
LDU_FT/emichael/PyREM/_rsync_cmd
LDU_FT
[ "<BEGIN>\n## `synchronized`", "Function decorator to make function synchronized on ``self._lock``.", " If the first argument to the function (hopefully self) does not have a _lock\n attribute, then this decorator does nothing.\n<END>", "<BEGIN>\n## `cleanup`", "Stop all started tasks on system exit.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rsync_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rsync_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Helper method to generate base rsync command.
"Helper method to generate base rsync command."
41
false
emichael/PyREM
_rsync_cmd
35,921
LDU_FT/IrvKalb/pygwidgets/draw
LDU_FT
[ "<BEGIN>\n## `setLoc`", "Sets a new location (and changes the rect loc) for this widget.\n<END>", "<BEGIN>\n## `handleEvent`", "This method should be called every time through the main loop.\r", " It handles showing the up, over, and down states of the button.\r", " Parameters:\r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Draws the button in its current state. Should be called every time through the main loop
"Draws the button in its current state.\r\n\r\n Should be called every time through the main loop"
70
false
IrvKalb/pygwidgets
draw
35,922
LDU_FT/aws/sagemaker-python-sdk/_prepare_init_params_from_job_description
LDU_FT
[ "<BEGIN>\n## `deploy`", "Deploy this ``Model`` to an ``Endpoint`` and optionally return a ``Predictor``.", " Create a SageMaker ``Model`` and ``EndpointConfig``, and deploy an ``Endpoint`` from this ``Model``.\n If ``self.predictor_cls`` is not None, this method returns a the result of invoking\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_init_params_from_job_description API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_init_params_from_job_description API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica...
Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_name (str): Name of the channel where pre-trained model data will be downloaded Returns: ...
"Convert the job description to init params that can be handled by the class constructor\n\n Args:\n job_details: the returned job details from a describe_training_job API call.\n model_channel_name (str): Name of the channel where pre-trained model data will be downloaded\n\n Return...
796
false
aws/sagemaker-python-sdk
_prepare_init_params_from_job_description
35,923
LDU_FT/storax/jinjaapidoc/import_name
LDU_FT
[ "<BEGIN>\n## `prepare_dir`", "Create apidoc dir, delete contents if delete is True.", " :param app: the sphinx app\n :type app: :class:`sphinx.application.Sphinx`\n :param directory: the apidoc directory. you can use relative paths here\n :type directory: str\n :param delete: if True, deletes the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Import the given name and return name, obj, parent, mod_name :param name: name to import :type name: str :returns: the imported object or None :rtype: object | None :raises: None
"Import the given name and return name, obj, parent, mod_name\n\n :param name: name to import\n :type name: str\n :returns: the imported object or None\n :rtype: object | None\n :raises: None"
58
false
storax/jinjaapidoc
import_name
35,924
LDU_FT/0101/pipetools/take_until_including
LDU_FT
[ "<BEGIN>\n## `pipe_util`", "Decorator that handles X objects and partial application for pipe-utils.\n<END>", "<BEGIN>\n## `auto_string_formatter`", "Decorator that handles automatic string formatting.", " By converting a string argument to a function that does formatting on said\n string.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the take_until_including API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the take_until_including API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
>>> [1, 4, 6, 4, 1] > take_until_including(X > 5) | list [1, 4, 6]
">>> [1, 4, 6, 4, 1] > take_until_including(X > 5) | list\n [1, 4, 6]"
46
false
0101/pipetools
take_until_including
35,925
LDU_FT/MozillaSecurity/dharma/parse_xrefs
LDU_FT
[ "<BEGIN>\n## `generate`", "Return a random variable if any, otherwise create a new default variable.\n<END>", "<BEGIN>\n## `process_settings`", "A lazy way of feeding Dharma with configuration settings.\n<END>", "<BEGIN>\n## `parse_xrefs`", "Search token for +value+ and !variable! style references. Be car...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_xrefs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_xrefs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Search token for +value+ and !variable! style references. Be careful to not xref a new variable.
"Search token for +value+ and !variable! style references. Be careful to not xref a new variable."
12
false
MozillaSecurity/dharma
parse_xrefs
35,926
LDU_FT/aws/sagemaker-python-sdk/fit
LDU_FT
[ "<BEGIN>\n## `deploy`", "Deploy this ``Model`` to an ``Endpoint`` and optionally return a ``Predictor``.", " Create a SageMaker ``Model`` and ``EndpointConfig``, and deploy an ``Endpoint`` from this ``Model``.\n If ``self.predictor_cls`` is not None, this method returns a the result of invoking\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Start a hyperparameter tuning job. Args: inputs: Information about the training data. Please refer to the ``fit()`` method of the associated estimator, as this can take any of the following forms: * (str) - The S3 location where training data is saved. ...
"Start a hyperparameter tuning job.\n\n Args:\n inputs: Information about the training data. Please refer to the ``fit()`` method of\n the associated estimator, as this can take any of the following forms:\n\n * (str) - The S3 location where training data is saved.\n ...
796
false
aws/sagemaker-python-sdk
fit
35,927
LDU_FT/rsgalloway/grit/respond
LDU_FT
[ "<BEGIN>\n## `assemble_WSGI_git_app`", "Assembles basic WSGI-compatible application providing functionality of git-http-backend.\r", " content_path (Defaults to '.' = \"current\" directory)\r\n The path to the folder that will be the root of served files. Accepts relative paths.\r", " uri_marker ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the respond API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the respond API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Call the gateway and write its iterable output.
"Call the gateway and write its iterable output."
222
false
rsgalloway/grit
respond
35,928
LDU_FT/Syndace/python-xeddsa/mont_pub_to_ed_pub
LDU_FT
[ "<BEGIN>\n## `mont_pub_from_mont_priv`", "Restore the Montgomery public key from a Montgomery private key.", " :param mont_priv: A bytes-like object encoding the private key with length\n MONT_PRIV_KEY_SIZE.\n :returns: A bytes-like object encoding the public key with length\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mont_pub_to_ed_pub API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mont_pub_to_ed_pub API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Derive a Twisted Edwards public key from given Montgomery public key. :param mont_pub: A bytes-like object encoding the public key with length MONT_PUB_KEY_SIZE. :returns: A bytes-like object encoding the public key with length ED_PUB_KEY_SIZE.
"Derive a Twisted Edwards public key from given Montgomery public key.\n\n :param mont_pub: A bytes-like object encoding the public key with length\n MONT_PUB_KEY_SIZE.\n :returns: A bytes-like object encoding the public key with length ED_PUB_KEY_SIZE."
17
false
Syndace/python-xeddsa
mont_pub_to_ed_pub
35,929
LDU_FT/jjgomera/iapws/_Backward3_v_PT
LDU_FT
[ "<BEGIN>\n## `_Tb`", "Procedure to calculate the boiling temperature of seawater", " Parameters\n ----------\n P : float\n Pressure, [MPa]\n S : float\n Salinity, [kg/kg]", " Returns\n -------\n Tb : float\n Boiling temperature, [K]", " References\n ----------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _Backward3_v_PT API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _Backward3_v_PT API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Backward equation for region 3, v=f(P,T) Parameters ---------- T : float Temperature, [K] P : float Pressure, [MPa] Returns ------- v : float Specific volume, [m³/kg] References ---------- IAPWS, Revised Supplementary Release on Backward Equations for S...
"Backward equation for region 3, v=f(P,T)\n\n Parameters\n ----------\n T : float\n Temperature, [K]\n P : float\n Pressure, [MPa]\n\n Returns\n -------\n v : float\n Specific volume, [m³/kg]\n\n References\n ----------\n IAPWS, Revised Supplementary Release on Backwar...
574
false
jjgomera/iapws
_Backward3_v_PT
35,930
LDU_FT/Azure/azure-multiapi-storage-python/get_request_row_key
LDU_FT
[ "<BEGIN>\n## `_extract_encryption_metadata`", "Extracts the encryption metadata from the given entity, setting them to be utf-8 strings.\n If no encryption metadata is present, will return None for all return values unless\n require_encryption is true, in which case the method will throw.", " :param en...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_request_row_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_request_row_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Extracts RowKey from request.body if it is a POST request or from request.path if it is not a POST request. Only insert operation request is a POST request and the Rowkey is in the request body. request: the request to insert, update or delete entity
"Extracts RowKey from request.body if it is a POST request or from\n request.path if it is not a POST request. Only insert operation request\n is a POST request and the Rowkey is in the request body.\n\n request:\n the request to insert, update or delete entity"
364
false
Azure/azure-multiapi-storage-python
get_request_row_key
35,931
LDU_FT/yakupadakli/python-unsplash/update
LDU_FT
[ "<BEGIN>\n## `all`", "Get a single page from the list of all photos.", " :param page [integer]: Page number to retrieve. (Optional; default: 1)\n :param per_page [integer]: Number of items per page. (Optional; default: 10)\n :param order_by [string]: How to sort the photos. Optional.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update the currently-logged in user. Note: This action requires the write_user scope. Without it, it will return a 403 Forbidden response. All parameters are optional. :param username [string]: Username. :param first_name [string]: First name. :param last_name [string]:...
"Update the currently-logged in user.\n\n Note: This action requires the write_user scope.\n Without it, it will return a 403 Forbidden response.\n\n All parameters are optional.\n :param username [string]: Username.\n :param first_name [string]: First name.\n :param last_name ...
107
false
yakupadakli/python-unsplash
update
35,932
LDU_FT/lepture/captcha/create_captcha_image
LDU_FT
[ "<BEGIN>\n## `generate`", "Generate an Image Captcha of the given characters.", " :param chars: text to be generated.\n :param format: image file format\n<END>", "<BEGIN>\n## `write`", "Generate and write an image CAPTCHA data to the output.", " :param chars: text to be generated.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_captcha_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_captcha_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create the CAPTCHA image itself. :param chars: text to be generated. :param color: color of the text. :param background: color of the background. The color should be a tuple of 3 numbers, such as (0, 255, 255).
"Create the CAPTCHA image itself.\n\n :param chars: text to be generated.\n :param color: color of the text.\n :param background: color of the background.\n\n The color should be a tuple of 3 numbers, such as (0, 255, 255)."
26
false
lepture/captcha
create_captcha_image
35,933
LDU_FT/iKevinY/EulerPy/filename
LDU_FT
[ "<BEGIN>\n## `problem_glob`", "Returns ProblemFile objects for all valid problem files\n<END>", "<BEGIN>\n## `human_time`", "Formats the timespan in a human readable format\n<END>", "<BEGIN>\n## `format_time`", "Returns string with relevant time information formatted properly\n<END>", "<BEGIN>\n## `file...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns filename padded with leading zeros
"Returns filename padded with leading zeros"
24
false
iKevinY/EulerPy
filename
35,934
LDU_FT/vstconsulting/vstutils/get_render
LDU_FT
[ "<BEGIN>\n## `load_yaml`", "Load OpenAPI specification from yaml file. Path to file taking from command\n `vst_openapi`.\n :return:\n<END>", "<BEGIN>\n## `write`", "Add lines to ViewList, for further rendering.\n :param value: --line that would be added to render list\n :type value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Render string based on template :param name: -- full template name :type name: str,unicode :param data: -- dict of rendered vars :type data: dict :param trans: -- translation for render. Default 'en'. :type trans: str,unicode :return: -- rendered string :rtype: str,unicode
"Render string based on template\n\n :param name: -- full template name\n :type name: str,unicode\n :param data: -- dict of rendered vars\n :type data: dict\n :param trans: -- translation for render. Default 'en'.\n :type trans: str,unicode\n :return: -- rendered string\n :rtype: str,unicode"
68
false
vstconsulting/vstutils
get_render
35,935
LDU_FT/scrapinghub/exporters/get_next_batch
LDU_FT
[ "<BEGIN>\n## `formatted_prefix`", "Gets a dict with format info, and formats a prefix template with that info. For example:\n if our prefix template is:\n 'some_file_{groups[0]}_{file_number}'", " And we have this method called with:", " formatted_prefix(groups=[US], file_number=0)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_batch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_batch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
This method is called from the manager. It must return a list or a generator of BaseRecord objects. When it has nothing else to read, it must set class variable "finished" to True.
"This method is called from the manager. It must return a list or a generator\n of BaseRecord objects.\n When it has nothing else to read, it must set class variable \"finished\" to True."
90
false
scrapinghub/exporters
get_next_batch
35,936
LDU_FT/VasilyStepanov/pywidl/p_OptionalOrRequiredArgument_optional
LDU_FT
[ "<BEGIN>\n## `p_Interface`", "Interface : interface IDENTIFIER Inheritance \"{\" InterfaceMembers \"}\" \";\"\n<END>", "<BEGIN>\n## `p_Dictionary`", "Dictionary : dictionary IDENTIFIER Inheritance \"{\" DictionaryMembers \"}\" \";\"\n<END>", "<BEGIN>\n## `p_DictionaryMember`", "DictionaryMember : Type IDE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_OptionalOrRequiredArgument_optional API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_OptionalOrRequiredArgument_optional API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
OptionalOrRequiredArgument : optional Type IDENTIFIER Default
"OptionalOrRequiredArgument : optional Type IDENTIFIER Default"
34
false
VasilyStepanov/pywidl
p_OptionalOrRequiredArgument_optional
35,937
LDU_FT/confirm/ansibleci/info
LDU_FT
[ "<BEGIN>\n## `add_module`", "Adds configuration parameters from a Python module.\n<END>", "<BEGIN>\n## `get_absolute_path`", "Returns the absolute path of the ``path`` argument.", " If ``path`` is already absolute, nothing changes. If the ``path`` is\n relative, then the BASEDIR will be prepen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Logs an informational message to stdout. This method should only be used by the Runner.
"Logs an informational message to stdout.\n\n This method should only be used by the Runner."
26
false
confirm/ansibleci
info
35,938
LDU_FT/etcher-be/emiz/reorder
LDU_FT
[ "<BEGIN>\n## `unit_pos_to_spot`", "Translates a unit position to a known parking spot", " Args:\n unit_pos: unit position as Vec2", " Returns: ParkingSpot object\n<END>", "<BEGIN>\n## `_tdec`", "Translates a 4-digit decimal temperature representation", " Ex: 1045 -> -4.5°C 0237 -> 23....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reorder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reorder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Re-orders a miz file into a folder (flattened) Args: miz_file_path: source miz file target_dir: folder to flatten the content into skip_options_file: do not re-order option file
"Re-orders a miz file into a folder (flattened)\n\n Args:\n miz_file_path: source miz file\n target_dir: folder to flatten the content into\n skip_options_file: do not re-order option file"
297
false
etcher-be/emiz
reorder
35,939
LDU_FT/click-contrib/sphinx-click/_get_help_record
LDU_FT
[ "<BEGIN>\n## `_get_usage`", "Alternative, non-prefixed version of 'get_usage'.\n<END>", "<BEGIN>\n## `_get_help_record`", "Re-implementation of click.Opt.get_help_record.", " The variant of 'get_help_record' found in Click makes uses of slashes to\n separate multiple opts, and formats option arguments...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_help_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_help_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Re-implementation of click.Opt.get_help_record. The variant of 'get_help_record' found in Click makes uses of slashes to separate multiple opts, and formats option arguments using upper case. This is not compatible with Sphinx's 'option' directive, which expects comma-separated opts and option argument...
"Re-implementation of click.Opt.get_help_record.\n\n The variant of 'get_help_record' found in Click makes uses of slashes to\n separate multiple opts, and formats option arguments using upper case. This\n is not compatible with Sphinx's 'option' directive, which expects\n comma-separated opts and option ar...
25
false
click-contrib/sphinx-click
_get_help_record
35,940
LDU_FT/rbarrois/throttle/leak
LDU_FT
[ "<BEGIN>\n## `get_bucket`", "Fetch a Bucket for the given key.", " rate and capacity might be overridden from the Throttler defaults.", " Args:\n rate (float): Units regenerated by second, or None to keep\n Throttler defaults\n capacity (int): Maximum units a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the leak API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the leak API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Leak the adequate amount of data from the bucket. This should be called before any consumption takes place. Returns: int: the new capacity of the bucket
"Leak the adequate amount of data from the bucket.\n\n This should be called before any consumption takes place.\n\n Returns:\n int: the new capacity of the bucket"
24
false
rbarrois/throttle
leak
35,941
LDU_FT/spyder-ide/spyder-kernels/_is_image
LDU_FT
[ "<BEGIN>\n## `get_numpy_dtype`", "Return NumPy data type associated to obj\n Return None if NumPy is not available\n or if obj is not a NumPy array or scalar\n<END>", "<BEGIN>\n## `address`", "Return object address as a string: '<classname @ address>\n<END>", "<BEGIN>\n## `get_size`", "Return size o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return True if variable is a PIL.Image image
"Return True if variable is a PIL.Image image"
125
false
spyder-ide/spyder-kernels
_is_image
35,942
LDU_FT/brandon-rhodes/python-adventure/resume
LDU_FT
[ "<BEGIN>\n## `add_synonym`", "Every word in a group of synonyms shares the same list.\n<END>", "<BEGIN>\n## `play`", "Turn the Python prompt into an Adventure game.", " With optional the `seed` argument the caller can supply an integer\n to start the Python random number generator at a known state.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resume API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resume API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns an Adventure game saved to the given file.
"Returns an Adventure game saved to the given file."
17
false
brandon-rhodes/python-adventure
resume
35,943
LDU_FT/mnooner256/pyqrcode/_text
LDU_FT
[ "<BEGIN>\n## `create`", "When creating a QR code only the content to be encoded is required,\n all the other properties of the code will be guessed based on the\n contents given. This function will return a :class:`QRCode` object.", " Unless you are familiar with QR code's inner workings\n it is rec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
This method returns a text based representation of the QR code. This is useful for debugging purposes.
"This method returns a text based representation of the QR code.\n This is useful for debugging purposes."
143
false
mnooner256/pyqrcode
_text
35,944
LDU_FT/CartoDB/cartoframes/query
LDU_FT
[ "<BEGIN>\n## `get_scheme_cartocss`", "Get TurboCARTO CartoCSS based on input parameters\n<END>", "<BEGIN>\n## `custom`", "Create a custom scheme.", " Args:\n colors (list of str): List of hex values for styling data\n bins (int, optional): Number of bins to style by. If not given, the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Pull the result from an arbitrary SQL SELECT query from a CARTO account into a pandas DataFrame. This is the default behavior, when `is_select=True` Can also be used to perform database operations (creating/dropping tables, adding columns, updates, etc.). In this case, you have to explicitly ...
"Pull the result from an arbitrary SQL SELECT query from a CARTO account\n into a pandas DataFrame. This is the default behavior, when `is_select=True`\n\n Can also be used to perform database operations (creating/dropping tables,\n adding columns, updates, etc.). In this case, you have to explicit...
217
false
CartoDB/cartoframes
query
35,945
LDU_FT/wecatch/app-turbo/_wrapper_find_one
LDU_FT
[ "<BEGIN>\n## `convert_to_record`", "Wrap mongodb record to a dict record with default value None\n<END>", "<BEGIN>\n## `instance`", "Instantiate a model class according to import path\n args:\n name: class import path like `user.User`\n return:\n model instance\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wrapper_find_one API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wrapper_find_one API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Convert record to a dict that has no key error
"Convert record to a dict that has no key error"
43
false
wecatch/app-turbo
_wrapper_find_one
35,946
LDU_FT/wrongwaycn/ssdb-py/can_read
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute all the commands in the current pipeline\n<END>", "<BEGIN>\n## `execute_command`", "Execute a command and return a parsed response.\n<END>", "<BEGIN>\n## `incr`", "Increase the value at key ``name`` by ``amount``. If no key exists, the value\n will be initialized a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Poll the socket to see if there's data that can be read.
"Poll the socket to see if there's data that can be read."
215
false
wrongwaycn/ssdb-py
can_read
35,947
LDU_FT/ska-sa/montblanc/_cache
LDU_FT
[ "<BEGIN>\n## `encode`", "Produces a numpy array of integers which encode\n the supplied cube dimensions.\n<END>", "<BEGIN>\n## `decode`", "Produce a list of dictionaries for each dimension in this transcoder\n<END>", "<BEGIN>\n## `dl_cub`", "Download cub archive from cub_url and store it in cub_arc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Decorator for caching data source return values Create a key index for the proxied array in the context. Iterate over the array shape descriptor e.g. (ntime, nbl, 3) returning tuples containing the lower and upper extents of string dimensions. Takes (0, d) in the case of an integer dimensions.
"Decorator for caching data source return values\n\n Create a key index for the proxied array in the context.\n Iterate over the array shape descriptor e.g. (ntime, nbl, 3)\n returning tuples containing the lower and upper extents\n of string dimensions. Takes (0, d) in the case of an integer\n dimension...
197
false
ska-sa/montblanc
_cache
35,948
LDU_FT/AmesCornish/buttersink/destroy
LDU_FT
[ "<BEGIN>\n## `update`", "Update self and parent with intermediate progress.\n<END>", "<BEGIN>\n## `close`", "Stop overwriting display, or update parent.\n<END>", "<BEGIN>\n## `transfer`", "Transfer (large) data from sender to receiver.\n<END>", "<BEGIN>\n## `display`", "Friendly string for volume, usi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Delete this subvolume from the filesystem.
"Delete this subvolume from the filesystem."
148
false
AmesCornish/buttersink
destroy
35,949
LDU_FT/crm416/semantic/parseEquation
LDU_FT
[ "<BEGIN>\n## `parseUnits`", "Carries out a conversion (represented as a string) and returns the\n result as a human-readable string.", " Args:\n inp (str): Text representing a unit conversion, which should\n include a magnitude, a description of the initial units,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parseEquation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parseEquation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Solves the equation specified by the input string. Args: inp (str): An equation, specified in words, containing some combination of numbers, binary, and unary operations. Returns: The floating-point result of carrying out the computation.
"Solves the equation specified by the input string.\n\n Args:\n inp (str): An equation, specified in words, containing some\n combination of numbers, binary, and unary operations.\n\n Returns:\n The floating-point result of carrying out the computation."
75
false
crm416/semantic
parseEquation
35,950
LDU_FT/benley/butcher/flatten
LDU_FT
[ "<BEGIN>\n## `_metahash`", "Checksum hash of all the inputs to this rule.", " Output is invalid until collect_srcs and collect_deps have been run.", " In theory, if this hash doesn't change, the outputs won't change\n either, which makes it useful for caching.\n<END>", "<BEGIN>\n## `col...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Flatten an arbitrarily-nested list of strings and lists. Works for any subclass of basestring and any type of iterable.
"Flatten an arbitrarily-nested list of strings and lists.\n\n Works for any subclass of basestring and any type of iterable."
118
false
benley/butcher
flatten
35,951
LDU_FT/gersolar/stations/wrap_around
LDU_FT
[ "<BEGIN>\n## `wrap_around_re`", "Same as wrap_around but works with regular expression based\n wildcards to map which methods are going to be used.\n<END>", "<BEGIN>\n## `_with_wrap`", "with_wrap wraps the execution of method inside given\n generator. When the method is called, the generator is invoked\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_around API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_around API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
This function will be deprecated. wrap_around wraps an unbound method (the first argument) inside an advice (function given as the second argument). When the method is called, the code of the advice is executed to the point of 'self.__proceed(*args,**keyw)'. Then the original method is executed aft...
"This function will be deprecated.\n\n wrap_around wraps an unbound method (the first argument)\n inside an advice (function given as the second argument). When the\n method is called, the code of the advice is executed to the point\n of 'self.__proceed(*args,**keyw)'. Then the original method is\n execu...
31
false
gersolar/stations
wrap_around
35,952
LDU_FT/hsolbrig/PyShEx/matches
LDU_FT
[ "<BEGIN>\n## `conforms`", "`5.6.1 Schema Validation Requirement <http://shex.io/shex-semantics/#validation-requirement>`_", " A graph G is said to conform with a schema S with a ShapeMap m when:", " Every, SemAct in the startActs of S has a successful evaluation of semActsSatisfied.\n Every node n in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the matches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the matches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
**matches**: asserts that a triple expression is matched by a set of triples that come from the neighbourhood of a node in an RDF graph. The expression `matches(T, expr, m)` indicates that a set of triples `T` can satisfy these rules: * expr has semActs and `matches(T, expr, m)` by the remaining rules in t...
"**matches**: asserts that a triple expression is matched by a set of triples that come from the neighbourhood of a\n node in an RDF graph. The expression `matches(T, expr, m)` indicates that a set of triples `T` can satisfy these\n rules:\n\n * expr has semActs and `matches(T, expr, m)` by the remaining rules...
234
false
hsolbrig/PyShEx
matches
35,953
LDU_FT/pycontribs/jira/version
LDU_FT
[ "<BEGIN>\n## `translate_resource_args`", "Decorator that converts Issue and Project resources to their keys when used as arguments.\n<END>", "<BEGIN>\n## `_check_update_`", "Check if the current version of the library is outdated.\n<END>", "<BEGIN>\n## `_fetch_pages`", "Fetch pages.", " :param it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get a version Resource. :param id: ID of the version to get :type id: str :param expand: extra information to fetch inside each resource :type expand: Optional[Any] :rtype: Version
"Get a version Resource.\n\n :param id: ID of the version to get\n :type id: str\n :param expand: extra information to fetch inside each resource\n :type expand: Optional[Any]\n\n :rtype: Version"
468
false
pycontribs/jira
version
35,954
LDU_FT/tehmaze/ipcalc/to_ipv6
LDU_FT
[ "<BEGIN>\n## `bin`", "Full-length binary representation of the IP address.", " >>> ip = IP(\"127.0.0.1\")\n >>> print(ip.bin())\n 01111111000000000000000000000001\n<END>", "<BEGIN>\n## `info`", "Show IANA allocation information for the current IP address.", " >>> ip = IP(\"127....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_ipv6 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_ipv6 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convert (an IPv4) IP address to an IPv6 address. >>> ip = IP('192.0.2.42') >>> print(ip.to_ipv6()) 2002:c000:022a:0000:0000:0000:0000:0000 >>> print(ip.to_ipv6('compat')) 0000:0000:0000:0000:0000:0000:c000:022a >>> print(ip.to_ipv6('mapped')) 0000:0000:0000:000...
"Convert (an IPv4) IP address to an IPv6 address.\n\n >>> ip = IP('192.0.2.42')\n >>> print(ip.to_ipv6())\n 2002:c000:022a:0000:0000:0000:0000:0000\n\n >>> print(ip.to_ipv6('compat'))\n 0000:0000:0000:0000:0000:0000:c000:022a\n\n >>> print(ip.to_ipv6('mapped'))\n 0000:00...
34
false
tehmaze/ipcalc
to_ipv6
35,955
LDU_FT/yougov/solr-doc-manager/search
LDU_FT
[ "<BEGIN>\n## `_parse_fields`", "If Schema access, parse fields and build respective lists\n<END>", "<BEGIN>\n## `_clean_doc`", "Reformats the given document before insertion into Solr.", " This method reformats the document in the following ways:\n - removes extraneous fields that aren't def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Called to query Solr for documents in a time range.
"Called to query Solr for documents in a time range."
26
false
yougov/solr-doc-manager
search
35,956
LDU_FT/dwavesystems/dwave-cloud-client/get_configfile_paths
LDU_FT
[ "<BEGIN>\n## `ls`", "List configuration files detected (and/or examined paths).\n<END>", "<BEGIN>\n## `create`", "Create and/or update cloud client configuration file.\n<END>", "<BEGIN>\n## `_ping`", "Helper method for the ping command that uses `output()` for info output\n and raises `CLIError()` on h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_configfile_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_configfile_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return a list of local configuration file paths. Search paths for configuration files on the local system are based on homebase_ and depend on operating system; for example, for Linux systems these might include ``dwave.conf`` in the current working directory (CWD), user-local ``.config/dwave/``, and s...
"Return a list of local configuration file paths.\n\n Search paths for configuration files on the local system\n are based on homebase_ and depend on operating system; for example, for Linux systems\n these might include ``dwave.conf`` in the current working directory (CWD),\n user-local ``.config/dwave/``,...
339
false
dwavesystems/dwave-cloud-client
get_configfile_paths
35,957
LDU_FT/Woile/commitizen/update_version_in_files
LDU_FT
[ "<BEGIN>\n## `commiter_factory`", "Return the correct commitizen existing in the registry.\n<END>", "<BEGIN>\n## `prerelease_generator`", "X.YaN # Alpha release\n X.YbN # Beta release\n X.YrcN # Release Candidate\n X.Y # Final", " This function might return something like 'alpha1'\n but...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_version_in_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_version_in_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Change old version to the new one in every file given. Note that this version is not the tag formatted one. So for example, your tag could look like `v1.0.0` while your version in the package like `1.0.0`.
"Change old version to the new one in every file given.\n\n Note that this version is not the tag formatted one.\n So for example, your tag could look like `v1.0.0` while your version in\n the package like `1.0.0`."
26
false
Woile/commitizen
update_version_in_files
35,958
LDU_FT/happyleavesaoc/aoc-mgz/_get_timestamp
LDU_FT
[ "<BEGIN>\n## `ObjectEnum`", "Object Enumeration.", " Should export the whole list from the game for the best accuracy.\n<END>", "<BEGIN>\n## `_parse`", "Parse stream to find a given byte string.\n<END>", "<BEGIN>\n## `_parse`", "Parse until a given byte string is found.\n<END>", "<BEGIN>\n## `_find...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_timestamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_timestamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get modification timestamp from rec file.
"Get modification timestamp from rec file."
43
false
happyleavesaoc/aoc-mgz
_get_timestamp
35,959
LDU_FT/ntucllab/libact/train
LDU_FT
[ "<BEGIN>\n## `report_entry_label`", "Return the best label of the asked entry.", " Parameters\n ----------\n entry_id : int\n The index of the sample to ask.", " Returns\n -------\n label: object\n The best label of the given sample.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
r"""Train model with given feature. Parameters ---------- X : array-like, shape=(n_samples, n_features) Train feature vector. Y : array-like, shape=(n_samples, n_labels) Target labels. Attributes ---------- clfs\_ : list of :py:mod:`liba...
"r\"\"\"Train model with given feature.\n\n Parameters\n ----------\n X : array-like, shape=(n_samples, n_features)\n Train feature vector.\n\n Y : array-like, shape=(n_samples, n_labels)\n Target labels.\n\n Attributes\n ----------\n clfs\\_ : list...
128
false
ntucllab/libact
train
35,960
LDU_FT/Yubico/python-pyhsm/echo
LDU_FT
[ "<BEGIN>\n## `hexdump`", "Produce a string hexdump of src, for debug output.\n<END>", "<BEGIN>\n## `group`", "Split data into chunks of num chars each\n<END>", "<BEGIN>\n## `key_handle_to_int`", "Turn \"123\" into 123 and \"KSM1\" into 827151179\n (0x314d534b, 'K' = 0x4b, S = '0x53', M = 0x4d).", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the echo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the echo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Echo test. @type data: string @return: data read from YubiHSM -- should equal `data' @rtype: string @see: L{pyhsm.basic_cmd.YHSM_Cmd_Echo}
"Echo test.\n\n @type data: string\n @return: data read from YubiHSM -- should equal `data'\n @rtype: string\n\n @see: L{pyhsm.basic_cmd.YHSM_Cmd_Echo}"
310
false
Yubico/python-pyhsm
echo
35,961
LDU_FT/allenai/allennlp/add_epoch_number
LDU_FT
[ "<BEGIN>\n## `forward`", "Parameters\n ----------\n inputs : ``PackedSequence``, required.\n A batch first ``PackedSequence`` to run the stacked LSTM over.\n initial_state : Tuple[torch.Tensor, torch.Tensor], optional, (default = None)\n A tuple (state, memory) represent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_epoch_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_epoch_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Add the epoch number to the batch instances as a MetadataField.
"Add the epoch number to the batch instances as a MetadataField."
1,296
true
allenai/allennlp
add_epoch_number
35,962
LDU_FT/fp12/achallonge/shuffle_participants
LDU_FT
[ "<BEGIN>\n## `report_winner`", "report scores and give a winner", " |methcoro|", " Args:\n winner: :class:Participant instance\n scores_csv: Comma separated set/game scores with player 1 score first (e.g. \"1-3,3-0,3-2\")", " Raises:\n ValueError: scores...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shuffle_participants API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shuffle_participants API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Shuffle participants' seeds |methcoro| Note: |from_api| Randomize seeds among participants. Only applicable before a tournament has started. Raises: APIException
"Shuffle participants' seeds\n\n |methcoro|\n\n Note:\n |from_api| Randomize seeds among participants. Only applicable before a tournament has started.\n\n Raises:\n APIException"
173
false
fp12/achallonge
shuffle_participants
35,963
LDU_FT/HumanCellAtlas/cloud-blobstore/list_v2
LDU_FT
[ "<BEGIN>\n## `list`", "Returns an iterator of all blob entries in a bucket that match a given prefix. Do not return any keys that\n contain the delimiter past the\n prefix.\n<END>", "<BEGIN>\n## `delete`", "Deletes an object in a bucket. If the operation definitely did not delete anything, ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_v2 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_v2 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns an iterator of all blob entries in a bucket that match a given prefix. Do not return any keys that contain the delimiter past the prefix.
"Returns an iterator of all blob entries in a bucket that match a given prefix. Do not return any keys that\n contain the delimiter past the prefix."
59
false
HumanCellAtlas/cloud-blobstore
list_v2
35,964
LDU_FT/trendels/rhino/cookies
LDU_FT
[ "<BEGIN>\n## `parse_etag_header`", "Parse a header containing one or more ETags or a wildcard ('*').", " Returns the string '*' or a list of ETags as (weak, etag) tuples.\n `weak` is the prefix designating a weak ETag, or the empty string.\n `etag` is the ETag (including quotes) with the weak prefix st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cookies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cookies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a dictionary mapping cookie names to their values.
"Returns a dictionary mapping cookie names to their values."
158
false
trendels/rhino
cookies
35,965
LDU_FT/nikcub/floyd/f
LDU_FT
[ "<BEGIN>\n## `get_file_contents`", "Get the context of the file using full path name\n<END>", "<BEGIN>\n## `import_model`", "imports a model of name from path, returning from local model\n cache if it has been previously loaded otherwise importing\n<END>", "<BEGIN>\n## `parse_md`", "Takes a post path a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the f API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the f API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
Time, in 12-hour hours and minutes, with minutes left off if they're zero. Examples: '1', '1:30', '2:05', '2' Proprietary extension.
"Time, in 12-hour hours and minutes, with minutes left off if they're\n zero.\n Examples: '1', '1:30', '2:05', '2'\n Proprietary extension."
71
false
nikcub/floyd
f
35,966
LDU_FT/seomoz/qless-py/pop
LDU_FT
[ "<BEGIN>\n## `clone`", "Clone the redis client to be slowlog-compatible\n<END>", "<BEGIN>\n## `stop`", "Set everything back to normal and collect our data\n<END>", "<BEGIN>\n## `class_string`", "Return a string representative of the class\n<END>", "<BEGIN>\n## `put`", "Either create a new job in the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Passing in the queue from which to pull items, the current time, when the locks for these returned items should expire, and the number of items to be popped off.
"Passing in the queue from which to pull items, the current time,\n when the locks for these returned items should expire, and the number\n of items to be popped off."
66
false
seomoz/qless-py
pop
35,967
LDU_FT/ArangoDB-Community/pyArango/fetchAll
LDU_FT
[ "<BEGIN>\n## `_create`", "Creates an index of any type according to postData\n<END>", "<BEGIN>\n## `createVertex`", "adds a vertex to the graph and returns it\n<END>", "<BEGIN>\n## `deleteVertex`", "deletes a vertex from the graph as well as al linked edges\n<END>", "<BEGIN>\n## `link`", "A shorthand ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetchAll API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetchAll API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns all the documents in the collection. You can use the optinal arguments 'skip' and 'limit':: fetchAlll(limit = 3, shik = 10)
"Returns all the documents in the collection. You can use the optinal arguments 'skip' and 'limit'::\n\n fetchAlll(limit = 3, shik = 10)"
105
false
ArangoDB-Community/pyArango
fetchAll
35,968
LDU_FT/samuelcolvin/grablib/insert_hash
LDU_FT
[ "<BEGIN>\n## `_delete_stale`", "Delete files left in self._stale_files. Also delete their directories if empty.\n<END>", "<BEGIN>\n## `_file_path`", "check src_path complies with regex and generate new filename\n<END>", "<BEGIN>\n## `_lock`", "Add details of the files downloaded to _new_lock so they can b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Insert a hash based on the content into the path after the first dot. hash_length 7 matches git commit short references
"Insert a hash based on the content into the path after the first dot.\n\n hash_length 7 matches git commit short references"
15
false
samuelcolvin/grablib
insert_hash
35,969
LDU_FT/paolodragone/pymzn/add_path
LDU_FT
[ "<BEGIN>\n## `minizinc`", "Coroutine version of the ``pymzn.minizinc`` function.", " Parameters\n ----------\n max_queue_size : int\n Maximum number of solutions in the queue between the solution parser and\n the returned solution stream. When the queue is full, the solver\n execut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Adds the given path to the template search routine
"Adds the given path to the template search routine"
102
false
paolodragone/pymzn
add_path
35,970
LDU_FT/adafruit/Adafruit_Python_PN532/_read_data
LDU_FT
[ "<BEGIN>\n## `create_block`", "Build a block with the specified id and subtype under the player in the\n Minecraft world. Subtype is optional and can be specified as None to use\n the default subtype for the block.\n<END>", "<BEGIN>\n## `_busy_wait_ms`", "Busy wait for the specified number of milliseco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Read a specified count of bytes from the PN532.
"Read a specified count of bytes from the PN532."
26
false
adafruit/Adafruit_Python_PN532
_read_data
35,971
LDU_FT/tomduck/pandoc-xnos/_repeat
LDU_FT
[ "<BEGIN>\n## `_repeat`", "Repeats func(...) call until something other than None is returned.\n<END>", "<BEGIN>\n## `init`", "Sets or determines the pandoc version. This must be called.", " The pandoc version is needed for multi-version support.\n See: https://github.com/jgm/pandoc/issues/2640", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _repeat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _repeat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Repeats func(...) call until something other than None is returned.
"Repeats func(...) call until something other than None is returned."
63
false
tomduck/pandoc-xnos
_repeat
35,972