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/PMEAL/porespy/dict_to_vtk
LDU_FT
[ "<BEGIN>\n## `show_mesh`", "r\"\"\"\n Visualizes the mesh of a region as obtained by ``get_mesh`` function in\n the ``metrics`` submodule.", " Parameters\n ----------\n mesh : tuple\n A mesh returned by ``skimage.measure.marching_cubes``", " Returns\n -------\n fig : Matplotlib ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_to_vtk 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 dict_to_vtk 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...
r""" Accepts multiple images as a dictionary and compiles them into a vtk file Parameters ---------- data : dict A dictionary of *key: value* pairs, where the *key* is the name of the scalar property stored in each voxel of the array stored in the corresponding *value*. path...
"r\"\"\"\n Accepts multiple images as a dictionary and compiles them into a vtk file\n\n Parameters\n ----------\n data : dict\n A dictionary of *key: value* pairs, where the *key* is the name of the\n scalar property stored in each voxel of the array stored in the\n corresponding *valu...
688
false
PMEAL/porespy
dict_to_vtk
22,073
LDU_FT/a2liu/mr-clean/smart_scrubf
LDU_FT
[ "<BEGIN>\n## `summarize`", "Prints information about the DataFrame to a file or to the prompt.", " Parameters\n ----------\n df - DataFrame\n The DataFrame to summarize\n preview_rows - int, default 5\n Amount of rows to preview from the head and tail of the DataFrame\n display_max_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smart_scrubf 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 smart_scrubf 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...
Scrubs from the front of an 'object' column in a DataFrame until the scrub would semantically alter the contents of the column. If only a subset of the elements in the column are scrubbed, then a boolean array indicating which elements have been scrubbed is appended to the dataframe. Returns the string tha...
"Scrubs from the front of an 'object' column in a DataFrame\n until the scrub would semantically alter the contents of the column. If only a \n subset of the elements in the column are scrubbed, then a boolean array indicating which\n elements have been scrubbed is appended to the dataframe. Returns the string...
84
false
a2liu/mr-clean
smart_scrubf
22,074
LDU_FT/synw/dataswim/load_django_
LDU_FT
[ "<BEGIN>\n## `ndlayout_`", "Create a Holoview NdLayout from a dictionnary of chart objects\n<END>", "<BEGIN>\n## `layout_`", "Returns a Holoview Layout from chart objects\n<END>", "<BEGIN>\n## `_hline_bokeh_`", "Returns an horizontal line from a column mean value\n<END>", "<BEGIN>\n## `_sline_bokeh`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_django_ 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 load_django_ 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...
Returns a DataSwim instance from a django orm query :param query: django query from a model :type query: django query :return: a dataswim instance with data from a django query :rtype: Ds :example: ``ds2 = ds.load_django_(Mymodel.objects.all())``
"Returns a DataSwim instance from a django orm query\n\n :param query: django query from a model\n :type query: django query\n :return: a dataswim instance with data from a django query\n :rtype: Ds\n\n :example: ``ds2 = ds.load_django_(Mymodel.objects.all())``"
393
false
synw/dataswim
load_django_
22,075
LDU_FT/uber/tchannel-python/from_code
LDU_FT
[ "<BEGIN>\n## `should_retry_on_error`", "rules for retry", " :param error:\n ProtocolException that returns from Server\n<END>", "<BEGIN>\n## `client_for`", "Build a synchronous client class for the given Thrift service.", " The generated class accepts a TChannelSyncClient and an optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_code 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 from_code 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...
Construct a ``TChannelError`` instance from an error code. This will return the appropriate class type for the given code.
"Construct a ``TChannelError`` instance from an error code.\n\n This will return the appropriate class type for the given code."
422
false
uber/tchannel-python
from_code
22,076
LDU_FT/snare/voltron/valid_debugger_plugin
LDU_FT
[ "<BEGIN>\n## `cancel_queue`", "Cancel all requests in the queue so we can exit.\n<END>", "<BEGIN>\n## `dispatch_queue`", "Dispatch any queued requests.", " Called by the debugger when it stops.\n<END>", "<BEGIN>\n## `send_request`", "Send a request to the server.", " `request` is an APIR...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid_debugger_plugin 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 valid_debugger_plugin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Validate a debugger plugin, ensuring it is a debugger plugin and has the necessary fields present. `plugin` is a subclass of scruffy's Plugin class.
"Validate a debugger plugin, ensuring it is a debugger plugin and has\n the necessary fields present.\n\n `plugin` is a subclass of scruffy's Plugin class."
80
false
snare/voltron
valid_debugger_plugin
22,077
LDU_FT/jldantas/libmft/_load_attributes
LDU_FT
[ "<BEGIN>\n## `apply_fixup_array`", "This function reads the fixup array and apply the correct values\n to the underlying binary stream. This function changes the bin_view\n in memory.", " Args:\n bin_view (memoryview of bytearray) - The binary stream\n fx_offset (int) - Offset to the fixu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_attributes 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 _load_attributes 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 ...
Loads all the attributes of an entry. Once executed, all the attributes should have been loaded in the attribute *attrs* instance attribute. Args: mft_config (:obj:`MFTConfig`) - An instance of MFTConfig, as this tells how the library will interpret data. ...
"Loads all the attributes of an entry.\n\n Once executed, all the attributes should have been loaded in the\n attribute *attrs* instance attribute.\n\n Args:\n mft_config (:obj:`MFTConfig`) - An instance of MFTConfig, as this tells\n how the library will interpret data.\n ...
107
false
jldantas/libmft
_load_attributes
22,078
LDU_FT/materials-data-facility/toolbox/exclude_field
LDU_FT
[ "<BEGIN>\n## `login`", "Log in to Globus services", " Arguments:\n credentials (str or dict): A string filename, string JSON, or dictionary\n with credential and config information.\n By default, looks in ``~/mdf/credentials/globus_login.json``.\n Contains ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exclude_field 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 exclude_field 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...
Exclude a ``field:value`` term from the query. Matches will NOT have the ``value`` in the ``field``. Arguments: field (str): The field to check for the value. The field must be namespaced according to Elasticsearch rules using the dot syntax. ...
"Exclude a ``field:value`` term from the query.\n Matches will NOT have the ``value`` in the ``field``.\n\n Arguments:\n field (str): The field to check for the value.\n The field must be namespaced according to Elasticsearch rules\n using the dot syntax.\n...
173
false
materials-data-facility/toolbox
exclude_field
22,079
LDU_FT/Genida/archan/inflate_plugin
LDU_FT
[ "<BEGIN>\n## `validate_rows_length`", "Validate that all rows have the same length.\n<END>", "<BEGIN>\n## `validate_square`", "Validate that the matrix has equal number of rows and columns.\n<END>", "<BEGIN>\n## `validate_categories_equal_entities`", "Validate that the matrix has equal number of entities ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inflate_plugin 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 inflate_plugin 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...
Inflate a plugin thanks to it's identifier, definition and class. Args: identifier (str): the plugin identifier. definition (dict): the kwargs to instantiate the plugin with. cls (str): "provider", "checker", or None. Returns: Provider/Checker: instance ...
"Inflate a plugin thanks to it's identifier, definition and class.\n\n Args:\n identifier (str): the plugin identifier.\n definition (dict): the kwargs to instantiate the plugin with.\n cls (str): \"provider\", \"checker\", or None.\n\n Returns:\n Provider/Check...
127
false
Genida/archan
inflate_plugin
22,080
LDU_FT/summa-tx/riemann/encode
LDU_FT
[ "<BEGIN>\n## `addsalt`", "adds a salt to the hash function (OPTIONAL)\n should be called AFTER Init, and BEFORE update\n salt: a bytestring, length determined by hashbitlen.\n if not of sufficient length, the bytestring\n will be assumed to be a big endia...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode 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 encode 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 binary to base58 using BASE58_ALPHABET.
"Convert binary to base58 using BASE58_ALPHABET."
132
false
summa-tx/riemann
encode
22,081
LDU_FT/ambitioninc/django-entity-event/create_events
LDU_FT
[ "<BEGIN>\n## `get_context_hints_per_source`", "Given a list of context renderers, return a dictionary of context hints per source.\n<END>", "<BEGIN>\n## `get_querysets_for_context_hints`", "Given a list of context hint dictionaries, return a dictionary\n of querysets for efficient context loading. The retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_events 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 create_events 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...
Create events in bulk to save on queries. Each element in the kwargs list should be a dict with the same set of arguments you would normally pass to create_event :param kwargs_list: list of kwargs dicts :return: list of Event
"Create events in bulk to save on queries. Each element in the kwargs list should be a dict with the same set\n of arguments you would normally pass to create_event\n :param kwargs_list: list of kwargs dicts\n :return: list of Event"
46
false
ambitioninc/django-entity-event
create_events
22,082
LDU_FT/aetros/aetros-cli/store_file
LDU_FT
[ "<BEGIN>\n## `Popen`", "Executes a command using subprocess.Popen and redirects output to AETROS and stdout.\n Parses stdout as well for stdout API calls.", " Use read_line argument to read stdout of command's stdout line by line.\n Use returned process stdin to communicate with the command.", " :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_file 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 store_file 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...
Store the file in temp folder and stream it to server if online. This makes sure that we have all newest data of this file on the server directly. This method always overwrites the content of path. If you want to append always the content, use Git.stream_file() instead. ...
"Store the file in temp folder and stream it to server if online. \n \n This makes sure that we have all newest data of this file on the server directly. \n \n This method always overwrites the content of path. If you want to append always the content, \n use Git.stream_file() instead...
183
false
aetros/aetros-cli
store_file
22,083
LDU_FT/linkedin/shiv/install
LDU_FT
[ "<BEGIN>\n## `get_args`", "Overrides easy_install.ScriptWriter.get_args", " This method avoids using pkg_resources to map a named entry_point\n to a callable at invocation time.\n<END>", "<BEGIN>\n## `clean_pip_env`", "A context manager for temporarily removing 'PIP_REQUIRE_VIRTUALENV' from the enviro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install 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 install 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...
`pip install` as a function. Accepts a list of pip arguments. .. code-block:: py >>> install(['numpy', '--target', 'site-packages']) Collecting numpy Downloading numpy-1.13.3-cp35-cp35m-manylinux1_x86_64.whl (16.9MB) 100% || 16.9MB 53kB/s Installing collected packa...
"`pip install` as a function.\n\n Accepts a list of pip arguments.\n\n .. code-block:: py\n\n >>> install(['numpy', '--target', 'site-packages'])\n Collecting numpy\n Downloading numpy-1.13.3-cp35-cp35m-manylinux1_x86_64.whl (16.9MB)\n 100% || 16.9MB 53kB/s\n Installing coll...
40
false
linkedin/shiv
install
22,084
LDU_FT/feliphebueno/Rinzler/put
LDU_FT
[ "<BEGIN>\n## `authenticate`", "Your AuhtService should override this method for request authentication, otherwise means no authentication.\n :param request: HttpRequest Django's HttpRequest object\n :param auth_route: str User's resqueted route\n :param actual_params: User's url parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put 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 put 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...
Binds a PUT route with the given callback :rtype: object
"Binds a PUT route with the given callback\n :rtype: object"
50
false
feliphebueno/Rinzler
put
22,085
LDU_FT/yero13/na3x/update_col
LDU_FT
[ "<BEGIN>\n## `agg_multi_func`", "Aggregates several functions\n :param values: list of objects (dict)\n :param agg_field: target field to calculate aggregates\n :param agg_funcs: list of aggregate functions\n :param group_by: field used to determine group\n :return: dict {agg_fu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_col 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 update_col 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...
Updates document with value from another document/collection/constant :param input: :param params: :return:
"Updates document with value from another document/collection/constant\n :param input:\n :param params:\n :return:"
82
false
yero13/na3x
update_col
22,086
LDU_FT/nteract/papermill/execute_managed_notebook
LDU_FT
[ "<BEGIN>\n## `papermill`", "This utility executes a single notebook on a container.", " Papermill takes a source notebook, applies parameters to the source\n notebook, executes the notebook with the specified kernel, and saves the\n output in the destination notebook.\n<END>", "<BEGIN>\n## `catch_nb_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_managed_notebook 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 execute_managed_notebook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Performs the actual execution of the parameterized notebook locally. Args: nb (NotebookNode): Executable notebook object. kernel_name (str): Name of kernel to execute the notebook against. log_output (bool): Flag for whether or not to write notebook output to stderr. ...
"Performs the actual execution of the parameterized notebook locally.\n\n Args:\n nb (NotebookNode): Executable notebook object.\n kernel_name (str): Name of kernel to execute the notebook against.\n log_output (bool): Flag for whether or not to write notebook output to stderr.\n...
99
false
nteract/papermill
execute_managed_notebook
22,087
LDU_FT/avalente/appmetrics/tick
LDU_FT
[ "<BEGIN>\n## `notify`", "Increment or decrement the value, according to the given value's sign", " The value should be an integer, an attempt to cast it to integer will be made\n<END>", "<BEGIN>\n## `new_metric`", "Create a new metric of the given class.", " Raise DuplicateMetricError if the giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tick 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 tick 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...
Emulate a timer: in order to avoid a real timer we "tick" a number of times depending on the actual time passed since the last tick
"Emulate a timer: in order to avoid a real timer we \"tick\" a number\n of times depending on the actual time passed since the last tick"
120
false
avalente/appmetrics
tick
22,088
LDU_FT/pvlib/pvlib-python/scale_voltage_current_power
LDU_FT
[ "<BEGIN>\n## `systemdef`", "Generates a dict of system parameters used throughout a simulation.", " Parameters\n ----------", " meta : dict\n meta dict either generated from a TMY file using readtmy2 or\n readtmy3, or a dict containing at least the following fields:", " ===...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale_voltage_current_power 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 scale_voltage_current_power API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Scales the voltage, current, and power of the DataFrames returned by :py:func:`singlediode` and :py:func:`sapm`. Parameters ---------- data: DataFrame Must contain columns `'v_mp', 'v_oc', 'i_mp' ,'i_x', 'i_xx', 'i_sc', 'p_mp'`. voltage: numeric, default 1 The amount by whic...
"Scales the voltage, current, and power of the DataFrames\n returned by :py:func:`singlediode` and :py:func:`sapm`.\n\n Parameters\n ----------\n data: DataFrame\n Must contain columns `'v_mp', 'v_oc', 'i_mp' ,'i_x', 'i_xx',\n 'i_sc', 'p_mp'`.\n voltage: numeric, default 1\n The amou...
1,499
true
pvlib/pvlib-python
scale_voltage_current_power
22,089
LDU_FT/dmlc/gluon-nlp/elmo_2x1024_128_2048cnn_1xhighway
LDU_FT
[ "<BEGIN>\n## `train`", "Train textCNN model for sentiment analysis.\n<END>", "<BEGIN>\n## `embedding`", "Get tokens, tokens embedding", " Parameters\n ----------\n sentences : List[str]\n sentences for encoding.\n oov_way : str, default avg.\n use **avg**, *...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elmo_2x1024_128_2048cnn_1xhighway 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 elmo_2x1024_128_2048cnn_1xhighway API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
r"""ELMo 2-layer BiLSTM with 1024 hidden units, 128 projection size, 1 highway layer. Parameters ---------- dataset_name : str or None, default None The dataset name on which the pre-trained model is trained. Options are 'gbw'. pretrained : bool, default False Whether to load th...
"r\"\"\"ELMo 2-layer BiLSTM with 1024 hidden units, 128 projection size, 1 highway layer.\n\n Parameters\n ----------\n dataset_name : str or None, default None\n The dataset name on which the pre-trained model is trained.\n Options are 'gbw'.\n pretrained : bool, default False\n Whethe...
801
false
dmlc/gluon-nlp
elmo_2x1024_128_2048cnn_1xhighway
22,090
LDU_FT/OLC-Bioinformatics/sipprverse/open_
LDU_FT
[ "<BEGIN>\n## `cmd2list`", "Executes a command through the operating system and returns the output\n as a list, or on error a string with the standard error.\n EXAMPLE:\n >>> from subprocess import Popen, PIPE\n >>> CMDout2array('ls -l')\n<END>", "<BEGIN>\n## `print_timers`", "PRINT EXECUTION TIM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_ 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 open_ 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...
Switch for both open() and gzip.open(). Determines if the file is normal or gzipped by looking at the file extension. The filename argument is required; mode defaults to 'rb' for gzip and 'r' for normal and compresslevel defaults to 9 for gzip. >>> import gzip >>> from contextlib import cl...
"Switch for both open() and gzip.open().\n \n Determines if the file is normal or gzipped by looking at the file\n extension.\n \n The filename argument is required; mode defaults to 'rb' for gzip and 'r'\n for normal and compresslevel defaults to 9 for gzip.\n \n >>> import gzip\n >>> from contextlib...
255
false
OLC-Bioinformatics/sipprverse
open_
22,091
LDU_FT/mdickinson/refcycle/annotated_references
LDU_FT
[ "<BEGIN>\n## `restore_gc_state`", "Restore the garbage collector state on leaving the with block.\n<END>", "<BEGIN>\n## `children`", "Return the list of immediate children of the given vertex.\n<END>", "<BEGIN>\n## `parents`", "Return the list of immediate parents of this vertex.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the annotated_references 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 annotated_references 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 known information about references held by the given object. Returns a mapping from referents to lists of descriptions. Note that there may be more than one edge leading to any particular referent; hence the need for a list. Descriptions are currently strings.
"Return known information about references held by the given object.\n\n Returns a mapping from referents to lists of descriptions. Note that there\n may be more than one edge leading to any particular referent; hence the\n need for a list. Descriptions are currently strings."
98
false
mdickinson/refcycle
annotated_references
22,092
LDU_FT/neo4j-contrib/neomodel/create_or_update
LDU_FT
[ "<BEGIN>\n## `set_connection`", "Sets the connection URL to the address a Neo4j server is set up at\n<END>", "<BEGIN>\n## `begin`", "Begins a new transaction, raises SystemError exception if a transaction is in progress\n<END>", "<BEGIN>\n## `_object_resolution`", "Performs in place automatic object resol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_or_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_or_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 ...
Call to MERGE with parameters map. A new instance will be created and saved if does not already exists, this is an atomic operation. If an instance already exists all optional properties specified will be updated. Note that the post_create hook isn't called after create_or_update :param props:...
"Call to MERGE with parameters map. A new instance will be created and saved if does not already exists,\n this is an atomic operation. If an instance already exists all optional properties specified will be updated.\n\n Note that the post_create hook isn't called after create_or_update\n\n :param ...
157
false
neo4j-contrib/neomodel
create_or_update
22,093
LDU_FT/jhermann/rudiments/_get_auth_from_keyring
LDU_FT
[ "<BEGIN>\n## `auth_pair`", "Return username/password tuple, possibly prompting the user for them.\n<END>", "<BEGIN>\n## `_get_auth`", "Try to get login auth from known sources.\n<END>", "<BEGIN>\n## `_get_auth_from_keyring`", "Try to get credentials using `keyring <https://github.com/jaraco/keyring>`_.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_auth_from_keyring 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_auth_from_keyring API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Try to get credentials using `keyring <https://github.com/jaraco/keyring>`_.
"Try to get credentials using `keyring <https://github.com/jaraco/keyring>`_."
59
false
jhermann/rudiments
_get_auth_from_keyring
22,094
LDU_FT/djm/python-scrapyd-api/schedule
LDU_FT
[ "<BEGIN>\n## `_build_url`", "Builds the absolute URL using the target and desired endpoint.\n<END>", "<BEGIN>\n## `add_version`", "Adds a new project egg to the Scrapyd service. First class, maps to\n Scrapyd's add version endpoint.\n<END>", "<BEGIN>\n## `cancel`", "Cancels a job from a specific pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule 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 schedule 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...
Schedules a spider from a specific project to run. First class, maps to Scrapyd's scheduling endpoint.
"Schedules a spider from a specific project to run. First class, maps\n to Scrapyd's scheduling endpoint."
26
false
djm/python-scrapyd-api
schedule
22,095
LDU_FT/ktbyers/netmiko/send_command
LDU_FT
[ "<BEGIN>\n## `show_version`", "Execute show version command using Netmiko.\n<END>", "<BEGIN>\n## `main`", "Use threads and Netmiko to connect to each of the devices. Execute\n 'show version' on each device. Record the amount of time required to do this.\n<END>", "<BEGIN>\n## `session_preparation`", "Pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_command 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 send_command 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...
Send command to network device retrieve output until router_prompt or expect_string By default this method will keep waiting to receive data until the network device prompt is detected. The current network device prompt will be determined automatically. command_string = command to execute ...
"Send command to network device retrieve output until router_prompt or expect_string\n\n By default this method will keep waiting to receive data until the network device prompt is\n detected. The current network device prompt will be determined automatically.\n\n command_string = command to execut...
532
false
ktbyers/netmiko
send_command
22,096
LDU_FT/pavlov99/jsonapi/parse
LDU_FT
[ "<BEGIN>\n## `default`", "Encode JSON.", " :return str: A JSON encoded string\n<END>", "<BEGIN>\n## `dump_document`", "Get document for model_instance.", " redefine dump rule for field x: def dump_document_x", " :param django.db.models.Model instance: model instance\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse 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 parse 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...
Parse querydict data. There are expected agruments: distinct, fields, filter, include, page, sort Parameters ---------- querydict : django.http.request.QueryDict MultiValueDict with query arguments. Returns ------- result : dict ...
"Parse querydict data.\n\n There are expected agruments:\n distinct, fields, filter, include, page, sort\n\n Parameters\n ----------\n querydict : django.http.request.QueryDict\n MultiValueDict with query arguments.\n\n Returns\n -------\n result : ...
63
false
pavlov99/jsonapi
parse
22,097
LDU_FT/django-fluent/django-fluent-contents/extract_srcset
LDU_FT
[ "<BEGIN>\n## `type_id`", "Shortcut to retrieving the ContentType id of the model.\n<END>", "<BEGIN>\n## `get_output_cache_key`", ".. versionadded:: 0.9\n Return the default cache key which is used to store a rendered item.\n By default, this function generates the cache key using :func:`ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_srcset 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 extract_srcset 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...
Handle ``srcset="image.png 1x, image@2x.jpg 2x"``
"Handle ``srcset=\"image.png 1x, image@2x.jpg 2x\"``"
227
false
django-fluent/django-fluent-contents
extract_srcset
22,098
LDU_FT/dmcc/PyStanfordDependencies/get_instance
LDU_FT
[ "<BEGIN>\n## `convert_trees`", "Convert a list of Penn Treebank formatted strings (ptb_trees)\n into Stanford Dependencies. The dependencies are represented\n as a list of sentences (CoNLL.Corpus), where each sentence\n (CoNLL.Sentence) is itself a list of CoNLL.Token objects.", " Cu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance 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 get_instance 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...
This is the typical mechanism of constructing a StanfordDependencies instance. The backend parameter determines which backend to load (currently can be 'subprocess' or 'jpype'). To determine which jar file is used, you must specify jar_filename, download_if_missing=True, and/or version....
"This is the typical mechanism of constructing a\n StanfordDependencies instance. The backend parameter determines\n which backend to load (currently can be 'subprocess' or 'jpype').\n\n To determine which jar file is used, you must specify\n jar_filename, download_if_missing=True, and/or ve...
56
false
dmcc/PyStanfordDependencies
get_instance
22,099
LDU_FT/chbrown/viz/format_float
LDU_FT
[ "<BEGIN>\n## `normalize`", "Restrict xs into the interval (0, 1) via a linear transformation\n as long as len(xs) > 1, 0 and 1 will be elements of the resulting array\n<END>", "<BEGIN>\n## `gloss`", "Creates an interlinear gloss (for pairs of tokens/types, POS-tags, labels, etc.)", " Take a list of [(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_float 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 format_float 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...
format_float will ensure that a number's decimal part is truncated to fit within some bounds, unless the whole part is wider than max_width, which is a problem you need to sort out yourself.
"format_float will ensure that a number's decimal part is truncated to\n fit within some bounds, unless the whole part is wider than max_width,\n which is a problem you need to sort out yourself."
15
false
chbrown/viz
format_float
22,100
LDU_FT/pyvec/pyvodb/load_from_dict
LDU_FT
[ "<BEGIN>\n## `handle_raw_output`", "If a raw output format is set, dump data and exit\n<END>", "<BEGIN>\n## `start`", "The event's start time, as a timezone-aware datetime object\n<END>", "<BEGIN>\n## `next_occurrences`", "Yield the next planned occurrences after the date \"since\"", " The `since...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_dict 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 load_from_dict 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...
Load data from a dict (as loaded from directory of YAMLs) into database
"Load data from a dict (as loaded from directory of YAMLs) into database"
26
false
pyvec/pyvodb
load_from_dict
22,101
LDU_FT/TheHive-Project/Cortex-Analyzers/tlp_classifiers
LDU_FT
[ "<BEGIN>\n## `auth_string`", "Authenticate based on username and token which is base64-encoded\n<END>", "<BEGIN>\n## `api_related`", "Find related objects through SoltraEdge API\n<END>", "<BEGIN>\n## `tlp_classifiers`", "Classifier between Cortex and Soltra.\n Soltra uses name-TLP, and Cortex \"val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tlp_classifiers 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 tlp_classifiers 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...
Classifier between Cortex and Soltra. Soltra uses name-TLP, and Cortex "value-TLP"
"Classifier between Cortex and Soltra.\n Soltra uses name-TLP, and Cortex \"value-TLP\""
328
false
TheHive-Project/Cortex-Analyzers
tlp_classifiers
22,102
LDU_FT/benley/butcher/_parse
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 _parse 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 _parse 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 ...
Parse a JSON BUILD file. Args: builddata: dictionary of buildfile data reponame: name of the repo that it came from path: directory path within the repo
"Parse a JSON BUILD file.\n\n Args:\n builddata: dictionary of buildfile data\n reponame: name of the repo that it came from\n path: directory path within the repo"
118
false
benley/butcher
_parse
22,103
LDU_FT/lago-project/lago/_set_current
LDU_FT
[ "<BEGIN>\n## `expose`", "Decorator to be used with :class:`SDKWrapper`. This decorator indicates\n that the wrapped method or class should be exposed in the proxied object.", " Args:\n func(types.FunctionType/types.MethodType): function to decorate", " Returns:\n None\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_current 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 _set_current 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...
Change the current default prefix, for internal usage Args: new_current(str): Name of the new current prefix, it must already exist Returns: None Raises: PrefixNotFound: if the given prefix name does not exist in the workdir
"Change the current default prefix, for internal usage\n\n Args:\n new_current(str): Name of the new current prefix, it must already\n exist\n\n Returns:\n None\n\n Raises:\n PrefixNotFound: if the given prefix name does not exist in the\n ...
718
false
lago-project/lago
_set_current
22,104
LDU_FT/juju-solutions/charms.reactive/not_unless
LDU_FT
[ "<BEGIN>\n## `endpoint_from_name`", "The object used for interacting with the named relations, or None.\n<END>", "<BEGIN>\n## `endpoint_from_flag`", "The object used for interacting with relations tied to a flag, or None.\n<END>", "<BEGIN>\n## `relation_factory`", "Get the RelationFactory for the given re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the not_unless 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 not_unless 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...
Assert that the decorated function can only be called if the desired_flags are active. Note that, unlike :func:`when`, this does **not** trigger the decorated function if the flags match. It **only** raises an exception if the function is called when the flags do not match. This is primarily for ...
"Assert that the decorated function can only be called if the desired_flags\n are active.\n\n Note that, unlike :func:`when`, this does **not** trigger the decorated\n function if the flags match. It **only** raises an exception if the\n function is called when the flags do not match.\n\n This is primar...
223
false
juju-solutions/charms.reactive
not_unless
22,105
LDU_FT/meng89/ipodshuffle/create_track
LDU_FT
[ "<BEGIN>\n## `create_track`", ":param path_in_ipod: the path of audio file in the iPod base\n :param checksum: CHECKSUM of the audio file in member audiodb\n :return: a new Track, you may want append it to the playlist.tracks\n<END>", "<BEGIN>\n## `add`", "store an audio file to storage dir", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_track 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 create_track 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...
:param path_in_ipod: the path of audio file in the iPod base :param checksum: CHECKSUM of the audio file in member audiodb :return: a new Track, you may want append it to the playlist.tracks
":param path_in_ipod: the path of audio file in the iPod base\n :param checksum: CHECKSUM of the audio file in member audiodb\n :return: a new Track, you may want append it to the playlist.tracks"
13
false
meng89/ipodshuffle
create_track
22,106
LDU_FT/hasgeek/coaster/get
LDU_FT
[ "<BEGIN>\n## `init_app`", "Enables logging for an app using :class:`LocalVarFormatter`. Requires the\n app to be configured and checks for the following configuration parameters.\n All are optional:", " * ``LOGFILE``: Name of the file to log to (default ``error.log``)\n * ``ADMINS``: List of email a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get 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 get 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...
Get an instance matching the parent and name
"Get an instance matching the parent and name"
344
false
hasgeek/coaster
get
22,107
LDU_FT/autokey/autokey/_remove_non_serializable_store_entries
LDU_FT
[ "<BEGIN>\n## `save`", "Called by the parent settings dialog when the user clicks on the Save button.\n Stores the current settings in the ConfigManager.\n<END>", "<BEGIN>\n## `_settings_str`", "Returns a human readable settings representation for logging purposes.\n<END>", "<BEGIN>\n## `_should_trigg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_non_serializable_store_entries 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 _remove_non_serializable_store_entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
This function is called if there are non-serializable items in the global script storage. This function removes all such items.
"This function is called if there are non-serializable items in the global script storage.\n This function removes all such items."
363
false
autokey/autokey
_remove_non_serializable_store_entries
22,108
LDU_FT/amicks/Speculator/get_gains_losses
LDU_FT
[ "<BEGIN>\n## `set_targets`", "Sets target market trend for a date", " Args:\n x: Pandas DataFrame of market features\n delta: Positive number defining a price buffer between what is\n classified as a bullish/bearish market for the training set.\n delta is equivalent to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gains_losses 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_gains_losses 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 ...
Categorizes changes into gains and losses Args: changes: List of floats of price changes between entries in JSON. Returns: Dict of changes with keys 'gains' and 'losses'. All values are positive.
"Categorizes changes into gains and losses\n\n Args:\n changes: List of floats of price changes between entries in JSON.\n\n Returns:\n Dict of changes with keys 'gains' and 'losses'.\n All values are positive."
104
false
amicks/Speculator
get_gains_losses
22,109
LDU_FT/e7dal/bubble3/step_file_should_not_contain_log_records
LDU_FT
[ "<BEGIN>\n## `cli`", "Show example for doing some task in bubble(experimental)\n<END>", "<BEGIN>\n## `cli`", "Bubble: command line tool for bubbling information between services", " .oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.\\n\n Making single point to point API connections:\\n\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_file_should_not_contain_log_records API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_file_should_not_contain_log_records API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
Verifies that the command output contains the specified log records (in any order). .. code-block: gherkin Then the file "xxx.log" should not contain the log records: | category | level | message | | bar | CURRENT | xxx |
"Verifies that the command output contains the specified log records\n (in any order).\n\n .. code-block: gherkin\n\n Then the file \"xxx.log\" should not contain the log records:\n | category | level | message |\n | bar | CURRENT | xxx |"
171
false
e7dal/bubble3
step_file_should_not_contain_log_records
22,110
LDU_FT/Synerty/peek-plugin-base/_migrateStorageSchema
LDU_FT
[ "<BEGIN>\n## `addServerResource`", "Add Server Resource", " Add a cusotom implementation of a served http resource.", " :param pluginSubPath: The resource path where you want to serve this resource.\n :param resource: The resource to serve.\n :return: None\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _migrateStorageSchema 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 _migrateStorageSchema API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Initialise the DB This method is called by the platform between the load() and start() calls. There should be no need for a plugin to call this method it's self. :param metadata: the SQLAlchemy metadata for this plugins schema
"Initialise the DB\n\n This method is called by the platform between the load() and start() calls.\n There should be no need for a plugin to call this method it's self.\n\n :param metadata: the SQLAlchemy metadata for this plugins schema"
66
false
Synerty/peek-plugin-base
_migrateStorageSchema
22,111
LDU_FT/nephila/djangocms-page-tags/get_page_tags
LDU_FT
[ "<BEGIN>\n## `get_cache_key`", "Create the cache key for the current page and tag type\n<END>", "<BEGIN>\n## `get_page_tags`", "Retrieves all the tags for a Page instance.", " :param page: a Page instance", " :return: list or queryset of attached tags\n :type: List\n<END>", "<BEGIN>\n## `page_h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_page_tags 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 get_page_tags 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...
Retrieves all the tags for a Page instance. :param page: a Page instance :return: list or queryset of attached tags :type: List
"Retrieves all the tags for a Page instance.\n\n :param page: a Page instance\n\n :return: list or queryset of attached tags\n :type: List"
26
false
nephila/djangocms-page-tags
get_page_tags
22,112
LDU_FT/newville/wxmplot/add_highlight_area
LDU_FT
[ "<BEGIN>\n## `display`", "generic display, using imshow (default) or contour\n<END>", "<BEGIN>\n## `update_image`", "update image on panel, as quickly as possible\n<END>", "<BEGIN>\n## `add_highlight_area`", "add a highlighted area -- outline an arbitrarily shape --\n as if drawn from a Lasso event...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_highlight_area 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 add_highlight_area 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...
add a highlighted area -- outline an arbitrarily shape -- as if drawn from a Lasso event. This takes a mask, which should be a boolean array of the same shape as the image.
"add a highlighted area -- outline an arbitrarily shape --\n as if drawn from a Lasso event.\n\n This takes a mask, which should be a boolean array of the\n same shape as the image."
169
false
newville/wxmplot
add_highlight_area
22,113
LDU_FT/numat/midas/write_registers
LDU_FT
[ "<BEGIN>\n## `get`", "Get current state from the Midas gas detector.\n<END>", "<BEGIN>\n## `_parse`", "Parse the response, returning a dictionary.\n<END>", "<BEGIN>\n## `read_registers`", "Read modbus registers.", " The Modbus protocol doesn't allow responses longer than 250 bytes\n (ie. 1...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_registers 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 write_registers 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...
Write modbus registers. The Modbus protocol doesn't allow requests longer than 250 bytes (ie. 125 registers, 62 DF addresses), which this function manages by chunking larger requests.
"Write modbus registers.\n\n The Modbus protocol doesn't allow requests longer than 250 bytes\n (ie. 125 registers, 62 DF addresses), which this function manages by\n chunking larger requests."
15
false
numat/midas
write_registers
22,114
LDU_FT/jspricke/python-abook/vcf2abook
LDU_FT
[ "<BEGIN>\n## `abook2vcf`", "Command line tool to convert from Abook to vCard\n<END>", "<BEGIN>\n## `vcf2abook`", "Command line tool to convert from vCard to Abook\n<END>", "<BEGIN>\n## `append_vobject`", "Appends an address to the Abook addressbook\n vcard -- vCard to append\n filename -- un...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vcf2abook 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 vcf2abook 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...
Command line tool to convert from vCard to Abook
"Command line tool to convert from vCard to Abook"
20
false
jspricke/python-abook
vcf2abook
22,115
LDU_FT/ARMmbed/icetea/parse
LDU_FT
[ "<BEGIN>\n## `init_process_dut`", "Initialize process type Dut as DutProcess or DutConsole.\n<END>", "<BEGIN>\n## `allocate`", "Allocates resources from available local devices.", " :param dut_configuration_list: List of ResourceRequirements objects\n :param args: Not used\n :return: Al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse 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 parse 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...
Parse response. :param args: List. 2 first items used as parser name and response to parse :param kwargs: dict, not used :return: dictionary or return value of called callable from parser.
"Parse response.\n\n :param args: List. 2 first items used as parser name and response to parse\n :param kwargs: dict, not used\n :return: dictionary or return value of called callable from parser."
663
false
ARMmbed/icetea
parse
22,116
LDU_FT/suurjaak/InputScope/init
LDU_FT
[ "<BEGIN>\n## `start`", "Starts the listener with incoming and outgoing queues.\n<END>", "<BEGIN>\n## `fetch`", "Convenience wrapper for database SELECT and fetch all.\n<END>", "<BEGIN>\n## `fetchone`", "Convenience wrapper for database SELECT and fetch one.\n<END>", "<BEGIN>\n## `insert`", "Convenienc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init 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 init 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...
Loads INI configuration into this module's attributes.
"Loads INI configuration into this module's attributes."
38
false
suurjaak/InputScope
init
22,117
LDU_FT/peterbrittain/asciimatics/update
LDU_FT
[ "<BEGIN>\n## `reset`", "Reset the scene ready for playing.", " :param old_scene: The previous version of this Scene that was running before the\n application reset - e.g. due to a screen resize.\n :param screen: New screen to use if old_scene is not None.\n<END>", "<BEGIN>\n## `add_ef...
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 ...
Redraw the widgets inside this Layout. :param frame_no: The current frame to be drawn.
"Redraw the widgets inside this Layout.\n\n :param frame_no: The current frame to be drawn."
355
false
peterbrittain/asciimatics
update
22,118
LDU_FT/rsheftel/raccoon/get_locations
LDU_FT
[ "<BEGIN>\n## `sorted_exists`", "For list, values, returns the insert position for item x and whether the item already exists in the list. This\n allows one function call to return either the index to overwrite an existing value in the list, or the index to\n insert a new item in the list and keep the list i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_locations 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 get_locations 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...
For list of locations return a Series or list of the values. :param locations: list of index locations :param as_list: True to return a list of values :return: Series or list
"For list of locations return a Series or list of the values.\n\n :param locations: list of index locations\n :param as_list: True to return a list of values\n :return: Series or list"
208
false
rsheftel/raccoon
get_locations
22,119
LDU_FT/AnalogJ/lexicon/generate_base_provider_parser
LDU_FT
[ "<BEGIN>\n## `_authenticate`", "Authenticate with netcup server. Must be called first.\n<END>", "<BEGIN>\n## `_create_record`", "Create record. If it already exists, do nothing.\n<END>", "<BEGIN>\n## `_list_records`", "List all records. Return an empty list if no records found.\n ``rtype``, ``name`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_base_provider_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_base_provider_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Function that generates the base provider to be used by all dns providers.
"Function that generates the base provider to be used by all dns providers."
218
false
AnalogJ/lexicon
generate_base_provider_parser
22,120
LDU_FT/CitrineInformatics/pif-dft/get_vdW_settings
LDU_FT
[ "<BEGIN>\n## `generate_from_directory`", "Create a parser by defining which input files it will read from.", " Input:\n directory - str, directory to read from\n files - str, list of files from which to search.\n<END>", "<BEGIN>\n## `get_composition`", "Get composition of output...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vdW_settings 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_vdW_settings 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 ...
Determine the vdW type if using vdW xc functional or correction scheme from the input otherwise
"Determine the vdW type if using vdW xc functional or correction\n scheme from the input otherwise"
55
false
CitrineInformatics/pif-dft
get_vdW_settings
22,121
LDU_FT/tyarkoni/pliers/get_converter
LDU_FT
[ "<BEGIN>\n## `load_stims`", "Load one or more stimuli directly from file, inferring/extracting\n metadata as needed.", " Args:\n source (str or list): The location to load the stim(s) from. Can be\n the path to a directory, to a single file, or a list of filenames.\n dtype (str): ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_converter 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 get_converter 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...
Scans the list of available Converters and returns an instantiation of the first one whose input and output types match those passed in. Args: in_type (type): The type of input the converter must have. out_type (type): The type of output the converter must have. args, kwargs: Optional p...
"Scans the list of available Converters and returns an instantiation\n of the first one whose input and output types match those passed in.\n\n Args:\n in_type (type): The type of input the converter must have.\n out_type (type): The type of output the converter must have.\n args, kwargs: Opt...
137
false
tyarkoni/pliers
get_converter
22,122
LDU_FT/liam-middlebrook/csh_ldap/get_member_ibutton
LDU_FT
[ "<BEGIN>\n## `get_members`", "Return all members in the group as CSHMember objects\n<END>", "<BEGIN>\n## `check_member`", "Check if a Member is in the bound group.", " Arguments:\n member -- the CSHMember object (or distinguished name) of the member to\n check against", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_member_ibutton 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 get_member_ibutton 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...
Get a CSHMember object. Arguments: val -- the iButton ID of the member Returns: None if the iButton supplied does not correspond to a CSH Member
"Get a CSHMember object.\n\n Arguments:\n val -- the iButton ID of the member\n\n Returns:\n None if the iButton supplied does not correspond to a CSH Member"
29
false
liam-middlebrook/csh_ldap
get_member_ibutton
22,123
LDU_FT/CityOfZion/neo-python-core/__Build
LDU_FT
[ "<BEGIN>\n## `PrivateKeyFromWIF`", "Get the private key from a WIF key", " Args:\n wif (str): The wif key", " Returns:\n bytes: The private key\n<END>", "<BEGIN>\n## `PrivateKeyFromNEP2`", "Gets the private key from a NEP-2 encrypted private key", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __Build 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 __Build 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...
Build the merkle tree. Args: leaves (list): items are of type MerkleTreeNode. Returns: MerkleTreeNode: the root node.
"Build the merkle tree.\n\n Args:\n leaves (list): items are of type MerkleTreeNode.\n\n Returns:\n MerkleTreeNode: the root node."
175
false
CityOfZion/neo-python-core
__Build
22,124
LDU_FT/martinpitt/python-dbusmock/AddEthernetDevice
LDU_FT
[ "<BEGIN>\n## `AddAdapter`", "Convenience method to add a Bluetooth adapter", " You have to specify a device name which must be a valid part of an object\n path, e. g. \"hci0\", and an arbitrary system name (pretty hostname).", " Returns the new object path.\n<END>", "<BEGIN>\n## `AddDevice`", "Co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AddEthernetDevice 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 AddEthernetDevice 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 an ethernet device. You have to specify device_name, device interface name (e. g. eth0), and state. You can use the predefined DeviceState values (e. g. DeviceState.ACTIVATED) or supply a numeric value. For valid state values please visit http://projects.gnome.org/NetworkManager/developers/api/...
"Add an ethernet device.\n\n You have to specify device_name, device interface name (e. g. eth0), and\n state. You can use the predefined DeviceState values (e. g.\n DeviceState.ACTIVATED) or supply a numeric value. For valid state values\n please visit\n http://projects.gnome.org/NetworkManager/develope...
188
false
martinpitt/python-dbusmock
AddEthernetDevice
22,125
LDU_FT/OpenGov/python_data_wrap/GetCellValue
LDU_FT
[ "<BEGIN>\n## `read`", "Loads an arbitrary file type (xlsx, xls, or csv like) and returns\n a list of 2D tables. For csv files this will be a list of one table,\n but excel formats can have many tables/worksheets.", " TODO:\n Add wrapper which can be closed/exited on each file type which cleans\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetCellValue 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 GetCellValue 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...
get a cell, return default if that cell does not exist note that column and row START AT 1 same as excel
"get a cell, return default if that cell does not exist\r\n note that column and row START AT 1 same as excel"
94
false
OpenGov/python_data_wrap
GetCellValue
22,126
LDU_FT/openstack/monasca-common/next
LDU_FT
[ "<BEGIN>\n## `fmtd_sub_expr_str`", "Get the entire sub expressions as a string with spaces.\n<END>", "<BEGIN>\n## `normalized_operator`", "Get the operator as one of LT, GT, LTE, or GTE.\n<END>", "<BEGIN>\n## `_get_conn`", "Get or create a connection to a broker using host and port\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next 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 next 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...
Return the next available message Blocks indefinitely unless consumer_timeout_ms > 0 Returns: a single KafkaMessage from the message iterator Raises: ConsumerTimeout after consumer_timeout_ms and no message Note: This is also the method called inte...
"Return the next available message\n\n Blocks indefinitely unless consumer_timeout_ms > 0\n\n Returns:\n a single KafkaMessage from the message iterator\n\n Raises:\n ConsumerTimeout after consumer_timeout_ms and no message\n\n Note:\n This is also the method...
227
false
openstack/monasca-common
next
22,127
LDU_FT/standage/tag/_emplace_pmrna
LDU_FT
[ "<BEGIN>\n## `accession`", "Parse accession number from commonly supported formats.", " If the defline does not match one of the following formats, the entire\n description (sans leading caret) will be returned.", " * >gi|572257426|ref|XP_006607122.1|\n * >gnl|Tcas|XP_008191512.1\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _emplace_pmrna 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 _emplace_pmrna 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...
Retrieve the primary mRNA and discard all others.
"Retrieve the primary mRNA and discard all others."
114
false
standage/tag
_emplace_pmrna
22,128
LDU_FT/camsci/meteor-pi/get_user
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to a host on a given port.\n If the hostname ends with a colon (`:') followed by a number, and\n there is no port specified, that suffix will be stripped off and the\n number interpreted as the port number to use.\n<END>", "<BEGIN>\n## `waiting`", "Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user 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 get_user 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...
Retrieve a user record :param user_id: the user ID :param password: password :return: A :class:`meteorpi_model.User` if everything is correct :raises: ValueError if the user is found but password is incorrect or if the user is not found.
"Retrieve a user record\n\n :param user_id:\n the user ID\n :param password:\n password\n :return:\n A :class:`meteorpi_model.User` if everything is correct\n :raises:\n ValueError if the user is found but password is incorrect or if the user is no...
210
false
camsci/meteor-pi
get_user
22,129
LDU_FT/ReadabilityHoldings/python-readability-api/delete_tag_from_bookmark
LDU_FT
[ "<BEGIN>\n## `cast_datetime_filter`", "Cast a datetime filter value.", " :param value: string representation of a value that needs to be casted to\n a `datetime` object.\n<END>", "<BEGIN>\n## `filter_args_to_dict`", "Cast and validate filter args.", " :param filter_dict: Filter kwargs\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_tag_from_bookmark 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 delete_tag_from_bookmark API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Remove a single tag from a bookmark. The identified bookmark must belong to the current user. :param bookmark_id: ID of the bookmark to delete.
"Remove a single tag from a bookmark.\n\n The identified bookmark must belong to the current user.\n\n :param bookmark_id: ID of the bookmark to delete."
83
false
ReadabilityHoldings/python-readability-api
delete_tag_from_bookmark
22,130
LDU_FT/joealcorn/xbox/_post_json
LDU_FT
[ "<BEGIN>\n## `_get`", "Makes a GET request, setting Authorization\n header by default\n<END>", "<BEGIN>\n## `_post`", "Makes a POST request, setting Authorization\n header by default\n<END>", "<BEGIN>\n## `_post_json`", "Makes a POST request, setting Authorization\n and Content-Type h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _post_json 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 _post_json 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...
Makes a POST request, setting Authorization and Content-Type headers by default
"Makes a POST request, setting Authorization\n and Content-Type headers by default"
62
false
joealcorn/xbox
_post_json
22,131
LDU_FT/python-cmd2/cmd2/_generate_transcript
LDU_FT
[ "<BEGIN>\n## `rmrf`", "Silently remove a list of directories or files\n<END>", "<BEGIN>\n## `livehtml`", "Launch webserver on http://localhost:8000 with rendered documentation\n<END>", "<BEGIN>\n## `validatetag`", "Check to make sure that a tag exists for the current HEAD and it looks like a valid version...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_transcript 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 _generate_transcript API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generate a transcript file from a given history of commands.
"Generate a transcript file from a given history of commands."
425
false
python-cmd2/cmd2
_generate_transcript
22,132
LDU_FT/markreidvfx/pyaaf2/rmtree
LDU_FT
[ "<BEGIN>\n## `save`", "Writes current changes to disk and flushes modified objects in the\n AAFObjectManager\n<END>", "<BEGIN>\n## `close`", "Close the file. A closed file cannot be read or written any more.\n<END>", "<BEGIN>\n## `run_apidoc`", "This method is required by the setup method below.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rmtree 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 rmtree 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 ...
Removes directory structure, similar to shutil.rmtree.
"Removes directory structure, similar to shutil.rmtree."
29
false
markreidvfx/pyaaf2
rmtree
22,133
LDU_FT/all-umass/graphs/connected_subgraphs
LDU_FT
[ "<BEGIN>\n## `random_graph`", "Random graph generator. Does not generate self-edges.\n out_degree : array-like of ints, controlling the out degree of each vertex.\n<END>", "<BEGIN>\n## `urquhart_graph`", "Urquhart graph: made from the 2 shortest edges of each Delaunay triangle.\n<END>", "<BEGIN>\n## `isoma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connected_subgraphs 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 connected_subgraphs 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...
Generates connected components as subgraphs. When ordered=True, subgraphs are ordered by number of vertices.
"Generates connected components as subgraphs.\n When ordered=True, subgraphs are ordered by number of vertices."
167
false
all-umass/graphs
connected_subgraphs
22,134
LDU_FT/openego/ding0/graph_add_node
LDU_FT
[ "<BEGIN>\n## `print_upper_triangular_matrix`", "Prints a CVRP data dict matrix", " Arguments\n ---------\n matrix : dict\n Description", " Notes\n -----\n It is assummed that the first row of matrix contains all needed headers.\n<END>", "<BEGIN>\n## `print_upper_triangular_matrix_as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the graph_add_node 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 graph_add_node 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...
Adds a station or cable distributor object to grid graph if not already existing Parameters ---------- node_object : GridDing0 Description #TODO
"Adds a station or cable distributor object to grid graph if not already existing\n \n Parameters\n ----------\n node_object : GridDing0\n Description #TODO"
932
false
openego/ding0
graph_add_node
22,135
LDU_FT/ValvePython/steam/proto_fill_from_dict
LDU_FT
[ "<BEGIN>\n## `generate_twofactor_code_for_time`", "Generate Steam 2FA code for timestamp", " :param shared_secret: authenticator shared secret\n :type shared_secret: bytes\n :param timestamp: timestamp to use, if left out uses current time\n :type timestamp: int\n :return: steam two factor code\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the proto_fill_from_dict 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 proto_fill_from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Fills protobuf message parameters inplace from a :class:`dict` :param message: protobuf message instance :param data: parameters and values :type data: dict :param clear: whether clear exisiting values :type clear: bool :return: value of message paramater :raises: incorrect types or values ...
"Fills protobuf message parameters inplace from a :class:`dict`\n\n :param message: protobuf message instance\n :param data: parameters and values\n :type data: dict\n :param clear: whether clear exisiting values\n :type clear: bool\n :return: value of message paramater\n :raises: incorrect types o...
385
false
ValvePython/steam
proto_fill_from_dict
22,136
LDU_FT/grahambell/pymoc/write_moc_ascii
LDU_FT
[ "<BEGIN>\n## `run`", "Main run method for PyMOC tool.", " Takes a list of command line arguments to process.", " Each operation is performed on a current \"running\" MOC\n object.\n<END>", "<BEGIN>\n## `read_moc`", "Read a file into the current running MOC object.", " If the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_moc_ascii 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 write_moc_ascii 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...
Write a MOC to an ASCII file. Either a filename, or an open file object can be specified.
"Write a MOC to an ASCII file.\n\n Either a filename, or an open file object can be specified."
165
false
grahambell/pymoc
write_moc_ascii
22,137
LDU_FT/guyzmo/git-repo/pull
LDU_FT
[ "<BEGIN>\n## `confirm`", "Method to show a CLI based confirmation message, waiting for a yes/no answer.\n \"what\" and \"where\" are used to better define the message.\n<END>", "<BEGIN>\n## `register_target`", "Decorator to register a class with an repo_service\n<END>", "<BEGIN>\n## `get_service`", "Ac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull 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 pull 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...
Pull a repository :param remote: git-remote instance :param branch: name of the branch to pull
"Pull a repository\n :param remote: git-remote instance\n :param branch: name of the branch to pull"
38
false
guyzmo/git-repo
pull
22,138
LDU_FT/majerteam/deform_extensions/grouper
LDU_FT
[ "<BEGIN>\n## `grouper`", "Collect data into fixed-length chunks or blocks", " e.g:", " grouper('ABCDEFG', 3, 'x') --> ABC DEF Gxx", " Got it from https://docs.python.org/2/library/itertools.html#recipes\n<END>", "<BEGIN>\n## `childgroup`", "Return children grouped regarding the grid descrip...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grouper 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 grouper 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...
Collect data into fixed-length chunks or blocks e.g: grouper('ABCDEFG', 3, 'x') --> ABC DEF Gxx Got it from https://docs.python.org/2/library/itertools.html#recipes
"Collect data into fixed-length chunks or blocks\n\n e.g:\n\n grouper('ABCDEFG', 3, 'x') --> ABC DEF Gxx\n\n Got it from https://docs.python.org/2/library/itertools.html#recipes"
18
false
majerteam/deform_extensions
grouper
22,139
LDU_FT/rigetti/pyquil/prepare_register_list
LDU_FT
[ "<BEGIN>\n## `to_latex`", "Translates a given pyquil Program to a TikZ picture in a Latex document.", " :param Program circuit: The circuit to be drawn, represented as a pyquil program.\n :param dict settings: An optional dictionary with settings for drawing the circuit. See `get_default_settings`\n i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_register_list 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 prepare_register_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Canonicalize classical addresses for the payload and ready MemoryReference instances for serialization. This function will cast keys that are iterables of int-likes to a list of Python ints. This is to support specifying the register offsets as ``range()`` or numpy arrays. This mutates ``register_dict`...
"Canonicalize classical addresses for the payload and ready MemoryReference instances\n for serialization.\n\n This function will cast keys that are iterables of int-likes to a list of Python\n ints. This is to support specifying the register offsets as ``range()`` or numpy\n arrays. This mutates ``register...
1,152
true
rigetti/pyquil
prepare_register_list
22,140
LDU_FT/klen/muffin-babel/pgettext
LDU_FT
[ "<BEGIN>\n## `startup`", "Initialize a local namespace and setup Jinja2.\n<END>", "<BEGIN>\n## `get_translations`", "Load translations for given or configuration domain.", " :param domain: Messages domain (str)\n :param locale: Locale object\n<END>", "<BEGIN>\n## `gettext`", "Translate a s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pgettext 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 pgettext 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...
Like :meth:`gettext` but with a context.
"Like :meth:`gettext` but with a context."
16
false
klen/muffin-babel
pgettext
22,141
LDU_FT/MonashBI/arcana/connect
LDU_FT
[ "<BEGIN>\n## `satisfy`", "Checks whether the given requirements are satisfiable within the given\n execution context", " Parameter\n ---------\n requirements : list(Requirement)\n List of requirements to check whether they are satisfiable\n<END>", "<BEGIN>\n## `connect`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect 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 connect 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...
Parameters ---------- prev_login : xnat.XNATSession An XNAT login that has been opened in the code that calls the method that calls login. It is wrapped in a NoExitWrapper so the returned connection can be used in a "with" statement in the method.
"Parameters\n ----------\n prev_login : xnat.XNATSession\n An XNAT login that has been opened in the code that calls\n the method that calls login. It is wrapped in a\n NoExitWrapper so the returned connection can be used\n in a \"with\" statement in the method....
275
false
MonashBI/arcana
connect
22,142
LDU_FT/thefactory/marathon-python/list_apps
LDU_FT
[ "<BEGIN>\n## `_parse_response`", "Parse a Marathon response into an object or list of objects.\n<END>", "<BEGIN>\n## `create_app`", "Create and start an app.", " :param str app_id: application ID\n :param :class:`marathon.models.app.MarathonApp` app: the application to create\n :param b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_apps 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 list_apps 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...
List all apps. :param str cmd: if passed, only show apps with a matching `cmd` :param bool embed_tasks: embed tasks in result :param bool embed_counts: embed all task counts :param bool embed_deployments: embed all deployment identifier :param bool embed_readiness: embed all rea...
"List all apps.\n\n :param str cmd: if passed, only show apps with a matching `cmd`\n :param bool embed_tasks: embed tasks in result\n :param bool embed_counts: embed all task counts\n :param bool embed_deployments: embed all deployment identifier\n :param bool embed_readiness: embed ...
146
false
thefactory/marathon-python
list_apps
22,143
LDU_FT/zagaran/mongolia/iterator
LDU_FT
[ "<BEGIN>\n## `exists`", "Like __init__ but simply returns a boolean as to whether or not the\n object exists, rather than returning the whole object.", " NOTE: if you pass in a single argument to exists, this will\n match against ID_KEY.", " @param query: a dictionary specifying ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterator 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 iterator 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...
Linear time, constant memory, iterator for a mongo collection. @param path: the path of the database to query, in the form "database.colletion"; pass None to use the value of the PATH property of the object or, if that is none, the PATH property of OBJTYPE @p...
"Linear time, constant memory, iterator for a mongo collection.\n \n @param path: the path of the database to query, in the form\n \"database.colletion\"; pass None to use the value of the\n PATH property of the object or, if that is none, the\n PATH property of OBJTYPE\n ...
95
false
zagaran/mongolia
iterator
22,144
LDU_FT/albert12132/templar/hash_codeblocks
LDU_FT
[ "<BEGIN>\n## `applies`", "Checks if this rule applies to the given src and dst paths, based on the src pattern and\n dst pattern given in the constructor.", " If src pattern was None, this rule will apply to any given src path (same for dst).\n<END>", "<BEGIN>\n## `link`", "Links the content f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_codeblocks 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 hash_codeblocks 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...
Hashes codeblocks (<pre> elements). Codeblocks are strictly defined to be (non-list) lines that are indented at least 4 spaces from the newline. Exactly 4 spaces will be stripped from the beginning of the line -- any leading whitespace after that is preserved. Codeblock lines that are separated on...
"Hashes codeblocks (<pre> elements).\n\n Codeblocks are strictly defined to be (non-list) lines that are\n indented at least 4 spaces from the newline. Exactly 4 spaces will\n be stripped from the beginning of the line -- any leading\n whitespace after that is preserved.\n\n Codeblock lines that are sepa...
130
false
albert12132/templar
hash_codeblocks
22,145
LDU_FT/cohorte/cohorte-herald/__mark
LDU_FT
[ "<BEGIN>\n## `main`", "Runs the framework", " :param http_port: HTTP port to listen to\n :param peer_name: Name of the peer\n :param node_name: Name (also, UID) of the node hosting the peer\n :param app_id: Application ID\n<END>", "<BEGIN>\n## `_get_link`", "Returns a link to the given peer", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __mark 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 __mark 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 ...
Marks an element :param element: The element to mark :param mark_set: The set corresponding to the mark :return: True if the element was known
"Marks an element\n\n :param element: The element to mark\n :param mark_set: The set corresponding to the mark\n :return: True if the element was known"
110
false
cohorte/cohorte-herald
__mark
22,146
LDU_FT/bwhite/hadoopy/node_style
LDU_FT
[ "<BEGIN>\n## `__add_options`", "Add the `Makespec` options to a option-parser instance or a\n option group.\n<END>", "<BEGIN>\n## `exec_python`", "Wrap running python script in a subprocess.", " Return stdout of the invoked command.\n<END>", "<BEGIN>\n## `exec_python_rc`", "Wrap running python scr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the node_style 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 node_style 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...
Modifies a node style to the dot representation.
"Modifies a node style to the dot representation."
610
false
bwhite/hadoopy
node_style
22,147
LDU_FT/Skyscanner/pycfmodel/parse_parameters
LDU_FT
[ "<BEGIN>\n## `set_generic_keys`", "Sets all the key value pairs that were not set manually in __init__.\n<END>", "<BEGIN>\n## `star_resource_statements`", "Find statements with a resources that is a * or has a * in it.\n<END>", "<BEGIN>\n## `wildcard_allowed_actions`", "Find statements which allow wildcar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_parameters 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 parse_parameters 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 ...
Parses and sets parameters in the model.
"Parses and sets parameters in the model."
16
false
Skyscanner/pycfmodel
parse_parameters
22,148
LDU_FT/cloudendpoints/endpoints-management-python/extract_report_spec
LDU_FT
[ "<BEGIN>\n## `convert_response`", "Computes a http status code and message `CheckResponse`", " The return value a tuple (code, message, api_key_is_bad) where", " code: is the http status code\n message: is the message to return\n api_key_is_bad: indicates that a given api_key is bad", " Args:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_report_spec 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 extract_report_spec 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...
Obtains the used logs, metrics and labels from a service. label_is_supported and metric_is_supported are filter functions used to determine if label_descriptors or metric_descriptors found in the service are supported. Args: service (:class:`endpoints_management.gen.servicecontrol_v1_messages.S...
"Obtains the used logs, metrics and labels from a service.\n\n label_is_supported and metric_is_supported are filter functions used to\n determine if label_descriptors or metric_descriptors found in the service\n are supported.\n\n Args:\n service (:class:`endpoints_management.gen.servicecontrol_v1_me...
308
false
cloudendpoints/endpoints-management-python
extract_report_spec
22,149
LDU_FT/idank/bashlex/parsesingle
LDU_FT
[ "<BEGIN>\n## `_createtoken`", "create a token with position information\n<END>", "<BEGIN>\n## `p_inputunit`", "inputunit : simple_list simple_list_terminator\n | NEWLINE\n | error NEWLINE\n | EOF\n<END>", "<BEGIN>\n## `p_word_list`", "word_list : WORD\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parsesingle 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 parsesingle 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...
like parse, but only consumes a single top level node, e.g. parsing 'a\nb' will only return a node for 'a', leaving b unparsed
"like parse, but only consumes a single top level node, e.g. parsing\n 'a\\nb' will only return a node for 'a', leaving b unparsed"
59
false
idank/bashlex
parsesingle
22,150
LDU_FT/openego/eDisGo/plot_mv_line_loading
LDU_FT
[ "<BEGIN>\n## `one_storage_per_feeder`", "Allocates the given storage capacity to multiple smaller storages.", " For each feeder with load or voltage issues it is checked if integrating a\n storage will reduce peaks in the feeder, starting with the feeder with\n the highest theoretical grid expansion co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_mv_line_loading 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 plot_mv_line_loading API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Plots relative line loading (current from power flow analysis to allowed current) of MV lines. For more information see :func:`edisgo.tools.plots.mv_grid_topology`.
"Plots relative line loading (current from power flow analysis to\n allowed current) of MV lines.\n\n For more information see :func:`edisgo.tools.plots.mv_grid_topology`."
764
false
openego/eDisGo
plot_mv_line_loading
22,151
LDU_FT/LettError/MutatorMath/addKerning
LDU_FT
[ "<BEGIN>\n## `makeUnicodeMapFromSources`", "Create a dict with glyphName -> unicode value pairs\n using the data in the sources. \n If all master glyphs have the same unicode value\n this value will be used in the map.\n If master glyphs have conflicting value, a warnin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addKerning 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 addKerning 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...
Calculate the kerning data for this location and add it to this instance. * instanceLocation: Location object * source: dict of {sourcename: (source, sourceLocation)}
"Calculate the kerning data for this location and add it to this instance.\n \n * instanceLocation: Location object\n * source: dict of {sourcename: (source, sourceLocation)}"
169
false
LettError/MutatorMath
addKerning
22,152
LDU_FT/chriskiehl/Gooey/is_standard
LDU_FT
[ "<BEGIN>\n## `applyStyleRules`", "Conditionally disabled/enables form fields based on the current\r\n section in the radio group\n<END>", "<BEGIN>\n## `handleImplicitCheck`", "Checkboxes are hidden when inside of a RadioGroup as a selection of\r\n the Radio button is an implicit selection of the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_standard 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 is_standard 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...
actions which are general "store" instructions. e.g. anything which has an argument style like: $ script.py -f myfilename.txt
"actions which are general \"store\" instructions.\r\n e.g. anything which has an argument style like:\r\n $ script.py -f myfilename.txt"
60
false
chriskiehl/Gooey
is_standard
22,153
LDU_FT/idlesign/srptools/get_server_public
LDU_FT
[ "<BEGIN>\n## `hex_from`", "Returns hex string representation for a given value.", " :param bytes|str|unicode|int|long val:\n :rtype: bytes|str\n<END>", "<BEGIN>\n## `b64_from`", "Returns base64 encoded bytes for a given int/long/bytes value.", " :param int|long|bytes val:\n :rtype: bytes|str\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_server_public 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_server_public 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...
B = (k*v + g^b) % N :param int password_verifier: :param int server_private: :rtype: int
"B = (k*v + g^b) % N\n\n :param int password_verifier:\n :param int server_private:\n :rtype: int"
40
false
idlesign/srptools
get_server_public
22,154
LDU_FT/sods/ods/html
LDU_FT
[ "<BEGIN>\n## `display_url`", "Displaying URL in an IPython notebook to allow the user to click and check on information. With thanks to Fernando Perez for putting together the implementation!\n :param target: the url to display.\n :type target: string.\n<END>", "<BEGIN>\n## `iframe_url`", "Produce an if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the html 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 html 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...
Gives an html representation of the assessment.
"Gives an html representation of the assessment."
67
false
sods/ods
html
22,155
LDU_FT/ns1/ns1-python/search
LDU_FT
[ "<BEGIN>\n## `delete`", "Delete the record from the zone, including all advanced configuration,\n meta data, etc.\n<END>", "<BEGIN>\n## `update`", "Update record configuration. Pass list of keywords and their values to\n update. For the list of keywords available for zone configuration, see\n ...
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 ...
Search within a zone for specific metadata. Zone must already be loaded.
"Search within a zone for specific metadata. Zone must already be loaded."
159
false
ns1/ns1-python
search
22,156
LDU_FT/ska-sa/hypercube/register_dimension
LDU_FT
[ "<BEGIN>\n## `bytes_required`", "Returns\n -------\n int\n Estimated number of bytes required by arrays registered\n on the cube, taking their extents into account.\n<END>", "<BEGIN>\n## `register_dimension`", "Registers a dimension on this cube.", " .. code-block:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_dimension 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 register_dimension 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...
Registers a dimension on this cube. .. code-block:: python cube.register_dimension('ntime', 10000, decription="Number of Timesteps", lower_extent=100, upper_extent=200) Parameters ---------- dim_data : int or :class:`~hypercu...
"Registers a dimension on this cube.\n\n .. code-block:: python\n\n cube.register_dimension('ntime', 10000,\n decription=\"Number of Timesteps\",\n lower_extent=100, upper_extent=200)\n\n Parameters\n ----------\n dim_data : int or :cl...
163
false
ska-sa/hypercube
register_dimension
22,157
LDU_FT/laf/russound/find_signature
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to the tcp gateway\n Allow for this function to be keypad agnostic\n If keypad value is omitted, then set it to the hex value of 70 which is the recommended value for an external\n device controlling the system (top of pg 3 of cav6.6_rnet_protocol_v1.01.00.pd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_signature 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 find_signature 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...
Takes the stream of bytes received and looks for a message that matches the signature of the expected response
"Takes the stream of bytes received and looks for a message that matches the signature\n of the expected response"
24
false
laf/russound
find_signature
22,158
LDU_FT/lucapinello/Haystack/mask_seq
LDU_FT
[ "<BEGIN>\n## `sample_wr`", "Chooses k random elements (with replacement) from a population\n<END>", "<BEGIN>\n## `summary`", "m.summary() -- Return a text string one-line summary of motif and its metrics\n<END>", "<BEGIN>\n## `minimal_raw_seqs`", "m.minimal_raw_seqs() -- Return minimal list of seqs that r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mask_seq 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 mask_seq 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...
m.mask_seq(seq) -- Return a copy of input sequence in which any regions matching m are replaced with strings of N's
"m.mask_seq(seq) -- Return a copy of input sequence in which any regions matching m are replaced with strings of N's"
87
false
lucapinello/Haystack
mask_seq
22,159
LDU_FT/Bachmann1234/diff-cover/violation_lines
LDU_FT
[ "<BEGIN>\n## `_get_classes`", "Given a path and parsed xml_document provides class nodes\n with the relevant lines", " First, we look to see if xml_document contains a source\n node providing paths to search for", " If we don't have that we check each nodes filename attribute\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the violation_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the violation_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 e...
Return a list of lines in violation (integers) in `src_path` that were changed. If we have no coverage information for `src_path`, returns an empty list.
"Return a list of lines in violation (integers)\n in `src_path` that were changed.\n\n If we have no coverage information for\n `src_path`, returns an empty list."
146
false
Bachmann1234/diff-cover
violation_lines
22,160
LDU_FT/dranjan/python-plyfile/_write_txt
LDU_FT
[ "<BEGIN>\n## `plot`", "Plot vertices and triangles from a PlyData instance. Assumptions:\n `ply' has a 'vertex' element with 'x', 'y', and 'z'\n properties;", " `ply' has a 'face' element with an integral list property\n 'vertex_indices', all of whose elements have length 3.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_txt 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 _write_txt 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...
Save a PLY element to an ASCII-format PLY file. The element may contain list properties.
"Save a PLY element to an ASCII-format PLY file. The element may\n contain list properties."
34
false
dranjan/python-plyfile
_write_txt
22,161
LDU_FT/driftx/Telephus/execute_prepared_cql_query
LDU_FT
[ "<BEGIN>\n## `set_keyspace`", "switch all connections to another keyspace\n<END>", "<BEGIN>\n## `retry`", "Retry this factory's connection. It is assumed that a previous\n connection was attempted and failed- either before or after a\n successful connection.\n<END>", "<BEGIN>\n## `prep_connect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_prepared_cql_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_prepared_cql_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Executes a prepared CQL (Cassandra Query Language) statement by passing an id token and a list of variables to bind and returns a CqlResult containing the results. Parameters: - itemId - values
"Executes a prepared CQL (Cassandra Query Language) statement by passing an id token and a list of variables\n to bind and returns a CqlResult containing the results.\n\n Parameters:\n - itemId\n - values"
132
false
driftx/Telephus
execute_prepared_cql_query
22,162
LDU_FT/ministryofjustice/money-to-prisoners-common/from_callable_parameter
LDU_FT
[ "<BEGIN>\n## `get_form_errors`", "Django form errors do not obey natural field order,\n this template tag returns non-field and field-specific errors\n :param form: the form instance\n<END>", "<BEGIN>\n## `sub_nav`", "Sub-nav displayed below proposition header\n - creates alternate language links if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_callable_parameter 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 from_callable_parameter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Produces a parameter from a function or method
"Produces a parameter from a function or method"
84
false
ministryofjustice/money-to-prisoners-common
from_callable_parameter
22,163
LDU_FT/ooici/elasticpy/geo_distance_range
LDU_FT
[ "<BEGIN>\n## `ids`", "http://www.elasticsearch.org/guide/reference/query-dsl/ids-filter.html\nFilters documents that only have the provided ids. Note, this filter does not require the _id field to be indexed since it works using the _uid field.\n<END>", "<BEGIN>\n## `geo_bounding_box`", "http://www.elasticsea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the geo_distance_range 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 geo_distance_range 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...
http://www.elasticsearch.org/guide/reference/query-dsl/geo-distance-range-filter.html Filters documents that exists within a range from a specific point
"http://www.elasticsearch.org/guide/reference/query-dsl/geo-distance-range-filter.html\n Filters documents that exists within a range from a specific point"
89
false
ooici/elasticpy
geo_distance_range
22,164
LDU_FT/Grokzen/pykwalify/parse_cli
LDU_FT
[ "<BEGIN>\n## `is_float`", "Valid types are:\n - objects of float type\n - Strings that can be converted to float. For example '1e-06'\n<END>", "<BEGIN>\n## `is_timestamp`", "Yaml either have automatically converted it to a datetime object\n or it is a string that will be validated later.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_cli 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 parse_cli 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...
The outline of this function needs to be like this: 1. parse arguments 2. validate arguments only, dont go into other logic/code 3. run application logic
"The outline of this function needs to be like this:\n\n 1. parse arguments\n 2. validate arguments only, dont go into other logic/code\n 3. run application logic"
22
false
Grokzen/pykwalify
parse_cli
22,165
LDU_FT/productml/blurr/_compare_dimensions_to_fields
LDU_FT
[ "<BEGIN>\n## `run_evaluate`", "Overrides the base evaluation to set the value to the evaluation result of the value\n expression in the schema\n<END>", "<BEGIN>\n## `set`", "Sets the value of a key to a supplied value\n<END>", "<BEGIN>\n## `increment`", "Increments the value set against a key. If ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compare_dimensions_to_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compare_dimensions_to_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Compares the dimension field values to the value in regular fields.
"Compares the dimension field values to the value in regular fields."
119
false
productml/blurr
_compare_dimensions_to_fields
22,166
LDU_FT/seequent/properties/to_json
LDU_FT
[ "<BEGIN>\n## `serialize`", "Serialize Singleton instance to a dictionary.", " This behaves identically to HasProperties.serialize, except it also\n saves the identifying name in the dictionary as well.\n<END>", "<BEGIN>\n## `deserialize`", "Create a Singleton instance from a serialized diction...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json 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_json 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...
Return a copy of the tuple as a list If the tuple contains HasProperties instances, they are serialized.
"Return a copy of the tuple as a list\n\n If the tuple contains HasProperties instances, they are serialized."
252
false
seequent/properties
to_json
22,167
LDU_FT/django-leonardo/django-leonardo/page_not_found
LDU_FT
[ "<BEGIN>\n## `sort_dependencies`", "Sort a list of (app_config, models) pairs into a single list of models.\n The single list of models is sorted so that any model with a natural key\n is serialized before a normal model, and any model with a natural key\n dependency has it's dependencies serialized firs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the page_not_found 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 page_not_found 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...
Default 404 handler. Templates: :template:`404.html` Context: request_path The path of the requested URL (e.g., '/app/pages/bad_page/')
"Default 404 handler.\n\n Templates: :template:`404.html`\n Context:\n request_path\n The path of the requested URL (e.g., '/app/pages/bad_page/')"
267
false
django-leonardo/django-leonardo
page_not_found
22,168
LDU_FT/datacats/datacats/generate_ssh_key
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new environment", "Usage:\n datacats create [-bin] [--interactive] [-s NAME] [--address=IP] [--syslog]\n [--ckan=CKAN_VERSION] [--no-datapusher] [--site-url SITE_URL]\n [--no-init-db] ENVIRONMENT_DIR [PORT]", "Options:\n --address=IP ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_ssh_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. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_ssh_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. The ...
Generate a new ssh private and public key
"Generate a new ssh private and public key"
256
false
datacats/datacats
generate_ssh_key
22,169
LDU_FT/ladybug-tools/ladybug/write_to_file_by_name
LDU_FT
[ "<BEGIN>\n## `project`", "Return one vector projected on the vector other\n<END>", "<BEGIN>\n## `rotate_around`", "Return the vector rotated around axis through angle theta.", " Right hand rule applies.\n<END>", "<BEGIN>\n## `to_ip`", "Return values in IP and the units to which the values have be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_to_file_by_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_to_file_by_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. ...
Write a string of data to file by filename and folder. Args: folder: Target folder (e.g. c:/ladybug). fname: File name (e.g. testPts.pts). data: Any data as string. mkdir: Set to True to create the directory if doesn't exist (Default: False).
"Write a string of data to file by filename and folder.\n\n Args:\n folder: Target folder (e.g. c:/ladybug).\n fname: File name (e.g. testPts.pts).\n data: Any data as string.\n mkdir: Set to True to create the directory if doesn't exist (Default: False)."
743
false
ladybug-tools/ladybug
write_to_file_by_name
22,170
LDU_FT/DeV1doR/aioethereum/eth_getTransactionByBlockNumberAndIndex
LDU_FT
[ "<BEGIN>\n## `db_putString`", "https://github.com/ethereum/wiki/wiki/JSON-RPC#db_putstring", " DEPRECATED\n<END>", "<BEGIN>\n## `db_getString`", "https://github.com/ethereum/wiki/wiki/JSON-RPC#db_getstring", " DEPRECATED\n<END>", "<BEGIN>\n## `db_putHex`", "https://github.com/ethereum/wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eth_getTransactionByBlockNumberAndIndex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eth_getTransactionByBlockNumberAndIndex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate...
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_gettransactionbyblocknumberandindex :param block: Block tag or number (optional) :type block: int or BLOCK_TAGS :param index: Index position (optional) :type index: int :return: transaction :rtype: dict or None
"https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_gettransactionbyblocknumberandindex\n\n :param block: Block tag or number (optional)\n :type block: int or BLOCK_TAGS\n\n :param index: Index position (optional)\n :type index: int\n\n :return: transaction\n :rtype: dict or No...
166
false
DeV1doR/aioethereum
eth_getTransactionByBlockNumberAndIndex
22,171
LDU_FT/newville/wxmplot/series
LDU_FT
[ "<BEGIN>\n## `display`", "generic display, using imshow (default) or contour\n<END>", "<BEGIN>\n## `update_image`", "update image on panel, as quickly as possible\n<END>", "<BEGIN>\n## `add_highlight_area`", "add a highlighted area -- outline an arbitrarily shape --\n as if drawn from a Lasso event...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the series 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 series 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 ...
Return series of TIFFpage with compatible shape and properties.
"Return series of TIFFpage with compatible shape and properties."
169
false
newville/wxmplot
series
22,172