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/vpelletier/python-libusb1/setAutoDetachKernelDriver
LDU_FT
[ "<BEGIN>\n## `newStruct`", "Create a ctype structure class based on USB standard field naming\n (type-prefixed).\n<END>", "<BEGIN>\n## `get_iso_packet_buffer_list`", "Python-specific helper extracting a list of iso packet buffers.\n<END>", "<BEGIN>\n## `get_extra`", "Python-specific helper to access \"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setAutoDetachKernelDriver 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 setAutoDetachKernelDriver API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Control automatic kernel driver detach. enable (bool) True to enable auto-detach, False to disable it.
"Control automatic kernel driver detach.\n enable (bool)\n True to enable auto-detach, False to disable it."
136
false
vpelletier/python-libusb1
setAutoDetachKernelDriver
38,873
LDU_FT/msztolcman/versionner/write
LDU_FT
[ "<BEGIN>\n## `parse_args`", "Parse input arguments of script.", " :param args: list of parameters\n :type: argparse.Namespace\n :param cfg: configuration storage\n :type: Config\n<END>", "<BEGIN>\n## `_find_project_config_file`", "Find path to project-wide config file\n Search from current wo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. 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 write API. 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...
Save new version into self._path in safe way (using temporary file) :param version:Version
"Save new version into self._path in safe way (using temporary file)\n\n :param version:Version"
61
false
msztolcman/versionner
write
38,874
LDU_FT/payu-org/payu/add_fast
LDU_FT
[ "<BEGIN>\n## `set_model_pathnames`", "Define the paths associated with this model.\n<END>", "<BEGIN>\n## `archive`", "Store model output to laboratory archive.\n<END>", "<BEGIN>\n## `parse`", "Parse the command line inputs and execute the subcommand.\n<END>", "<BEGIN>\n## `get_model_type`", "Determine...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_fast API. 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_fast API. 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...
Bespoke function to add filepaths but set shortcircuit to True, which means only the first calculable hash will be stored. In this way only one "fast" hashing function need be called for each filepath.
"Bespoke function to add filepaths but set shortcircuit to True, which\n means only the first calculable hash will be stored. In this way only\n one \"fast\" hashing function need be called for each filepath."
78
false
payu-org/payu
add_fast
38,875
LDU_FT/goshuirc/irc/register
LDU_FT
[ "<BEGIN>\n## `sort_prefixes`", "Returns a sorted list of prefixes.", " Args:\n orig (str): Unsorted list of prefixes.\n prefixes (str): List of prefixes, from highest-priv to lowest.\n<END>", "<BEGIN>\n## `parse_modes`", "Return a modelist.", " Args:\n params (list of str): Para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. 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 register API. 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...
Register interest in an event. event: name of the event (str) callable: the callable to be used as a callback function Returns an EventReceiver object. To unregister interest, simply delete the object.
"Register interest in an event.\n event: name of the event (str)\n callable: the callable to be used as a callback function\n Returns an EventReceiver object. To unregister interest, simply\n delete the object."
97
false
goshuirc/irc
register
38,876
LDU_FT/python-bugzilla/python-bugzilla/searchusers
LDU_FT
[ "<BEGIN>\n## `_request_helper`", "A helper method to assist in making a request and provide a parsed\n response.\n<END>", "<BEGIN>\n## `open_without_clobber`", "Try to open the given file with the given mode; if that filename exists,\n try \"name.1\", \"name.2\", etc. until we find an unused filenam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the searchusers API. 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 searchusers API. 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...
Return a bugzilla User for the given list of patterns :arg pattern: List of patterns to match against. :returns: List of User records
"Return a bugzilla User for the given list of patterns\n\n :arg pattern: List of patterns to match against.\n :returns: List of User records"
184
false
python-bugzilla/python-bugzilla
searchusers
38,877
LDU_FT/crs4/pydoop/utime
LDU_FT
[ "<BEGIN>\n## `align_after`", "Search for a sync point after offset and align just after that.\n<END>", "<BEGIN>\n## `get_progress`", "Give a rough estimate of the progress done.\n<END>", "<BEGIN>\n## `is_local`", "\\\n Is Hadoop configured to run in local mode?", " By default, it is. [pseu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the utime API. 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 utime API. 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...
Change file last access and modification times. :type path: str :param path: the path to the file or directory :type mtime: int :param mtime: new modification time in seconds :type atime: int :param atime: new access time in seconds :raises: :exc:`~exceptions.IOE...
"Change file last access and modification times.\n\n :type path: str\n :param path: the path to the file or directory\n :type mtime: int\n :param mtime: new modification time in seconds\n :type atime: int\n :param atime: new access time in seconds\n :raises: :exc:`~excep...
256
false
crs4/pydoop
utime
38,878
LDU_FT/tanghaibao/jcvi/hex_colors
LDU_FT
[ "<BEGIN>\n## `patience_sort`", "Patience sort an iterable, xs.", " This function generates a series of pairs (x, pile), where \"pile\"\n is the 0-based index of the pile \"x\" should be placed on top of.\n Elements of \"xs\" must be less-than comparable.\n<END>", "<BEGIN>\n## `longest_monotonic_subse...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hex_colors API. 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 hex_colors API. 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...
Colors as a tuple of hex strings. (e.g. '#A912F4')
"Colors as a tuple of hex strings. (e.g. '#A912F4')"
3,304
true
tanghaibao/jcvi
hex_colors
38,879
LDU_FT/Calysto/calysto/verifyTargets
LDU_FT
[ "<BEGIN>\n## `setCoords`", "Set coordinates of window to run from (x1,y1) in the\n lower-left corner to (x2,y2) in the upper-right corner.\n<END>", "<BEGIN>\n## `convert`", "png, ps, pdf, gif, jpg, svg\n returns image in format as bytes\n<END>", "<BEGIN>\n## `getPixels`", "Return a stream of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verifyTargets API. 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 verifyTargets API. 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...
Used in backprop() to verify that the network targets have been set.
"Used in backprop() to verify that the network targets have\n been set."
236
false
Calysto/calysto
verifyTargets
38,880
LDU_FT/nitmir/django-cas-server/send_mails
LDU_FT
[ "<BEGIN>\n## `clean_deleted_sessions`", "remove old :class:`FederateSLO` object for which the session do not exists anymore\n<END>", "<BEGIN>\n## `send_mails`", "For each new django-cas-server version, if the current instance is not up to date\n send one mail to ``settings.ADMINS``.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_mails API. 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 send_mails API. 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...
For each new django-cas-server version, if the current instance is not up to date send one mail to ``settings.ADMINS``.
"For each new django-cas-server version, if the current instance is not up to date\n send one mail to ``settings.ADMINS``."
182
false
nitmir/django-cas-server
send_mails
38,881
LDU_FT/onnx/onnxmltools/set_model_domain
LDU_FT
[ "<BEGIN>\n## `apply_cast`", ":param to: enum defined in ONNX TensorProto.DataType, for example, TensorProto.FLOAT and TensorProto.INT64.\n<END>", "<BEGIN>\n## `apply_gemm`", "Applies operator `gemm <https://github.com/onnx/onnx/blob/master/docs/Operators.md#gemm>`.\n<END>", "<BEGIN>\n## `apply_upsample`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_model_domain API. 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 set_model_domain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Sets the domain on the ONNX model. :param model: instance of an ONNX model :param domain: string containing the domain name of the model Example: :: from onnxmltools.utils import set_model_domain onnx_model = load_model("SqueezeNet.onnx") set_model_domain(onnx_model, "com.acme...
"Sets the domain on the ONNX model.\n\n :param model: instance of an ONNX model\n :param domain: string containing the domain name of the model\n\n Example:\n\n ::\n from onnxmltools.utils import set_model_domain\n onnx_model = load_model(\"SqueezeNet.onnx\")\n set_model_domain(onnx_mod...
300
false
onnx/onnxmltools
set_model_domain
38,882
LDU_FT/joowani/quadriga/get
LDU_FT
[ "<BEGIN>\n## `_validate_order_book`", "Check if the given order book is valid.", " :param book: Order book name.\n :type book: str | unicode\n :raise InvalidOrderBookError: If an invalid order book is given.\n<END>", "<BEGIN>\n## `_validate_currency`", "Check if the given order book is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Send an HTTP GET request to QuadrigaCX. :param endpoint: API endpoint. :type endpoint: str | unicode :param params: URL parameters. :type params: dict :return: Response body from QuadrigaCX. :rtype: dict :raise quadriga.exceptions.RequestError: If HTTP OK was not...
"Send an HTTP GET request to QuadrigaCX.\n\n :param endpoint: API endpoint.\n :type endpoint: str | unicode\n :param params: URL parameters.\n :type params: dict\n :return: Response body from QuadrigaCX.\n :rtype: dict\n :raise quadriga.exceptions.RequestError: If HTTP O...
58
false
joowani/quadriga
get
38,883
LDU_FT/django-haystack/pysolr/add
LDU_FT
[ "<BEGIN>\n## `force_unicode`", "Forces a bytestring to become a Unicode string.\n<END>", "<BEGIN>\n## `force_bytes`", "Forces a Unicode string to become a bytestring.\n<END>", "<BEGIN>\n## `unescape_html`", "Removes HTML or XML character references and entities from a text string.", " @param text The...
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 or updates documents. Requires ``docs``, which is a list of dictionaries. Each key is the field name and each value is the value to index. Optionally accepts ``commit``. Default is ``None``. None signals to use default Optionally accepts ``softCommit``. Default is ``False``. ...
"Adds or updates documents.\n\n Requires ``docs``, which is a list of dictionaries. Each key is the\n field name and each value is the value to index.\n\n Optionally accepts ``commit``. Default is ``None``. None signals to use default\n\n Optionally accepts ``softCommit``. Default is ``False...
102
false
django-haystack/pysolr
add
38,884
LDU_FT/PSPC-SPAC-buyandsell/von_agent/create
LDU_FT
[ "<BEGIN>\n## `validate_config`", "Call jsonschema validation to raise JSONValidation on non-compliance or silently pass.", " :param key: validation schema key of interest\n :param config: configuration dict to validate\n<END>", "<BEGIN>\n## `_seed2did`", "Derive DID, as per indy-sdk, from seed.", " ...
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 wallet as configured and store DID, or else re-use any existing configuration. Operation sequence create/store-DID/close does not auto-remove the wallet on close, even if so configured. :return: current object
"Create wallet as configured and store DID, or else re-use any existing configuration.\n Operation sequence create/store-DID/close does not auto-remove the wallet on close,\n even if so configured.\n\n :return: current object"
285
false
PSPC-SPAC-buyandsell/von_agent
create
38,885
LDU_FT/memphis-iis/GLUDB/parse_diff_hist
LDU_FT
[ "<BEGIN>\n## `read_rec`", "Generator that yields keyed recs from store.\n<END>", "<BEGIN>\n## `set_db_application_prefix`", "Set the global app prefix and separator.\n<END>", "<BEGIN>\n## `find_by_index`", "Find records matching index query - defer to backend.\n<END>", "<BEGIN>\n## `_auto_init`", "Our...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_diff_hist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_diff_hist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Given a diff_hist as created, appended by append_diff_hist, yield the versions of the object start with curr_obj and working backwards in time. Each instance yielded is of the form (obj, date-string) where obj is the JSON version of the object created by applying a diff in the diff history and date-stri...
"Given a diff_hist as created, appended by append_diff_hist, yield the\n versions of the object start with curr_obj and working backwards in time.\n Each instance yielded is of the form (obj, date-string) where obj is the\n JSON version of the object created by applying a diff in the\n diff history and date...
57
false
memphis-iis/GLUDB
parse_diff_hist
38,886
LDU_FT/ttinies/sc2players/load
LDU_FT
[ "<BEGIN>\n## `attrs`", "provide a copy of this player's attributes as a dictionary\n<END>", "<BEGIN>\n## `simpleAttrs`", "provide a copy of this player's attributes as a dictionary, but with objects flattened into a string representation of the object\n<END>", "<BEGIN>\n## `_validateAttrs`", "prove that a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. 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 load API. 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...
retrieve the PlayerRecord settings from saved disk file
"retrieve the PlayerRecord settings from saved disk file"
32
false
ttinies/sc2players
load
38,887
LDU_FT/tueda/python-form/flush
LDU_FT
[ "<BEGIN>\n## `open`", "Open a connection to FORM.", " Open a connection to a new FORM process. The opened connection should\n be closed by :meth:`close`, which can be guaranteed by use of the\n \"with\" statement:", " >>> import form\n >>> with form.open() as formlink:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flush API. 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 flush API. 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...
Flush the channel to FORM. Flush the communication channel to FORM. Because :meth:`write` is buffered and :meth:`read` is a blocking operation, this method is used for asynchronous execution of FORM scripts.
"Flush the channel to FORM.\n\n Flush the communication channel to FORM. Because :meth:`write` is\n buffered and :meth:`read` is a blocking operation, this method is used\n for asynchronous execution of FORM scripts."
31
false
tueda/python-form
flush
38,888
LDU_FT/lambdamusic/Ontospy/shellPrintOverview
LDU_FT
[ "<BEGIN>\n## `main_cli`", "Ontospy allows to extract and visualise ontology information included in RDF data. Use one of the commands listed below to find out more, or visit http://lambdamusic.github.io/ontospy\n<END>", "<BEGIN>\n## `scan`", "SCAN: get ontology data from RDF source and print out a report.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shellPrintOverview 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 shellPrintOverview 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...
overview of graph invoked from command line @todo add pagination via something like this # import pydoc # pydoc.pager("SOME_VERY_LONG_TEXT")
"overview of graph invoked from command line\n\n @todo\n add pagination via something like this\n # import pydoc\n # pydoc.pager(\"SOME_VERY_LONG_TEXT\")"
360
false
lambdamusic/Ontospy
shellPrintOverview
38,889
LDU_FT/joerick/pyinstrument/decorate
LDU_FT
[ "<BEGIN>\n## `file_supports_color`", "Returns True if the running system's terminal supports color.", " Borrowed from Django\n https://github.com/django/django/blob/master/django/core/management/color.py\n<END>", "<BEGIN>\n## `load_report`", "Returns the session referred to by identifier\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decorate API. 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 decorate API. 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...
decorate(func, caller) decorates a function using a caller.
"decorate(func, caller) decorates a function using a caller."
43
false
joerick/pyinstrument
decorate
38,890
LDU_FT/harlowja/fasteners/read_locked
LDU_FT
[ "<BEGIN>\n## `_ensure_tree`", "Create a directory (and any ancestor directories required).", " :param path: Directory to create\n<END>", "<BEGIN>\n## `interprocess_locked`", "Acquires & releases a interprocess lock around call into\n decorated function.\n<END>", "<BEGIN>\n## `acquire`", "Attemp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_locked API. 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 read_locked API. 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...
Acquires & releases a read lock around call into decorated method. NOTE(harlowja): if no attribute name is provided then by default the attribute named '_lock' is looked for (this attribute is expected to be a :py:class:`.ReaderWriterLock`) in the instance object this decorator is attached to.
"Acquires & releases a read lock around call into decorated method.\n\n NOTE(harlowja): if no attribute name is provided then by default the\n attribute named '_lock' is looked for (this attribute is expected to be\n a :py:class:`.ReaderWriterLock`) in the instance object this decorator\n is attached to."
37
false
harlowja/fasteners
read_locked
38,891
LDU_FT/Bogdanp/dramatiq/get_result
LDU_FT
[ "<BEGIN>\n## `consume`", "Create a new consumer for a queue.", " Parameters:\n queue_name(str): The queue to consume.\n prefetch(int): The number of messages to prefetch.\n timeout(int): The idle timeout in milliseconds.", " Returns:\n Consumer: A consumer tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_result API. 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_result API. 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...
Get a result from the backend. Parameters: message(Message) block(bool): Whether or not to block until a result is set. timeout(int): The maximum amount of time, in ms, to wait for a result when block is True. Defaults to 10 seconds. Raises: ResultM...
"Get a result from the backend.\n\n Parameters:\n message(Message)\n block(bool): Whether or not to block until a result is set.\n timeout(int): The maximum amount of time, in ms, to wait for\n a result when block is True. Defaults to 10 seconds.\n\n Raises:\n ...
219
false
Bogdanp/dramatiq
get_result
38,892
LDU_FT/amanusk/s-tui/main
LDU_FT
[ "<BEGIN>\n## `get_label_scale`", "Dynamically change the scale of the graph (y lable)\n<END>", "<BEGIN>\n## `calculate_bar_widths`", "Return a list of bar widths, one for each bar in data.", " If self.bar_width is None this implementation will stretch\n the bars across the available space spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. 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 main API. 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...
Starts the main loop and graph animation
"Starts the main loop and graph animation"
70
false
amanusk/s-tui
main
38,893
LDU_FT/napalm-automation/napalm-logs/_check_children
LDU_FT
[ "<BEGIN>\n## `_setup_ipc`", "Setup the IPC pub and sub.\n Subscript to the listener IPC\n and publish to the device specific IPC.\n<END>", "<BEGIN>\n## `_compile_prefixes`", "Create a dict of all OS prefixes and their compiled regexs\n<END>", "<BEGIN>\n## `_identify_prefix`", "Check the mess...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_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 e...
Check all of the child processes are still running
"Check all of the child processes are still running"
82
false
napalm-automation/napalm-logs
_check_children
38,894
LDU_FT/lins05/slackbot/unicode_compact
LDU_FT
[ "<BEGIN>\n## `to_utf8`", "Convert a string to utf8. If the argument is an iterable\n (list/tuple/set), then each element of it would be converted instead.", " >>> to_utf8('a')\n 'a'\n >>> to_utf8(u'a')\n 'a'\n >>> to_utf8([u'a', u'b', u'\\u4f60'])\n ['a', 'b', '\\\\xe4\\\\xbd\\\\xa0']\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unicode_compact API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unicode_compact API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Make sure the first parameter of the decorated method to be a unicode object.
"Make sure the first parameter of the decorated method to be a unicode\n object."
26
false
lins05/slackbot
unicode_compact
38,895
LDU_FT/calmjs/calmjs.parse/p_break_statement_1
LDU_FT
[ "<BEGIN>\n## `optimize_structure_handler`", "Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>", "<BEGIN>\n## `optimize_layout_handler`", "Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_break_statement_1 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 p_break_statement_1 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...
break_statement : BREAK SEMI | BREAK AUTOSEMI
"break_statement : BREAK SEMI\n | BREAK AUTOSEMI"
253
false
calmjs/calmjs.parse
p_break_statement_1
38,896
LDU_FT/hearsaycorp/normalize/normalize_val
LDU_FT
[ "<BEGIN>\n## `path`", "The path attribute returns a stringified, concise representation of\n the MultiFieldSelector. It can be reversed by the ``from_path``\n constructor.\n<END>", "<BEGIN>\n## `get`", "Creates a copy of the passed object which only contains the parts\n which are pointed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_val API. 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 normalize_val API. 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...
Hook which is called on every value before comparison, and should return the scrubbed value or ``self._nothing`` to indicate that the value is not set.
"Hook which is called on every value before comparison, and should\n return the scrubbed value or ``self._nothing`` to indicate that the\n value is not set."
210
false
hearsaycorp/normalize
normalize_val
38,897
LDU_FT/SatelliteQE/nailgun/_make_entities_from_ids
LDU_FT
[ "<BEGIN>\n## `main`", "Create an identical user account on a pair of satellites.\n<END>", "<BEGIN>\n## `get_organization_id`", "Return the ID of the organization with label ``label``.", " :param server_config: A dict of information about the server being talked\n to. The dict should include the ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_entities_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 _make_entities_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...
Given an iterable of entities and/or IDs, return a list of entities. :param entity_cls: An :class:`Entity` subclass. :param entity_obj_or_id: An iterable of :class:`nailgun.entity_mixins.Entity` objects and/or entity IDs. All of the entities in this iterable should be of type ``entity_cls``. ...
"Given an iterable of entities and/or IDs, return a list of entities.\n\n :param entity_cls: An :class:`Entity` subclass.\n :param entity_obj_or_id: An iterable of\n :class:`nailgun.entity_mixins.Entity` objects and/or entity IDs. All of\n the entities in this iterable should be of type ``entity_cls...
695
false
SatelliteQE/nailgun
_make_entities_from_ids
38,898
LDU_FT/jlmadurga/listenclosely/send_message
LDU_FT
[ "<BEGIN>\n## `listen`", "Listen/Connect to message service loop to start receiving messages.\n Do not include in constructor, in this way it can be included in tasks\n<END>", "<BEGIN>\n## `attend_pendings`", "Check all chats created with no agent assigned yet.\n Schedule a timer timeout to call ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_message API. 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...
Write all messages to the stream in a thread-safe way.
"Write all messages to the stream in a thread-safe way."
10
false
jlmadurga/listenclosely
send_message
38,899
LDU_FT/vanheeringen-lab/gimmemotifs/fraction_fpr
LDU_FT
[ "<BEGIN>\n## `threshold`", "Calculate motif score threshold for a given FPR.\n<END>", "<BEGIN>\n## `values_to_labels`", "Convert two arrays of values to an array of labels and an array of scores.", " Parameters\n ----------\n fg_vals : array_like\n The list of values for the positive set.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fraction_fpr API. 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 fraction_fpr API. 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...
Computes the fraction positives at a specific FPR (default 1%). Parameters ---------- fg_vals : array_like The list of values for the positive set. bg_vals : array_like The list of values for the negative set. fpr : float, optional The FPR (between 0.0 and 1.0). ...
"Computes the fraction positives at a specific FPR (default 1%).\n\n Parameters\n ----------\n fg_vals : array_like\n The list of values for the positive set.\n\n bg_vals : array_like\n The list of values for the negative set.\n \n fpr : float, optional\n The FPR (between 0.0 and ...
677
false
vanheeringen-lab/gimmemotifs
fraction_fpr
38,900
LDU_FT/pennersr/django-allauth/get_access_token
LDU_FT
[ "<BEGIN>\n## `_stash_user`", "Now, be aware, the following is quite ugly, let me explain:", " Even if the user credentials match, the authentication can fail because\n Django's default ModelBackend calls user_can_authenticate(), which\n checks `is_active`. Now, earlier versions of allauth d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_token API. 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_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Obtain the access token to access private resources at the API endpoint.
"Obtain the access token to access private resources at the API\n endpoint."
130
false
pennersr/django-allauth
get_access_token
38,901
LDU_FT/ronhanson/python-tbx/slugify
LDU_FT
[ "<BEGIN>\n## `static_singleton`", "STATIC Singleton Design Pattern Decorator\n Class is initialized with arguments passed into the decorator.", " :Usage: \n >>> @static_singleton('yop')\n class Bob(Person):\n def __init__(arg1):\n self.info = arg1\n def says...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slugify API. 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 slugify API. 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...
Generates an slightly worse ASCII-only slug.
"Generates an slightly worse ASCII-only slug."
85
false
ronhanson/python-tbx
slugify
38,902
LDU_FT/taddeus/wspy/calculate_nonce
LDU_FT
[ "<BEGIN>\n## `conflicts`", "Check if the extension conflicts with an already accepted extension.\n This may be the case when the two extensions use the same reserved\n bits, or have the same name (when the same extension is negotiated\n multiple times with different parameters).\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_nonce API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_nonce API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Generate a nonce using the provided timestamp, secret, and salt. If the salt is not provided, (and one should only be provided when validating a nonce) one will be generated randomly in order to ensure that two simultaneous requests do not generate identical nonces.
"Generate a nonce using the provided timestamp, secret, and salt. If the salt is not provided,\n (and one should only be provided when validating a nonce) one will be generated randomly\n in order to ensure that two simultaneous requests do not generate identical nonces."
72
false
taddeus/wspy
calculate_nonce
38,903
LDU_FT/exosite-labs/pyonep/map
LDU_FT
[ "<BEGIN>\n## `request`", "Wraps HTTPConnection.request. On exception it calls exception_fn\n with the exception object. If exception_fn is None, it re-raises the\n exception. If notimeout is True, create a new connection (regardless of\n self.reuseconnection setting) that uses the global defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API. 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 map API. 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...
Creates an alias for a resource. Args: auth: <cik> resource: <ResourceID> alias: alias to create (map)
"Creates an alias for a resource.\n\n Args:\n auth: <cik>\n resource: <ResourceID>\n alias: alias to create (map)"
199
false
exosite-labs/pyonep
map
38,904
LDU_FT/MarcAureleCoste/sqla-filters/attr_sep
LDU_FT
[ "<BEGIN>\n## `filter`", "Define the filter function that every node must to implement.", " :param query: The sqlalchemy query.\n :type query: Query", " :param entity: The entity model.\n :type entity: type", " :return: The filtered query.\n :rtype: Tuple[Query, Any]...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attr_sep API. 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 attr_sep API. 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...
Set the new value for the attribute separator. When the new value is assigned a new tree is generated.
"Set the new value for the attribute separator.\n \n When the new value is assigned a new tree is generated."
32
false
MarcAureleCoste/sqla-filters
attr_sep
38,905
LDU_FT/openpermissions/koi/_error_template
LDU_FT
[ "<BEGIN>\n## `define_options`", "Define the options from default.conf dynamically\n<END>", "<BEGIN>\n## `log_config`", "Logs the config used to start the application\n<END>", "<BEGIN>\n## `ssl_server_options`", "ssl options for tornado https server\n these options are defined in each application's defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _error_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _error_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Construct JSON error response :param status_code: the http status code :param errors: string or list of error strings :param source: source of the error :returns: dictionary, e.g. { 'status': 400, 'errors': [ { ...
"Construct JSON error response\n\n :param status_code: the http status code\n :param errors: string or list of error strings\n :param source: source of the error\n :returns: dictionary, e.g.\n {\n 'status': 400,\n 'errors': [\n {\n ...
122
false
openpermissions/koi
_error_template
38,906
LDU_FT/ev3dev/ev3dev-lang-python/list_device_names
LDU_FT
[ "<BEGIN>\n## `list_motors`", "This is a generator function that enumerates all tacho motors that match\n the provided arguments.", " Parameters:\n name_pattern: pattern that device name should match.\n For example, 'motor*'. Default value: '*'.\n keyword arguments: used for matchi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_device_names API. 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 list_device_names API. 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 is a generator function that lists names of all devices matching the provided parameters. Parameters: class_path: class path of the device, a subdirectory of /sys/class. For example, '/sys/class/tacho-motor'. name_pattern: pattern that device name should match. For ...
"This is a generator function that lists names of all devices matching the\n provided parameters.\n\n Parameters:\n class_path: class path of the device, a subdirectory of /sys/class.\n For example, '/sys/class/tacho-motor'.\n name_pattern: pattern that device name should match.\n ...
452
false
ev3dev/ev3dev-lang-python
list_device_names
38,907
LDU_FT/asphalt-framework/asphalt/threadpool
LDU_FT
[ "<BEGIN>\n## `run_application`", "Configure logging and start the given root component in the default asyncio event loop.", " Assuming the root component was started successfully, the event loop will continue running\n until the process is terminated.", " Initializes the logging system first based on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the threadpool API. 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 threadpool API. 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 an asynchronous context manager that runs the block in a (thread pool) executor. :param executor: either an :class:`~concurrent.futures.Executor` instance, the resource name of one or ``None`` to use the event loop's default executor :return: an asynchronous context manager
"Return an asynchronous context manager that runs the block in a (thread pool) executor.\n\n :param executor: either an :class:`~concurrent.futures.Executor` instance, the resource\n name of one or ``None`` to use the event loop's default executor\n :return: an asynchronous context manager"
143
false
asphalt-framework/asphalt
threadpool
38,908
LDU_FT/UAVCAN/pyuavcan/_path
LDU_FT
[ "<BEGIN>\n## `enum_mark_last`", "Returns a generator over iterable that tells whether the current item is the last one.\n Usage:\n >>> iterable = range(10)\n >>> for index, is_last, item in enum_mark_last(iterable):\n >>> print(index, item, end='\\n' if is_last else ', ')\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns the namespace object at the given .-separated path, creating any namespaces in the path that don't already exist.
"Returns the namespace object at the given .-separated path,\n creating any namespaces in the path that don't already exist."
65
false
UAVCAN/pyuavcan
_path
38,909
LDU_FT/python-astrodynamics/spacetrack/get_predicates
LDU_FT
[ "<BEGIN>\n## `check_git_unchanged`", "Check git to avoid overwriting user changes.\n<END>", "<BEGIN>\n## `check_staged`", "Check if there are 'changes to be committed' in the index.\n<END>", "<BEGIN>\n## `_raise_for_status`", "Raise an appropriate error for a given response.", " Arguments:\n res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_predicates API. 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_predicates API. 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 full predicate information for given request class, and cache for subsequent calls.
"Get full predicate information for given request class, and cache\n for subsequent calls."
71
false
python-astrodynamics/spacetrack
get_predicates
38,910
LDU_FT/zagaran/mongobackup/purge_old_files
LDU_FT
[ "<BEGIN>\n## `call`", "Runs a bash command safely, with shell=false, catches any non-zero\n return codes. Raises slightly modified CalledProcessError exceptions\n on failures.\n Note: command is a string and cannot include pipes.\n<END>", "<BEGIN>\n## `tarbz`", "Tars and bzips a director...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purge_old_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purge_old_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Takes a datetime object and a directory path, runs through files in the directory and deletes those tagged with a date from before the provided datetime. If your backups have a custom_prefix that is not the default ("backup"), provide it with the "custom_prefix" kwarg.
"Takes a datetime object and a directory path, runs through files in the\r\n directory and deletes those tagged with a date from before the provided\r\n datetime.\r\n If your backups have a custom_prefix that is not the default (\"backup\"),\r\n provide it with the \"custom_prefix\" kwarg."
36
false
zagaran/mongobackup
purge_old_files
38,911
LDU_FT/Telefonica/toolium/wait_until_not_visible
LDU_FT
[ "<BEGIN>\n## `create_driver`", "Create a selenium driver using specified config properties", " :returns: a new selenium driver\n :rtype: selenium.webdriver.remote.webdriver.WebDriver\n<END>", "<BEGIN>\n## `_create_remote_driver`", "Create a driver in a remote server\n View valid capabil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_until_not_visible 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 wait_until_not_visible API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Search element and wait until it is not visible :param timeout: max time to wait :returns: page element instance
"Search element and wait until it is not visible\n\n :param timeout: max time to wait\n :returns: page element instance"
381
false
Telefonica/toolium
wait_until_not_visible
38,912
LDU_FT/guinslym/pyexifinfo/get_csv
LDU_FT
[ "<BEGIN>\n## `check_if_this_file_exist`", "Check if this file exist and if it's a directory", " This function will check if the given filename\n actually exists and if it's not a Directory", " Arguments:\n filename {string} -- filename", " Return:\n True : if it's not a directory ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_csv API. 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 get_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a csv representation of the exif get a filename and returns a unicode string with a CSV format Arguments: filename {string} -- your filename Returns: [unicode] -- unicode string
"Return a csv representation of the exif\n\n get a filename and returns a unicode string with a CSV format\n\n Arguments:\n filename {string} -- your filename\n\n Returns:\n [unicode] -- unicode string"
27
false
guinslym/pyexifinfo
get_csv
38,913
LDU_FT/tariqdaouda/pyGeno/importSNPs
LDU_FT
[ "<BEGIN>\n## `getGenomeList`", "Return the names of all imported genomes\n<END>", "<BEGIN>\n## `removeDuplicates`", "removes duplicated lines from a 'inFileName' CSV file, the results are witten in 'outFileName\n<END>", "<BEGIN>\n## `catCSVs`", "Concatenates all csv in 'folder' and wites the results in 'o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the importSNPs API. 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 importSNPs API. 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...
The big wrapper, this function should detect the SNP type by the package manifest and then launch the corresponding function. Here's an example of a SNP manifest file for Casava SNPs:: [package_infos] description = Casava SNPs for testing purposes maintainer = Tariq Daouda maintainer_contact = tariq.daouda [a...
"The big wrapper, this function should detect the SNP type by the package manifest and then launch the corresponding function.\n\tHere's an example of a SNP manifest file for Casava SNPs::\n\n\t\t[package_infos]\n\t\tdescription = Casava SNPs for testing purposes\n\t\tmaintainer = Tariq Daouda\n\t\tmaintainer_contact =...
167
false
tariqdaouda/pyGeno
importSNPs
38,914
LDU_FT/mardiros/pyshop/package_releases
LDU_FT
[ "<BEGIN>\n## `update_model`", "trivial implementation for simple data in the form,\n using the model prefix.\n<END>", "<BEGIN>\n## `locale_negotiator`", "Locale negotiator base on the `Accept-Language` header\n<END>", "<BEGIN>\n## `main`", "Get a PyShop WSGI application configured with settings.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the package_releases API. 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 package_releases API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Retrieve a list of the releases registered for the given package_name. Returns a list with all version strings if show_hidden is True or only the non-hidden ones otherwise.
"Retrieve a list of the releases registered for the given package_name.\n Returns a list with all version strings if show_hidden is True or\n only the non-hidden ones otherwise."
135
false
mardiros/pyshop
package_releases
38,915
LDU_FT/pythongssapi/python-gssapi/check_last_err
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 check_last_err API. 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 check_last_err API. 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 and raise deferred errors before running the function This method checks :python:`_last_err` before running the wrapped function. If present and not None, the exception will be raised with its original traceback.
"Check and raise deferred errors before running the function\n\n This method checks :python:`_last_err` before running the wrapped\n function. If present and not None, the exception will be raised\n with its original traceback."
97
false
pythongssapi/python-gssapi
check_last_err
38,916
LDU_FT/Komnomnomnom/swigibpy/tickOptionComputation
LDU_FT
[ "<BEGIN>\n## `placeOrder`", "placeOrder(EClient self, OrderId id, Contract contract, Order order)\n<END>", "<BEGIN>\n## `reqMktDepth`", "reqMktDepth(EClient self, TickerId id, Contract contract, int numRows, TagValueListSPtr const & mktDepthOptions)\n<END>", "<BEGIN>\n## `exerciseOptions`", "exerciseOptio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tickOptionComputation 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 tickOptionComputation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
tickOptionComputation(EWrapper self, TickerId tickerId, TickType tickType, double impliedVol, double delta, double optPrice, double pvDividend, double gamma, double vega, double theta, double undPrice)
"tickOptionComputation(EWrapper self, TickerId tickerId, TickType tickType, double impliedVol, double delta, double optPrice, double pvDividend, double gamma, double vega, double theta, double undPrice)"
81
false
Komnomnomnom/swigibpy
tickOptionComputation
38,917
LDU_FT/maciejkula/glove-python/most_similar
LDU_FT
[ "<BEGIN>\n## `read_analogy_file`", "Read the analogy task test set from a file.\n<END>", "<BEGIN>\n## `analogy_rank_score`", "Calculate the analogy rank score for the given set of analogies.", " A rank of zero denotes a perfect score; with random word vectors\n we would expect a rank of 0.5.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the most_similar API. 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 most_similar API. 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...
Run a similarity query, retrieving number most similar words.
"Run a similarity query, retrieving number\n most similar words."
27
false
maciejkula/glove-python
most_similar
38,918
LDU_FT/raymontag/kppy/move_group
LDU_FT
[ "<BEGIN>\n## `set_expire`", "This method is used to change the expire date of a group", " - y is the year between 1 and 9999 inclusive\n - mon is the month between 1 and 12\n - d is a day in the given month\n - h is a hour between 0 and 23\n - min_ is a min...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_group API. 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 move_group API. 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...
Append group to a new parent. group and parent must be v1Group-instances.
"Append group to a new parent.\n\n group and parent must be v1Group-instances."
81
false
raymontag/kppy
move_group
38,919
LDU_FT/jmbeach/KEP.py/set_driver_simulated
LDU_FT
[ "<BEGIN>\n## `parse_channels`", "Creates an array of Channel objects from the project\n<END>", "<BEGIN>\n## `parse_devices`", "Creates an array of Device objects from the channel\n<END>", "<BEGIN>\n## `process_tag`", "Processes tag and detects which function to use\n<END>", "<BEGIN>\n## `name_replace`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_driver_simulated 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 set_driver_simulated 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 the device driver type to simulated
"Sets the device driver type to simulated"
24
false
jmbeach/KEP.py
set_driver_simulated
38,920
LDU_FT/fhamborg/news-please/get_max_url_file_name_length
LDU_FT
[ "<BEGIN>\n## `rss_parse`", "Extracts all article links and initiates crawling them.", " :param obj response: The scrapy response\n<END>", "<BEGIN>\n## `article_parse`", "Checks any given response on being an article and if positiv,\n passes the response to the pipeline.", " :param obj...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_max_url_file_name_length 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 get_max_url_file_name_length API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Determines the max length for any max... parts. :param str savepath: absolute savepath to work on :return: max. allowed number of chars for any of the max... parts
"Determines the max length for any max... parts.\n\n :param str savepath: absolute savepath to work on\n :return: max. allowed number of chars for any of the max... parts"
277
false
fhamborg/news-please
get_max_url_file_name_length
38,921
LDU_FT/Nekroze/partpy/match_any_string
LDU_FT
[ "<BEGIN>\n## `pretty_print`", "Print the previous and current line with line numbers and\n a carret under the current character position.", " Will also print a message if one is given to this exception.\n<END>", "<BEGIN>\n## `parse`", "Run the parser over the entire sourestring and return the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_any_string API. 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 match_any_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Attempts to match each string in strings in order. Will return the string that matches or an empty string if no match. If word arg >= 1 then only match if string is followed by a whitespace which is much higher performance. If word is 0 then you should sort the strings argument yoursel...
"Attempts to match each string in strings in order.\n Will return the string that matches or an empty string if no match.\n\n If word arg >= 1 then only match if string is followed by a whitespace\n which is much higher performance.\n\n If word is 0 then you should sort the strings argument ...
80
false
Nekroze/partpy
match_any_string
38,922
LDU_FT/aws/aws-iot-device-sdk-python/message_callback_add
LDU_FT
[ "<BEGIN>\n## `shadowGet`", "**Description**", " Retrieve the device shadow JSON document from AWS IoT by publishing an empty JSON document to the \n corresponding shadow topics. Shadow response topics will be subscribed to receive responses from \n AWS IoT regarding the result of the get op...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message_callback_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message_callback_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. ...
Register a message callback for a specific topic. Messages that match 'sub' will be passed to 'callback'. Any non-matching messages will be passed to the default on_message callback. Call multiple times with different 'sub' to define multiple topic specific callbacks. ...
"Register a message callback for a specific topic.\n Messages that match 'sub' will be passed to 'callback'. Any\n non-matching messages will be passed to the default on_message\n callback.\n \n Call multiple times with different 'sub' to define multiple topic\n specific callba...
420
false
aws/aws-iot-device-sdk-python
message_callback_add
38,923
LDU_FT/remram44/usagestats/disable_reporting
LDU_FT
[ "<BEGIN>\n## `OPERATING_SYSTEM`", "General information about the operating system.", " This is a flag you can pass to `Stats.submit()`.\n<END>", "<BEGIN>\n## `SESSION_TIME`", "Total time of this session.", " Reports the time elapsed from the construction of the `Stats` object to\n this `submit()`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disable_reporting API. 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 disable_reporting API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Call this method to explicitly disable reporting. The current report will be discarded, along with the previously recorded ones that haven't been uploaded. The configuration is updated so that future runs do not record or upload reports.
"Call this method to explicitly disable reporting.\n\n The current report will be discarded, along with the previously\n recorded ones that haven't been uploaded. The configuration is updated\n so that future runs do not record or upload reports."
32
false
remram44/usagestats
disable_reporting
38,924
LDU_FT/bradmontgomery/django-redis-metrics/_category_slugs
LDU_FT
[ "<BEGIN>\n## `categorize_metrics`", "Called only on a valid form, this method will place the chosen\n metrics in the given catgory.\n<END>", "<BEGIN>\n## `dedupe`", "Remove duplicates from a sequence (of hashable items) while maintaining\n order. NOTE: This only works if items in the list are hashab...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _category_slugs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _category_slugs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a set of the metric slugs for the given category
"Returns a set of the metric slugs for the given category"
122
false
bradmontgomery/django-redis-metrics
_category_slugs
38,925
LDU_FT/opendatateam/udata/safe_unicode
LDU_FT
[ "<BEGIN>\n## `save`", "PeriodicTask is dynamic and save behavior changed\n See: https://github.com/zakird/celerybeat-mongo/commit/dfbbd20edde91134b57f5406d0ce4eac59d6899b\n<END>", "<BEGIN>\n## `has_manifest`", "Verify the existance of a JSON assets manifest\n<END>", "<BEGIN>\n## `from_manifest`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_unicode API. 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 safe_unicode API. 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...
Safely transform any object into utf8 encoded bytes
"Safely transform any object into utf8 encoded bytes"
476
false
opendatateam/udata
safe_unicode
38,926
LDU_FT/hannes-brt/cudnn-python-wrappers/cudnnActivationBackward
LDU_FT
[ "<BEGIN>\n## `cudnnCreate`", "Initialize cuDNN.", " Initializes cuDNN and returns a handle to the cuDNN context.", " Returns\n -------", " handle : cudnnHandle\n cuDNN context\n<END>", "<BEGIN>\n## `cudnnDestroy`", "Release cuDNN resources.", " Release hardware resources used by ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cudnnActivationBackward 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 cudnnActivationBackward API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Gradient of activation function. This routine computes the gradient of a neuron activation function. In-place operation is allowed for this routine; i.e., srcData and destData pointers may be equal and srcDiffData and destDiffData pointers may be equal. However, this requires the corresponding tensor ...
"Gradient of activation function.\n\n This routine computes the gradient of a neuron activation function.\n\n In-place operation is allowed for this routine; i.e., srcData and destData\n pointers may be equal and srcDiffData and destDiffData pointers may be equal.\n However, this requires the corresponding ...
108
false
hannes-brt/cudnn-python-wrappers
cudnnActivationBackward
38,927
LDU_FT/freeman-lab/regional/outline
LDU_FT
[ "<BEGIN>\n## `getcolor`", "Turn optional color string spec into an array.\n<END>", "<BEGIN>\n## `getcolors`", "Turn list of color specs into list of arrays.\n<END>", "<BEGIN>\n## `getbase`", "Construct a base array from optional arguments.\n<END>", "<BEGIN>\n## `bbox`", "Bounding box as minimum and ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the outline API. 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 outline API. 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...
Compute region outline by differencing two dilations. Parameters ---------- inner : int Size of inner outline boundary (in pixels) outer : int Size of outer outline boundary (in pixels)
"Compute region outline by differencing two dilations.\n\n Parameters\n ----------\n inner : int\n Size of inner outline boundary (in pixels)\n\n outer : int\n Size of outer outline boundary (in pixels)"
53
false
freeman-lab/regional
outline
38,928
LDU_FT/podio/podio-py/create
LDU_FT
[ "<BEGIN>\n## `AuthorizingClient`", "Creates a Podio client using an auth object.\n<END>", "<BEGIN>\n## `encode_and_quote`", "If ``data`` is unicode, return urllib.quote_plus(data.encode(\"utf-8\"))\n otherwise return urllib.quote_plus(data)\n<END>", "<BEGIN>\n## `_strify`", "If s is a unicode string, e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create a new space :param attributes: Refer to API. Pass in argument as dictionary :type attributes: dict :return: Details of newly created space :rtype: dict
"Create a new space\n \n :param attributes: Refer to API. Pass in argument as dictionary\n :type attributes: dict\n :return: Details of newly created space\n :rtype: dict"
82
false
podio/podio-py
create
38,929
LDU_FT/ethereum/lahja/stop
LDU_FT
[ "<BEGIN>\n## `start_serving_nowait`", "Start serving this :class:`~lahja.endpoint.Endpoint` so that it can receive events. It is\n not guaranteed that the :class:`~lahja.endpoint.Endpoint` is fully ready after this method\n returns. Use :meth:`~lahja.endpoint.Endpoint.start_serving` or combine with\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. 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 stop API. 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...
Stop the :class:`~lahja.endpoint.Endpoint` from receiving further events.
"Stop the :class:`~lahja.endpoint.Endpoint` from receiving further events."
26
false
ethereum/lahja
stop
38,930
LDU_FT/google/tangent/push
LDU_FT
[ "<BEGIN>\n## `compile_file`", "Compile by saving to file and importing that.", " Compiling the AST/source code this way ensures that the source code is\n readable by e.g. `pdb` or `inspect`.", " Args:\n source: The code to compile, either as a string or as an AST.\n globals_: A dictionary of variable...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push API. 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 push API. 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...
Push a value onto the stack (i.e. record it on the tape). Args: stack: The stack object, which must support appending values. x: The value to append. If it is a mutable object like an array or list, it will be copied before being added onto the stack. op_id: A unique variable that is also passed ...
"Push a value onto the stack (i.e. record it on the tape).\n\n Args:\n stack: The stack object, which must support appending values.\n x: The value to append. If it is a mutable object like an array or list, it\n will be copied before being added onto the stack.\n op_id: A unique variable that is also ...
368
false
google/tangent
push
38,931
LDU_FT/rmorshea/dstruct/init_self
LDU_FT
[ "<BEGIN>\n## `datafield`", "A decorator that defines a field for data within a :class:`DataStruct`", " The decorated function becomes the parser for a :class:`DataField` which\n will be assigned to a data structure under the function's defined name.", " Parameters\n ----------\n path: tuple\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_self API. 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 init_self API. 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...
Initialize this descriptor instance Parameters ---------- cls : class The class which owns this descriptor name : str The attribute name of this descriptor
"Initialize this descriptor instance\n\n Parameters\n ----------\n cls : class\n The class which owns this descriptor\n name : str\n The attribute name of this descriptor"
16
false
rmorshea/dstruct
init_self
38,932
LDU_FT/ChrisCummins/labm8/mean
LDU_FT
[ "<BEGIN>\n## `table`", "Return a formatted string of \"list of list\" table data.", " See: http://pandas.pydata.org/pandas-docs/dev/generated/pandas.DataFrame.html", " Examples:", " >>> fmt.print([(\"foo\", 1), (\"bar\", 2)])\n 0 1\n 0 foo 1\n 1 bar 2", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mean API. 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 mean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return the mean value of a list of divisible numbers.
"Return the mean value of a list of divisible numbers."
345
false
ChrisCummins/labm8
mean
38,933
LDU_FT/bartTC/django-wakawaka/revision_list
LDU_FT
[ "<BEGIN>\n## `index`", "Redirects to the default wiki index name.\n<END>", "<BEGIN>\n## `page`", "Displays a wiki page. Redirects to the edit view if the page doesn't exist.\n<END>", "<BEGIN>\n## `edit`", "Displays the form for editing and deleting a page.\n<END>", "<BEGIN>\n## `revisions`", "Displays...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the revision_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. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the revision_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. The ext...
Displays a list of all recent revisions.
"Displays a list of all recent revisions."
15
false
bartTC/django-wakawaka
revision_list
38,934
LDU_FT/SpockBotMC/SpockBot/ingredient_positions
LDU_FT
[ "<BEGIN>\n## `clean_var`", "Turn text into a valid python classname or variable\n<END>", "<BEGIN>\n## `full_tasktrace`", "List of all failed tasks caused by this and all previous errors.", " Returns:\n List[Task]\n<END>", "<BEGIN>\n## `yaw_pitch`", "Calculate the yaw and pitch of this ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ingredient_positions 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 ingredient_positions 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: dict: In the form { (item_id, metadata) -> [(x, y, amount), ...] }
"Returns:\n dict: In the form { (item_id, metadata) -> [(x, y, amount), ...] }"
62
false
SpockBotMC/SpockBot
ingredient_positions
38,935
LDU_FT/nilp0inter/cpe/_create_cpe_parts
LDU_FT
[ "<BEGIN>\n## `_trim`", "Remove trailing colons from the URI back to the first non-colon.", " :param string s: input URI string\n :returns: URI string with trailing colons removed\n :rtype: string", " TEST: trailing colons necessary", " >>> s = '1:2::::'\n >>> CPE._t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_cpe_parts API. 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_cpe_parts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create the structure to store the input type of system associated with components of CPE Name (hardware, operating system and software). :param string system: type of system associated with CPE Name :param dict components: CPE Name components to store :returns: None :exception: ...
"Create the structure to store the input type of system associated\n with components of CPE Name (hardware, operating system and software).\n\n :param string system: type of system associated with CPE Name\n :param dict components: CPE Name components to store\n :returns: None\n :exce...
206
false
nilp0inter/cpe
_create_cpe_parts
38,936
LDU_FT/edeposit/edeposit.amqp.harvester/find_common_root
LDU_FT
[ "<BEGIN>\n## `save_cache`", "Save cahce to the disk.", " Args:\n cache (set): Set with cached data.\n<END>", "<BEGIN>\n## `load_cache`", "Load cache from the disk.", " Return:\n set: Deserialized data from disk.\n<END>", "<BEGIN>\n## `filter_publication`", "Deduplication function, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_common_root API. 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 find_common_root API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Find root which is common for all `elements`. Args: elements (list): List of double-linked HTMLElement objects. Returns: list: Vector of HTMLElement containing path to common root.
"Find root which is common for all `elements`.\n\n Args:\n elements (list): List of double-linked HTMLElement objects.\n\n Returns:\n list: Vector of HTMLElement containing path to common root."
303
false
edeposit/edeposit.amqp.harvester
find_common_root
38,937
LDU_FT/viniciuschiele/flask-apidoc/__send_main_file
LDU_FT
[ "<BEGIN>\n## `cached`", "Cache decorator for functions taking one or more arguments.\n :param f: The function to be cached.\n :return: The cached value.\n<END>", "<BEGIN>\n## `init_app`", "Adds the flask url routes for the apidoc files.\n :param app: the flask application.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __send_main_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 __send_main_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 ...
Send apidoc files from the apidoc folder to the browser. This method replaces all absolute urls in the file by the current url. :param file_name: the apidoc file.
"Send apidoc files from the apidoc folder to the browser.\n This method replaces all absolute urls in the file by\n the current url.\n :param file_name: the apidoc file."
12
false
viniciuschiele/flask-apidoc
__send_main_file
38,938
LDU_FT/quaddra/provision/destroy_by_name
LDU_FT
[ "<BEGIN>\n## `NodeDriver_wait_until_running`", "Block until node is fully booted and has an IP address assigned.", " @keyword node: Node instance.\n @type node: C{Node}", " @keyword wait_period: How many seconds to between each loop\n iteration (default is 3)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Destroy all nodes matching specified name
"Destroy all nodes matching specified name"
59
false
quaddra/provision
destroy_by_name
38,939
LDU_FT/django-ses/django-ses/sum_stats
LDU_FT
[ "<BEGIN>\n## `certificate`", "Retrieves the certificate used to sign the bounce message.", " TODO: Cache the certificate based on the cert URL so we don't have to\n retrieve it for each bounce message. *We would need to do it in a\n secure way so that the cert couldn't be overwritten in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum_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 extract...
Summarize the bounces, complaints, delivery attempts and rejects from a list of datapoints.
"Summarize the bounces, complaints, delivery attempts and rejects from a\n list of datapoints."
27
false
django-ses/django-ses
sum_stats
38,940
LDU_FT/HarveyHunt/i3situation/manage_submissions
LDU_FT
[ "<BEGIN>\n## `main`", "Generates an output string by replacing the keywords in the format\n string with the corresponding values from a submission dictionary.\n<END>", "<BEGIN>\n## `login`", "Logs into Reddit in order to display a personalised front page.\n<END>", "<BEGIN>\n## `manage_submissions`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the manage_submissions 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 manage_submissions 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...
If there are no or only one submissions left, get new submissions. This function manages URL creation and the specifics for front page or subreddit mode.
"If there are no or only one submissions left, get new submissions.\n This function manages URL creation and the specifics for front page\n or subreddit mode."
63
false
HarveyHunt/i3situation
manage_submissions
38,941
LDU_FT/allelos/vectors/substract
LDU_FT
[ "<BEGIN>\n## `substract`", "Return a Point instance as the displacement of two points.\n<END>", "<BEGIN>\n## `from_list`", "Return a Point instance from a given list\n<END>", "<BEGIN>\n## `multiply`", "Return a Vector as the product of the vector and a real number.\n<END>", "<BEGIN>\n## `sum`", "Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the substract API. 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 substract API. 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 a Point instance as the displacement of two points.
"Return a Point instance as the displacement of two points."
28
false
allelos/vectors
substract
38,942
LDU_FT/DasIch/argvard/option
LDU_FT
[ "<BEGIN>\n## `from_string`", "Returns a :class:`Signature` object based on the given `string`. If\n `option` is `True`, repetitions or optional patterns will not be\n allowed.", " If the `string` cannot be parsed, :exc:`InvalidSignature` is raised.\n<END>", "<BEGIN>\n## `usage`", "A usa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the option API. 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 option API. 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 ...
A decorator for registering an option with the given `signature`:: @app.option('--option') def option(context): # do something pass If the name in the signature has already been used to register an option, a :exc:`RuntimeError` is raised unless t...
"A decorator for registering an option with the given `signature`::\n\n @app.option('--option')\n def option(context):\n # do something\n pass\n\n If the name in the signature has already been used to register an\n option, a :exc:`RuntimeError` is raised...
31
false
DasIch/argvard
option
38,943
LDU_FT/flashingpumpkin/django-socialregistration/send_connect_signal
LDU_FT
[ "<BEGIN>\n## `get_next`", "Returns a url to redirect to after the login / signup.\n<END>", "<BEGIN>\n## `create_profile`", "Create a profile model.", " :param user: A user object\n :param save: If this is set, the profile will\n be saved to DB straight away\n :type save: bool...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_connect_signal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_connect_signal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Send a signal that a user connected a social profile to his Django account. This signal should be sent *only* when the a new social connection was created.
"Send a signal that a user connected a social profile to his Django\n account. This signal should be sent *only* when the a new social\n connection was created."
72
false
flashingpumpkin/django-socialregistration
send_connect_signal
38,944
LDU_FT/Cadair/jupyter_environment_kernels/_is_executable_file
LDU_FT
[ "<BEGIN>\n## `convert_to_env_data`", "Converts a list of paths to environments to env_data.", " env_data is a structure {name -> (ressourcedir, kernel spec)}\n<END>", "<BEGIN>\n## `validate_IPykernel`", "Validates that this env contains an IPython kernel and returns info to start it", " Returns: tup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_executable_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 _is_executable_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...
Checks that path is an executable regular file, or a symlink towards one. This is roughly ``os.path isfile(path) and os.access(path, os.X_OK)``. This function was forked from pexpect originally: Copyright (c) 2013-2014, Pexpect development team Copyright (c) 2012, Noah Spurrier <noah@noah.org> PE...
"Checks that path is an executable regular file, or a symlink towards one.\n This is roughly ``os.path isfile(path) and os.access(path, os.X_OK)``.\n\n This function was forked from pexpect originally:\n\n Copyright (c) 2013-2014, Pexpect development team\n Copyright (c) 2012, Noah Spurrier <noah@noah.org>\...
69
false
Cadair/jupyter_environment_kernels
_is_executable_file
38,945
LDU_FT/rosenbrockc/acorn/_make_projcet_list
LDU_FT
[ "<BEGIN>\n## `cascade`", "Restores a sequence of string definitions using the first entry as the\n original and then applying a series of :func:`~acorn.logging.diff.restore`\n calls.", " Args:\n sequence (list): of results returned by\n :func:`~acorn.logging.diff.compress`, except that ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_projcet_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_projcet_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. Th...
Returns a dictionaries in which each project is a key and the tasks are stored as a list within that dictionaly element. Args: path (str): The path to the folder containing the *.json files. Returns: projects (list of dict): A dictionary in which each project is a key co...
"Returns a dictionaries in which each project is a key and the\n tasks are stored as a list within that dictionaly element.\n \n Args:\n path (str): The path to the folder containing the *.json files.\n \n Returns:\n projects (list of dict): A dictionary in which each project is a key \n ...
263
false
rosenbrockc/acorn
_make_projcet_list
38,946
LDU_FT/joealcorn/xbox/get
LDU_FT
[ "<BEGIN>\n## `_get`", "Makes a GET request, setting Authorization\n header by default\n<END>", "<BEGIN>\n## `_post`", "Makes a POST request, setting Authorization\n header by default\n<END>", "<BEGIN>\n## `_post_json`", "Makes a POST request, setting Authorization\n and Content-Type h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Gets a specific game clip :param xuid: xuid of an xbox live user :param scid: scid of a clip :param clip_id: id of a clip
"Gets a specific game clip\n\n :param xuid: xuid of an xbox live user\n :param scid: scid of a clip\n :param clip_id: id of a clip"
62
false
joealcorn/xbox
get
38,947
LDU_FT/pydata/numexpr/setRegisterNumbersForTemporaries
LDU_FT
[ "<BEGIN>\n## `set_vml_accuracy_mode`", "Set the accuracy mode for VML operations.", " The `mode` parameter can take the values:\n - 'high': high accuracy mode (HA), <1 least significant bit\n - 'low': low accuracy mode (LA), typically 1-2 least significant bits\n - 'fast': enhanced performance mode ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setRegisterNumbersForTemporaries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setRegisterNumbersForTemporaries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Assign register numbers for temporary registers, keeping track of aliases and handling immediate operands.
"Assign register numbers for temporary registers, keeping track of\n aliases and handling immediate operands."
69
false
pydata/numexpr
setRegisterNumbersForTemporaries
38,948
LDU_FT/martinblech/xmltodict/use_setuptools
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse the given XML input and convert it into a dictionary.", " `xml_input` can either be a `string`, a file-like object, or a generator of strings.", " If `xml_attribs` is `True`, element attributes are put in the dictionary\n among regular child elements, using `@` as a pref...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_setuptools API. 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 use_setuptools API. 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...
Ensure that a setuptools version is installed. Return None. Raise SystemExit if the requested version or later cannot be installed.
"Ensure that a setuptools version is installed.\n\n Return None. Raise SystemExit if the requested version\n or later cannot be installed."
37
false
martinblech/xmltodict
use_setuptools
38,949
LDU_FT/cjdrake/pyeda/AchillesHeel
LDU_FT
[ "<BEGIN>\n## `ripple_carry_add`", "Return symbolic logic for an N-bit ripple carry adder.\n<END>", "<BEGIN>\n## `kogge_stone_add`", "Return symbolic logic for an N-bit Kogge-Stone adder.\n<END>", "<BEGIN>\n## `brent_kung_add`", "Return symbolic logic for an N-bit Brent-Kung adder.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AchillesHeel API. 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 AchillesHeel API. 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...
r""" Return the Achille's Heel function, defined as: :math:`\prod_{i=0}^{n/2-1}{X_{2i} + X_{2i+1}}`. If *simplify* is ``True``, return a simplified expression.
"r\"\"\"\n Return the Achille's Heel function, defined as:\n :math:`\\prod_{i=0}^{n/2-1}{X_{2i} + X_{2i+1}}`.\n\n If *simplify* is ``True``, return a simplified expression."
410
false
cjdrake/pyeda
AchillesHeel
38,950
LDU_FT/Titan-C/slaveparticles/spin_gen_op
LDU_FT
[ "<BEGIN>\n## `destruct`", "Fermion annihilation operator in matrix representation for a indexed\n particle in a bounded N-particles fermion fock space\n<END>", "<BEGIN>\n## `plot_degbandshalffill`", "Plot of Quasiparticle weight for degenerate\n half-filled bands, showing the Mott transition\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spin_gen_op API. 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 spin_gen_op API. 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...
Generates the generic spin matrices for the system
"Generates the generic spin matrices for the system"
78
false
Titan-C/slaveparticles
spin_gen_op
38,951
LDU_FT/cognitect/transit-python/readeach
LDU_FT
[ "<BEGIN>\n## `register`", "Register a custom transit tag and decoder/parser function for use\n during reads.\n<END>", "<BEGIN>\n## `readeach`", "Temporary hook for API while streaming reads are in experimental\n phase. Read each object from stream as available with generator.\n JSON block...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readeach API. 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 readeach API. 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...
Temporary hook for API while streaming reads are in experimental phase. Read each object from stream as available with generator. JSON blocks indefinitely waiting on JSON entities to arrive. MsgPack requires unpacker property to be fed stream using unpacker.feed() method.
"Temporary hook for API while streaming reads are in experimental\n phase. Read each object from stream as available with generator.\n JSON blocks indefinitely waiting on JSON entities to arrive. MsgPack\n requires unpacker property to be fed stream using unpacker.feed()\n method."
29
false
cognitect/transit-python
readeach
38,952
LDU_FT/SpamScope/mail-parser/from_bytes
LDU_FT
[ "<BEGIN>\n## `sanitize`", "NFC is the normalization form recommended by W3C.\n<END>", "<BEGIN>\n## `ported_string`", "Give as input raw data and output a str in Python 3\n and unicode in Python 2.", " Args:\n raw_data: Python 2 str, Python 3 bytes or str to porting\n encoding: string giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_bytes API. 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_bytes API. 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...
Init a new object from bytes. Args: bt (bytes-like object): raw email as bytes-like object Returns: Instance of MailParser
"Init a new object from bytes.\n\n Args:\n bt (bytes-like object): raw email as bytes-like object\n\n Returns:\n Instance of MailParser"
90
false
SpamScope/mail-parser
from_bytes
38,953
LDU_FT/Fortran-FOSS-Programmers/ford/add_nodes
LDU_FT
[ "<BEGIN>\n## `line_to_variables`", "Returns a list of variables declared in the provided line of code. The\n line of code should be provided as a string.\n<END>", "<BEGIN>\n## `parse_type`", "Gets variable type, kind, length, and/or derived-type attributes from a\n variable declaration.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_nodes API. 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_nodes API. 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 edges showing dependencies between source files listed in the nodes.
"Adds edges showing dependencies between source files listed in\n the nodes."
76
false
Fortran-FOSS-Programmers/ford
add_nodes
38,954
LDU_FT/enkore/i3pystatus/execute
LDU_FT
[ "<BEGIN>\n## `init`", "Creates context, when context is ready context_notify_cb is called\n<END>", "<BEGIN>\n## `request_update`", "Requests a sink info update (sink_info_cb is called)\n<END>", "<BEGIN>\n## `server_info_cb`", "Retrieves the default sink and calls request_update\n<END>", "<BEGIN>\n## `co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. 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 execute API. 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...
Runs a command in background. No output is retrieved. Useful for running GUI applications that would block click events. :param command: A string or a list of strings containing the name and arguments of the program. :param detach: If set to `True` the program will be executed using the `i3-msg` ...
"Runs a command in background. No output is retrieved. Useful for running GUI\n applications that would block click events.\n\n :param command: A string or a list of strings containing the name and\n arguments of the program.\n :param detach: If set to `True` the program will be executed using the\n `i...
181
false
enkore/i3pystatus
execute
38,955
LDU_FT/matthieugouel/gibica/load_builtins
LDU_FT
[ "<BEGIN>\n## `append_scope`", "Create a new scope in the current frame.\n<END>", "<BEGIN>\n## `pop_scope`", "Delete the current scope in the current scope.\n<END>", "<BEGIN>\n## `visit`", "Visit the right method of the child class according to the node.\n<END>", "<BEGIN>\n## `peek`", "Get the next cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_builtins API. 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 load_builtins API. 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...
Load the built-in functions into the scope.
"Load the built-in functions into the scope."
56
false
matthieugouel/gibica
load_builtins
38,956
LDU_FT/darothen/xbpch/_read_var_data
LDU_FT
[ "<BEGIN>\n## `from_model`", "Define a grid using the specifications of a given model.", " Parameters\n ----------\n model_name : string\n Name the model (see :func:`get_supported_models` for available\n model names).\n Supports multiple formats (e.g., 'GEOS5...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_var_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_var_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Iterate over the block of this bpch file and return handlers in the form of `BPCHDataBundle`s for access to the data contained therein.
"Iterate over the block of this bpch file and return handlers\n in the form of `BPCHDataBundle`s for access to the data contained\n therein."
122
false
darothen/xbpch
_read_var_data
38,957
LDU_FT/scrapinghub/exporters/iterate_chunks
LDU_FT
[ "<BEGIN>\n## `formatted_prefix`", "Gets a dict with format info, and formats a prefix template with that info. For example:\n if our prefix template is:\n 'some_file_{groups[0]}_{file_number}'", " And we have this method called with:", " formatted_prefix(groups=[US], file_number=0)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterate_chunks API. 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 iterate_chunks API. 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...
Iterate chunks of size chunk_size from a file-like object
"Iterate chunks of size chunk_size from a file-like object"
90
false
scrapinghub/exporters
iterate_chunks
38,958
LDU_FT/juju-solutions/charms.reactive/_find_relation_factory
LDU_FT
[ "<BEGIN>\n## `endpoint_from_name`", "The object used for interacting with the named relations, or None.\n<END>", "<BEGIN>\n## `endpoint_from_flag`", "The object used for interacting with relations tied to a flag, or None.\n<END>", "<BEGIN>\n## `relation_factory`", "Get the RelationFactory for the given re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_relation_factory 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_relation_factory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Attempt to find a RelationFactory subclass in the module. Note: RelationFactory and RelationBase are ignored so they may be imported to be used as base classes without fear.
"Attempt to find a RelationFactory subclass in the module.\n\n Note: RelationFactory and RelationBase are ignored so they may\n be imported to be used as base classes without fear."
223
false
juju-solutions/charms.reactive
_find_relation_factory
38,959
LDU_FT/eamigo86/graphene-django-extras/_get_queryset
LDU_FT
[ "<BEGIN>\n## `dispatch`", "Fetches queried data from graphql and returns cached & hashed key.\n<END>", "<BEGIN>\n## `_parse`", "parse a partial datetime object to a complete datetime object\n<END>", "<BEGIN>\n## `get_obj`", "Function used to get a object\n :param app_label: A valid Django Model or a st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_queryset API. 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_queryset API. 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...
Returns a QuerySet from a Model, Manager, or QuerySet. Created to make get_object_or_404 and get_list_or_404 more DRY. Raises a ValueError if klass is not a Model, Manager, or QuerySet.
"Returns a QuerySet from a Model, Manager, or QuerySet. Created to make\n get_object_or_404 and get_list_or_404 more DRY.\n\n Raises a ValueError if klass is not a Model, Manager, or QuerySet."
17
false
eamigo86/graphene-django-extras
_get_queryset
38,960
LDU_FT/priestc/giotto/get_urls
LDU_FT
[ "<BEGIN>\n## `get_response`", "High level function for getting a response. This is what the concrete\n controller should call. Returns a controller specific response.\n<END>", "<BEGIN>\n## `get_data_response`", "Execute the model and view, and handle the cache.\n Returns controller-agnostic resp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_urls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_urls API. 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...
Return a list of all valid urls (minus args and kwargs, just the program paths) for this manifest. If a single program has two urls, both will be returned.
"Return a list of all valid urls (minus args and kwargs, just the program paths)\n for this manifest. If a single program has two urls, both will be returned."
75
false
priestc/giotto
get_urls
38,961
LDU_FT/inveniosoftware/invenio-oaiserver/from_iso_permissive
LDU_FT
[ "<BEGIN>\n## `_schema_from_verb`", "Return an instance of schema for given verb.\n<END>", "<BEGIN>\n## `load`", "Deserialize a data structure to an object.\n<END>", "<BEGIN>\n## `make_request_validator`", "Validate arguments in incomming request.\n<END>", "<BEGIN>\n## `from_iso_permissive`", "Parse an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_iso_permissive 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 from_iso_permissive 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...
Parse an ISO8601-formatted datetime and return a datetime object. Inspired by the marshmallow.utils.from_iso function, but also accepts datestrings that don't contain the time.
"Parse an ISO8601-formatted datetime and return a datetime object.\n\n Inspired by the marshmallow.utils.from_iso function, but also accepts\n datestrings that don't contain the time."
78
false
inveniosoftware/invenio-oaiserver
from_iso_permissive
38,962
LDU_FT/earlzo/hfut/flatten_list
LDU_FT
[ "<BEGIN>\n## `get_point`", "根据成绩判断绩点", " :param grade_str: 一个字符串,因为可能是百分制成绩或等级制成绩\n :return: 成绩绩点\n :rtype: float\n<END>", "<BEGIN>\n## `cal_gpa`", "根据成绩数组计算课程平均绩点和 gpa, 算法不一定与学校一致, 结果仅供参考", " :param grades: :meth:`models.StudentSession.get_my_achievements` 返回的成绩数组\n :return: 包含了课程平均绩点和 gpa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten_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. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten_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. The extr...
碾平 list:: >>> a = [1, 2, [3, 4], [[5, 6], [7, 8]]] >>> flatten_list(a) [1, 2, 3, 4, 5, 6, 7, 8] :param multiply_list: 混淆的多层列表 :return: 单层的 list
"碾平 list::\n\n >>> a = [1, 2, [3, 4], [[5, 6], [7, 8]]]\n >>> flatten_list(a)\n [1, 2, 3, 4, 5, 6, 7, 8]\n\n :param multiply_list: 混淆的多层列表\n :return: 单层的 list"
83
false
earlzo/hfut
flatten_list
38,963
LDU_FT/googleapis/gax-python/cancel_operation
LDU_FT
[ "<BEGIN>\n## `fill`", "Add the metrics headers known to GAX.", " Return an OrderedDict with all of the metrics headers provided to\n this function, as well as the metrics known to GAX (such as its own\n version, the GRPC version, etc.).\n<END>", "<BEGIN>\n## `stringify`", "Convert the provided metr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancel_operation API. 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 cancel_operation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns ``google.rpc.Code.UNIMPLEMENTED``. Clients can use ``Operations.GetOperation`` or ...
"Starts asynchronous cancellation on a long-running operation. The server\n makes a best effort to cancel the operation, but success is not\n guaranteed. If the server doesn't support this method, it returns\n ``google.rpc.Code.UNIMPLEMENTED``. Clients can use\n ``Operations.GetOperation`...
161
false
googleapis/gax-python
cancel_operation
38,964
LDU_FT/gouthambs/Flask-Blogging/get_posts
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 get_posts API. 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 get_posts API. 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...
Get posts given by filter criteria :param count: The number of posts to retrieve (default 10). If count is ``None``, all posts are returned. :type count: int :param offset: The number of posts to offset (default 0) :type offset: int :param recent: Order by recent posts ...
"Get posts given by filter criteria\n\n :param count: The number of posts to retrieve (default 10). If count\n is ``None``, all posts are returned.\n :type count: int\n :param offset: The number of posts to offset (default 0)\n :type offset: int\n :param recent: Order by recen...
53
false
gouthambs/Flask-Blogging
get_posts
38,965
LDU_FT/Azure/msrest-for-python/deserialize_base64
LDU_FT
[ "<BEGIN>\n## `async_poller`", "Async Poller for long running operations.", " :param client: A msrest service client. Can be a SDK client and it will be casted to a ServiceClient.\n :type client: msrest.service_client.ServiceClient\n :param initial_response: The initial call response\n :type initial_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize_base64 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 deserialize_base64 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...
Deserialize base64 encoded string into string. :param str attr: response string to be deserialized. :rtype: bytearray :raises: TypeError if string format invalid.
"Deserialize base64 encoded string into string.\n\n :param str attr: response string to be deserialized.\n :rtype: bytearray\n :raises: TypeError if string format invalid."
324
false
Azure/msrest-for-python
deserialize_base64
38,966
LDU_FT/erik/alexandra/run
LDU_FT
[ "<BEGIN>\n## `get`", "Get an attribute defined by this session\n<END>", "<BEGIN>\n## `run`", "Utility method to quickly get a server up and running.", " :param debug: turns on Werkzeug debugger, code reloading, and full\n logging.\n :param validate_requests: whether or not to ensure...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 doc...
Utility method to quickly get a server up and running. :param debug: turns on Werkzeug debugger, code reloading, and full logging. :param validate_requests: whether or not to ensure that requests are sent by Amazon. This can be usefulfor manually testing the server.
"Utility method to quickly get a server up and running.\n\n :param debug: turns on Werkzeug debugger, code reloading, and full\n logging.\n :param validate_requests: whether or not to ensure that requests are\n sent by Amazon. This can be usefulfor manually testing the server."
36
false
erik/alexandra
run
38,967
LDU_FT/mikhaildubov/AST-text-analysis/_compute_lcptab
LDU_FT
[ "<BEGIN>\n## `traverse_depth_first_pre_order`", "Visits the internal \"nodes\" of the enhanced suffix array in depth-first pre-order.", " Based on Abouelhoda et al. (2004).\n<END>", "<BEGIN>\n## `traverse_depth_first_post_order`", "Visits the internal \"nodes\" of the enhanced suffix array in depth-f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_lcptab API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_lcptab API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Computes the LCP array in O(n) based on the input string & its suffix array. Kasai et al. (2001).
"Computes the LCP array in O(n) based on the input string & its suffix array.\n\n Kasai et al. (2001)."
52
false
mikhaildubov/AST-text-analysis
_compute_lcptab
38,968
LDU_FT/MediaFire/mediafire-python-open-sdk/folder_create
LDU_FT
[ "<BEGIN>\n## `decode_resumable_upload_bitmap`", "Decodes bitmap_node to hash of unit_id: is_uploaded", " bitmap_node -- bitmap node of resumable_upload with\n 'count' number and 'words' containing array\n number_of_units -- number of units we are uploading to\n defi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the folder_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 folder_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...
folder/create http://www.mediafire.com/developers/core_api/1.3/folder/#create
"folder/create\n\n http://www.mediafire.com/developers/core_api/1.3/folder/#create"
145
false
MediaFire/mediafire-python-open-sdk
folder_create
38,969
LDU_FT/erikrose/nose-progressive/nose_selector
LDU_FT
[ "<BEGIN>\n## `format_traceback`", "Return an iterable of formatted Unicode traceback frames.", " Also include a pseudo-frame at the end representing the exception itself.", " Format things more compactly than the stock formatter, and make every\n frame an editor shortcut.\n<END>", "<BEGIN>\n## `ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nose_selector API. 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 nose_selector API. 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 the string you can pass to nose to run `test`, including argument values if the test was made by a test generator. Return "Unknown test" if it can't construct a decent path.
"Return the string you can pass to nose to run `test`, including argument\n values if the test was made by a test generator.\n\n Return \"Unknown test\" if it can't construct a decent path."
65
false
erikrose/nose-progressive
nose_selector
38,970
LDU_FT/xsleonard/pystmark/add_header
LDU_FT
[ "<BEGIN>\n## `send`", "Send a message.", " :param message: Message to send.\n :type message: `dict` or :class:`Message`\n :param api_key: Your Postmark API key. Required, if `test` is not `True`.\n :param secure: Use the https scheme for the Postmark API.\n Defaults to `True`\n :param test...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extrac...
Attach an email header to send with the message. :param name: The name of the header value. :param value: The header value.
"Attach an email header to send with the message.\n\n :param name: The name of the header value.\n :param value: The header value."
113
false
xsleonard/pystmark
add_header
38,971
LDU_FT/buckmaxwell/neoapi/update_relationship
LDU_FT
[ "<BEGIN>\n## `resource_collection_response`", "This method is deprecated for version 1.1.0. Please use get_collection\n<END>", "<BEGIN>\n## `get_collection`", "r\"\"\"\n Used to fetch a collection of resource object of type 'cls' in response to a GET request\\\n . get_resource_or_collection sho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_relationship 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 update_relationship 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...
r""" Used to completely replace all the existing relationships with new ones. :param id: The 'id' field of the node on the left side of the relationship in the database. The id field must \ be set in the model -- it is not the same as the node id :param related_collection_name: The nam...
"r\"\"\"\n Used to completely replace all the existing relationships with new ones.\n\n :param id: The 'id' field of the node on the left side of the relationship in the database. The id field must \\\n be set in the model -- it is not the same as the node id\n :param related_collection_nam...
33
false
buckmaxwell/neoapi
update_relationship
38,972