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/mojaie/chorus/mols_to_file
LDU_FT
[ "<BEGIN>\n## `draw`", "Draw molecule structure image.", " Args:\n canvas: draw.drawable.Drawable\n mol: model.graphmol.Compound\n<END>", "<BEGIN>\n## `smiles_to_compound`", "Convert SMILES text to compound object", " Raises:\n ValueError: SMILES with unsupported format\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mols_to_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mols_to_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 extr...
Save molecules to the SDFile format file Args: mols: list of molecule objects path: file path to save
"Save molecules to the SDFile format file\n\n Args:\n mols: list of molecule objects\n path: file path to save"
158
false
mojaie/chorus
mols_to_file
25,273
LDU_FT/asmodehn/filefinder2/_find_spec_from_path
LDU_FT
[ "<BEGIN>\n## `strip_encoding_cookie`", "Generator to pull lines from a text-mode file, skipping the encoding\n cookie if it is found in the first two lines.\n<END>", "<BEGIN>\n## `source_to_unicode`", "Converts a bytes string with python source code to unicode.\n Unicode strings are passed through uncha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_spec_from_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_spec_from_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return the spec for the specified module. First, sys.modules is checked to see if the module was already imported. If so, then sys.modules[name].__spec__ is returned. If that happens to be set to None, then ValueError is raised. If the module is not in sys.modules, then sys.meta_path is searched for a s...
"Return the spec for the specified module.\n First, sys.modules is checked to see if the module was already imported. If\n so, then sys.modules[name].__spec__ is returned. If that happens to be\n set to None, then ValueError is raised. If the module is not in\n sys.modules, then sys.meta_path is searched fo...
64
false
asmodehn/filefinder2
_find_spec_from_path
25,274
LDU_FT/elehcimd/pynb/get_kernelspec
LDU_FT
[ "<BEGIN>\n## `get_func`", "Get function from module\n :param func_name: function name\n :param module_pathname: pathname to module\n :return:\n<END>", "<BEGIN>\n## `cell_hash`", "Compute cell hash based on cell index and cell content\n :param cell: cell to be hashed\n :param cell_index...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_kernelspec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_kernelspec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get a kernel specification dictionary given a kernel name
"Get a kernel specification dictionary given a kernel name"
39
false
elehcimd/pynb
get_kernelspec
25,275
LDU_FT/Arello-Mobile/swagger2rst/get_header_example
LDU_FT
[ "<BEGIN>\n## `get_type_properties`", "Get internal properties of property (extended in schema)", " :param dict property_obj: raw property object\n :param str name: name of property\n :param bool additional_prop: recursion's param\n :return: Type, format and internal properties of pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_header_example 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_header_example 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 example for header object :param Header header: Header object :return: example :rtype: dict
"Get example for header object\n\n :param Header header: Header object\n :return: example\n :rtype: dict"
47
false
Arello-Mobile/swagger2rst
get_header_example
25,276
LDU_FT/kyzima-spb/flask-pony/add
LDU_FT
[ "<BEGIN>\n## `get_success_url`", "Args:\n obj (object): The object whose property values are used to build the URL.", " Returns:\n str: The URL to which to go if the form was processed successfully.\n<END>", "<BEGIN>\n## `get_template_name`", "Returns the name of the template.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. 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 add API. 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...
Adds an element to the form based on the entity attribute.
"Adds an element to the form based on the entity attribute."
15
false
kyzima-spb/flask-pony
add
25,277
LDU_FT/shawalli/psycopg2-pgevents/trigger_function_installed
LDU_FT
[ "<BEGIN>\n## `trigger_function_installed`", "Test whether or not the psycopg2-pgevents trigger function is installed.", " Parameters\n ----------\n connection: psycopg2.extensions.connection\n Active connection to a PostGreSQL database.", " Returns\n -------\n bool\n True if th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trigger_function_installed 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 trigger_function_installed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Test whether or not the psycopg2-pgevents trigger function is installed. Parameters ---------- connection: psycopg2.extensions.connection Active connection to a PostGreSQL database. Returns ------- bool True if the trigger function is installed, otherwise False.
"Test whether or not the psycopg2-pgevents trigger function is installed.\n\n Parameters\n ----------\n connection: psycopg2.extensions.connection\n Active connection to a PostGreSQL database.\n\n Returns\n -------\n bool\n True if the trigger function is installed, otherwise False."
52
false
shawalli/psycopg2-pgevents
trigger_function_installed
25,278
LDU_FT/ssanderson/interface/_conflicting_defaults
LDU_FT
[ "<BEGIN>\n## `unique`", "Yield values yielded by ``g``, removing any duplicates.", " Example\n -------\n >>> list(unique(iter([1, 3, 1, 2, 3])))\n [1, 3, 2]\n<END>", "<BEGIN>\n## `static_get_type_attr`", "Get a type attribute statically, circumventing the descriptor protocol.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _conflicting_defaults 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 _conflicting_defaults API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Format an error message for conflicting default implementations. Parameters ---------- typename : str Name of the type for which we're producing an error. conflicts : dict[str -> list[Interface]] Map from strings to interfaces providing a default with that name. Returns -------...
"Format an error message for conflicting default implementations.\n\n Parameters\n ----------\n typename : str\n Name of the type for which we're producing an error.\n conflicts : dict[str -> list[Interface]]\n Map from strings to interfaces providing a default with that name.\n\n Returns\n...
31
false
ssanderson/interface
_conflicting_defaults
25,279
LDU_FT/eliangcs/http-prompt/extract_args_for_httpie_main
LDU_FT
[ "<BEGIN>\n## `generate_help_text`", "Return a formatted string listing commands, HTTPie options, and HTTP\n actions.\n<END>", "<BEGIN>\n## `colformat`", "Format a list of strings like ls does multi-column output.\n<END>", "<BEGIN>\n## `load_context`", "Load a Context object in place from user data dire...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_args_for_httpie_main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_args_for_httpie_main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Transform a Context object to a list of arguments that can be passed to HTTPie main function.
"Transform a Context object to a list of arguments that can be passed to\n HTTPie main function."
19
false
eliangcs/http-prompt
extract_args_for_httpie_main
25,280
LDU_FT/brechtm/rinohtype/read_flat
LDU_FT
[ "<BEGIN>\n## `preprocess_tree`", "Transform internal refuri targets in reference nodes to refids and\n transform footnote rubrics so that they do not end up in the output\n<END>", "<BEGIN>\n## `_size_columns`", "Calculate the table's column sizes constrained by:", " - requested (absolute, rela...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_flat API. 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 read_flat API. 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...
Read a PNG file and decode it into flat row flat pixel format. Returns (*width*, *height*, *pixels*, *metadata*). May use excessive memory. `pixels` are returned in flat row flat pixel format. See also the :meth:`read` method which returns pixels in the more stream-friendly b...
"Read a PNG file and decode it into flat row flat pixel format.\n\n Returns (*width*, *height*, *pixels*, *metadata*).\n\n May use excessive memory.\n\n `pixels` are returned in flat row flat pixel format.\n\n See also the :meth:`read` method which returns pixels in the\n more stream-...
310
false
brechtm/rinohtype
read_flat
25,281
LDU_FT/Erotemic/timerit/call
LDU_FT
[ "<BEGIN>\n## `chunks`", "simple two-line alternative to `ubelt.chunks`\n<END>", "<BEGIN>\n## `_choose_unit`", "Finds a good unit to print seconds in", " Args:\n value (float): measured value in seconds\n unit (str): if specified, overrides heuristic decision\n asciimode (bool): if Tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Alternative way to time a simple function call using condensed syntax. Returns: self (timerit.Timerit): Use `min`, or `mean` to get a scalar. Use `print` to output a report to stdout. Example: >>> import math >>> time = Timerit(num=10).call(math.fact...
"Alternative way to time a simple function call using condensed syntax.\n\n Returns:\n self (timerit.Timerit): Use `min`, or `mean` to get a scalar. Use\n `print` to output a report to stdout.\n\n Example:\n >>> import math\n >>> time = Timerit(num=10).call(...
48
false
Erotemic/timerit
call
25,282
LDU_FT/freshbooks/statsdecor/decrement
LDU_FT
[ "<BEGIN>\n## `increment`", "Function decorator for incrementing a statsd stat whenever\n a function is invoked.", " >>> from statsdecor.decorators import increment\n >>> @increment('my.metric')\n >>> def my_func():\n >>> pass\n<END>", "<BEGIN>\n## `decrement`", "Function decorator for dec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrement API. 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 decrement API. 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...
Function decorator for decrementing a statsd stat whenever a function is invoked. >>> from statsdecor.decorators import decrement >>> @decrement('my.metric') >>> def my_func(): >>> pass
"Function decorator for decrementing a statsd stat whenever\n a function is invoked.\n\n >>> from statsdecor.decorators import decrement\n >>> @decrement('my.metric')\n >>> def my_func():\n >>> pass"
25
false
freshbooks/statsdecor
decrement
25,283
LDU_FT/jamesturk/scrapelib/request
LDU_FT
[ "<BEGIN>\n## `key_for_request`", "Return a cache key from a given set of request parameters.", " Default behavior is to return a complete URL for all GET\n requests, and None otherwise.", " Can be overriden if caching of non-get requests is desired.\n<END>", "<BEGIN>\n## `re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. 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 request API. 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...
Override, wraps Session.request in caching. Cache is only used if key_for_request returns a valid key and should_cache_response was true as well.
"Override, wraps Session.request in caching.\n\n Cache is only used if key_for_request returns a valid key\n and should_cache_response was true as well."
20
false
jamesturk/scrapelib
request
25,284
LDU_FT/carsonyl/pypac/dateRange
LDU_FT
[ "<BEGIN>\n## `proxy_urls_from_dns`", "Generate URLs from which to look for a PAC file, based on a hostname.\r\n Fully-qualified hostnames are checked against the Mozilla Public Suffix List to ensure that\r\n generated URLs don't go outside the scope of the organization.\r\n If the fully-qualified hostnam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dateRange API. 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 dateRange API. 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...
Accepted forms: * ``dateRange(day)`` * ``dateRange(day1, day2)`` * ``dateRange(mon)`` * ``dateRange(month1, month2)`` * ``dateRange(year)`` * ``dateRange(year1, year2)`` * ``dateRange(day1, month1, day2, month2)`` * ``dateRange(month1, year1, month2, year2)`` * ``dateRange(day1, mon...
"Accepted forms:\n\n * ``dateRange(day)``\n * ``dateRange(day1, day2)``\n * ``dateRange(mon)``\n * ``dateRange(month1, month2)``\n * ``dateRange(year)``\n * ``dateRange(year1, year2)``\n * ``dateRange(day1, month1, day2, month2)``\n * ``dateRange(month1, year1, month2, year2)``\n * ``dateRang...
88
false
carsonyl/pypac
dateRange
25,285
LDU_FT/OpenTreeOfLife/peyotl/get_rel_path_fragment
LDU_FT
[ "<BEGIN>\n## `write_taxon_info`", "Writes out data from `taxon` to the `output` stream to demonstrate\n the attributes of a taxon object.\n (currently some lines are commented out until the web-services call returns more info. See:\n https://github.com/OpenTreeOfLife/taxomachine/issues/85\n ).\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rel_path_fragment 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_rel_path_fragment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
For `doc_id` returns the path from the repo to the doc file. This is useful because (if you know the remote), it lets you construct the full path.
"For `doc_id` returns the path from the\n repo to the doc file. This is useful because\n (if you know the remote), it lets you construct the full path."
456
false
OpenTreeOfLife/peyotl
get_rel_path_fragment
25,286
LDU_FT/edeposit/edeposit.amqp/body
LDU_FT
[ "<BEGIN>\n## `_process_exception`", "Process informations about exception and send them thru AMQP.", " Args:\n e (obj): Exception instance.\n body (str): Text which will be sent over AMQP.\n tb (obj): Traceback object with informations, which will be put to the\n headers...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the body API. 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 body API. 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...
This method just handles AMQP connection details and receive loop. Warning: Don't override this method!
"This method just handles AMQP connection details and receive loop.\n\n Warning:\n Don't override this method!"
70
false
edeposit/edeposit.amqp
body
25,287
LDU_FT/political-memory/django-representatives/get_or_create
LDU_FT
[ "<BEGIN>\n## `create_parl_websites`", "Prepare for remote_id removal by creating WebSite entities from it.\n<END>", "<BEGIN>\n## `migrate_constituencies`", "Re-save constituencies to recompute fingerprints\n<END>", "<BEGIN>\n## `_get_path`", "Get value at specific path in dictionary. Path is specified by ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Implements get_or_create logic for models that inherit from representatives.models.HashableModel because we don't have access to model methods in a migration scenario.
"Implements get_or_create logic for models that inherit from\n representatives.models.HashableModel because we don't have access to model\n methods in a migration scenario."
22
false
political-memory/django-representatives
get_or_create
25,288
LDU_FT/automl/HpBandSter/_advance_to_next_stage
LDU_FT
[ "<BEGIN>\n## `get_config`", "Function to sample a new configuration", "\t\t\tThis function is called inside Hyperband to query a new configuration", "\t\t\tParameters:\n\t\t\t-----------\n\t\t\tbudget: float\n\t\t\t\tthe budget for which this configuration is scheduled", "\t\t\treturns: config\n\t\t\t\tshou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _advance_to_next_stage 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 _advance_to_next_stage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
SuccessiveHalving simply continues the best based on the current loss.
"SuccessiveHalving simply continues the best based on the current loss."
188
false
automl/HpBandSter
_advance_to_next_stage
25,289
LDU_FT/Trax-air/swagger-parser/_example_from_allof
LDU_FT
[ "<BEGIN>\n## `_validate_post_body`", "returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>", "<BEGIN>\n## `build_definitions_example`", "Parse all definitions in the swagger specification.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _example_from_allof 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 _example_from_allof 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...
Get the examples from an allOf section. Args: prop_spec: property specification you want an example of. Returns: An example dict
"Get the examples from an allOf section.\n\n Args:\n prop_spec: property specification you want an example of.\n\n Returns:\n An example dict"
100
false
Trax-air/swagger-parser
_example_from_allof
25,290
LDU_FT/fractalego/parvusdb/add_line
LDU_FT
[ "<BEGIN>\n## `add_line`", "Adds a line to the LISP code to execute", " :param string: The line to add\n :return: None\n<END>", "<BEGIN>\n## `add_graph_to_namespace`", "Adds the variables name to the namespace of the local LISP code", " :param graph: the graph to add to the namespace\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Adds a line to the LISP code to execute :param string: The line to add :return: None
"Adds a line to the LISP code to execute\n\n :param string: The line to add\n :return: None"
36
false
fractalego/parvusdb
add_line
25,291
LDU_FT/dariusbakunas/rawdisk/detect_scheme
LDU_FT
[ "<BEGIN>\n## `get_entry`", "Get mft entry by index. If entry is not already loaded it will load \\\n it from file specified during :class:`MftTable` initialization.", " Returns:\n MftEntry: initialized :class:`~.mft_entry.MftEntry`.\n<END>", "<BEGIN>\n## `do_list`", "Enumerate resou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_scheme API. 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 detect_scheme API. 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...
Detects partitioning scheme of the source Args: filename (str): path to file or device for detection of \ partitioning scheme. Returns: SCHEME_MBR, SCHEME_GPT or SCHEME_UNKNOWN Raises: IOError: The file doesn't exist or cannot be opened for reading >>> from rawdisk.sc...
"Detects partitioning scheme of the source\n\n Args:\n filename (str): path to file or device for detection of \\\n partitioning scheme.\n\n Returns:\n SCHEME_MBR, SCHEME_GPT or SCHEME_UNKNOWN\n\n Raises:\n IOError: The file doesn't exist or cannot be opened for reading\n\n >>> f...
75
false
dariusbakunas/rawdisk
detect_scheme
25,292
LDU_FT/graphql-python/graphql-core/get_operation_type
LDU_FT
[ "<BEGIN>\n## `is_valid_value`", "Given a type and any value, return True if that value is valid.\n<END>", "<BEGIN>\n## `get_key_for_schema_and_document_string`", "This method returns a unique key given a schema and a request_string\n<END>", "<BEGIN>\n## `document_from_string`", "This method returns a Grap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_operation_type 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_operation_type 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...
Returns the operation type ('query', 'mutation', 'subscription' or None) for the given operation_name. If no operation_name is provided (and only one operation exists) it will return the operation type for that operation
"Returns the operation type ('query', 'mutation', 'subscription' or None)\n for the given operation_name.\n If no operation_name is provided (and only one operation exists) it will return the\n operation type for that operation"
128
false
graphql-python/graphql-core
get_operation_type
25,293
LDU_FT/sloria/textblob-aptagger/train
LDU_FT
[ "<BEGIN>\n## `train`", "Train a model from sentences, and save it at ``save_loc``. ``nr_iter``\n controls the number of Perceptron training iterations.", " :param sentences: A list of (words, tags) tuples.\n :param save_loc: If not ``None``, saves a pickled model in this location.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return an averaged perceptron model trained on ``examples`` for ``nr_iter`` iterations.
"Return an averaged perceptron model trained on ``examples`` for\n ``nr_iter`` iterations."
13
false
sloria/textblob-aptagger
train
25,294
LDU_FT/tech-pi/doufo/filter
LDU_FT
[ "<BEGIN>\n## `_nargs`", "number of positional arguments values. Dynamically computed from the arguments attribute.\n<END>", "<BEGIN>\n## `_ndefs`", "number of any default values for positional or keyword parameters\n<END>", "<BEGIN>\n## `func`", "decorates normal function to Function with (optional) numbe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. 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 filter API. 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 ...
doufo.List.filter: filter this `List` obj with input `f` function Args: `self`: f (`Callable[[A],B]`): function that tells `True` or `False` Returns: return (`List[T]`): Filtered List Raises:
"doufo.List.filter: filter this `List` obj with input `f` function \n Args: \n `self`: \n f (`Callable[[A],B]`): function that tells `True` or `False` \n Returns: \n return (`List[T]`): Filtered List \n Raises:"
48
false
tech-pi/doufo
filter
25,295
LDU_FT/klmitch/requiem/proc_exception
LDU_FT
[ "<BEGIN>\n## `send`", "Issue the request.", " Uses httplib2.Http support for handling redirects. Returns an\n httplib2.Response, which may be augmented by the\n proc_response() method.", " Note that the default implementation of proc_response() causes\n an appropriate excep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the proc_exception API. 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 proc_exception API. 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...
Post-process an exception through all processors in the stack, in reverse order. The exception so post-processed is any exception raised by the Request object's proc_response() method; if the httplib2.Http raises an exception, that exception will not be processed by this mechanism. ...
"Post-process an exception through all processors in the stack,\n in reverse order. The exception so post-processed is any\n exception raised by the Request object's proc_response()\n method; if the httplib2.Http raises an exception, that\n exception will not be processed by this mechanism....
46
false
klmitch/requiem
proc_exception
25,296
LDU_FT/TracyWebTech/django-revproxy/unquote
LDU_FT
[ "<BEGIN>\n## `should_stream`", "Function to verify if the proxy_response must be converted into\n a stream.This will be done by checking the proxy_response content-length\n and verify if its length is bigger than one stipulated\n by MIN_STREAMING_LENGTH.", " :param proxy_response: An Instance of url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unquote API. 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 unquote API. 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...
Remove wrapping quotes from a string. :param value: A string that might be wrapped in double quotes, such as a HTTP cookie value. :returns: Beginning and ending quotes removed and escaped quotes (``\"``) unescaped
"Remove wrapping quotes from a string.\n\n :param value: A string that might be wrapped in double quotes, such\n as a HTTP cookie value.\n :returns: Beginning and ending quotes removed and escaped quotes (``\\\"``)\n unescaped"
41
false
TracyWebTech/django-revproxy
unquote
25,297
LDU_FT/SeabornGames/RequestClient/_create_api_call
LDU_FT
[ "<BEGIN>\n## `reinstantiate_endpoints`", "This will re-instantiate the endpoints with the connection this time\n :param endpoint: Endpoint object to instantiate the sub endpoint in.\n :return: None\n<END>", "<BEGIN>\n## `_pre_process_call`", "This is called by the method_decorator within...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_api_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_api_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This will create an APICall object and return it :param method: str of the html method ['GET','POST','PUT','DELETE'] :param _url: str of the sub url of the api call (ex. g/device/list) :param kwargs: dict of additional arguments :return: ApiCall
"This will create an APICall object and return it\n :param method: str of the html method ['GET','POST','PUT','DELETE']\n :param _url: str of the sub url of the api call (ex. g/device/list)\n :param kwargs: dict of additional arguments\n :return: ApiCall"
148
false
SeabornGames/RequestClient
_create_api_call
25,298
LDU_FT/datadesk/django-bakery/get_all_objects_in_bucket
LDU_FT
[ "<BEGIN>\n## `serve`", "Serve static files below a given point in the directory structure.", " To use, put a URL pattern such as::", " (r'^(?P<path>.*)$', 'django.views.static.serve',\n {'document_root' : '/path/to/my/files/'})", " in your URLconf. You must provide the ``document_roo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_objects_in_bucket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_objects_in_bucket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Little utility method that handles pagination and returns all objects in given bucket.
"Little utility method that handles pagination and returns\n all objects in given bucket."
104
false
datadesk/django-bakery
get_all_objects_in_bucket
25,299
LDU_FT/jreese/ent/subclasses
LDU_FT
[ "<BEGIN>\n## `_encode`", "Generate a recursive JSON representation of the ent.\n<END>", "<BEGIN>\n## `load`", "Create a new ent from an existing value. The value must either\n be an instance of Ent, or must be an instance of SAFE_TYPES. If\n the value is a base type (bool, int, string, etc), i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subclasses API. 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 subclasses API. 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...
Return a set of all Ent subclasses, recursively.
"Return a set of all Ent subclasses, recursively."
16
false
jreese/ent
subclasses
25,300
LDU_FT/michaeljoseph/changes/dry_run
LDU_FT
[ "<BEGIN>\n## `initialise`", "Detects, prompts and initialises the project.", " Stores project and tool configuration in the `changes` module.\n<END>", "<BEGIN>\n## `install_package`", "Attempts to install the sdist and wheel.\n<END>", "<BEGIN>\n## `upload_package`", "Uploads your project packages to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dry_run API. 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 dry_run API. 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...
Executes a shell command unless the dry run option is set
"Executes a shell command unless the dry run option is set"
39
false
michaeljoseph/changes
dry_run
25,301
LDU_FT/Chyroc/WechatSogou/get_gzh_by_search
LDU_FT
[ "<BEGIN>\n## `__hosting_wechat_img`", "将微信明细中图片托管到云端,同时将html页面中的对应图片替换", " Parameters\n ----------\n content_info : dict 微信文章明细字典\n {\n 'content_img_list': [], # 从微信文章解析出的原始图片列表\n 'content_html': '', # 从微信文章解析出文章的内容\n }\n hosting_ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gzh_by_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gzh_by_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...
从搜索公众号获得的文本 提取公众号信息 Parameters ---------- text : str or unicode 搜索公众号获得的文本 Returns ------- list[dict] { 'open_id': '', # 微信号唯一ID 'profile_url': '', # 最近10条群发页链接 'headimage': '', # 头像 ...
"从搜索公众号获得的文本 提取公众号信息\n\n Parameters\n ----------\n text : str or unicode\n 搜索公众号获得的文本\n\n Returns\n -------\n list[dict]\n {\n 'open_id': '', # 微信号唯一ID\n 'profile_url': '', # 最近10条群发页链接\n 'headimage': '', # 头像...
99
false
Chyroc/WechatSogou
get_gzh_by_search
25,302
LDU_FT/timothyb0912/pylogit/ensure_num_chosen_alts_equals_num_obs
LDU_FT
[ "<BEGIN>\n## `get_dataframe_from_data`", "Parameters\n ----------\n data : string or pandas dataframe.\n If string, data should be an absolute or relative path to a CSV file\n containing the long format data for this choice model. Note long format\n has one row per available alternative...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_num_chosen_alts_equals_num_obs 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 ensure_num_chosen_alts_equals_num_obs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
Checks that the total number of recorded choices equals the total number of observations. If this is not the case, raise helpful ValueError messages. Parameters ---------- obs_id_col : str. Denotes the column in `df` that contains the observation ID values for each row. choice_col :...
"Checks that the total number of recorded choices equals the total number of\n observations. If this is not the case, raise helpful ValueError messages.\n\n Parameters\n ----------\n obs_id_col : str.\n Denotes the column in `df` that contains the observation ID values for\n each row.\n cho...
871
false
timothyb0912/pylogit
ensure_num_chosen_alts_equals_num_obs
25,303
LDU_FT/mistio/mist.client/add_key
LDU_FT
[ "<BEGIN>\n## `request`", "The main purpose of this is to be a wrapper-like function to pass the api_token and all the other params to the\n requests that are being made", " :returns: An instance of RequestsHandler\n<END>", "<BEGIN>\n## `delete`", "Delete the cloud from the list of added clouds...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extracted...
Add a new key to mist.io :param key_name: Name of the new key (it will be used as the key's id as well). :param private: Private ssh-key in string format (see also generate_key() ). :returns: An updated list of added keys.
"Add a new key to mist.io\n\n :param key_name: Name of the new key (it will be used as the key's id as well).\n :param private: Private ssh-key in string format (see also generate_key() ).\n\n :returns: An updated list of added keys."
106
false
mistio/mist.client
add_key
25,304
LDU_FT/KrishnaswamyLab/PHATE/check_in
LDU_FT
[ "<BEGIN>\n## `_get_plot_data`", "Get plot data out of an input object", " Parameters\n ----------\n data : array-like, `phate.PHATE` or `scanpy.AnnData`\n ndim : int, optional (default: None)\n Minimum number of dimensions\n<END>", "<BEGIN>\n## `scatter`", "Create a scatter plot", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_in API. 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 check_in API. 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...
Checks parameters are in a list of allowed parameters Parameters ---------- choices : array-like, accepted values params : object Named arguments, parameters to be checked Raises ------ ValueError : unacceptable choice of parameters
"Checks parameters are in a list of allowed parameters\n\n Parameters\n ----------\n\n choices : array-like, accepted values\n\n params : object\n Named arguments, parameters to be checked\n\n Raises\n ------\n ValueError : unacceptable choice of parameters"
162
false
KrishnaswamyLab/PHATE
check_in
25,305
LDU_FT/markuskiller/textblob-de/find_tokens
LDU_FT
[ "<BEGIN>\n## `definite_article`", "Returns the definite article (der/die/das/die) for a given word.\n<END>", "<BEGIN>\n## `indefinite_article`", "Returns the indefinite article (ein) for a given word.\n<END>", "<BEGIN>\n## `article`", "Returns the indefinite (ein) or definite (der/die/das/die) article for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_tokens API. 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 find_tokens API. 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...
Returns a list of sentences. Each sentence is a space-separated string of tokens (words). Handles common cases of abbreviations (e.g., etc., ...). Punctuation marks are split from other words. Periods (or ?!) mark the end of a sentence. Headings without an ending period are inferred by line brea...
"Returns a list of sentences. Each sentence is a space-separated string of tokens (words).\n Handles common cases of abbreviations (e.g., etc., ...).\n Punctuation marks are split from other words. Periods (or ?!) mark the end of a sentence.\n Headings without an ending period are inferred by line ...
407
false
markuskiller/textblob-de
find_tokens
25,306
LDU_FT/thespacedoctor/fundamentals/convert_sqlite_to_mysql
LDU_FT
[ "<BEGIN>\n## `main`", "The main function used when ``yaml_to_database.py`` when installed as a cl tool\n<END>", "<BEGIN>\n## `ingest`", "*ingest the contents of the directory of yaml files into a database*", " **Return:**\n - None", " **Usage:**", " To import an entir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_sqlite_to_mysql 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 convert_sqlite_to_mysql API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
*copy the contents of the sqlite database into the mysql database* See class docstring for usage
"*copy the contents of the sqlite database into the mysql database*\n\n See class docstring for usage"
306
false
thespacedoctor/fundamentals
convert_sqlite_to_mysql
25,307
LDU_FT/PGower/PyCanvas/list_revisions_courses
LDU_FT
[ "<BEGIN>\n## `get_all_quiz_submissions`", "Get all quiz submissions.\r", " Get a list of all submissions for this quiz. Users who can view or manage\r\n grades for a course will have submissions from multiple users returned. A\r\n user who can only submit will have only their own submission...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_revisions_courses 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 list_revisions_courses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
List revisions. List the revisions of a page. Callers must have update rights on the page in order to see page history.
"List revisions.\r\n\r\n List the revisions of a page. Callers must have update rights on the page in order to see page history."
833
false
PGower/PyCanvas
list_revisions_courses
25,308
LDU_FT/pythongssapi/python-gssapi/name
LDU_FT
[ "<BEGIN>\n## `name`", "Get the name associated with these credentials\n<END>", "<BEGIN>\n## `acquire`", "Acquire GSSAPI credentials", " This method acquires credentials. If the `store` argument is\n used, the credentials will be acquired from the given\n credential store (if supported)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Get the name associated with these credentials
"Get the name associated with these credentials"
97
false
pythongssapi/python-gssapi
name
25,309
LDU_FT/major/supernova/run_supernova_keyring
LDU_FT
[ "<BEGIN>\n## `get_user_password`", "Allows the user to print the credential for a particular keyring entry\n to the screen\n<END>", "<BEGIN>\n## `pull_env_credential`", "Dissects a keyring credential lookup string from the supernova config file\n and returns the username/password combo\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_supernova_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 run_supernova_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. ...
Sets or retrieves credentials stored in your system's keyring using the python-keyring module. Global credentials can be shared between multiple configuration sections: \b [prod] OS_PASSWORD=USE_KEYRING['sso_password'] ... \b [staging] OS_PASSWORD=USE_KEYRING['...
"Sets or retrieves credentials stored in your system's keyring using the\n python-keyring module.\n\n Global credentials can be shared between multiple configuration sections:\n\n \\b\n [prod]\n OS_PASSWORD=USE_KEYRING['sso_password']\n ...\n\n \\b\n [staging]\n OS_PASSWOR...
66
false
major/supernova
run_supernova_keyring
25,310
LDU_FT/thewca/wca-regulations-compiler/p_subsection
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse an input string, and return an AST\n doctype must have WCADocument as a baseclass\n<END>", "<BEGIN>\n## `_act_on_list`", "Act on the following rule :\n items : items item\n | item\n<END>", "<BEGIN>\n## `p_content`", "content : TITLE opttexts...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_subsection API. 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 p_subsection API. 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...
subsection : HEADERSUBSEC texts | HEADERSUBSEC texts labeldecls opttexts
"subsection : HEADERSUBSEC texts\n | HEADERSUBSEC texts labeldecls opttexts"
36
false
thewca/wca-regulations-compiler
p_subsection
25,311
LDU_FT/the01/python-paps/start
LDU_FT
[ "<BEGIN>\n## `format_message_type`", "Get printable version for message type", " :param message_type: Message type\n :type message_type: int\n :return: Printable version\n :rtype: str\n<END>", "<BEGIN>\n## `format_data`", "Format bytes for printing", " :param data: Bytes\n :type data: No...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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...
Start the interface :param blocking: Should the call block until stop() is called (default: False) :type blocking: bool :rtype: None :raises SensorStartException: Failed to start
"Start the interface\n\n :param blocking: Should the call block until stop() is called\n (default: False)\n :type blocking: bool\n :rtype: None\n :raises SensorStartException: Failed to start"
182
false
the01/python-paps
start
25,312
LDU_FT/pandemicsyn/statsdpy/report_stats
LDU_FT
[ "<BEGIN>\n## `_set_prefixes`", "Set the graphite key prefixes", " :param dict conf: The configuration data\n<END>", "<BEGIN>\n## `_get_batches`", "given a list yield list at most self.max_batch_size in size\n<END>", "<BEGIN>\n## `report_stats`", "Send data to graphite host", " :param pay...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report_stats API. 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 report_stats API. 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 data to graphite host :param payload: Data to send to graphite
"Send data to graphite host\n\n :param payload: Data to send to graphite"
30
false
pandemicsyn/statsdpy
report_stats
25,313
LDU_FT/e7dal/bubble3/step_it_should_pass_with
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_it_should_pass_with 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 step_it_should_pass_with API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
EXAMPLE: ... when I run "behave ..." then it should pass with: """ TEXT """
"EXAMPLE:\n ...\n when I run \"behave ...\"\n then it should pass with:\n \"\"\"\n TEXT\n \"\"\""
171
false
e7dal/bubble3
step_it_should_pass_with
25,314
LDU_FT/jwodder/doapi/fetch
LDU_FT
[ "<BEGIN>\n## `fetch`", "Fetch & return a new `Action` object representing the action's current\n state", " :rtype: Action\n :raises DOAPIError: if the API endpoint replies with an error\n<END>", "<BEGIN>\n## `fetch_resource`", "Fetch & return the resource that the action operated on, or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch API. 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 fetch API. 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...
Fetch & return a new `Action` object representing the action's current state :rtype: Action :raises DOAPIError: if the API endpoint replies with an error
"Fetch & return a new `Action` object representing the action's current\n state\n\n :rtype: Action\n :raises DOAPIError: if the API endpoint replies with an error"
176
false
jwodder/doapi
fetch
25,315
LDU_FT/python-visualization/branca/get_bounds
LDU_FT
[ "<BEGIN>\n## `legend_scaler`", "Downsamples the number of legend values so that there isn't a collision\n of text on the legend colorbar (within reason). The colorbar seems to\n support ~10 entries as a maximum.\n<END>", "<BEGIN>\n## `linear_gradient`", "Given a list of hexcode values, will return a lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bounds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bounds API. 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...
Computes the bounds of the object and all it's children in the form [[lat_min, lon_min], [lat_max, lon_max]].
"Computes the bounds of the object and all it's children\n in the form [[lat_min, lon_min], [lat_max, lon_max]]."
73
false
python-visualization/branca
get_bounds
25,316
LDU_FT/tobami/littlechef/get_recipes_in_cookbook
LDU_FT
[ "<BEGIN>\n## `save_config`", "Saves node configuration\n if no nodes/hostname.json exists, or force=True, it creates one\n it also saves to tmp_node.json\n<END>", "<BEGIN>\n## `_get_ipaddress`", "Adds the ipaddress attribute to the given node object if not already\n present and it is correctly given ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_recipes_in_cookbook 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_recipes_in_cookbook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Gets the name of all recipes present in a cookbook Returns a list of dictionaries
"Gets the name of all recipes present in a cookbook\n Returns a list of dictionaries"
96
false
tobami/littlechef
get_recipes_in_cookbook
25,317
LDU_FT/Richienb/quilt/dirtool
LDU_FT
[ "<BEGIN>\n## `userinput`", "Get the input of the user via a universally secure method.", " :type prompttext: string\n :param prompttext: The text to display while receiving the data.", " :type times: integer\n :param times: The amount of times to ask the user. If value is not 1, a list will be ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dirtool API. 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 dirtool API. 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...
Tools For Directories (If Exists, Make And Delete) :raises ValueError: Nor a string or a list was provided.
"Tools For Directories (If Exists, Make And Delete)\n\n :raises ValueError: Nor a string or a list was provided."
210
false
Richienb/quilt
dirtool
25,318
LDU_FT/marrow/WebCore/dispatch
LDU_FT
[ "<BEGIN>\n## `_promote`", "Create a new subclass of Context which incorporates instance attributes and new descriptors.", "\t\tThis promotes an instance and its instance attributes up to being a class with class attributes, then\n\t\treturns an instance of that class.\n<END>", "<BEGIN>\n## `register`", "Reg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. 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 dispatch API. 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...
Called as dispatch descends into a tier. The base extension uses this to maintain the "current url".
"Called as dispatch descends into a tier.\n\t\t\n\t\tThe base extension uses this to maintain the \"current url\"."
90
false
marrow/WebCore
dispatch
25,319
LDU_FT/sernst/cauldron/get_project_source_path
LDU_FT
[ "<BEGIN>\n## `set_executing`", "Toggle whether or not the current thread is executing a step file. This\n will only apply when the current thread is a CauldronThread. This function\n has no effect when run on a Main thread.", " :param on:\n Whether or not the thread should be annotated as execut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_project_source_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_project_source_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Converts the given path into a project source path, to the cauldron.json file. If the path already points to a cauldron.json file, the path is returned without modification. :param path: The path to convert into a project source path
"Converts the given path into a project source path, to the cauldron.json\n file. If the path already points to a cauldron.json file, the path is\n returned without modification.\n\n :param path:\n The path to convert into a project source path"
534
false
sernst/cauldron
get_project_source_path
25,320
LDU_FT/nickpandolfi/Cyther/_check_whitespace
LDU_FT
[ "<BEGIN>\n## `get_content`", "Finds the 'content' tag from a 'pattern' in the provided 'string'\n<END>", "<BEGIN>\n## `extract`", "Used to extract a given regex pattern from a string, given several options\n<END>", "<BEGIN>\n## `extractRuntime`", "Used to find the correct static lib name to pass to gcc\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_whitespace API. 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 _check_whitespace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Make sure thre is no whitespace in the given string. Will raise a ValueError if whitespace is detected
"Make sure thre is no whitespace in the given string. Will raise a\n ValueError if whitespace is detected"
131
false
nickpandolfi/Cyther
_check_whitespace
25,321
LDU_FT/polysquare/polysquare-setuptools-lint/_run_spellcheck_linter
LDU_FT
[ "<BEGIN>\n## `_custom_argv`", "Overwrite argv[1:] with argv, restore on exit.\n<END>", "<BEGIN>\n## `_patched_pep257`", "Monkey-patch pep257 after imports to avoid info logging.\n<END>", "<BEGIN>\n## `_stamped_deps`", "Run func, assumed to have dependencies as its first argument.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_spellcheck_linter 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 _run_spellcheck_linter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Run spellcheck-linter on matched_filenames.
"Run spellcheck-linter on matched_filenames."
28
false
polysquare/polysquare-setuptools-lint
_run_spellcheck_linter
25,322
LDU_FT/jedie/DragonPy/after_install
LDU_FT
[ "<BEGIN>\n## `create_environment`", "Creates a new environment in ``home_dir``.", " If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.", " If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>", "<BEGIN>\n## `path...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the after_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the after_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 ext...
called after virtualenv was created and pip/setuptools installed. Now we installed requirement libs/packages.
"called after virtualenv was created and pip/setuptools installed.\n Now we installed requirement libs/packages."
223
false
jedie/DragonPy
after_install
25,323
LDU_FT/Zimbra-Community/python-zimbra/zimbra_to_python
LDU_FT
[ "<BEGIN>\n## `set_context_params`", "Set header context parameters. Refer to the top of <Zimbra\n Server-Root>/docs/soap.txt about specifics.", " The <format>-Parameter cannot be changed, because it is set by the\n implementing class.", " Should be called by implementing method to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zimbra_to_python API. 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 zimbra_to_python API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Converts single level Zimbra dicts to a standard python dict :param zimbra_dict: The dictionary in Zimbra-Format :return: A native python dict
"Converts single level Zimbra dicts to a standard python dict\n\n :param zimbra_dict: The dictionary in Zimbra-Format\n :return: A native python dict"
48
false
Zimbra-Community/python-zimbra
zimbra_to_python
25,324
LDU_FT/etal/biocma/from_block
LDU_FT
[ "<BEGIN>\n## `maybe_open`", "Take a file name or a handle, and return a handle.", " Simplifies creating functions that automagically accept either a file name\n or an already opened file handle.\n<END>", "<BEGIN>\n## `from_block`", "Instantiate this class given a raw block (see parse_raw).\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_block API. 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 from_block API. 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...
Instantiate this class given a raw block (see parse_raw).
"Instantiate this class given a raw block (see parse_raw)."
74
false
etal/biocma
from_block
25,325
LDU_FT/fkmclane/python-ardrone/at
LDU_FT
[ "<BEGIN>\n## `at`", "Wrapper for the low level at commands.", " This method takes care that the sequence number is increased after each\n at command and the watchdog timer is started to make sure the drone\n receives a command at least every second.\n<END>", "<BEGIN>\n## `halt`", "Shutd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the at API. 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 docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the at API. 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 docu...
Wrapper for the low level at commands. This method takes care that the sequence number is increased after each at command and the watchdog timer is started to make sure the drone receives a command at least every second.
"Wrapper for the low level at commands.\n\n This method takes care that the sequence number is increased after each\n at command and the watchdog timer is started to make sure the drone\n receives a command at least every second."
29
false
fkmclane/python-ardrone
at
25,326
LDU_FT/sprockets/sprockets/_get_application_module
LDU_FT
[ "<BEGIN>\n## `run`", "Evaluate the command line arguments, performing the appropriate\n actions so the application can be started.\n<END>", "<BEGIN>\n## `_add_cli_args`", "Add the cli arguments to the argument parser.\n<END>", "<BEGIN>\n## `_configure_logging`", "Configure logging for the applicati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_application_module 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_application_module API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return the module for an application. If it's a entry-point registered application name, return the module name from the entry points data. If not, the passed in application name is returned. :param str controller: The controller type :param str application: The application name or modu...
"Return the module for an application. If it's a entry-point\n registered application name, return the module name from the entry\n points data. If not, the passed in application name is returned.\n\n :param str controller: The controller type\n :param str application: The application name o...
19
false
sprockets/sprockets
_get_application_module
25,327
LDU_FT/sporsh/carnifex/connectExec
LDU_FT
[ "<BEGIN>\n## `attr_string`", "Build a string consisting of 'key=value' substrings for each keyword\n argument in :kwargs:", " @param filterKeys: list of key names to ignore\n @param filterValues: list of values to ignore (e.g. None will ignore all\n key=value pairs that has that...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connectExec API. 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 connectExec API. 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...
Connect a Protocol to a ssh exec session
"Connect a Protocol to a ssh exec session"
61
false
sporsh/carnifex
connectExec
25,328
LDU_FT/flowersteam/explauto/initialize
LDU_FT
[ "<BEGIN>\n## `predict_y`", "Provide an prediction of xq in the output space", " @param xq an array of float of length dim_x\n @return predicted y as np.array of float\n<END>", "<BEGIN>\n## `predict_given_context`", "Provide a prediction of x with context c on dimensions c_dims in the outpu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API. 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 initialize API. 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...
set parameters and state variable based on dimension, mueff and possibly further options.
"set parameters and state variable based on dimension,\n mueff and possibly further options."
685
false
flowersteam/explauto
initialize
25,329
LDU_FT/EntilZha/PyFunctional/_wrap
LDU_FT
[ "<BEGIN>\n## `name`", "Retrieve a pretty name for the function\n :param function: function to get name from\n :return: pretty name\n<END>", "<BEGIN>\n## `map_t`", "Transformation for Sequence.map\n :param func: map function\n :return: transformation\n<END>", "<BEGIN>\n## `starmap_t`", "Transfo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wrap API. 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 _wrap API. 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...
Wraps the passed value in a Sequence if it is not a primitive. If it is a string argument it is expanded to a list of characters. >>> _wrap(1) 1 >>> _wrap("abc") ['a', 'b', 'c'] >>> type(_wrap([1, 2])) functional.pipeline.Sequence :param value: value to wrap :return: wrapped or n...
"Wraps the passed value in a Sequence if it is not a primitive. If it is a string\n argument it is expanded to a list of characters.\n\n >>> _wrap(1)\n 1\n\n >>> _wrap(\"abc\")\n ['a', 'b', 'c']\n\n >>> type(_wrap([1, 2]))\n functional.pipeline.Sequence\n\n :param value: value to wrap\n :retu...
249
false
EntilZha/PyFunctional
_wrap
25,330
LDU_FT/gouthambs/Flask-Blogging/_create_tag_posts_table
LDU_FT
[ "<BEGIN>\n## `init_app`", "Initialize the engine.", " :param app: The app to use\n :type app: Object\n :param storage: The blog storage instance that implements the\n :type storage: Object\n :param cache: (Optional) A Flask-Cache object to enable caching\n :type cache: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_tag_posts_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_tag_posts_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Creates the table to store association info between blog posts and tags. :return:
"Creates the table to store association info between blog posts and\n tags.\n :return:"
53
false
gouthambs/Flask-Blogging
_create_tag_posts_table
25,331
LDU_FT/edx/xblock-utils/load_scenarios_from_path
LDU_FT
[ "<BEGIN>\n## `get_xblock_settings`", "Gets XBlock-specific settigns for current XBlock", " Returns default if settings service is not available.", " Parameters:\n default - default value to be used in two cases:\n * No settings service is available\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_scenarios_from_path 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 load_scenarios_from_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns an array of (title, xmlcontent) from files contained in a specified directory, formatted as expected for the return value of the workbench_scenarios() method. If `include_identifier` is True, returns an array of (identifier, title, xmlcontent).
"Returns an array of (title, xmlcontent) from files contained in a specified directory,\n formatted as expected for the return value of the workbench_scenarios() method.\n\n If `include_identifier` is True, returns an array of (identifier, title, xmlcontent)."
56
false
edx/xblock-utils
load_scenarios_from_path
25,332
LDU_FT/OLC-LOC-Bioinformatics/GenomeQAML/find_largest_contig
LDU_FT
[ "<BEGIN>\n## `main`", "Run the appropriate functions in order\n :param sequencepath: path of folder containing FASTA genomes\n :param report: boolean to determine whether a report is to be created\n :param refseq_database: Path to reduced refseq database sketch\n :param num_threads: Number of threads ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_largest_contig 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 find_largest_contig 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...
Determine the largest contig for each strain :param contig_lengths_dict: dictionary of strain name: reverse-sorted list of all contig lengths :return: longest_contig_dict: dictionary of strain name: longest contig
"Determine the largest contig for each strain\n :param contig_lengths_dict: dictionary of strain name: reverse-sorted list of all contig lengths\n :return: longest_contig_dict: dictionary of strain name: longest contig"
41
false
OLC-LOC-Bioinformatics/GenomeQAML
find_largest_contig
25,333
LDU_FT/rapidpro/expressions/_read_requirements
LDU_FT
[ "<BEGIN>\n## `_read_requirements`", "Returns a list of package requirements read from the file.\n<END>", "<BEGIN>\n## `field`", "Reference a field in string separated by a delimiter\n<END>", "<BEGIN>\n## `epoch`", "Converts the given date to the number of seconds since January 1st, 1970 UTC\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_requirements 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 _read_requirements 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...
Returns a list of package requirements read from the file.
"Returns a list of package requirements read from the file."
124
false
rapidpro/expressions
_read_requirements
25,334
LDU_FT/wavefrontHQ/python-client/get_all_integration_in_manifests_min
LDU_FT
[ "<BEGIN>\n## `display`", "Sets the display of this Message.", " The form of display for this message # noqa: E501", " :param display: The display of this Message. # noqa: E501\n :type: str\n<END>", "<BEGIN>\n## `scope`", "Sets the scope of this Message.", " The audience sco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_integration_in_manifests_min API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_integration_in_manifests_min API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
Gets all Wavefront integrations as structured in their integration manifests. # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_all_integration_in_manifests_min(asyn...
"Gets all Wavefront integrations as structured in their integration manifests. # noqa: E501\n\n # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.get_all_integration_in_manifests_mi...
954
false
wavefrontHQ/python-client
get_all_integration_in_manifests_min
25,335
LDU_FT/mozilla/python-zeppelin/process_input
LDU_FT
[ "<BEGIN>\n## `create_notebook`", "Create notebook under notebook directory.\n<END>", "<BEGIN>\n## `wait_for_notebook_to_execute`", "Wait for notebook to finish executing before continuing.\n<END>", "<BEGIN>\n## `save_notebook`", "Save notebook depending on user provided output path.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_input API. 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 process_input API. 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...
Parse paragraph for the language of the code and the code itself.
"Parse paragraph for the language of the code and the code itself."
46
false
mozilla/python-zeppelin
process_input
25,336
LDU_FT/coinbase/coinbase-python/get_transactions
LDU_FT
[ "<BEGIN>\n## `set_primary`", "https://developers.coinbase.com/api/v2#set-account-as-primary\n<END>", "<BEGIN>\n## `modify`", "https://developers.coinbase.com/api#modify-an-account\n<END>", "<BEGIN>\n## `get_address`", "https://developers.coinbase.com/api/v2#show-addresss\n<END>", "<BEGIN>\n## `get_addre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transactions API. 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_transactions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
https://developers.coinbase.com/api/v2#list-transactions
"https://developers.coinbase.com/api/v2#list-transactions"
166
false
coinbase/coinbase-python
get_transactions
25,337
LDU_FT/C-Pro/pgdocgen/readddl
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses input string and returns list of DDLObjects\n<END>", "<BEGIN>\n## `readddl`", "Walks down database objects and generates\n JDOC objects for table descriptions\n<END>", "<BEGIN>\n## `read_dir`", "reads all files with extension input_ext\n in a directory input_dir and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readddl API. 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 readddl API. 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...
Walks down database objects and generates JDOC objects for table descriptions
"Walks down database objects and generates\n JDOC objects for table descriptions"
10
false
C-Pro/pgdocgen
readddl
25,338
LDU_FT/jtambasco/modesolverpy/write_modes_to_file
LDU_FT
[ "<BEGIN>\n## `solve_sweep_structure`", "Find the modes of many structures.", " Args:\n structures (list): A list of `Structures` to find the modes\n of.\n sweep_param_list (list): A list of the parameter-sweep sweep\n that was used. This is for plottin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_modes_to_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_modes_to_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. T...
Writes the mode fields to a file and optionally plots them. Args: filename (str): The nominal filename to use for the saved data. The suffix will be automatically be changed to identifiy each mode number. Default is 'mode.dat' plot (bool): `True` if plo...
"Writes the mode fields to a file and optionally plots them.\n\n Args:\n filename (str): The nominal filename to use for the saved\n data. The suffix will be automatically be changed to\n identifiy each mode number. Default is 'mode.dat'\n plot (bool): `True`...
70
false
jtambasco/modesolverpy
write_modes_to_file
25,339
LDU_FT/fridiculous/django-estimators/create_from_file
LDU_FT
[ "<BEGIN>\n## `filter`", "filter lets django managers use `objects.filter` on a hashable object.\n<END>", "<BEGIN>\n## `_extract_model_params`", "this method allows django managers use `objects.get_or_create` and\n `objects.update_or_create` on a hashable object.\n<END>", "<BEGIN>\n## `persist`", "a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_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 ...
Return an Estimator object given the path of the file, relative to the MEDIA_ROOT
"Return an Estimator object given the path of the file, relative to the MEDIA_ROOT"
10
false
fridiculous/django-estimators
create_from_file
25,340
LDU_FT/pwaller/__autoversion__/tupleize_version
LDU_FT
[ "<BEGIN>\n## `getversion`", "Obtain the ``__version__`` for ``package``, looking at the egg information\n or the source repository's version control if necessary.\n<END>", "<BEGIN>\n## `version_from_frame`", "Given a ``frame``, obtain the version number of the module running there.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tupleize_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tupleize_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Split ``version`` into a lexicographically comparable tuple. "1.0.3" -> ((1, 0, 3),) "1.0.3-dev" -> ((1, 0, 3), ("dev",)) "1.0.3-rc-5" -> ((1, 0, 3), ("rc",), (5,))
"Split ``version`` into a lexicographically comparable tuple.\n\n \"1.0.3\" -> ((1, 0, 3),)\n \"1.0.3-dev\" -> ((1, 0, 3), (\"dev\",))\n \"1.0.3-rc-5\" -> ((1, 0, 3), (\"rc\",), (5,))"
14
false
pwaller/__autoversion__
tupleize_version
25,341
LDU_FT/AirtestProject/Poco/selectImpl
LDU_FT
[ "<BEGIN>\n## `jsonrpc_map`", "Map of json-rpc available calls.", " :return str:\n<END>", "<BEGIN>\n## `command`", "通过hunter调用gm指令,可调用hunter指令库中定义的所有指令,也可以调用text类型的gm指令\n gm指令相关功能请参考safaia GM指令扩展模块", " :param cmd: 指令\n :param type: 语言,默认text\n :return: None\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the selectImpl API. 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 selectImpl API. 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...
Selector internal implementation. TODO: add later. .. note:: This doc shows only the outline of the algorithm. Do not call this method in your code as this is an internal method. Args: cond (:obj:`tuple`): query expression multiple (:obj:`bool`): whether or no...
"Selector internal implementation. \n TODO: add later.\n\n .. note:: This doc shows only the outline of the algorithm. Do not call this method in your code as this\n is an internal method.\n\n Args:\n cond (:obj:`tuple`): query expression\n multiple (:obj:`bool`): whet...
191
false
AirtestProject/Poco
selectImpl
25,342
LDU_FT/CS207-Final-Project-Group-10/cs207-FinalProject/_squeeze
LDU_FT
[ "<BEGIN>\n## `configuration_ES`", "Get the positions and velocities of the earth and sun from date t0 to t1.\n Returned as a tuple q, v\n q: Nx3 array of positions (x, y, z) in the J2000.0 coordinate frame.\n<END>", "<BEGIN>\n## `plot_ES`", "Plot the earth-sun orbits.\n q is a Tx6 array. T indexes t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _squeeze API. 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 _squeeze API. 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...
Makes sure no extra dimensions are floating around in the input arrays Returns inferred dict of variable: val pairs
"Makes sure no extra dimensions are floating around in the input arrays\n Returns inferred dict of variable: val pairs"
92
false
CS207-Final-Project-Group-10/cs207-FinalProject
_squeeze
25,343
LDU_FT/BeyondTheClouds/enoslib/grid_reload_from_ids
LDU_FT
[ "<BEGIN>\n## `_build_g5k_conf`", "Build the conf of the g5k provider from the vmong5k conf.\n<END>", "<BEGIN>\n## `cached`", "Decorator for caching/retrieving api calls request.", " Many calls to the API are getter on static parts (e.g site of a given\n cluster name won't change). By caching some resp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grid_reload_from_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grid_reload_from_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Reload all running or pending jobs of Grid'5000 from their ids Args: oargrid_jobids (list): list of ``(site, oar_jobid)`` identifying the jobs on each site Returns: The list of python-grid5000 jobs retrieved
"Reload all running or pending jobs of Grid'5000 from their ids\n\n Args:\n oargrid_jobids (list): list of ``(site, oar_jobid)`` identifying the\n jobs on each site\n\n Returns:\n The list of python-grid5000 jobs retrieved"
229
false
BeyondTheClouds/enoslib
grid_reload_from_ids
25,344
LDU_FT/jdrumgoole/mongodbshell/insert_one
LDU_FT
[ "<BEGIN>\n## `database`", "Set the default database for this Proxy object.\n :param database_name: A string naming the database\n<END>", "<BEGIN>\n## `find`", "Run the pymongo find command against the default database and collection\n and paginate the output to the screen.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_one API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_one API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Run the pymongo insert_one command against the default database and collection and returne the inserted ID.
"Run the pymongo insert_one command against the default database and collection\n and returne the inserted ID."
33
false
jdrumgoole/mongodbshell
insert_one
25,345
LDU_FT/MatterMiners/cobald/create_handler
LDU_FT
[ "<BEGIN>\n## `exclusive`", "Mark a callable as exclusive", " :param via: factory for a Lock to guard the callable", " Guards the callable against being entered again before completion.\n Explicitly raises a :py:exc:`RuntimeError` on violation.", " :note: If applied to a method, it is exclusive a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_handler API. 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 create_handler API. 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...
Create a handler for logging to ``target``
"Create a handler for logging to ``target``"
74
false
MatterMiners/cobald
create_handler
25,346
LDU_FT/redhat-cip/python-dciclient/create
LDU_FT
[ "<BEGIN>\n## `list`", "list(context, verbose)", " List all tags.", " >>> dcictl tag-list", " :param boolean verbose: Display verbose output\n<END>", "<BEGIN>\n## `create`", "create(context, name)", " Create a tag.", " >>> dcictl tag-create [OPTIONS]", " :param string name: Name o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
create(context, name, team_id, data, active) Create a Feeder. >>> dcictl feeder-create [OPTIONS] :param string name: Name of the feeder [required] :param string team_id: ID of the team to associate this feeder with [required] :param string data: JSON data to pass during feeder creation ...
"create(context, name, team_id, data, active)\n\n Create a Feeder.\n\n >>> dcictl feeder-create [OPTIONS]\n\n :param string name: Name of the feeder [required]\n :param string team_id: ID of the team to associate this feeder with\n [required]\n :param string data: JSON data to pass during feeder c...
310
false
redhat-cip/python-dciclient
create
25,347
LDU_FT/resync/resync/build_resource_list
LDU_FT
[ "<BEGIN>\n## `read`", "Read sitemap from a URI including handling sitemapindexes.", " If index_only is True then individual sitemaps references in a sitemapindex\n will not be read. This will result in no resources being returned and is\n useful only to read the metadata and links listed in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_resource_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_resource_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. T...
Return a resource list for files on local disk. The set of files is taken by disk scan from the paths specified or else defaults to the paths specified in the current mappings paths - override paths from mappings if specified set_path - set true to set the path information for each re...
"Return a resource list for files on local disk.\n\n The set of files is taken by disk scan from the paths specified or\n else defaults to the paths specified in the current mappings\n\n paths - override paths from mappings if specified\n\n set_path - set true to set the path information for...
322
false
resync/resync
build_resource_list
25,348
LDU_FT/XRDX/pyleap/center_image
LDU_FT
[ "<BEGIN>\n## `cross_product`", "叉乘\n vector 1: x1, y1, x2, y2\n vector 2: x1, y1, x3, y3\n<END>", "<BEGIN>\n## `center_image`", "Sets an image's anchor point to its center\n<END>", "<BEGIN>\n## `color_to_tuple`", "convert any color to standard ()\n \"red\" -> 'c3B', (255, 125, 0)\n \"#f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the center_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the center_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Sets an image's anchor point to its center
"Sets an image's anchor point to its center"
10
false
XRDX/pyleap
center_image
25,349
LDU_FT/cdgriffith/Reusables/tail
LDU_FT
[ "<BEGIN>\n## `datetime_format`", "Replaces format style phrases (listed in the dt_exps dictionary)\n with this datetime instance's information.", " .. code :: python", " reusables.datetime_format(\"Hey, it's {month-full} already!\")\n \"Hey, it's March already!\"", " :param desired_fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tail API. 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 tail API. 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...
A really silly way to get the last N lines, defaults to 10. :param file_path: Path to file to read :param lines: Number of lines to read in :param encoding: defaults to utf-8 to decode as, will fail on binary :param printed: Automatically print the lines instead of returning it :param errors: Deco...
"A really silly way to get the last N lines, defaults to 10.\n\n\n :param file_path: Path to file to read\n :param lines: Number of lines to read in\n :param encoding: defaults to utf-8 to decode as, will fail on binary\n :param printed: Automatically print the lines instead of returning it\n :param erro...
320
false
cdgriffith/Reusables
tail
25,350
LDU_FT/masfaraud/BMSpy/PartialDynamicSystem
LDU_FT
[ "<BEGIN>\n## `_AddInput`", "Add one more variable as an input of the block", " :param variable: variable (or signal as it is also a variable)\n<END>", "<BEGIN>\n## `_AddOutput`", "Add one more variable as an output of the block", " :param variable: variable (or signal as it is also a var...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the PartialDynamicSystem 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 PartialDynamicSystem API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
returns dynamical system blocks associated to output variable
"returns dynamical system blocks associated to output variable"
39
false
masfaraud/BMSpy
PartialDynamicSystem
25,351
LDU_FT/python-gitlab/python-gitlab/http_post
LDU_FT
[ "<BEGIN>\n## `on_http_error`", "Manage GitlabHttpError exceptions.", " This decorator function can be used to catch GitlabHttpError exceptions\n raise specialized exceptions instead.", " Args:\n error(Exception): The exception type to raise -- must inherit from\n GitlabError\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the http_post API. 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 http_post API. 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...
Make a POST request to the Gitlab server. Args: path (str): Path or full URL to query ('/projects' or 'http://whatever/v4/api/projecs') query_data (dict): Data to send as query parameters post_data (dict): Data to send in the body (will be converted t...
"Make a POST request to the Gitlab server.\n\n Args:\n path (str): Path or full URL to query ('/projects' or\n 'http://whatever/v4/api/projecs')\n query_data (dict): Data to send as query parameters\n post_data (dict): Data to send in the body (will be conv...
508
false
python-gitlab/python-gitlab
http_post
25,352
LDU_FT/SCIP-Interfaces/PySCIPOpt/make_data
LDU_FT
[ "<BEGIN>\n## `gpp`", "gpp -- model for the graph partitioning problem\n Parameters:\n - V: set/list of nodes in the graph\n - E: set/list of edges in the graph\n Returns a model, ready to be solved.\n<END>", "<BEGIN>\n## `gpp_soco`", "gpp -- model for the graph partitioning problem in soco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
make_data: prepare matrix of m times n random processing times
"make_data: prepare matrix of m times n random processing times"
220
false
SCIP-Interfaces/PySCIPOpt
make_data
25,353
LDU_FT/nyrkovalex/httpsrv/start
LDU_FT
[ "<BEGIN>\n## `status`", "Respond with given status and no content", " :type status: int\n :param status: status code to return", " :type headers: dict\n :param headers: dictionary of headers to add to response", " :returns: itself\n :rtype: Rule\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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...
Starts a server on the port provided in the :class:`Server` constructor in a separate thread :rtype: Server :returns: server instance for chaining
"Starts a server on the port provided in the :class:`Server` constructor\n in a separate thread\n\n :rtype: Server\n :returns: server instance for chaining"
49
false
nyrkovalex/httpsrv
start
25,354
LDU_FT/matllubos/django-is-core/_get_perm_obj_or_404
LDU_FT
[ "<BEGIN>\n## `short_description`", "Sets 'short_description' attribute (this attribute is in exports to generate header name).\n<END>", "<BEGIN>\n## `redirect_to_login`", "Redirects the user to the login page, passing the given 'next' page\n<END>", "<BEGIN>\n## `_check_permission`", "If customer is not au...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_perm_obj_or_404 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_perm_obj_or_404 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
If is send parameter pk is returned object according this pk, else is returned object from get_obj method, but it search only inside filtered values for current user, finally if object is still None is returned according the input key from all objects. If object does not exist is raised Http404
"If is send parameter pk is returned object according this pk,\n else is returned object from get_obj method, but it search only inside filtered values for current user,\n finally if object is still None is returned according the input key from all objects.\n\n If object does not exist is raised Ht...
66
false
matllubos/django-is-core
_get_perm_obj_or_404
25,355
LDU_FT/zhebrak/raftos/broadcast
LDU_FT
[ "<BEGIN>\n## `validate_term`", "Compares current term and request term:\n if current term is stale:\n update current term & become follower\n if received term is stale:\n respond with False\n<END>", "<BEGIN>\n## `validate_commit_index`", "Apply to State Machine everything u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the broadcast API. 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 broadcast API. 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...
Sends data to all Nodes in cluster (cluster list does not contain self Node)
"Sends data to all Nodes in cluster (cluster list does not contain self Node)"
28
false
zhebrak/raftos
broadcast
25,356
LDU_FT/mozilla/python-zeppelin/build_header
LDU_FT
[ "<BEGIN>\n## `create_notebook`", "Create notebook under notebook directory.\n<END>", "<BEGIN>\n## `wait_for_notebook_to_execute`", "Wait for notebook to finish executing before continuing.\n<END>", "<BEGIN>\n## `save_notebook`", "Save notebook depending on user provided output path.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_header API. 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 build_header API. 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...
Generate the header for the Markdown file.
"Generate the header for the Markdown file."
46
false
mozilla/python-zeppelin
build_header
25,357
LDU_FT/dead-beef/markovchain/save
LDU_FT
[ "<BEGIN>\n## `create_arg_parser`", "Create command subparsers.", " Parameters\n ----------\n parent : `argparse.ArgumentParser`\n Command parser.\n<END>", "<BEGIN>\n## `read`", "Read data files and update a generator.", " Parameters\n ----------\n fnames : `list` of `str`\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Convert to JSON. Returns ------- `dict` JSON data.
"Convert to JSON.\n\n Returns\n -------\n `dict`\n JSON data."
323
false
dead-beef/markovchain
save
25,358
LDU_FT/gnarlychicken/aiohttp_auth/process_response
LDU_FT
[ "<BEGIN>\n## `acl_middleware`", "Returns a aiohttp_auth.acl middleware factory for use by the aiohttp\n application object.", " Args:\n callback: This is a callable which takes a user_id (as returned from\n the auth.get_auth function), and expects a sequence of permitted ACL\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_response API. 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 process_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
If a reissue was requested, only reiisue if the response was a valid 2xx response
"If a reissue was requested, only reiisue if the response was a\n valid 2xx response"
75
false
gnarlychicken/aiohttp_auth
process_response
25,359
LDU_FT/byt3bl33d3r/CrackMapExec/add_credential
LDU_FT
[ "<BEGIN>\n## `add_computer`", "Check if this host has already been added to the database, if not add it in.\n<END>", "<BEGIN>\n## `remove_credentials`", "Removes a credential ID from the database\n<END>", "<BEGIN>\n## `options`", "SERVER IP of the SMB server\n NAME LNK file name\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_credential API. 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 add_credential API. 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...
Check if this credential has already been added to the database, if not add it in.
"Check if this credential has already been added to the database, if not add it in."
77
false
byt3bl33d3r/CrackMapExec
add_credential
25,360
LDU_FT/workhorsy/py-cpuinfo/_get_cpu_info_internal
LDU_FT
[ "<BEGIN>\n## `_actual_get_cpu_info_from_cpuid`", "Warning! This function has the potential to crash the Python runtime.\n\tDo not call it directly. Use the _get_cpu_info_from_cpuid function instead.\n\tIt will safely call this function in another process.\n<END>", "<BEGIN>\n## `_get_cpu_info_from_cpuid`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cpu_info_internal 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_cpu_info_internal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns the CPU info by using the best sources of information for your OS. Returns {} if nothing is found.
"Returns the CPU info by using the best sources of information for your OS.\n\tReturns {} if nothing is found."
34
false
workhorsy/py-cpuinfo
_get_cpu_info_internal
25,361
LDU_FT/helixyte/everest/set
LDU_FT
[ "<BEGIN>\n## `domain_relationship`", "Returns a domain relationship equivalent with this resource\n relationship.\n<END>", "<BEGIN>\n## `get_attribute_cardinality`", "Returns the cardinality of the given resource attribute.", " :returns: One of the constants defined in\n :class:`evererst.cons...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Sets the given object as global object for the given key.
"Sets the given object as global object for the given key."
449
false
helixyte/everest
set
25,362
LDU_FT/The-Politico/politico-civic-election-night/bootstrap_legislative_office
LDU_FT
[ "<BEGIN>\n## `get_images`", "Object of images serialized by tag name.\n<END>", "<BEGIN>\n## `get_override_votes`", "Votes entered into backend.\n Only used if ``override_ap_votes = True``.\n<END>", "<BEGIN>\n## `get_queryset`", "Returns a queryset of all executive offices holding an election on\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bootstrap_legislative_office API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bootstrap_legislative_office API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
For legislative offices, create page content for the legislative Body the Office belongs to AND the state-level Division. E.g., for a Texas U.S. Senate seat, create page content for: - U.S. Senate page - Texas state page
"For legislative offices, create page content for the legislative\n Body the Office belongs to AND the state-level Division.\n\n E.g., for a Texas U.S. Senate seat, create page content for:\n - U.S. Senate page\n - Texas state page"
62
false
The-Politico/politico-civic-election-night
bootstrap_legislative_office
25,363
LDU_FT/thespacedoctor/fundamentals/fmultiprocess
LDU_FT
[ "<BEGIN>\n## `main`", "The main function used when ``yaml_to_database.py`` when installed as a cl tool\n<END>", "<BEGIN>\n## `ingest`", "*ingest the contents of the directory of yaml files into a database*", " **Return:**\n - None", " **Usage:**", " To import an entir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fmultiprocess API. 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 fmultiprocess API. 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...
multiprocess pool **Key Arguments:** - ``log`` -- logger - ``function`` -- the function to multiprocess - ``inputArray`` -- the array to be iterated over - ``poolSize`` -- limit the number of CPU that are used in multiprocess job - ``timeout`` -- time in sec after which to r...
"multiprocess pool\n\n **Key Arguments:**\n - ``log`` -- logger\n - ``function`` -- the function to multiprocess\n - ``inputArray`` -- the array to be iterated over\n - ``poolSize`` -- limit the number of CPU that are used in multiprocess job\n - ``timeout`` -- time in sec after wh...
306
false
thespacedoctor/fundamentals
fmultiprocess
25,364
LDU_FT/nanoporetech/ont_fast5_api/add_chain
LDU_FT
[ "<BEGIN>\n## `_clean`", "Convert numpy numeric types to their python equivalents.\n<END>", "<BEGIN>\n## `get_prior_alignment`", "Return the prior alignment that was used for 2D basecalling.", " :return: Alignment data table.\n<END>", "<BEGIN>\n## `get_2d_call_alignment`", "Return the alignment an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_chain API. 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 add_chain API. 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...
Adds the component chain to ``group_name`` in the fast5. These are added as attributes to the group. :param group_name: The group name you wish to add chaining data to, e.g. ``Test_000`` :param component_map: The set of components and corresponding group names or group p...
"Adds the component chain to ``group_name`` in the fast5.\n These are added as attributes to the group.\n\n :param group_name: The group name you wish to add chaining data to,\n e.g. ``Test_000``\n :param component_map: The set of components and corresponding\n group names or ...
159
false
nanoporetech/ont_fast5_api
add_chain
25,365
LDU_FT/MacHu-GWU/single_file_module-project/shift_and_pad
LDU_FT
[ "<BEGIN>\n## `use`", "Change the hash algorithm you gonna use.\n<END>", "<BEGIN>\n## `of_bytes`", "Use default hash method to return hash value of bytes.", " :type py_bytes: binary_type\n :param py_bytes: a binary object\n<END>", "<BEGIN>\n## `of_text`", "Use default hash method to return ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shift_and_pad API. 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 shift_and_pad API. 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...
Shift and pad with item. :params array: list like iterable object :params dist: int :params pad: any value Example:: >>> array = [0, 1, 2] >>> shift_and_pad(array, 0) [0, 1, 2] >>> shift_and_pad(array, 1) [0, 0, 1] >>> shift_and_pad(array, -1) ...
"Shift and pad with item.\n\n :params array: list like iterable object\n :params dist: int\n :params pad: any value\n\n Example::\n\n >>> array = [0, 1, 2]\n >>> shift_and_pad(array, 0)\n [0, 1, 2]\n\n >>> shift_and_pad(array, 1)\n [0, 0, 1]\n\n >>> shift_and_pad(ar...
297
false
MacHu-GWU/single_file_module-project
shift_and_pad
25,366
LDU_FT/cloudsigma/cgroupspy/_init_children
LDU_FT
[ "<BEGIN>\n## `_build_tree`", "Build a full or a partial tree, depending on the groups/sub-groups specified.\n<END>", "<BEGIN>\n## `_init_sub_groups`", "Initialise sub-groups, and create any that do not already exist.\n<END>", "<BEGIN>\n## `_init_children`", "Initialise each node's children - essentially b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_children API. 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 _init_children API. 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...
Initialise each node's children - essentially build the tree.
"Initialise each node's children - essentially build the tree."
20
false
cloudsigma/cgroupspy
_init_children
25,367
LDU_FT/rnwolf/jira-metrics-extract/histogram
LDU_FT
[ "<BEGIN>\n## `to_datetime`", "Turn a date into a datetime at midnight.\n<END>", "<BEGIN>\n## `iter_size_changes`", "Yield an IssueSnapshot for each time the issue size changed\n<END>", "<BEGIN>\n## `iter_changes`", "Yield an IssueSnapshot for each time the issue changed status or\n resolution\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the histogram API. 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 histogram API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return histogram data for the cycle times in `cycle_data`. Returns a dictionary with keys `bin_values` and `bin_edges` of numpy arrays
"Return histogram data for the cycle times in `cycle_data`. Returns\n a dictionary with keys `bin_values` and `bin_edges` of numpy arrays"
31
false
rnwolf/jira-metrics-extract
histogram
25,368
LDU_FT/casebeer/audiogen/cache_finite_samples
LDU_FT
[ "<BEGIN>\n## `arcfour`", "Return a generator for the ARCFOUR/RC4 pseudorandom keystream for the \n\t key provided. Keys should be byte strings or sequences of ints.\n<END>", "<BEGIN>\n## `arcfour_drop`", "Return a generator for the RC4-drop pseudorandom keystream given by \n\t the key and number of bytes ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache_finite_samples 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 cache_finite_samples API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Decorator to cache audio samples produced by the wrapped generator.
"Decorator to cache audio samples produced by the wrapped generator."
44
false
casebeer/audiogen
cache_finite_samples
25,369
LDU_FT/molmod/molmod/superpose
LDU_FT
[ "<BEGIN>\n## `atom_criteria`", "An auxiliary function to construct a dictionary of Criteria\n<END>", "<BEGIN>\n## `_check_symbols`", "the size must be the same as the length of the array numbers and all elements must be strings\n<END>", "<BEGIN>\n## `from_geometry`", "Construct a MolecularGraph object bas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the superpose API. 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 superpose API. 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...
Compute the transformation that minimizes the RMSD between the points ras and rbs Arguments: | ``ras`` -- a ``np.array`` with 3D coordinates of geometry A, shape=(N,3) | ``rbs`` -- a ``np.array`` with 3D coordinates of geometry B, shape=(N,3) ...
"Compute the transformation that minimizes the RMSD between the points ras and rbs\n\n Arguments:\n | ``ras`` -- a ``np.array`` with 3D coordinates of geometry A,\n shape=(N,3)\n | ``rbs`` -- a ``np.array`` with 3D coordinates of geometry B,\n shape=(N...
657
false
molmod/molmod
superpose
25,370
LDU_FT/azavea/python-omgeo/_get_json_obj
LDU_FT
[ "<BEGIN>\n## `_geocode`", ":arg PlaceQuery pq: PlaceQuery object to use for geocoding\n :returns: list of location Candidates\n<END>", "<BEGIN>\n## `_street_addr_from_response`", "Construct a street address (no city, region, etc.) from a geocoder response.", " :param attributes: A dict of addr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_json_obj API. 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_json_obj API. 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...
Return False if connection could not be made. Otherwise, return a response object from JSON.
"Return False if connection could not be made.\n Otherwise, return a response object from JSON."
78
false
azavea/python-omgeo
_get_json_obj
25,371
LDU_FT/Duke-GCB/lando-messaging/make_k8s_lando_router
LDU_FT
[ "<BEGIN>\n## `raise_on_major_version_mismatch`", "Raises error if major version is different. Other wise logs the difference.\n :param work_request: WorkRequest: request that had a different version\n :param local_version: str: our version string that does not match message.version\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_k8s_lando_router 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 make_k8s_lando_router API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Makes MessageRouter which can listen to queue_name sending messages to the k8s version of lando. :param config: WorkerConfig/ServerConfig: settings for connecting to the queue :param obj: object: implements lando specific methods :param queue_name: str: name of the queue we will listen on. ...
"Makes MessageRouter which can listen to queue_name sending messages to the k8s version of lando.\n :param config: WorkerConfig/ServerConfig: settings for connecting to the queue\n :param obj: object: implements lando specific methods\n :param queue_name: str: name of the queue we will listen on.\n...
50
false
Duke-GCB/lando-messaging
make_k8s_lando_router
25,372