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/cemsbr/yala/print_config
LDU_FT
[ "<BEGIN>\n## `_set_linters`", "Use user linters or all available when not specified.\n<END>", "<BEGIN>\n## `print_config`", "Print all yala configurations, including default and user's.\n<END>", "<BEGIN>\n## `_parse_cfg_linters`", "Return valid linter names found in config files.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_config API. 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 print_config API. 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...
Print all yala configurations, including default and user's.
"Print all yala configurations, including default and user's."
45
false
cemsbr/yala
print_config
30,673
LDU_FT/rackerlabs/silverberg/acquire
LDU_FT
[ "<BEGIN>\n## `describe_version`", "Query the Cassandra server for the version.", " :returns: string -- the version tag\n<END>", "<BEGIN>\n## `execute`", "Execute a CQL query against the server.", " :param query: The CQL query to execute\n :type query: str.", " :param args: Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the acquire API. 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 acquire API. 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...
Acquire the lock. If the lock can't be acquired immediately, retry a specified number of times, with a specified wait time.
"Acquire the lock.\n\n If the lock can't be acquired immediately, retry a specified number of\n times, with a specified wait time."
48
false
rackerlabs/silverberg
acquire
30,674
LDU_FT/golemhq/webdriver-manager/normalize_outputdir
LDU_FT
[ "<BEGIN>\n## `normalize_outputdir`", "if output dir is None try using the ./drivers directory\n if it already exists, otherwise use the current working directory\n<END>", "<BEGIN>\n## `get_platform`", "Get the current platform data.\n Returns a dictionary with keys: `os_name`, `os_bits`\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_outputdir 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 normalize_outputdir 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...
if output dir is None try using the ./drivers directory if it already exists, otherwise use the current working directory
"if output dir is None try using the ./drivers directory\n if it already exists, otherwise use the current working directory"
15
false
golemhq/webdriver-manager
normalize_outputdir
30,675
LDU_FT/cloudmesh/cloudmesh-common/object_to_dict
LDU_FT
[ "<BEGIN>\n## `names`", "The names defined in ~/.ssh/config\n :return: the names\n<END>", "<BEGIN>\n## `load`", "list the hosts defined in the ssh config file\n<END>", "<BEGIN>\n## `execute`", "execute the command on the named host\n :param name: the name of the host in config\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the object_to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the object_to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
This function converts Objects into Dictionary
"This function converts Objects into Dictionary"
203
false
cloudmesh/cloudmesh-common
object_to_dict
30,676
LDU_FT/thilux/tvdb_client/delete_user_favorite
LDU_FT
[ "<BEGIN>\n## `__get_header_with_auth`", "This private method returns the HTTP heder filled with the Authorization information with the user token.\n The token validity is monitored whenever this function is called, so according to the swagger page of TheTVDB\n (https://api.thetvdb.com/swagger) the t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_user_favorite 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 delete_user_favorite API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Deletes the series of the provided id from the favorites list of the current user. :param series_id: The TheTVDB id of the series. :return: a python dictionary with either the result of the search or an error from TheTVDB.
"Deletes the series of the provided id from the favorites list of the current user.\n\n :param series_id: The TheTVDB id of the series.\n :return: a python dictionary with either the result of the search or an error from TheTVDB."
58
false
thilux/tvdb_client
delete_user_favorite
30,677
LDU_FT/ajenhl/tacl/_add_text_record
LDU_FT
[ "<BEGIN>\n## `_format_content`", "Returns `content` with consecutive spaces converted to non-break\n spaces, and linebreak converted into HTML br elements.", " :param content: text to format\n :type content: `str`\n :rtype: `str`\n<END>", "<BEGIN>\n## `_prepare_text`", "Returns `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_text_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_text_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Adds a Text record for `witness`. :param witness: witness to add a record for :type text: `WitnessText`
"Adds a Text record for `witness`.\n\n :param witness: witness to add a record for\n :type text: `WitnessText`"
463
false
ajenhl/tacl
_add_text_record
30,678
LDU_FT/Trax-air/swagger-parser/_validate_post_body
LDU_FT
[ "<BEGIN>\n## `_validate_post_body`", "returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>", "<BEGIN>\n## `build_definitions_example`", "Parse all definitions in the swagger specification.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_post_body API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_post_body API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
returns a tuple (boolean, msg) to indicate whether the validation passed if False then msg contains the reason if True then msg is empty
"returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty"
100
false
Trax-air/swagger-parser
_validate_post_body
30,679
LDU_FT/nteract/papermill/execute_notebook
LDU_FT
[ "<BEGIN>\n## `papermill`", "This utility executes a single notebook on a container.", " Papermill takes a source notebook, applies parameters to the source\n notebook, executes the notebook with the specified kernel, and saves the\n output in the destination notebook.\n<END>", "<BEGIN>\n## `catch_nb_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_notebook API. 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 execute_notebook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
A wrapper to handle notebook execution tasks. Wraps the notebook object in a `NotebookExecutionManager` in order to track execution state in a uniform manner. This is meant to help simplify engine implementations. This allows a developer to just focus on iterating and executing the cell...
"A wrapper to handle notebook execution tasks.\n\n Wraps the notebook object in a `NotebookExecutionManager` in order to track\n execution state in a uniform manner. This is meant to help simplify\n engine implementations. This allows a developer to just focus on\n iterating and executing th...
99
false
nteract/papermill
execute_notebook
30,680
LDU_FT/pavlov99/jsonapi/clear_app_cache
LDU_FT
[ "<BEGIN>\n## `default`", "Encode JSON.", " :return str: A JSON encoded string\n<END>", "<BEGIN>\n## `dump_document`", "Get document for model_instance.", " redefine dump rule for field x: def dump_document_x", " :param django.db.models.Model instance: model instance\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_app_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_app_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Clear django cache for models. :param str ap_name: name of application to clear model cache
"Clear django cache for models.\n\n :param str ap_name: name of application to clear model cache"
63
false
pavlov99/jsonapi
clear_app_cache
30,681
LDU_FT/huntrar/scrape/write_single_file
LDU_FT
[ "<BEGIN>\n## `write_files`", "Write scraped or local file(s) in desired format.", " Keyword arguments:\n args -- program arguments (dict)\n infilenames -- names of user-inputted and/or downloaded files (list)\n outfilename -- name of output file (str)", " Remove PART(#).html files after convers...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_single_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 write_single_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...
Write to a single output file and/or subdirectory.
"Write to a single output file and/or subdirectory."
79
false
huntrar/scrape
write_single_file
30,682
LDU_FT/sffjunkie/astral/sun
LDU_FT
[ "<BEGIN>\n## `timezone`", "The name of the time zone for the location.", " A list of time zone names can be obtained from pytz. For example.", " >>> from pytz import all_timezones\n >>> for timezone in all_timezones:\n ... print(timezone)\n<END>", "<BEGIN>\n## `sun`", "Retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sun API. 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 sun API. 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...
Returns dawn, sunrise, noon, sunset and dusk as a dictionary. :param date: The date for which to calculate the times. If no date is specified then the current date will be used. :type date: :class:`~datetime.date` :param local: True = Time to be returned in location's ti...
"Returns dawn, sunrise, noon, sunset and dusk as a dictionary.\n\n :param date: The date for which to calculate the times.\n If no date is specified then the current date will be used.\n :type date: :class:`~datetime.date`\n\n :param local: True = Time to be returned in locati...
177
false
sffjunkie/astral
sun
30,683
LDU_FT/twisted/mantissa/childFactory
LDU_FT
[ "<BEGIN>\n## `createUser`", "Create a new, blank user account with the given name and domain and, if\n specified, with the given password.", " @type localpart: C{unicode}\n @param localpart: The local portion of the username. ie, the\n C{'alice'} in C{'alice@example.com'}.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the childFactory API. 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 childFactory API. 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...
Return a shell page wrapped around the Item model described by the webID, or return None if no such item can be found.
"Return a shell page wrapped around the Item model described by the\n webID, or return None if no such item can be found."
1,120
true
twisted/mantissa
childFactory
30,684
LDU_FT/etingof/pyasn1/getName
LDU_FT
[ "<BEGIN>\n## `isSameTypeWith`", "Examine |ASN.1| type for equality with other ASN.1 type.", " ASN.1 tags (:py:mod:`~pyasn1.type.tag`) and constraints\n (:py:mod:`~pyasn1.type.constraint`) are examined when carrying\n out ASN.1 types comparison.", " Python class inheritance relation...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getName API. 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 getName API. 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 the name of currently assigned component of the |ASN.1| object. Returns ------- : :py:class:`str` |ASN.1| component name
"Return the name of currently assigned component of the |ASN.1| object.\n\n Returns\n -------\n : :py:class:`str`\n |ASN.1| component name"
239
false
etingof/pyasn1
getName
30,685
LDU_FT/codeinn/vcs/fill_archive
LDU_FT
[ "<BEGIN>\n## `make_ui`", "A funcion that will read python rc files and make an ui from read options", " :param path: path to mercurial config file\n<END>", "<BEGIN>\n## `status`", "Returns modified, added, removed, deleted files for current changeset\n<END>", "<BEGIN>\n## `_fix_path`", "Paths are sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_archive API. 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 fill_archive API. 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...
Fills up given stream. :param stream: file like object. :param kind: one of following: ``zip``, ``tgz`` or ``tbz2``. Default: ``tgz``. :param prefix: name of root directory in archive. Default is repository name and changeset's raw_id joined with dash (``repo...
"Fills up given stream.\n\n :param stream: file like object.\n :param kind: one of following: ``zip``, ``tgz`` or ``tbz2``.\n Default: ``tgz``.\n :param prefix: name of root directory in archive.\n Default is repository name and changeset's raw_id joined with dash\n ...
326
false
codeinn/vcs
fill_archive
30,686
LDU_FT/heigeo/climata/usable_item
LDU_FT
[ "<BEGIN>\n## `load_sites`", "Load metadata for all sites in given basin codes.\n<END>", "<BEGIN>\n## `get_huc8`", "Return all HUC8s matching the given prefix (e.g. 1801) or basin name\n (e.g. Klamath)\n<END>", "<BEGIN>\n## `parse`", "Convert ACIS 'll' value into separate latitude and longitude.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the usable_item API. 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 usable_item API. 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...
ACIS web service returns "meta" and "data" for each station; use meta attributes as item values, and add an IO for iterating over "data"
"ACIS web service returns \"meta\" and \"data\" for each station; use meta\n attributes as item values, and add an IO for iterating over \"data\""
30
false
heigeo/climata
usable_item
30,687
LDU_FT/lappis-unb/salic-ml/common_items_ratio
LDU_FT
[ "<BEGIN>\n## `approved_funds`", "Verifica se o valor total de um projeto é um\n outlier em relação\n aos projetos do mesmo seguimento cultural\n Dataframes: planilha_orcamentaria\n<END>", "<BEGIN>\n## `complexidade`", "Returns a value that indicates project health, currently FinancialIndicator\n i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the common_items_ratio 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 common_items_ratio 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...
Calculates the common items on projects in a cultural segment, calculates the uncommon items on projects in a cultural segment and verify if a project is an outlier compared to the other projects in his segment.
"Calculates the common items on projects in a cultural segment,\n calculates the uncommon items on projects in a cultural segment and\n verify if a project is an outlier compared to the other projects\n in his segment."
102
false
lappis-unb/salic-ml
common_items_ratio
30,688
LDU_FT/pydsigner/pygu/paste
LDU_FT
[ "<BEGIN>\n## `draw`", "Draw all widgets and sub-containers to @surf.\n<END>", "<BEGIN>\n## `kill`", "Remove the class from its container, contained items and sub-widgets. \n Runs automatically when the class is garbage collected.\n<END>", "<BEGIN>\n## `add`", "Place @widgets under the blitting hand...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paste API. 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 paste API. 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...
Insert text from the clipboard at the cursor.
"Insert text from the clipboard at the cursor."
68
false
pydsigner/pygu
paste
30,689
LDU_FT/DataKitchen/DKCloudCommand/recipe_conflicts
LDU_FT
[ "<BEGIN>\n## `is_same`", "Compare two directory trees content.\n Return False if they differ, True is they are the same.\n :param dir2:\n :param dir1:\n<END>", "<BEGIN>\n## `phase3`", "Find out differences between common files.\n Ensure we are using content comparison with shallow=False.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recipe_conflicts API. 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 recipe_conflicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
See if there are any unresolved conflicts for this recipe.
"See if there are any unresolved conflicts for this recipe."
70
false
DataKitchen/DKCloudCommand
recipe_conflicts
30,690
LDU_FT/kata198/func_timeout/getMsg
LDU_FT
[ "<BEGIN>\n## `getMsg`", "getMsg - Generate a default message based on parameters to FunctionTimedOut exception'", " @return <str> - Message\n<END>", "<BEGIN>\n## `retry`", "retry - Retry the timed-out function with same arguments.", " @param timeout <float/RETRY_SAME_TIMEOUT/None> De...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getMsg API. 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 getMsg API. 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 ...
getMsg - Generate a default message based on parameters to FunctionTimedOut exception' @return <str> - Message
"getMsg - Generate a default message based on parameters to FunctionTimedOut exception'\n\n @return <str> - Message"
37
false
kata198/func_timeout
getMsg
30,691
LDU_FT/shaypal5/strct/find_range_ix_in_point_list
LDU_FT
[ "<BEGIN>\n## `find_point_in_section_list`", "Returns the start of the section the given point belongs to.", " The given list is assumed to contain start points of consecutive\n sections, except for the final point, assumed to be the end point of the\n last section. For example, the list [5, 8, 30, 31] ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_range_ix_in_point_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_range_ix_in_point_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Returns the index range all points inside the given range. Parameters --------- start : float The start of the desired range. end : float The end of the desired range. point_list : sortedcontainers.SortedList A list of points. Returns ------- iterable Th...
"Returns the index range all points inside the given range.\n\n Parameters\n ---------\n start : float\n The start of the desired range.\n end : float\n The end of the desired range.\n point_list : sortedcontainers.SortedList\n A list of points.\n\n Returns\n -------\n itera...
140
false
shaypal5/strct
find_range_ix_in_point_list
30,692
LDU_FT/stephenmcd/django-socketio/broadcast_channel
LDU_FT
[ "<BEGIN>\n## `socketio`", "Socket.IO handler - maintains the lifecycle of a Socket.IO\n request, sending the each of the events. Also handles\n adding/removing request/socket pairs to the CLIENTS dict\n which is used for sending on_finish events when the server\n stops.\n<END>", "<BEGIN>\n## `client...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the broadcast_channel API. 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 broadcast_channel API. 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 the first socket for the given channel, and use it to broadcast to the channel, including the socket itself.
"Find the first socket for the given channel, and use it to\n broadcast to the channel, including the socket itself."
33
false
stephenmcd/django-socketio
broadcast_channel
30,693
LDU_FT/NaturalHistoryMuseum/pylibdmtx/encode
LDU_FT
[ "<BEGIN>\n## `load_libdmtx`", "Loads the libdmtx shared library.", " Populates the globals LIBDMTX and EXTERNAL_DEPENDENCIES.\n<END>", "<BEGIN>\n## `libdmtx_function`", "Returns a foreign function exported by `libdmtx`.", " Args:\n fname (:obj:`str`): Name of the exported function as string.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Encodes `data` in a DataMatrix image. For now bpp is the libdmtx default which is 24 Args: data: bytes instance scheme: encoding scheme - one of `ENCODING_SCHEME_NAMES`, or `None`. If `None`, defaults to 'Ascii'. size: image dimensions - one of `ENCODING_SIZE_NAMES`, or `No...
"Encodes `data` in a DataMatrix image.\n\n For now bpp is the libdmtx default which is 24\n\n Args:\n data: bytes instance\n scheme: encoding scheme - one of `ENCODING_SCHEME_NAMES`, or `None`.\n If `None`, defaults to 'Ascii'.\n size: image dimensions - one of `ENCODING_SIZE_NAMES...
42
false
NaturalHistoryMuseum/pylibdmtx
encode
30,694
LDU_FT/qntm/greenery/everythingbut
LDU_FT
[ "<BEGIN>\n## `null`", "An FSM accepting nothing (not even the empty string). This is\n\t\tdemonstrates that this is possible, and is also extremely useful\n\t\tin some situations\n<END>", "<BEGIN>\n## `parallel`", "Crawl several FSMs in parallel, mapping the states of a larger meta-FSM.\n\t\tTo determine whet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the everythingbut API. 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 everythingbut API. 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 a finite state machine which will accept any string NOT accepted by self, and will not accept any string accepted by self. This is more complicated if there are missing transitions, because the missing "dead" state must now be reified.
"Return a finite state machine which will accept any string NOT\n\t\t\taccepted by self, and will not accept any string accepted by self.\n\t\t\tThis is more complicated if there are missing transitions, because the\n\t\t\tmissing \"dead\" state must now be reified."
63
false
qntm/greenery
everythingbut
30,695
LDU_FT/tbielawa/bitmath/best_prefix
LDU_FT
[ "<BEGIN>\n## `BitmathType`", "An 'argument type' for integrations with the argparse module.", "For more information, see\nhttps://docs.python.org/2/library/argparse.html#type Of particular\ninterest to us is this bit:", " ``type=`` can take any callable that takes a single string\n argument and returns th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the best_prefix API. 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 best_prefix API. 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 bitmath instance representing the best human-readable representation of the number of bytes given by ``bytes``. In addition to a numeric type, the ``bytes`` parameter may also be a bitmath type. Optionally select a preferred unit system by specifying the ``system`` keyword. Choices for ``system`` are ``bitmat...
"Return a bitmath instance representing the best human-readable\nrepresentation of the number of bytes given by ``bytes``. In addition\nto a numeric type, the ``bytes`` parameter may also be a bitmath type.\n\nOptionally select a preferred unit system by specifying the ``system``\nkeyword. Choices for ``system`` are ``...
93
false
tbielawa/bitmath
best_prefix
30,696
LDU_FT/SiLab-Bonn/pyBAR/reduce_sorted_to_intersect
LDU_FT
[ "<BEGIN>\n## `thunkify`", "Make a function immediately return a function of no args which, when called,\n waits for the result, which will start being processed in another thread.\n Taken from https://wiki.python.org/moin/PythonDecoratorLibrary.\n<END>", "<BEGIN>\n## `set_event_when_keyboard_interrupt`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reduce_sorted_to_intersect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reduce_sorted_to_intersect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Takes two sorted arrays and return the intersection ar1 in ar2, ar2 in ar1. Parameters ---------- ar1 : (M,) array_like Input array. ar2 : array_like Input array. Returns ------- ar1, ar1 : ndarray, ndarray The intersection values.
"Takes two sorted arrays and return the intersection ar1 in ar2, ar2 in ar1.\n\n Parameters\n ----------\n ar1 : (M,) array_like\n Input array.\n ar2 : array_like\n Input array.\n\n Returns\n -------\n ar1, ar1 : ndarray, ndarray\n The intersection values."
501
false
SiLab-Bonn/pyBAR
reduce_sorted_to_intersect
30,697
LDU_FT/abakan-zz/napi/visit_UnaryOp
LDU_FT
[ "<BEGIN>\n## `neval`", "Evaluate *expression* using *globals* and *locals* dictionaries as\n *global* and *local* namespace. *expression* is transformed using\n :class:`.NapiTransformer`.\n<END>", "<BEGIN>\n## `nexec`", "Execute *statement* using *globals* and *locals* dictionaries as\n *global* and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_UnaryOp API. 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 visit_UnaryOp API. 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...
Interfere with ``not`` operation to :func:`numpy.logical_not`.
"Interfere with ``not`` operation to :func:`numpy.logical_not`."
26
false
abakan-zz/napi
visit_UnaryOp
30,698
LDU_FT/lltk/lltk/pos
LDU_FT
[ "<BEGIN>\n## `pos`", "Tries to decide about the part of speech.\n<END>", "<BEGIN>\n## `articles`", "Tries to scrape the correct articles for singular and plural from uitmuntend.nl.\n<END>", "<BEGIN>\n## `plural`", "Tries to scrape the plural version from uitmuntend.nl.\n<END>", "<BEGIN>\n## `warning`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pos API. 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 pos API. 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...
Tries to decide about the part of speech.
"Tries to decide about the part of speech."
80
false
lltk/lltk
pos
30,699
LDU_FT/pydata/xarray/_asarray_tuplesafe
LDU_FT
[ "<BEGIN>\n## `_infer_coords_and_dims`", "All the logic for creating a new DataArray\n<END>", "<BEGIN>\n## `to_dataset`", "Convert a DataArray to a Dataset.", " Parameters\n ----------\n dim : str, optional\n Name of the dimension on this array along which to split this array\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _asarray_tuplesafe 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 _asarray_tuplesafe 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...
Convert values into a numpy array of at most 1-dimension, while preserving tuples. Adapted from pandas.core.common._asarray_tuplesafe
"Convert values into a numpy array of at most 1-dimension, while preserving\n tuples.\n\n Adapted from pandas.core.common._asarray_tuplesafe"
2,080
true
pydata/xarray
_asarray_tuplesafe
30,700
LDU_FT/nmdp-bioinformatics/SeqAnn/create_feature
LDU_FT
[ "<BEGIN>\n## `search_seqs`", "search_seqs - method for annotating a BioPython sequence without alignment", " :param seqrec: The reference sequence\n :type seqrec: SeqRecord\n :param locus: The gene locus associated with the sequence.\n :type locus: str\n :param in_seq: The inp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_feature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_feature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create an enumerated sequence feature This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(respon...
"Create an enumerated sequence feature\n \n\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please define a `callback` function\n to be invoked when receiving the response.\n >>> def callback_function(response):\n >>> pprin...
112
false
nmdp-bioinformatics/SeqAnn
create_feature
30,701
LDU_FT/nickpandolfi/Cyther/cytherize
LDU_FT
[ "<BEGIN>\n## `get_content`", "Finds the 'content' tag from a 'pattern' in the provided 'string'\n<END>", "<BEGIN>\n## `extract`", "Used to extract a given regex pattern from a string, given several options\n<END>", "<BEGIN>\n## `extractRuntime`", "Used to find the correct static lib name to pass to gcc\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cytherize API. 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 cytherize API. 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...
Used by core to integrate all the pieces of information, and to interface with the user. Compiles and cleans up.
"Used by core to integrate all the pieces of information, and to interface\n with the user. Compiles and cleans up."
131
false
nickpandolfi/Cyther
cytherize
30,702
LDU_FT/deepmind/sonnet/_build
LDU_FT
[ "<BEGIN>\n## `generate_code`", "Generates code samples.", " Args:\n max_length: int. max literal length.\n max_nest: int. max nesting level.\n ops: CodeOp. set of allowable operations.", " Returns:\n 1. (str) output value.\n 2. (str) Code operation.\n<END>", "<BEGIN>\n## `get_tokens`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Connects the BatchNormV2 module into the graph. Args: input_batch: A Tensor of the same dimension as `len(data_format)`. is_training: A boolean to indicate if the module should be connected in training mode, meaning the moving averages are updated. Can be a Tensor. test_local_stats: A boo...
"Connects the BatchNormV2 module into the graph.\n\n Args:\n input_batch: A Tensor of the same dimension as `len(data_format)`.\n is_training: A boolean to indicate if the module should be connected in\n training mode, meaning the moving averages are updated. Can be a Tensor.\n test_local_stats...
937
false
deepmind/sonnet
_build
30,703
LDU_FT/csirtgadgets/csirtgsdk-py/index
LDU_FT
[ "<BEGIN>\n## `show`", "Show a specific indicator by id", " :param user: feed username\n :param feed: feed name\n :param id: indicator endpoint id [INT]\n :return: dict", " Example:\n ret = Indicator.show('csirtgadgets','port-scanners', '1234')\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. 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 index API. 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 a list of Feeds from the API :param user: feed username :return: list Example: ret = feed.index('csirtgadgets')
"Returns a list of Feeds from the API\n\n :param user: feed username\n :return: list\n\n Example:\n ret = feed.index('csirtgadgets')"
52
false
csirtgadgets/csirtgsdk-py
index
30,704
LDU_FT/realestate-com-au/dashmat/read
LDU_FT
[ "<BEGIN>\n## `generate_dashboard_js`", "Given a dashboard, make the bundle javascript for it", " We also do some caching so we don't generate the javascript when nothing has changed", " First we generate the dashboard es6 content with dashboard.make_dashboard_module()\n we then write this to disk if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Read at most *n* characters from this stream. If *n* is ``None``, return all available characters.
"Read at most *n* characters from this stream.\n\n If *n* is ``None``, return all available characters."
173
false
realestate-com-au/dashmat
read
30,705
LDU_FT/jorahn/icy/se
LDU_FT
[ "<BEGIN>\n## `ae`", "Computes the absolute error.", " This function computes the absolute error between two numbers,\n or for element between a pair of lists or numpy arrays.", " Parameters\n ----------\n actual : int, float, list of numbers, numpy array\n The ground truth value\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the se API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the se API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Computes the squared error. This function computes the squared error between two numbers, or for element between a pair of lists or numpy arrays. Parameters ---------- actual : int, float, list of numbers, numpy array The ground truth value predicted : same type as actual ...
"Computes the squared error.\n\n This function computes the squared error between two numbers,\n or for element between a pair of lists or numpy arrays.\n\n Parameters\n ----------\n actual : int, float, list of numbers, numpy array\n The ground truth value\n predicted : same type as actua...
86
false
jorahn/icy
se
30,706
LDU_FT/LordGaav/python-chaos/reply
LDU_FT
[ "<BEGIN>\n## `registerWorker`", "Register a new Worker, under the given descriptive name.", "\t\tTrying to register multiple workers under the same name will raise an Exception.", "\t\tParameters\n\t\t----------\n\t\tname: string\n\t\t\tName to register the given worker under.\n\t\tworker: multiprocessing.Pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reply API. 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 reply API. 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...
Reply to a RPC request. This function will use the default exchange, to directly contact the reply_to queue. Parameters ---------- original_headers: dict The headers of the originating message that caused this reply. message: string Message to reply with properties: dict Properties to set on message...
"Reply to a RPC request. This function will use the default exchange, to directly contact the reply_to queue.\n\n\t\tParameters\n\t\t----------\n\t\toriginal_headers: dict\n\t\t\tThe headers of the originating message that caused this reply.\n\t\tmessage: string\n\t\t\tMessage to reply with\n\t\tproperties: dict\n\t\t\...
138
false
LordGaav/python-chaos
reply
30,707
LDU_FT/klmitch/turnstile/register
LDU_FT
[ "<BEGIN>\n## `add_argument`", "Define an argument for the function when running in console script\n mode. The positional and keyword arguments are the same as for\n ArgumentParser.add_argument().\n<END>", "<BEGIN>\n## `add_preprocessor`", "Define a preprocessor to run after the arguments are parsed and...
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...
Function or decorator which registers a given function as a recognized control command.
"Function or decorator which registers a given function as a\n recognized control command."
208
false
klmitch/turnstile
register
30,708
LDU_FT/nocarryr/python-dispatch/del_method
LDU_FT
[ "<BEGIN>\n## `register_event`", "Registers new events after instance creation", " Args:\n *names (str): Name or names of the events to register\n<END>", "<BEGIN>\n## `bind`", "Subscribes to events or to :class:`~pydispatch.properties.Property` updates", " Keyword arguments are use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the del_method API. 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 del_method API. 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...
Remove an instance method or function if it exists Args: m: The instance method or function to remove
"Remove an instance method or function if it exists\n\n Args:\n m: The instance method or function to remove"
89
false
nocarryr/python-dispatch
del_method
30,709
LDU_FT/20c/vodka/attributes
LDU_FT
[ "<BEGIN>\n## `is_config_container`", "checks whether v is of type list,dict or Config\n<END>", "<BEGIN>\n## `check`", "Checks that the config values specified in key name is\n sane according to config attributes defined as properties\n on this class\n<END>", "<BEGIN>\n## `validate`", "Valida...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
yields tuples for all attributes defined on this handler tuple yielded: name (str), attribute (Attribute)
"yields tuples for all attributes defined on this handler\n\n tuple yielded:\n name (str), attribute (Attribute)"
56
false
20c/vodka
attributes
30,710
LDU_FT/mozilla/DeepSpeech/sparse_tensor_value_to_texts
LDU_FT
[ "<BEGIN>\n## `reduce_filename`", "r'''\n Expects something like /tmp/tmpAjry4Gdsbench/test.weights.e5.XXX.YYY.pb\n Where XXX is a variation on the model size for example\n And where YYY is a const related to the training dataset\n<END>", "<BEGIN>\n## `keep_only_digits`", "r'''\n local helper to ju...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sparse_tensor_value_to_texts 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 sparse_tensor_value_to_texts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
r""" Given a :class:`tf.SparseTensor` ``value``, return an array of Python strings representing its values, converting tokens to strings using ``alphabet``.
"r\"\"\"\n Given a :class:`tf.SparseTensor` ``value``, return an array of Python strings\n representing its values, converting tokens to strings using ``alphabet``."
98
false
mozilla/DeepSpeech
sparse_tensor_value_to_texts
30,711
LDU_FT/anntzer/mplcursors/cursor
LDU_FT
[ "<BEGIN>\n## `_register_scatter`", "Patch `PathCollection` and `scatter` to register their return values.", " This registration allows us to distinguish `PathCollection`s created by\n `Axes.scatter`, which should use point-like picking, from others, which\n should use path-like picking. The former is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create a `Cursor` for a list of artists, containers, and axes. Parameters ---------- pickables : Optional[List[Union[Artist, Container, Axes, Figure]]] All artists and containers in the list or on any of the axes or figures passed in the list are selectable by the constructed `Cursor`. ...
"Create a `Cursor` for a list of artists, containers, and axes.\n\n Parameters\n ----------\n\n pickables : Optional[List[Union[Artist, Container, Axes, Figure]]]\n All artists and containers in the list or on any of the axes or\n figures passed in the list are selectable by the constructed `Curs...
49
false
anntzer/mplcursors
cursor
30,712
LDU_FT/Morrolan/surrealism/__get_sentence
LDU_FT
[ "<BEGIN>\n## `show_faults`", "Return all valid/active faults ordered by ID to allow the user to pick and choose.", " :return: List of Tuples where the Tuple elements are: (fault id, fault template)\n<END>", "<BEGIN>\n## `show_sentences`", "Return all valid/active sentences ordered by ID to allow the us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_sentence API. 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_sentence API. 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...
Let's fetch a random sentence that we then need to substitute bits of... @ :param counts: :param sentence_id:
"Let's fetch a random sentence that we then need to substitute bits of...\n @\n :param counts:\n :param sentence_id:"
48
false
Morrolan/surrealism
__get_sentence
30,713
LDU_FT/utek/pyseaweed/upload_file
LDU_FT
[ "<BEGIN>\n## `get_file`", "Get file from WeedFS.", " Returns file content. May be problematic for large files as content is\n stored in memory.", " Args:\n **fid**: File identifier <volume_id>,<file_name_hash>", " Returns:\n Content of the file with provided...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_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 extra...
Uploads file to WeedFS I takes either path or stream and name and upload it to WeedFS server. Returns fid of the uploaded file. :param string path: :param string stream: :param string name: :rtype: string or None
"Uploads file to WeedFS\n\n I takes either path or stream and name and upload it\n to WeedFS server.\n\n Returns fid of the uploaded file.\n\n :param string path:\n :param string stream:\n :param string name:\n :rtype: string or None"
67
false
utek/pyseaweed
upload_file
30,714
LDU_FT/SamLau95/nbinteract/_save_nb
LDU_FT
[ "<BEGIN>\n## `multiple_choice`", "Generates a multiple choice question that allows the user to select an\n answer choice and shows whether choice was correct.", " Args:\n question (str): Question text displayed above choices.", " choices (list str): Answer choices that user can select.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _save_nb API. 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 _save_nb API. 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...
Attempts to save notebook. If unsuccessful, shows a warning.
"Attempts to save notebook. If unsuccessful, shows a warning."
159
false
SamLau95/nbinteract
_save_nb
30,715
LDU_FT/BYU-PCCL/holodeck/add_number_parameters
LDU_FT
[ "<BEGIN>\n## `malloc`", "Allocates a block of shared memory, and returns a numpy array whose data corresponds with that block.", " Args:\n key (str): The key to identify the block.\n shape (list of int): The shape of the numpy array to allocate.\n dtype (type): The numpy ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_number_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_number_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Add given number parameters to the internal list. Args: number (list of int or list of float): A number or list of numbers to add to the parameters.
"Add given number parameters to the internal list.\n\n Args:\n number (list of int or list of float): A number or list of numbers to add to the parameters."
111
false
BYU-PCCL/holodeck
add_number_parameters
30,716
LDU_FT/zyga/python-glibc/mkstemp
LDU_FT
[ "<BEGIN>\n## `_get_fd`", "Get a descriptor out of a file object.", " :param fileobj:\n An integer (existing descriptor) or any object having the `fileno()`\n method.\n :raises ValueError:\n if the descriptor cannot be obtained or if the descriptor is invalid\n :returns:\n fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mkstemp API. 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 mkstemp API. 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...
User-callable function to create and return a unique temporary file. The return value is a pair (fd, name) where fd is the file descriptor returned by os.open, and name is the filename. If 'suffix' is specified, the file name will end with that suffix, otherwise there will be no suffix. If 'prefi...
"User-callable function to create and return a unique temporary\n file. The return value is a pair (fd, name) where fd is the\n file descriptor returned by os.open, and name is the filename.\n\n If 'suffix' is specified, the file name will end with that suffix,\n otherwise there will be no suffix.\n\n I...
106
false
zyga/python-glibc
mkstemp
30,717
LDU_FT/senaite/senaite.jsonapi/create_analysisrequest
LDU_FT
[ "<BEGIN>\n## `get`", "Get a JSON compatible structure for the named attribute\n<END>", "<BEGIN>\n## `json_data`", "Get a JSON compatible value of the field\n<END>", "<BEGIN>\n## `set`", "Set the attribute to the given value.", " The keyword arguments represent the other attribute values\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_analysisrequest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_analysisrequest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Create a minimun viable AnalysisRequest :param container: A single folderish catalog brain or content object :type container: ATContentType/DexterityContentType/CatalogBrain
"Create a minimun viable AnalysisRequest\n\n :param container: A single folderish catalog brain or content object\n :type container: ATContentType/DexterityContentType/CatalogBrain"
205
false
senaite/senaite.jsonapi
create_analysisrequest
30,718
LDU_FT/calmjs/calmjs/resource_filename_mod_entry_point
LDU_FT
[ "<BEGIN>\n## `make_choice_validator`", "Returns a callable that accepts the choices provided.", " Choices should be provided as a list of 2-tuples, where the first\n element is a string that should match user input (the key); the\n second being the value associated with the key.", " The callable b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_filename_mod_entry_point API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_filename_mod_entry_point API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
If a given package declares a namespace and also provide submodules nested at that namespace level, and for whatever reason that module is needed, Python's import mechanism will not have a path associated with that module. However, if given an entry_point, this path can be resolved through its distribu...
"If a given package declares a namespace and also provide submodules\n nested at that namespace level, and for whatever reason that module\n is needed, Python's import mechanism will not have a path associated\n with that module. However, if given an entry_point, this path can\n be resolved through its dis...
361
false
calmjs/calmjs
resource_filename_mod_entry_point
30,719
LDU_FT/chaimleib/intervaltree/overlaps_range
LDU_FT
[ "<BEGIN>\n## `refresh_balance`", "Recalculate self.balance and self.depth based on child node values.\n<END>", "<BEGIN>\n## `compute_depth`", "Recursively computes true depth of the subtree. Should only\n be needed for debugging. Unless something is wrong, the\n depth field should reflect the co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overlaps_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overlaps_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns whether some interval in the tree overlaps the given range. Returns False if given a null interval over which to test. Completes in O(r*log n) time, where r is the range length and n is the table size. :rtype: bool
"Returns whether some interval in the tree overlaps the given\n range. Returns False if given a null interval over which to\n test.\n\n Completes in O(r*log n) time, where r is the range length and n\n is the table size.\n :rtype: bool"
139
false
chaimleib/intervaltree
overlaps_range
30,720
LDU_FT/websocket-client/websocket-client/get_proxy_info
LDU_FT
[ "<BEGIN>\n## `parse_url`", "parse url and the result is tuple of\n (hostname, port, resource path and the flag of secure mode)", " url: url string.\n<END>", "<BEGIN>\n## `get_proxy_info`", "try to retrieve proxy host and port from environment\n if not provided in options.\n result is (proxy_host...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_proxy_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_proxy_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
try to retrieve proxy host and port from environment if not provided in options. result is (proxy_host, proxy_port, proxy_auth). proxy_auth is tuple of username and password of proxy authentication information. hostname: websocket server name. is_secure: is the connection secure? (wss) ...
"try to retrieve proxy host and port from environment\n if not provided in options.\n result is (proxy_host, proxy_port, proxy_auth).\n proxy_auth is tuple of username and password\n of proxy authentication information.\n\n hostname: websocket server name.\n\n is_secure: is the connection secure? (w...
81
false
websocket-client/websocket-client
get_proxy_info
30,721
LDU_FT/nikhilkumarsingh/content-downloader/scrape_links
LDU_FT
[ "<BEGIN>\n## `download_parallel_gui`", "called when paralled downloading is true\n<END>", "<BEGIN>\n## `download_series_gui`", "called when user wants serial downloading\n<END>", "<BEGIN>\n## `start`", "function to initialize thread for downloading\n<END>", "<BEGIN>\n## `read_bytes`", "reading bytes; ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scrape_links API. 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 scrape_links API. 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...
function to scrape file links from html response
"function to scrape file links from html response"
37
false
nikhilkumarsingh/content-downloader
scrape_links
30,722
LDU_FT/core/uricore/exhaust
LDU_FT
[ "<BEGIN>\n## `iteritems`", "Like :meth:`items` but returns an iterator.\n<END>", "<BEGIN>\n## `iterlists`", "Like :meth:`items` but returns an iterator.\n<END>", "<BEGIN>\n## `to_dict`", "Return the contents as regular dict. If `flat` is `True` the\n returned dict will only have the first item pre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exhaust API. 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 exhaust API. 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...
Exhaust the stream. This consumes all the data left until the limit is reached. :param chunk_size: the size for a chunk. It will read the chunk until the stream is exhausted and throw away the results.
"Exhaust the stream. This consumes all the data left until the\n limit is reached.\n\n :param chunk_size: the size for a chunk. It will read the chunk\n until the stream is exhausted and throw away\n the results."
85
false
core/uricore
exhaust
30,723
LDU_FT/Yelp/uwsgi_metrics/histogram
LDU_FT
[ "<BEGIN>\n## `initialize`", "Initialize metrics, must be invoked at least once prior to invoking any\n other method.\n<END>", "<BEGIN>\n## `emit`", "Serialize metrics to the memory mapped buffer.\n<END>", "<BEGIN>\n## `view`", "Get a dictionary representation of current metrics.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the histogram API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the histogram API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Record a value in a histogram: :: histogram(__name__, 'my_histogram', len(queue))
"Record a value in a histogram:\n ::\n\n histogram(__name__, 'my_histogram', len(queue))"
32
false
Yelp/uwsgi_metrics
histogram
30,724
LDU_FT/bmcfee/pumpp/sampler
LDU_FT
[ "<BEGIN>\n## `sample`", "Sample a patch from the data object", " Parameters\n ----------\n data : dict\n A data dict as produced by pumpp.Pump.transform", " interval : slice\n The time interval to sample", " Returns\n -------\n data_slic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sampler API. 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 sampler API. 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...
Construct a sampler object for this pump's operators. Parameters ---------- n_samples : None or int > 0 The number of samples to generate duration : int > 0 The duration (in frames) of each sample patch random_state : None, int, or np.random.RandomState...
"Construct a sampler object for this pump's operators.\n\n Parameters\n ----------\n n_samples : None or int > 0\n The number of samples to generate\n\n duration : int > 0\n The duration (in frames) of each sample patch\n\n random_state : None, int, or np.random....
291
false
bmcfee/pumpp
sampler
30,725
LDU_FT/refnode/liquid/scan_until
LDU_FT
[ "<BEGIN>\n## `text_coords`", "r\"\"\"\n Transform a simple index into a human-readable position in a string.", " This function accepts a string and an index, and will return a triple of\n `(lineno, columnno, line)` representing the position through the text. It's\n useful for displaying a string ind...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_until API. 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 scan_until API. 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...
Search for a pattern from the current position. If a match is found, advances the scan pointer and returns the matched string, from the current position *up to* the end of the match. Otherwise returns ``None``. >>> s = Scanner("test string") >>> s.pos 0 ...
"Search for a pattern from the current position.\n\n If a match is found, advances the scan pointer and returns the matched\n string, from the current position *up to* the end of the match.\n Otherwise returns ``None``.\n\n >>> s = Scanner(\"test string\")\n >>> s.pos\n ...
54
false
refnode/liquid
scan_until
30,726
LDU_FT/i3visio/osrframework/checkIfHashIsCracked
LDU_FT
[ "<BEGIN>\n## `getResults`", "Function to obtain the Dictionarythat represents this object.", " :param parFound: values to return.", " :return: The output format will be like:\n [{\"type\" : \"i3visio.email\", \"value\": \"foo@bar.com\", \"attributes\": [] }, {\"type\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkIfHashIsCracked 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 checkIfHashIsCracked API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Method that checks if the given hash is stored in the md5db.net website. :param hash: hash to verify. :return: Resolved hash. If nothing was found, it will return an empty list.
"Method that checks if the given hash is stored in the md5db.net website.\n\n\t\t:param hash:\thash to verify.\n\n\t\t:return:\tResolved hash. If nothing was found, it will return an empty list."
598
false
i3visio/osrframework
checkIfHashIsCracked
30,727
LDU_FT/sckott/pygbif/main_pred_type
LDU_FT
[ "<BEGIN>\n## `name_suggest`", "A quick and simple autocomplete service that returns up to 20 name usages by\n doing prefix matching against the scientific name. Results are ordered by relevance.", " :param q: [str] Simple search parameter. The value for this parameter can be a\n simple word or a phrase. W...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main_pred_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main_pred_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
set main predicate combination type :param value: (character) One of ``equals`` (``=``), ``and`` (``&``), ``or`` (``|``), ``lessThan`` (``<``), ``lessThanOrEquals`` (``<=``), ``greaterThan`` (``>``), ``greaterThanOrEquals`` (``>=``), ``in``, ``within``, ``not`` (``!``), ``like``
"set main predicate combination type\n\n :param value: (character) One of ``equals`` (``=``), ``and`` (``&``), ``or`` (``|``),\n ``lessThan`` (``<``), ``lessThanOrEquals`` (``<=``), ``greaterThan`` (``>``),\n ``greaterThanOrEquals`` (``>=``), ``in``, ``within``, ``not`` (``!``), ``like``"
300
false
sckott/pygbif
main_pred_type
30,728
LDU_FT/dusktreader/flask-praetorian/blacklist_token
LDU_FT
[ "<BEGIN>\n## `_verify_and_add_jwt`", "This helper method just checks and adds jwt data to the app context. Will\n not add jwt data if it is already present. Only use in this module\n<END>", "<BEGIN>\n## `auth_required`", "This decorator is used to ensure that a user is authenticated before\n being able ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blacklist_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blacklist_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 e...
Blacklists an existing JWT by registering its jti claim in the blacklist. .. example:: $ curl http://localhost:5000/blacklist_token -X POST \ -d '{"token":"<your_token>"}'
"Blacklists an existing JWT by registering its jti claim in the blacklist.\n\n .. example::\n $ curl http://localhost:5000/blacklist_token -X POST \\\n -d '{\"token\":\"<your_token>\"}'"
73
false
dusktreader/flask-praetorian
blacklist_token
30,729
LDU_FT/mpapi/lazylights/build_packet
LDU_FT
[ "<BEGIN>\n## `parse_packet`", "Parses a Lifx data packet (as a bytestring), returning into a Header object\n for the fields that are common to all data packets, and a bytestring of\n payload data for the type-specific fields (suitable for passing to\n `parse_payload`).\n<END>", "<BEGIN>\n## `parse_payl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_packet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_packet API. 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...
Constructs a Lifx packet, returning a bytestring. The arguments are as follows: - `packet_type`, an integer - `gateway`, a 6-byte string containing the mac address of the gateway bulb - `bulb`, a 6-byte string containing either the mac address of the target bulb or `ALL_BULBS` - `payload_fmt`...
"Constructs a Lifx packet, returning a bytestring. The arguments are as\n follows:\n\n - `packet_type`, an integer\n - `gateway`, a 6-byte string containing the mac address of the gateway bulb\n - `bulb`, a 6-byte string containing either the mac address of the target\n bulb or `ALL_BULBS`\n - `payl...
63
false
mpapi/lazylights
build_packet
30,730
LDU_FT/LordGaav/python-chaos/retrieve_response
LDU_FT
[ "<BEGIN>\n## `registerWorker`", "Register a new Worker, under the given descriptive name.", "\t\tTrying to register multiple workers under the same name will raise an Exception.", "\t\tParameters\n\t\t----------\n\t\tname: string\n\t\t\tName to register the given worker under.\n\t\tworker: multiprocessing.Pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Retrieve a registered RPC response. If the correlation_id was not registered, an KeyError will the raised. If not value has been received yet, None will be returned. After retrieving the response, the value will be unset internally. The returned value will include the entire RabbitMQ message, consisting of a dict ...
"Retrieve a registered RPC response. If the correlation_id was not registered, an KeyError will the raised. If not value has been\n\t\treceived yet, None will be returned. After retrieving the response, the value will be unset internally.\n\n\t\tThe returned value will include the entire RabbitMQ message, consisting of...
138
false
LordGaav/python-chaos
retrieve_response
30,731
LDU_FT/monkeython/scriba/write
LDU_FT
[ "<BEGIN>\n## `write`", "Put the object/collection into a file URL.\n<END>", "<BEGIN>\n## `parse`", "Turns a JSON structure into a python object.\n<END>", "<BEGIN>\n## `format`", "Truns a python object into a JSON structure.\n<END>", "<BEGIN>\n## `write`", "Put the object/collection into a file URL.\n<...
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...
Put the object/collection into a file URL.
"Put the object/collection into a file URL."
10
false
monkeython/scriba
write
30,732
LDU_FT/thecynic/pylutron/handle_update
LDU_FT
[ "<BEGIN>\n## `_send_locked`", "Sends the specified command to the lutron controller.", " Assumes self._lock is held.\n<END>", "<BEGIN>\n## `_do_login_locked`", "Executes the login procedure (telnet) as well as setting up some\n connection defaults like turning off the prompt, etc.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Handle the specified action on this component.
"Handle the specified action on this component."
73
false
thecynic/pylutron
handle_update
30,733
LDU_FT/trombastic/PyScada/queryset
LDU_FT
[ "<BEGIN>\n## `_reinit_daq_daemons`", "update the daq daemon configuration when changes be applied in the models\n<END>", "<BEGIN>\n## `connect`", "establish a connection to the Instrument\n<END>", "<BEGIN>\n## `find_gap`", "try to find a address gap in the list of modbus registers\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracte...
Returns the filtered queryset based on the value provided in the query string and retrievable via `self.value()`.
"Returns the filtered queryset based on the value\n provided in the query string and retrievable via\n `self.value()`."
60
false
trombastic/PyScada
queryset
30,734
LDU_FT/ronaldguillen/wave/filter_queryset
LDU_FT
[ "<BEGIN>\n## `template_render`", "Passing Context or RequestContext to Template.render is deprecated in 1.9+,\n see https://github.com/django/django/pull/3883 and\n https://github.com/django/django/blob/1.9rc1/django/template/backends/django.py#L82-L84", " :param template: Template instance\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_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 e...
Filter the queryset to all instances matching the given attributes.
"Filter the queryset to all instances matching the given attributes."
296
false
ronaldguillen/wave
filter_queryset
30,735
LDU_FT/nephila/djangocms-helper/setup
LDU_FT
[ "<BEGIN>\n## `run`", "Run commands in a plain django environment", " :param app: application\n :param argv: arguments (default to sys.argv)\n :param extra_args: list of extra arguments\n<END>", "<BEGIN>\n## `cms`", "Run commands in a django cMS environment", " :param app: application\n :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. 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 setup API. 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...
Setup the Django / django CMS environment and return the environment settings. :param app: application :param helper_module: helper module :param extra_args: list of extra arguments :param use_cms: setup a django CMS environemtn :return: Django settings module
"Setup the Django / django CMS environment and return the environment settings.\n\n :param app: application\n :param helper_module: helper module\n :param extra_args: list of extra arguments\n :param use_cms: setup a django CMS environemtn\n :return: Django settings module"
25
false
nephila/djangocms-helper
setup
30,736
LDU_FT/pmorissette/ffn/display_lookback_returns
LDU_FT
[ "<BEGIN>\n## `memoize`", "Memoize decorator. The refresh keyword is the keyword\n used to bypass the cache (in the function call).\n<END>", "<BEGIN>\n## `parse_arg`", "Parses arguments for convenience. Argument can be a\n csv list ('a,b,c'), a string, a list, a tuple.", " Returns a list.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display_lookback_returns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display_lookback_returns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Displays the current lookback returns for each series.
"Displays the current lookback returns for each series."
176
false
pmorissette/ffn
display_lookback_returns
30,737
LDU_FT/DBuildService/dockerfile-parse/get_values
LDU_FT
[ "<BEGIN>\n## `image_from`", ":param from_value: string like \"image:tag\" or \"image:tag AS name\"\n :return: tuple of the image and stage name, e.g. (\"image:tag\", None)\n<END>", "<BEGIN>\n## `lines`", ":return: list containing lines (unicode) from Dockerfile\n<END>", "<BEGIN>\n## `lines`", "Fill Doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_values API. 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_values API. 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 the values valid on this line. :param context_type: "ENV" or "LABEL" :return: values of given type valid on this line
"Get the values valid on this line.\n\n :param context_type: \"ENV\" or \"LABEL\"\n :return: values of given type valid on this line"
58
false
DBuildService/dockerfile-parse
get_values
30,738
LDU_FT/coursera/courseraoauth2client/parser
LDU_FT
[ "<BEGIN>\n## `add_logging_parser`", "Build an argparse argument parser to parse the command line.\n<END>", "<BEGIN>\n## `set_logging_level`", "Computes and sets the logging level from the parsed arguments.\n<END>", "<BEGIN>\n## `authorize`", "Authorizes Coursera's OAuth2 client for using coursera.org API ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parser API. 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 parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Build an argparse argument parser to parse the command line.
"Build an argparse argument parser to parse the command line."
31
false
coursera/courseraoauth2client
parser
30,739
LDU_FT/dylanaraps/pywal/terminal_sexy_to_wal
LDU_FT
[ "<BEGIN>\n## `get_desktop_env`", "Identify the current running desktop environment.\n<END>", "<BEGIN>\n## `set_wm_wallpaper`", "Set the wallpaper for non desktop environments.\n<END>", "<BEGIN>\n## `set_desktop_wallpaper`", "Set the wallpaper for the desktop environment.\n<END>", "<BEGIN>\n## `disown`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the terminal_sexy_to_wal 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 terminal_sexy_to_wal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Convert terminal.sexy json schema to wal.
"Convert terminal.sexy json schema to wal."
28
false
dylanaraps/pywal
terminal_sexy_to_wal
30,740
LDU_FT/foutaise/texttable/_build_hline
LDU_FT
[ "<BEGIN>\n## `obj2unicode`", "Return a unicode representation of a python object\n<END>", "<BEGIN>\n## `len`", "Redefining len here so it will be able to work with non-ASCII characters\n<END>", "<BEGIN>\n## `set_chars`", "Set the characters used to draw lines between rows and columns", " - the ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_hline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_hline API. 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...
Return a string used to separated rows or separate header from rows
"Return a string used to separated rows or separate header from\n rows"
65
false
foutaise/texttable
_build_hline
30,741
LDU_FT/smartfile/client-python/download
LDU_FT
[ "<BEGIN>\n## `_request`", "Handles retrying failed requests and error handling.\n<END>", "<BEGIN>\n## `download`", "file_to_be_downloaded is a file-like object that has already\n been uploaded, you cannot download folders\n<END>", "<BEGIN>\n## `signature`", "Requests a signature for remote file via...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. 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 download API. 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...
Performs synchronization from a remote file to a local file. The remote path is the source and the local path is the destination.
"Performs synchronization from a remote file to a local file. The\n remote path is the source and the local path is the destination."
17
false
smartfile/client-python
download
30,742
LDU_FT/xguse/table_enforcer/validate
LDU_FT
[ "<BEGIN>\n## `minmax`", "Test that the data items fall within range: low <= x <= high.\n<END>", "<BEGIN>\n## `choice`", "Test that the data items are members of the set `choices`.\n<END>", "<BEGIN>\n## `bounded_length`", "Test that the length of the data items fall within range: low <= x <= high.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. 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 validate API. 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 dataframe of validation results for the appropriate series vs the vector of validators. Args: table (pd.DataFrame): A dataframe on which to apply validation logic. failed_only (bool): If ``True``: return only the indexes that failed to validate.
"Return a dataframe of validation results for the appropriate series vs the vector of validators.\n\n Args:\n table (pd.DataFrame): A dataframe on which to apply validation logic.\n failed_only (bool): If ``True``: return only the indexes that failed to validate."
42
false
xguse/table_enforcer
validate
30,743
LDU_FT/MLAB-project/pymlab/write_byte
LDU_FT
[ "<BEGIN>\n## `Move`", "Move some distance units from current position\n<END>", "<BEGIN>\n## `SPI_write_byte`", "Writes a data to a SPI device selected by chipselect bit.\n<END>", "<BEGIN>\n## `SPI_write`", "Writes data to SPI device selected by chipselect bit.\n<END>", "<BEGIN>\n## `GPIO_read`", "Read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_byte API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_byte API. 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...
Writes the byte to unaddressed register in a device.
"Writes the byte to unaddressed register in a device."
99
false
MLAB-project/pymlab
write_byte
30,744
LDU_FT/signalfx/signalfx-python/time_calls_with_dims
LDU_FT
[ "<BEGIN>\n## `gauge`", "Adds gauge with dimensions to the global pyformance registry\n<END>", "<BEGIN>\n## `count_calls_with_dims`", "Decorator to track the number of times a function is called\n with with dimensions.\n<END>", "<BEGIN>\n## `meter_calls_with_dims`", "Decorator to track the rate at which...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_calls_with_dims 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 time_calls_with_dims API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Decorator to time the execution of the function with dimensions.
"Decorator to time the execution of the function with dimensions."
139
false
signalfx/signalfx-python
time_calls_with_dims
30,745
LDU_FT/openclimatedata/pymagicc/convert_magicc_to_openscm_regions
LDU_FT
[ "<BEGIN>\n## `get_magicc_region_to_openscm_region_mapping`", "Get the mappings from MAGICC to OpenSCM regions.", " This is not a pure inverse of the other way around. For example, we never provide\n \"GLOBAL\" as a MAGICC return value because it's unnecesarily confusing when we also\n have \"World\". F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_magicc_to_openscm_regions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_magicc_to_openscm_regions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Convert MAGICC regions to OpenSCM regions Parameters ---------- regions : list_like, str Regions to convert inverse : bool If True, convert the other way i.e. convert OpenSCM regions to MAGICC7 regions Returns ------- ``type(regions)`` Set of converted regi...
"Convert MAGICC regions to OpenSCM regions\n\n Parameters\n ----------\n regions : list_like, str\n Regions to convert\n\n inverse : bool\n If True, convert the other way i.e. convert OpenSCM regions to MAGICC7\n regions\n\n Returns\n -------\n ``type(regions)``\n Set of...
245
false
openclimatedata/pymagicc
convert_magicc_to_openscm_regions
30,746
LDU_FT/Kyria/EsiPy/make_cache_key
LDU_FT
[ "<BEGIN>\n## `make_cache_key`", "Generate a cache key from request object data\n<END>", "<BEGIN>\n## `check_cache`", "check if a cache fits esipy needs or not\n<END>", "<BEGIN>\n## `get_cache_time_left`", "return the time left in second for an expires header\n<END>", "<BEGIN>\n## `generate_code_verifier...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_cache_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_cache_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Generate a cache key from request object data
"Generate a cache key from request object data"
87
false
Kyria/EsiPy
make_cache_key
30,747
LDU_FT/noahbenson/pimms/argv_parse
LDU_FT
[ "<BEGIN>\n## `to_argv_schema`", "to_argv_schema(instructions) yields a valid tuple of CommandLineParser instructions for the\n given instructions tuple; by itself, this will only return the instructions as they are, but\n optional arguments (below) will override the values in the instructions if provide...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the argv_parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the argv_parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
argv_parse(schema, argv) yields the tuple (unparsed_argv, params) where unparsed_argv is a list subset of argv that contains only those command line arguments that were not understood by the given argument schema and params is a dictionary of parameters as parsed by the given schema. It is equivalent...
"argv_parse(schema, argv) yields the tuple (unparsed_argv, params) where unparsed_argv is a list\n subset of argv that contains only those command line arguments that were not understood by\n the given argument schema and params is a dictionary of parameters as parsed by the given \n schema. It is equiva...
241
false
noahbenson/pimms
argv_parse
30,748
LDU_FT/loli/medpy/getParser
LDU_FT
[ "<BEGIN>\n## `sls`", "r\"\"\"\n Computes the signed local similarity between two images.", " Compares a patch around each voxel of the minuend array to a number of patches\n centered at the points of a search neighbourhood in the subtrahend. Thus, creates\n a multi-dimensional measure of patch simil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getParser API. 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 getParser API. 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...
Creates and returns the argparse parser object.
"Creates and returns the argparse parser object."
1,313
true
loli/medpy
getParser
30,749
LDU_FT/opentok/Opentok-Python-SDK/signal
LDU_FT
[ "<BEGIN>\n## `get_stream_url`", "this method returns the url to get streams information\n<END>", "<BEGIN>\n## `force_disconnect_url`", "this method returns the force disconnect url endpoint\n<END>", "<BEGIN>\n## `set_archive_layout_url`", "this method returns the url to set the archive layout\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the signal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the signal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Send signals to all participants in an active OpenTok session or to a specific client connected to that session. :param String session_id: The session ID of the OpenTok session that receives the signal :param Dictionary payload: Structure that contains both the type and data fields. These ...
"Send signals to all participants in an active OpenTok session or to a specific client\n connected to that session.\n\n :param String session_id: The session ID of the OpenTok session that receives the signal\n\n :param Dictionary payload: Structure that contains both the type and data fields. Thes...
128
false
opentok/Opentok-Python-SDK
signal
30,750
LDU_FT/miquelo/resort/mail_session
LDU_FT
[ "<BEGIN>\n## `insert`", "Build the project.", "\t\t:param resort.engine.execution.Context context:\n\t\t Current execution context.\n<END>", "<BEGIN>\n## `load`", "Load the profile with the given name.", "\t\t:param str prof_name:\n\t\t Profile name.\n\t\t:rtype:\n\t\t ProfileStub\n\t\t:return:\n\t\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mail_session API. 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 mail_session API. 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...
Domain mail session. :param str name: Mail session name. :param str host: Mail host. :param str username: Mail username. :param str mail_from: Mail "from" address. :param dict props: Extra properties. :rtype: MailSession
"Domain mail session.\n\t\t\n\t\t:param str name:\n\t\t Mail session name.\n\t\t:param str host:\n\t\t Mail host.\n\t\t:param str username:\n\t\t Mail username.\n\t\t:param str mail_from:\n\t\t Mail \"from\" address.\n\t\t:param dict props:\n\t\t Extra properties.\n\t\t:rtype:\n\t\t MailSession"
125
false
miquelo/resort
mail_session
30,751
LDU_FT/cebel/pyuniprot/query_pmid
LDU_FT
[ "<BEGIN>\n## `get_args`", "Check allowed argument names and return is as dictionary\n<END>", "<BEGIN>\n## `query_disease`", "Returns list of diseases by query parameters\n ---", " tags:", " - Query functions", " parameters:", " - name: identifier\n in: query\n type: st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_pmid API. 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 query_pmid API. 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...
Returns list of PubMed identifier by query parameters --- tags: - Query functions parameters: - name: pmid in: query type: string required: false description: PubMed identifier default: 20697050 - name: entry_name in: query type:...
"Returns list of PubMed identifier by query parameters\n ---\n\n tags:\n\n - Query functions\n\n parameters:\n\n - name: pmid\n in: query\n type: string\n required: false\n description: PubMed identifier\n default: 20697050\n\n - name: entry_name\n in: q...
416
false
cebel/pyuniprot
query_pmid
30,752
LDU_FT/mozilla/mozpay-py/verify_claims
LDU_FT
[ "<BEGIN>\n## `verify_jwt`", "Verifies a postback/chargeback JWT.", " Returns the trusted JSON data from the original request.\n When there's an error, an exception derived from\n :class:`mozpay.exc.InvalidJWT`\n will be raised.", " This is an all-in-one function that does all verification you'd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_claims API. 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 verify_claims API. 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...
Verify JWT claims. All times must be UTC unix timestamps. These claims will be verified: - iat: issued at time. If JWT was issued more than an hour ago it is rejected. - exp: expiration time. All exceptions are derived from :class:`mozpay.exc.InvalidJWT`. For expirations a :cla...
"Verify JWT claims.\n\n All times must be UTC unix timestamps.\n\n These claims will be verified:\n\n - iat: issued at time. If JWT was issued more than an hour ago it is\n rejected.\n - exp: expiration time.\n\n All exceptions are derived from\n :class:`mozpay.exc.InvalidJWT`.\n For expiratio...
30
false
mozilla/mozpay-py
verify_claims
30,753
LDU_FT/ShadowBlip/Neteria/decrypt
LDU_FT
[ "<BEGIN>\n## `listen`", "Starts the client listener to listen for server responses.", " Args:\n None", " Returns:\n None\n<END>", "<BEGIN>\n## `retransmit`", "Processes messages that have been delivered from the transport\n protocol.", " Args:\n dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt API. 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 decrypt API. 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...
Decrypts a string using our own private key object. Args: message (string): The string of the message to decrypt. Returns: The unencrypted string.
"Decrypts a string using our own private key object.\n\n Args:\n message (string): The string of the message to decrypt.\n\n Returns:\n The unencrypted string."
122
false
ShadowBlip/Neteria
decrypt
30,754
LDU_FT/visualfabriq/bquery/open
LDU_FT
[ "<BEGIN>\n## `rm_file_or_dir`", "Helper function to clean a certain filepath", " Parameters\n ----------\n path", " Returns\n -------\n<END>", "<BEGIN>\n## `cache_valid`", "Checks whether the column has a factorization that exists and is not older than the source", " :param col:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
open(rootdir, mode='a') Open a disk-based carray/ctable. This function could be used to open bcolz objects as bquery objects to perform queries on them. Parameters ---------- rootdir : pathname (string) The directory hosting the carray/ctable object. mode : the open mode (string) ...
"open(rootdir, mode='a')\n\n Open a disk-based carray/ctable.\n This function could be used to open bcolz objects as bquery objects to\n perform queries on them.\n\n Parameters\n ----------\n rootdir : pathname (string)\n The directory hosting the carray/ctable object.\n mode : the open mode...
60
false
visualfabriq/bquery
open
30,755
LDU_FT/cjdrake/pyeda/satisfy_all
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 satisfy_all API. 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 satisfy_all API. 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...
Iterate through all satisfying input points.
"Iterate through all satisfying input points."
410
false
cjdrake/pyeda
satisfy_all
30,756
LDU_FT/Xion/taipan/get
LDU_FT
[ "<BEGIN>\n## `decorator`", "Decorator for decorators (sic), written either as classes or functions.", " In either case, the decorator ``decor`` must be \"doubly-callable\":", " * for classes, this means implementing ``__call__`` method\n in addition to possible ``__init__``\n * for f...
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...
Extensions of standard :meth:`dict.get`. Retrieves an item from given dictionary, trying given keys in order. :param dict_: Dictionary to perform the lookup(s) in :param keys: Iterable of keys :param default: Default value to return if no key is found :return: Value for one of given ``keys``, or `...
"Extensions of standard :meth:`dict.get`.\n Retrieves an item from given dictionary, trying given keys in order.\n\n :param dict_: Dictionary to perform the lookup(s) in\n :param keys: Iterable of keys\n :param default: Default value to return if no key is found\n\n :return: Value for one of given ``keys...
396
false
Xion/taipan
get
30,757
LDU_FT/RudolfCardinal/pythonlib/should_exclude
LDU_FT
[ "<BEGIN>\n## `pdb_run`", "Calls ``func(*args, **kwargs)``; if it raises an exception, break into\n the ``pdb`` debugger.\n<END>", "<BEGIN>\n## `get_class_name_from_frame`", "A frame contains information about a specific call in the Python call\n stack; see https://docs.python.org/3/library/inspect.html....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the should_exclude API. 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 should_exclude API. 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...
Should we exclude this file from consideration?
"Should we exclude this file from consideration?"
2,517
true
RudolfCardinal/pythonlib
should_exclude
30,758
LDU_FT/hozn/coilmq/init_model
LDU_FT
[ "<BEGIN>\n## `server_from_config`", "Gets a configured L{coilmq.server.StompServer} from specified config.", " If `config` is None, global L{coilmq.config.config} var will be used instead.", " The `server_class` and `additional_kwargs` are primarily hooks for using this method\n from a testing enviro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Initializes the shared SQLAlchemy state in the L{coilmq.store.sa.model} module. @param engine: The SQLAlchemy engine instance. @type engine: C{sqlalchemy.Engine} @param create: Whether to create the tables (if they do not exist). @type create: C{bool} @param drop: Whether to drop the tables (if t...
"Initializes the shared SQLAlchemy state in the L{coilmq.store.sa.model} module.\n\n @param engine: The SQLAlchemy engine instance.\n @type engine: C{sqlalchemy.Engine}\n\n @param create: Whether to create the tables (if they do not exist).\n @type create: C{bool}\n\n @param drop: Whether to drop the tab...
211
false
hozn/coilmq
init_model
30,759
LDU_FT/openstack/swauth/validate_creds
LDU_FT
[ "<BEGIN>\n## `filter_factory`", "Returns a WSGI filter app for use with paste.deploy.\n<END>", "<BEGIN>\n## `make_pre_authed_request`", "Nearly the same as swift.common.wsgi.make_pre_authed_request\n except that this also always sets the 'swift.source' and user\n agent.", " Newer Swift ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_creds API. 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 validate_creds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Parse and validate user credentials whether format is right :param creds: User credentials :returns: Auth_type class instance and parsed user credentials in dict :raises ValueError: If credential format is wrong (eg: bad auth_type)
"Parse and validate user credentials whether format is right\n\n :param creds: User credentials\n :returns: Auth_type class instance and parsed user credentials in dict\n :raises ValueError: If credential format is wrong (eg: bad auth_type)"
133
false
openstack/swauth
validate_creds
30,760
LDU_FT/pytroll/pyspectral/_get_options_from_config
LDU_FT
[ "<BEGIN>\n## `radiance2tb`", "Get the Tb from the radiance using the Planck function", " rad:\n Radiance in SI units\n wavelength:\n Wavelength in SI units (meter)\n<END>", "<BEGIN>\n## `_get_rsr`", "Get the relative spectral responses from file, find the bandname, and\n convert t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_options_from_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_options_from_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Get configuration settings from configuration file
"Get configuration settings from configuration file"
129
false
pytroll/pyspectral
_get_options_from_config
30,761
LDU_FT/haikuginger/beekeeper/from_url
LDU_FT
[ "<BEGIN>\n## `merge`", "Take two copies of a variable and reconcile them. var1 is assumed\n to be the higher-level variable, and so will be overridden by var2\n where such becomes necessary.\n<END>", "<BEGIN>\n## `has_value_of_type`", "Does the variable both have the given type and\n have a varia...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_url API. 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 from_url API. 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...
Create a Hive object based on JSON located at a remote URL.
"Create a Hive object based on JSON located at a remote URL."
66
false
haikuginger/beekeeper
from_url
30,762
LDU_FT/totalgood/twip/parse_args
LDU_FT
[ "<BEGIN>\n## `lsi`", "Train an LSI model on a \"corpus\" of documnets, like tweets", " Arguments:\n tokenize (callable): Function that returns a sequence of tokens (str) when passed a document (str)\n ram (float): Portion of RAM to limit the document generator from consuming before StopIter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Parse command line parameters :param args: command line parameters as list of strings :return: command line parameters as :obj:`argparse.Namespace`
"Parse command line parameters\n\n :param args: command line parameters as list of strings\n :return: command line parameters as :obj:`argparse.Namespace`"
144
false
totalgood/twip
parse_args
30,763
LDU_FT/isislovecruft/python-gnupg/_make_args
LDU_FT
[ "<BEGIN>\n## `get_requirements`", "Extract the list of requirements from our requirements.txt.", " :rtype: 2-tuple\n :returns: Two lists, the first is a list of requirements in the form of\n pkgname==version. The second is a list of URIs or VCS checkout strings\n which specify the dependency...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Make a list of command line elements for GPG. The value of ``args`` will be appended only if it passes the checks in :func:`gnupg._parsers._sanitise`. The ``passphrase`` argument needs to be True if a passphrase will be sent to GnuPG, else False. :param list args: A list of strings of ...
"Make a list of command line elements for GPG.\n\n The value of ``args`` will be appended only if it passes the checks in\n :func:`gnupg._parsers._sanitise`. The ``passphrase`` argument needs to\n be True if a passphrase will be sent to GnuPG, else False.\n\n :param list args: A list of stri...
371
false
isislovecruft/python-gnupg
_make_args
30,764
LDU_FT/dhermes/bezier/coincident_parameters
LDU_FT
[ "<BEGIN>\n## `polynomial_sign`", "r\"\"\"Determine the \"sign\" of a polynomial on the reference triangle.", " .. note::", " This is used **only** by :meth:`Surface._compute_valid` (which is\n in turn used to compute / cache the :attr:`Surface.is_valid`\n property).", " Checks if a p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coincident_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coincident_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
r"""Check if two B |eacute| zier curves are coincident. Does so by projecting each segment endpoint onto the other curve .. math:: B_1(s_0) = B_2(0) B_1(s_m) = B_2(1) B_1(0) = B_2(t_0) B_1(1) = B_2(t_n) and then finding the "shared interval" where both curves are defined. ...
"r\"\"\"Check if two B |eacute| zier curves are coincident.\n\n Does so by projecting each segment endpoint onto the other curve\n\n .. math::\n\n B_1(s_0) = B_2(0)\n B_1(s_m) = B_2(1)\n B_1(0) = B_2(t_0)\n B_1(1) = B_2(t_n)\n\n and then finding the \"shared interval\" where both curves...
1,903
true
dhermes/bezier
coincident_parameters
30,765
LDU_FT/azraq27/neural/unpack_archive
LDU_FT
[ "<BEGIN>\n## `connectivity_map`", "Will perform connectivity analysis on ``dset`` using seed point ``(x,y,z)`` (in RAI order) with a sphere of radius ``radius``.\n Does not perform any preprocessing of ``dset``. This should be already motion corrected, noise-regressed, residualized, etc.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack_archive API. 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 unpack_archive API. 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...
unpacks the archive file ``fname`` and reconstructs datasets into ``out_dir`` Datasets are reconstructed and auto-named using :meth:`create_dset`. The raw directories that made the datasets are archive with the dataset name suffixed by ``tgz``, and any other files found in the archive are put into ``other_...
"unpacks the archive file ``fname`` and reconstructs datasets into ``out_dir``\n\n Datasets are reconstructed and auto-named using :meth:`create_dset`. The raw directories\n that made the datasets are archive with the dataset name suffixed by ``tgz``, and any other\n files found in the archive are put into ``o...
232
false
azraq27/neural
unpack_archive
30,766
LDU_FT/idmillington/layout/get_pocketmod_pages
LDU_FT
[ "<BEGIN>\n## `_do_layout`", "Lays the text out into separate lines and calculates their\n total height.\n<END>", "<BEGIN>\n## `_calculate_ms_from_base`", "Calculates the rotated minimum size from the given base minimum\n size.\n<END>", "<BEGIN>\n## `render`", "Draws the signature mark.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pocketmod_pages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pocketmod_pages 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...
Creates one or more managers that wraps the given elements into one or more Pocket Mod-style page sets. Each manager in the list that is returned corresponds to one page. This imposer is designed to work with portrait oriented content pages, laid out onto a landscape oriented page. Arguments: ...
"Creates one or more managers that wraps the given elements into\n one or more Pocket Mod-style page sets. Each manager in the list\n that is returned corresponds to one page. This imposer is designed\n to work with portrait oriented content pages, laid out onto a\n landscape oriented page.\n\n Arguments...
91
false
idmillington/layout
get_pocketmod_pages
30,767
LDU_FT/mar10/pyftpsync/namespace_to_dict
LDU_FT
[ "<BEGIN>\n## `match_path`", "Return True if `path` matches `match` and `exclude` options.\n<END>", "<BEGIN>\n## `_compare_file`", "Byte compare two files (early out on first difference).\n<END>", "<BEGIN>\n## `_tick`", "Write progress info and move cursor to beginning of line.\n<END>", "<BEGIN>\n## `_sy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the namespace_to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the namespace_to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Convert an argparse namespace object to a dictionary.
"Convert an argparse namespace object to a dictionary."
122
false
mar10/pyftpsync
namespace_to_dict
30,768
LDU_FT/zalando/patroni/_tag_ebs
LDU_FT
[ "<BEGIN>\n## `create_connection`", "This method is trying to establish connection with one of the zookeeper nodes.\n Somehow strategy \"fail earlier and retry more often\" works way better comparing to\n the original strategy \"try to connect with specified timeout\".\n Since we want...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tag_ebs API. 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 _tag_ebs API. 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 tags, carrying the cluster name, instance role and instance id for the EBS storage
"set tags, carrying the cluster name, instance role and instance id for the EBS storage"
228
false
zalando/patroni
_tag_ebs
30,769
LDU_FT/exhuma/python-cluster/worker
LDU_FT
[ "<BEGIN>\n## `getclusters`", "Generates *count* clusters.", " :param count: The amount of clusters that should be generated. count\n must be greater than ``1``.\n :raises ClusteringError: if *count* is out of bounds.\n<END>", "<BEGIN>\n## `assign_item`", "Assigns an item from a giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the worker API. 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 worker API. 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 ...
Multiprocessing task function run by worker processes
"Multiprocessing task function run by worker processes"
76
false
exhuma/python-cluster
worker
30,770
LDU_FT/IS-ENES-Data/esgf-pid/logdebug
LDU_FT
[ "<BEGIN>\n## `logtrace`", "If esgfpid.defaults.LOG_TRACE_TO_DEBUG, messages are treated\n like debug messages (with an added [trace]).\n Otherwise, they are ignored.\n<END>", "<BEGIN>\n## `logdebug`", "Logs messages as DEBUG,\n unless show=True and esgfpid.defaults.LOG_SHOW_TO_INFO=True,\n (then i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logdebug API. 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 logdebug API. 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...
Logs messages as DEBUG, unless show=True and esgfpid.defaults.LOG_SHOW_TO_INFO=True, (then it logs messages as INFO).
"Logs messages as DEBUG,\n unless show=True and esgfpid.defaults.LOG_SHOW_TO_INFO=True,\n (then it logs messages as INFO)."
67
false
IS-ENES-Data/esgf-pid
logdebug
30,771
LDU_FT/thombashi/SimpleSQLite/insert
LDU_FT
[ "<BEGIN>\n## `set_log_level`", "Set logging level of this module. Using\n `logbook <https://logbook.readthedocs.io/en/stable/>`__ module for logging.", " :param int log_level:\n One of the log level of\n `logbook <https://logbook.readthedocs.io/en/stable/api/base.html>`__.\n Disabled ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. 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 insert API. 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 ...
Send an INSERT query to the database. :param str table_name: Table name of executing the query. :param record: Record to be inserted. :type record: |dict|/|namedtuple|/|list|/|tuple| :raises IOError: |raises_write_permission| :raises simplesqlite.NullDatabaseConnectionError: ...
"Send an INSERT query to the database.\n\n :param str table_name: Table name of executing the query.\n :param record: Record to be inserted.\n :type record: |dict|/|namedtuple|/|list|/|tuple|\n :raises IOError: |raises_write_permission|\n :raises simplesqlite.NullDatabaseConnectionErr...
185
false
thombashi/SimpleSQLite
insert
30,772