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/getpelican/pelican-plugins/_parse_metadata
LDU_FT
[ "<BEGIN>\n## `get_gif`", "Returns dict with gif informations from the API.\n<END>", "<BEGIN>\n## `main`", "Doing the regex parsing and running the create_html function.\n<END>", "<BEGIN>\n## `filetime_from_git`", "Update modification and creation times from git\n<END>", "<BEGIN>\n## `update_hash_from_st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_metadata API. 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...
Process the metadata dict, lowercasing the keys and textilizing the value of the 'summary' key (if present). Keys that share the same lowercased form will be overridden in some arbitrary order.
"Process the metadata dict, lowercasing the keys and textilizing the\nvalue of the 'summary' key (if present). Keys that share the same\nlowercased form will be overridden in some arbitrary order."
247
false
getpelican/pelican-plugins
_parse_metadata
6,273
LDU_FT/LEMS/pylems/add
LDU_FT
[ "<BEGIN>\n## `toxml`", "Exports this object into a LEMS XML object\n<END>", "<BEGIN>\n## `toxml`", "Exports this object into a LEMS XML object\n<END>", "<BEGIN>\n## `tokenize`", "Tokenizes the string stored in the parser object into a list\n of tokens.\n<END>", "<BEGIN>\n## `parse_token_list_rec`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Adds a typed child object to the behavioral object. @param child: Child object to be added.
"Adds a typed child object to the behavioral object.\n\n @param child: Child object to be added."
441
false
LEMS/pylems
add
6,274
LDU_FT/abn/cafeteria/replace
LDU_FT
[ "<BEGIN>\n## `replace`", "Convenience method provided as a way to replace a value mapped by a\n key.This is required since a MergingDict always merges via assignment\n of item/attribute.", " :param key: Attribute name or item key to replace rvalue for.\n :type key: object\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace API. 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 replace API. 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...
Convenience method provided as a way to replace a value mapped by a key.This is required since a MergingDict always merges via assignment of item/attribute. :param key: Attribute name or item key to replace rvalue for. :type key: object :param value: The new value to assign. ...
"Convenience method provided as a way to replace a value mapped by a\n key.This is required since a MergingDict always merges via assignment\n of item/attribute.\n\n :param key: Attribute name or item key to replace rvalue for.\n :type key: object\n :param value: The new value to assi...
26
false
abn/cafeteria
replace
6,275
LDU_FT/crackinglandia/pype32/writeWord
LDU_FT
[ "<BEGIN>\n## `showSectionsHeaders`", "Prints IMAGE_SECTION_HEADER for every section present in the file.\n<END>", "<BEGIN>\n## `getFields`", "Returns all the class attributues.", " @rtype: dict\n @return: A dictionary containing all the class attributes.\n<END>", "<BEGIN>\n## `parse`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the writeWord API. 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 writeWord API. 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...
Writes a word value into the L{WriteData} stream object. @type word: int @param word: Word value to write into the stream.
"Writes a word value into the L{WriteData} stream object.\n \n @type word: int\n @param word: Word value to write into the stream."
428
false
crackinglandia/pype32
writeWord
6,276
LDU_FT/MacHu-GWU/sqlalchemy_mate-project/from_object
LDU_FT
[ "<BEGIN>\n## `count_row`", "Return number of rows in a table.", " Example::", " >>> count_row(engine, table_user)\n 3", " **中文文档**", " 返回一个表中的行数。\n<END>", "<BEGIN>\n## `keys`", "return list of all declared columns.", " :rtype: List[str]\n<END>", "<BEGIN>\n## `glance`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_object API. 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 from_object API. 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...
Select data from the table defined by a ORM class, and put into prettytable :param orm_class: an orm class inherit from ``sqlalchemy.ext.declarative.declarative_base()`` :type engine_or_session: Union[Engine, Session] :param engine_or_session: the engine or session used to execute the query. ...
"Select data from the table defined by a ORM class, and put into prettytable\n\n :param orm_class: an orm class inherit from\n ``sqlalchemy.ext.declarative.declarative_base()``\n\n :type engine_or_session: Union[Engine, Session]\n :param engine_or_session: the engine or session used to execute the query...
92
false
MacHu-GWU/sqlalchemy_mate-project
from_object
6,277
LDU_FT/jbittel/django-mama-cas/consume_tickets
LDU_FT
[ "<BEGIN>\n## `get`", "(2.1) As a credential requestor, /login accepts three optional\n parameters:", " 1. ``service``: the identifier of the application the client is\n accessing. We assume this identifier to be a URL.\n 2. ``renew``: requires a client to present credentials\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume_tickets API. 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 consume_tickets API. 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...
Consume all valid ``Ticket``s for a specified user. This is run when the user logs out to ensure all issued tickets are no longer valid for future authentication attempts.
"Consume all valid ``Ticket``s for a specified user. This is run\n when the user logs out to ensure all issued tickets are no longer\n valid for future authentication attempts."
86
false
jbittel/django-mama-cas
consume_tickets
6,278
LDU_FT/LuminosoInsight/langcodes/name_to_code
LDU_FT
[ "<BEGIN>\n## `parse_tag`", "Parse the syntax of a language tag, without looking up anything in the\n registry, yet. Returns a list of (type, value) tuples indicating what\n information will need to be looked up.\n<END>", "<BEGIN>\n## `parse_subtags`", "Parse everything that comes after the language tag:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name_to_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name_to_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get a language, script, or region by its name in some language. The language here must be a string representing a language subtag only. The `Language.find` method can handle other representations of a language and normalize them to this form. The default language, "und", will allow matching names in a...
"Get a language, script, or region by its name in some language.\n\n The language here must be a string representing a language subtag only.\n The `Language.find` method can handle other representations of a language\n and normalize them to this form.\n\n The default language, \"und\", will allow matching n...
236
false
LuminosoInsight/langcodes
name_to_code
6,279
LDU_FT/adamcharnock/django-hordak/do_import
LDU_FT
[ "<BEGIN>\n## `ratio_split`", "Split in_value according to the ratios specified in `ratios`", " This is special in that it ensures the returned values always sum to\n in_value (i.e. we avoid losses or gains due to rounding errors). As a\n result, this method returns a list of `Decimal` values with lengt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_import API. 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 do_import API. 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...
Import data from teller.io Returns the created StatementImport
"Import data from teller.io\n\n Returns the created StatementImport"
84
false
adamcharnock/django-hordak
do_import
6,280
LDU_FT/jfear/sramongo/xml_to_root
LDU_FT
[ "<BEGIN>\n## `esearch`", "Search for a query using the Entrez ESearch API.", " Parameters\n ----------\n database : str\n Entez database to search.\n query : str\n Query string\n userhistory : bool\n Tells API to return a WebEnV and query_key.\n webenv : str\n An En...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xml_to_root API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xml_to_root API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Parse XML into an ElemeTree object. Parameters ---------- xml : str or file-like object A filename, file object or string version of xml can be passed. Returns ------- Elementree.Element
"Parse XML into an ElemeTree object.\n\n Parameters\n ----------\n xml : str or file-like object\n A filename, file object or string version of xml can be passed.\n\n Returns\n -------\n Elementree.Element"
36
false
jfear/sramongo
xml_to_root
6,281
LDU_FT/tadashi-aikawa/owlmixin/map
LDU_FT
[ "<BEGIN>\n## `from_dict`", "From dict to instance", " :param d: Dict\n :param force_snake_case: Keys are transformed to snake case in order to compliant PEP8 if True\n :param force_cast: Cast forcibly if True\n :param restrict: Prohibit extra parameters if True\n :return: Inst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
:param func: :type func: (K, T) -> U :rtype: TList[U] Usage: >>> sorted(TDict(k1=1, k2=2, k3=3).map(lambda k, v: v*2)) [2, 4, 6]
":param func:\n :type func: (K, T) -> U\n :rtype: TList[U]\n\n Usage:\n\n >>> sorted(TDict(k1=1, k2=2, k3=3).map(lambda k, v: v*2))\n [2, 4, 6]"
248
false
tadashi-aikawa/owlmixin
map
6,282
LDU_FT/cogeotiff/rio-tiler/bounds
LDU_FT
[ "<BEGIN>\n## `_meters_per_pixel`", "Return the pixel resolution for a given mercator tile zoom and lattitude.", " Parameters\n ----------\n zoom: int\n Mercator zoom level\n lat: float, optional\n Latitude in decimal degree (default: 0)\n tilesize: int, optional\n Mercator ti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Retrieve image bounds. Attributes ---------- sceneid : str CBERS sceneid. Returns ------- out : dict dictionary with image bounds.
"Retrieve image bounds.\n\n Attributes\n ----------\n sceneid : str\n CBERS sceneid.\n\n Returns\n -------\n out : dict\n dictionary with image bounds."
137
false
cogeotiff/rio-tiler
bounds
6,283
LDU_FT/frictionlessdata/tabulator-py/reset
LDU_FT
[ "<BEGIN>\n## `detect_scheme_and_format`", "Detect scheme and format based on source and return as a tuple.", " Scheme is a minimum 2 letters before `://` (will be lower cased).\n For example `http` from `http://example.com/table.csv`\n<END>", "<BEGIN>\n## `detect_encoding`", "Detect encoding of a byte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. 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 reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Resets the stream pointer to the beginning of the file.
"Resets the stream pointer to the beginning of the file."
35
false
frictionlessdata/tabulator-py
reset
6,284
LDU_FT/petrjasek/eve-elastic/is_empty
LDU_FT
[ "<BEGIN>\n## `get_dates`", "Return list of datetime fields for given schema.\n<END>", "<BEGIN>\n## `set_filters`", "Put together all filters we have and set them as 'and' filter\n within filtered query.", " :param query: elastic query being constructed\n :param base_filters: all filters set outside...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_empty API. 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 is_empty API. 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...
Test if there is no document for resource. :param resource: resource name
"Test if there is no document for resource.\n\n :param resource: resource name"
106
false
petrjasek/eve-elastic
is_empty
6,285
LDU_FT/rcarmo/pngcanvas/read
LDU_FT
[ "<BEGIN>\n## `blend`", "Alpha blends two colors, using the alpha given by c2\n<END>", "<BEGIN>\n## `rgb2rgba`", "Take a row of RGB bytes, and convert to a row of RGBA bytes.\n<END>", "<BEGIN>\n## `read`", "Read `num_bytes` from the compressed data chunks.", " Data is returned as `bytes` of length...
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 `num_bytes` from the compressed data chunks. Data is returned as `bytes` of length `num_bytes` Will raise an EOFError if data is unavailable. Note: Will always return `num_bytes` of data (unlike the file read method).
"Read `num_bytes` from the compressed data chunks.\n\n Data is returned as `bytes` of length `num_bytes`\n\n Will raise an EOFError if data is unavailable.\n\n Note: Will always return `num_bytes` of data (unlike the file read method)."
15
false
rcarmo/pngcanvas
read
6,286
LDU_FT/hvac/hvac/login
LDU_FT
[ "<BEGIN>\n## `read_init_status`", "Read the initialization status of Vault.", " Supported methods:\n GET: /sys/init. Produces: 200 application/json", " :return: The JSON response of the request.\n :rtype: dict\n<END>", "<BEGIN>\n## `initialize`", "Initialize a new Vault.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Login using GitHub access token. Supported methods: POST: /auth/{mount_point}/login. Produces: 200 application/json :param token: GitHub personal API token. :type token: str | unicode :param use_token: if True, uses the token in the response received from the auth request ...
"Login using GitHub access token.\n\n Supported methods:\n POST: /auth/{mount_point}/login. Produces: 200 application/json\n\n\n :param token: GitHub personal API token.\n :type token: str | unicode\n :param use_token: if True, uses the token in the response received from the auth...
856
false
hvac/hvac
login
6,287
LDU_FT/mbr/data/readlines
LDU_FT
[ "<BEGIN>\n## `annotate`", "Set function annotations (on Python2 and 3).\n<END>", "<BEGIN>\n## `auto_instantiate`", "Creates a decorator that will instantiate objects based on function\n parameter annotations.", " The decorator will check every argument passed into ``f``. If ``f`` has an\n annotatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readlines API. 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 readlines API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return list of all lines. Always returns list of unicode.
"Return list of all lines. Always returns list of unicode."
33
false
mbr/data
readlines
6,288
LDU_FT/sawcordwell/pymdptoolbox/simulateTransition
LDU_FT
[ "<BEGIN>\n## `_checkDimensionsListLike`", "Check that each array in a list of arrays has the same size.\n<END>", "<BEGIN>\n## `_checkRewardsListLike`", "Check that a list-like reward input is valid.\n<END>", "<BEGIN>\n## `isSquare`", "Check that ``matrix`` is square.", " Returns\n =======\n is_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simulateTransition 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 simulateTransition 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...
Simulate a state transition. Parameters ---------- x : int The current abundance class of the threatened species. s : float The state-independent probability of the population staying in its current abundance class. r : float The probability the population moves ...
"Simulate a state transition.\n \n Parameters\n ----------\n x : int\n The current abundance class of the threatened species.\n s : float\n The state-independent probability of the population staying in its\n current abundance class.\n r : float\n The probability the popula...
93
false
sawcordwell/pymdptoolbox
simulateTransition
6,289
LDU_FT/fogleman/pg/delete_all
LDU_FT
[ "<BEGIN>\n## `delete_all`", "Calls `delete()` on all members of `obj` that are recognized as\n instances of `pg` objects.\n<END>", "<BEGIN>\n## `_glfw_get_version`", "Queries and returns the library version tuple or None by using a\n subprocess.\n<END>", "<BEGIN>\n## `set_error_callback`", "Sets the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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 extrac...
Calls `delete()` on all members of `obj` that are recognized as instances of `pg` objects.
"Calls `delete()` on all members of `obj` that are recognized as\n instances of `pg` objects."
39
false
fogleman/pg
delete_all
6,290
LDU_FT/Captricity/captools/_put_or_post_multipart
LDU_FT
[ "<BEGIN>\n## `_encode_multipart_formdata`", "Create a multipart encoded form for use in PUTing and POSTing.", " fields is a sequence of (name, value) elements for regular form fields.\n files is a sequence of (name, filename, value) elements for data to be uploaded as files\n Return (content_type, body...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _put_or_post_multipart 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 _put_or_post_multipart API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
encodes the data as a multipart form and PUTs or POSTs to the url the response is parsed as JSON and the returns the resulting data structure
"encodes the data as a multipart form and PUTs or POSTs to the url\n the response is parsed as JSON and the returns the resulting data structure"
25
false
Captricity/captools
_put_or_post_multipart
6,291
LDU_FT/dahlia/sqlalchemy-imageattach/from_blob
LDU_FT
[ "<BEGIN>\n## `readlines`", "Reads until EOF using :meth:`readline()`.", " :param sizehint: if it's present, instead of reading up to EOF,\n whole lines totalling approximately ``sizehint``\n bytes (or more to accommodate a final whole line)\n :type s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_blob API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_blob API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Stores the ``blob`` (byte string) for the image into the ``store``. :param blob: the byte string for the image :type blob: :class:`str` :param store: the storage to store the image data. :data:`~sqlalchemy_imageattach.context.current_store` by...
"Stores the ``blob`` (byte string) for the image\n into the ``store``.\n\n :param blob: the byte string for the image\n :type blob: :class:`str`\n :param store: the storage to store the image data.\n :data:`~sqlalchemy_imageattach.context.current_store`\n ...
145
false
dahlia/sqlalchemy-imageattach
from_blob
6,292
LDU_FT/williballenthin/python-pyqt5-hexview/get_context_menu
LDU_FT
[ "<BEGIN>\n## `compute_region_border`", "given the buffer start and end indices of a range, compute the border edges\n that should be drawn to enclose the range.", " this function currently assumes 0x10 length rows.\n the result is a dictionary from buffer index to Cell instance.\n the Cell instanc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_menu API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_menu API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
override this method to customize the context menu
"override this method to customize the context menu"
21
false
williballenthin/python-pyqt5-hexview
get_context_menu
6,293
LDU_FT/andylockran/heatmiserV3/set_target_temp
LDU_FT
[ "<BEGIN>\n## `extract_bits`", "Extras the 4 bits, XORS the message data, and does table lookups.\n<END>", "<BEGIN>\n## `_hm_send_msg`", "This is the only interface to the serial connection.\n<END>", "<BEGIN>\n## `_hm_read_address`", "Reads from the DCB and maps to yaml config file.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_target_temp API. 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 set_target_temp API. 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...
Sets the target temperature, to the requested int
"Sets the target temperature, to the requested int"
10
false
andylockran/heatmiserV3
set_target_temp
6,294
LDU_FT/dwavesystems/penaltymodel/message
LDU_FT
[ "<BEGIN>\n## `get_penalty_model`", "Factory function for penaltymodel_maxgap.", " Args:\n specification (penaltymodel.Specification): The specification\n for the desired penalty model.", " Returns:\n :class:`penaltymodel.PenaltyModel`: Penalty model with the given specification....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Determine the energy of the elimination tree. Args: tree (dict): The current elimination tree spins (dict): The current fixed spins subtheta (dict): Theta with spins fixed. auxvars (dict): The auxiliary variables for the given spins. Returns: ...
"Determine the energy of the elimination tree.\n\n Args:\n tree (dict): The current elimination tree\n spins (dict): The current fixed spins\n subtheta (dict): Theta with spins fixed.\n auxvars (dict): The auxiliary variables for the given spins.\n\n Returns:\n ...
186
false
dwavesystems/penaltymodel
message
6,295
LDU_FT/ucsb-cs-education/hairball/sprite_changes
LDU_FT
[ "<BEGIN>\n## `main`", "The entrypoint for the hairball command installed via setup.py.\n<END>", "<BEGIN>\n## `path_to_key`", "Return the sha1sum (key) belonging to the file at filepath.\n<END>", "<BEGIN>\n## `key_to_path`", "Return the fullpath to the file with sha1sum key.\n<END>", "<BEGIN>\n## `load`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sprite_changes API. 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 sprite_changes API. 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...
Return a mapping of attributes to their initilization state.
"Return a mapping of attributes to their initilization state."
90
false
ucsb-cs-education/hairball
sprite_changes
6,296
LDU_FT/Mindwerks/worldengine/from_dimensions
LDU_FT
[ "<BEGIN>\n## `anti_alias`", "Execute the anti_alias operation steps times on the given map\n<END>", "<BEGIN>\n## `count_neighbours`", "Count how many neighbours of a coordinate are set to one.\n This uses the same principles as anti_alias, compare comments there.\n<END>", "<BEGIN>\n## `_calculate`", "S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dimensions API. 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 from_dimensions API. 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...
Creates an empty image according to width, height and channels. Channels must be 1 (grayscale/palette), 2 (LA), 3 (RGB) or 4 (RGBA). The image will be filled with black, transparent pixels.
"Creates an empty image according to width, height and channels.\r\n Channels must be 1 (grayscale/palette), 2 (LA), 3 (RGB) or 4 (RGBA).\r\n The image will be filled with black, transparent pixels."
63
false
Mindwerks/worldengine
from_dimensions
6,297
LDU_FT/google/pyringe/proxyval
LDU_FT
[ "<BEGIN>\n## `StartExecServer`", "Opens a socket in /tmp, execs data from it and writes results back.\n<END>", "<BEGIN>\n## `ThreadsWithRunningExecServers`", "Returns a list of tids of inferior threads with open exec servers.\n<END>", "<BEGIN>\n## `Backtrace`", "Get a backtrace of the current position.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the proxyval API. 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 proxyval API. 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...
Support for new-style classes. Currently we just locate the dictionary using a transliteration to python of _PyObject_GetDictPtr, ignoring descriptors
"Support for new-style classes.\n\n Currently we just locate the dictionary using a transliteration to\n python of _PyObject_GetDictPtr, ignoring descriptors"
142
false
google/pyringe
proxyval
6,298
LDU_FT/lingthio/Flask-User/find_user_emails
LDU_FT
[ "<BEGIN>\n## `send_email_message`", "Send email message via Flask-Sendmail.", " Args:\n recipient: Email address or tuple of (Name, Email-address).\n subject: Subject line.\n html_message: The message body in HTML.\n text_message: The message body in plain text...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_user_emails API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_user_emails API. 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 all the UserEmail object belonging to a user.
"Find all the UserEmail object belonging to a user."
186
false
lingthio/Flask-User
find_user_emails
6,299
LDU_FT/pysal/giddy/plot_vectors
LDU_FT
[ "<BEGIN>\n## `is_component`", "Check if the set of ids form a single connected component", " Parameters\n ----------", " w : spatial weights boject", " ids : list\n identifiers of units that are tested to be a single connected\n component", " Returns\n -------", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_vectors API. 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 plot_vectors API. 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...
Plot vectors of positional transition of LISA values within quadrant in scatterplot in a polar plot. Parameters ---------- ax : Matplotlib Axes instance, optional If given, the figure will be created inside this axis. Default =None. arrows : boolean, opti...
"Plot vectors of positional transition of LISA values\n within quadrant in scatterplot in a polar plot.\n\n Parameters\n ----------\n ax : Matplotlib Axes instance, optional\n If given, the figure will be created inside this axis.\n Default =None.\n arrows : bool...
132
false
pysal/giddy
plot_vectors
6,300
LDU_FT/googleapis/gax-python/get_operation
LDU_FT
[ "<BEGIN>\n## `fill`", "Add the metrics headers known to GAX.", " Return an OrderedDict with all of the metrics headers provided to\n this function, as well as the metrics known to GAX (such as its own\n version, the GRPC version, etc.).\n<END>", "<BEGIN>\n## `stringify`", "Convert the provided metr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_operation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_operation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. Example: >>> from google.gapic.longrunning import operations_client >>> api = operations_client.OperationsClient() ...
"Gets the latest state of a long-running operation. Clients can use this\n method to poll the operation result at intervals as recommended by the API\n service.\n\n Example:\n >>> from google.gapic.longrunning import operations_client\n >>> api = operations_client.OperationsClien...
161
false
googleapis/gax-python
get_operation
6,301
LDU_FT/wonambi-python/wonambi/_convert_timestr_to_seconds
LDU_FT
[ "<BEGIN>\n## `write_mnefiff`", "Export data to MNE using FIFF format.", " Parameters\n ----------\n data : instance of ChanTime\n data with only one trial\n filename : path to file\n file to export to (include '.mat')", " Notes\n -----\n It cannot store data larger than 2 GB...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_timestr_to_seconds 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 _convert_timestr_to_seconds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Convert input from user about time string to an absolute time for the recordings. Parameters ---------- time_str : str time information as '123' or '22:30' or '22:30:22' rec_start: instance of datetime absolute start time of the recordings. Returns ------- int s...
"Convert input from user about time string to an absolute time for\n the recordings.\n\n Parameters\n ----------\n time_str : str\n time information as '123' or '22:30' or '22:30:22'\n rec_start: instance of datetime\n absolute start time of the recordings.\n\n Returns\n -------\n ...
1,345
true
wonambi-python/wonambi
_convert_timestr_to_seconds
6,302
LDU_FT/iqbal-lab-org/cluster_vcf_records/make_one_merged_vcf_record_for_gramtools
LDU_FT
[ "<BEGIN>\n## `get_sample_name_from_vcf_header_lines`", "Given a list of header lines (made by either\n vcf_file_to_dict() or vcf_file_to_list()),\n returns the sample name. Assumes only one sample\n in the file.\n Raises error if badly formatted #CHROM line.\n Returns None if no #CHROM line found\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_one_merged_vcf_record_for_gramtools API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_one_merged_vcf_record_for_gramtools API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
Returns one new VcfRecord that can be used as input to gramtools. It pads the reference if necessary, and lists all the variants (including all combinations of SNPs) in the ALT field of the VcfRecord. Note: gramtools needs PASS in the filter column, so the returned VcfRecord alwa...
"Returns one new VcfRecord that can be used as input to gramtools.\n It pads the reference if necessary, and lists all the variants\n (including all combinations of SNPs) in the ALT field of the\n VcfRecord.\n Note: gramtools needs PASS in the filter column, so the returned\n VcfRecor...
59
false
iqbal-lab-org/cluster_vcf_records
make_one_merged_vcf_record_for_gramtools
6,303
LDU_FT/paddycarey/dweepy/_listen_for_dweets_from_response
LDU_FT
[ "<BEGIN>\n## `_request`", "Make HTTP request, raising an exception if it fails.\n<END>", "<BEGIN>\n## `dweet_for`", "Send a dweet to dweet.io for a thing with a known name\n<END>", "<BEGIN>\n## `remove_lock`", "Remove a lock (no matter what it's connected to).\n<END>", "<BEGIN>\n## `lock`", "Lock a th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _listen_for_dweets_from_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _listen_for_dweets_from_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Yields dweets as received from dweet.io's streaming API
"Yields dweets as received from dweet.io's streaming API"
18
false
paddycarey/dweepy
_listen_for_dweets_from_response
6,304
LDU_FT/SatelliteQE/nailgun/refresh_manifest
LDU_FT
[ "<BEGIN>\n## `main`", "Create an identical user account on a pair of satellites.\n<END>", "<BEGIN>\n## `get_organization_id`", "Return the ID of the organization with label ``label``.", " :param server_config: A dict of information about the server being talked\n to. The dict should include the ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_manifest API. 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 refresh_manifest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Refresh previously imported manifest for Red Hat provider. :param synchronous: What should happen if the server returns an HTTP 202 (accepted) status code? Wait for the task to complete if ``True``. Immediately return the server's response otherwise. :param kwargs: Arguments to ...
"Refresh previously imported manifest for Red Hat provider.\n\n :param synchronous: What should happen if the server returns an HTTP\n 202 (accepted) status code? Wait for the task to complete if\n ``True``. Immediately return the server's response otherwise.\n :param kwargs: Argumen...
695
false
SatelliteQE/nailgun
refresh_manifest
6,305
LDU_FT/arogozhnikov/einops/reduce
LDU_FT
[ "<BEGIN>\n## `parse_expression`", "Parses an indexing expression (for a single tensor).\n Checks uniqueness of names, checks usage of '...' (allowed only once)\n Returns set of all used identifiers and a list of axis groups\n<END>", "<BEGIN>\n## `_check_elementary_axis_name`", "Valid elementary axes con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reduce API. 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 reduce API. 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 ...
einops.reduce provides combination of reordering and reduction using reader-friendly notation. Examples for reduce operation: >>> x = np.random.randn(100, 32, 64) >>> # perform max-reduction on the first axis >>> y = reduce(x, 't b c -> b c', 'max') >>> # same as previous, but with clearer...
"einops.reduce provides combination of reordering and reduction using reader-friendly notation.\n \n Examples for reduce operation:\n \n >>> x = np.random.randn(100, 32, 64)\n >>> # perform max-reduction on the first axis\n >>> y = reduce(x, 't b c -> b c', 'max')\n >>> # same as previous, but with...
32
false
arogozhnikov/einops
reduce
6,306
LDU_FT/BlendedSiteGenerator/Blended/convert_text
LDU_FT
[ "<BEGIN>\n## `import_wp`", "Imports A WordPress export and converts it to a Blended site\n<END>", "<BEGIN>\n## `import_blogger`", "Imports A Blogger export and converts it to a Blended site\n<END>", "<BEGIN>\n## `convert_text`", "Convert the post/page content using the converters\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert the post/page content using the converters
"Convert the post/page content using the converters"
24
false
BlendedSiteGenerator/Blended
convert_text
6,307
LDU_FT/jantman/versionfinder/_find_git_info
LDU_FT
[ "<BEGIN>\n## `find_package_version`", "Find the installed version of the specified package, and as much\n information about it as possible (source URL, git ref or tag, etc.)", " This attempts, to the best of our ability, to find out if the package\n was installed from git, and if so, provid...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_git_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 _find_git_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...
Find information about the git repository, if this file is in a clone. :param gitdir: path to the git repo's .git directory :type gitdir: str :returns: information about the git clone :rtype: dict
"Find information about the git repository, if this file is in a clone.\n\n :param gitdir: path to the git repo's .git directory\n :type gitdir: str\n :returns: information about the git clone\n :rtype: dict"
51
false
jantman/versionfinder
_find_git_info
6,308
LDU_FT/polyaxon/polyaxon/split_query
LDU_FT
[ "<BEGIN>\n## `on_failure`", "Update query status and send email notification to a user\n<END>", "<BEGIN>\n## `on_success`", "Send email notification and a file, if requested to do so by a user\n<END>", "<BEGIN>\n## `user_write_events`", "Return event types where use acted on an object.", " The wr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Split a query into different expressions. Example: name:bla, foo:<=1
"Split a query into different expressions.\n\n Example:\n name:bla, foo:<=1"
270
false
polyaxon/polyaxon
split_query
6,309
LDU_FT/quasipedia/swaggery/check_no_multiple_handlers
LDU_FT
[ "<BEGIN>\n## `operations`", "Decorator for marking Resource methods as HTTP operations.", " This decorator does a number of different things:\n - It transfer onto itself docstring and annotations from the decorated\n method, so as to be \"transparent\" with regards to introspection.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_no_multiple_handlers 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 check_no_multiple_handlers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
The same verb cannot be repeated on several endpoints.
"The same verb cannot be repeated on several endpoints."
67
false
quasipedia/swaggery
check_no_multiple_handlers
6,310
LDU_FT/idlesign/django-dev/get_apps
LDU_FT
[ "<BEGIN>\n## `configure_logging`", "Switches on logging at a given level.", " :param verbosity_lvl:\n :param format:\n<END>", "<BEGIN>\n## `_run_shell_command`", "Runs the given shell command.", " :param command:\n :return: bool Status\n<END>", "<BEGIN>\n## `run_manage_comman...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_apps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_apps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns a list of names of available Django applications, Optionally filters it using `only`. :param list|None only: a list on apps names to to filter all available apps against :raises: DjangoDevException on errors :rtype: list :return: list of apps names
"Returns a list of names of available Django applications,\n Optionally filters it using `only`.\n\n :param list|None only: a list on apps names to to filter all available apps against\n :raises: DjangoDevException on errors\n :rtype: list\n :return: list of apps names"
45
false
idlesign/django-dev
get_apps
6,311
LDU_FT/webrecorder/pywb/load
LDU_FT
[ "<BEGIN>\n## `read_last_line`", "Read last line from a seekable file. Start reading\n from buff before end of file, and double backwards seek\n until line break is found. If reached beginning of file\n (no lines), just return whole file\n<END>", "<BEGIN>\n## `load`", "Load a file-like reader from the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load a file-like reader over http using range requests and an optional cookie created via a cookie_maker
"Load a file-like reader over http using range requests\n and an optional cookie created via a cookie_maker"
227
false
webrecorder/pywb
load
6,312
LDU_FT/ohenrik/tabs/describe
LDU_FT
[ "<BEGIN>\n## `post_process`", "Applies the list of post processing methods if any\n<END>", "<BEGIN>\n## `describe`", "Prints a description of the table based on the provided\n documentation and post processors\n<END>", "<BEGIN>\n## `describe_processors`", "List all postprocessors and their description\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe API. 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 describe API. 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...
Prints a description of the table based on the provided documentation and post processors
"Prints a description of the table based on the provided\n documentation and post processors"
30
false
ohenrik/tabs
describe
6,313
LDU_FT/crate/crate-python/match
LDU_FT
[ "<BEGIN>\n## `coerce`", "Convert plain dictionaries to MutableDict.\n<END>", "<BEGIN>\n## `_raise_for_status`", "make sure that only crate.exceptions are raised that are defined in\n the DB-API specification\n<END>", "<BEGIN>\n## `_server_url`", "Normalizes a given server string to an url", " >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. 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 match API. 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...
Generates match predicate for fulltext search :param column: A reference to a column or an index, or a subcolumn, or a dictionary of subcolumns with boost values. :param term: The term to match against. This string is analyzed and the resulting tokens are compared to the index. :param match_typ...
"Generates match predicate for fulltext search\n\n :param column: A reference to a column or an index, or a subcolumn, or a\n dictionary of subcolumns with boost values.\n\n :param term: The term to match against. This string is analyzed and the\n resulting tokens are compared to the index.\n\n :param ...
81
false
crate/crate-python
match
6,314
LDU_FT/matthieugouel/gibica/interpret
LDU_FT
[ "<BEGIN>\n## `append_scope`", "Create a new scope in the current frame.\n<END>", "<BEGIN>\n## `pop_scope`", "Delete the current scope in the current scope.\n<END>", "<BEGIN>\n## `visit`", "Visit the right method of the child class according to the node.\n<END>", "<BEGIN>\n## `peek`", "Get the next cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interpret API. 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 interpret API. 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...
Generic entrypoint of `Interpreter` class.
"Generic entrypoint of `Interpreter` class."
56
false
matthieugouel/gibica
interpret
6,315
LDU_FT/goerz/clusterjob/cmd_status
LDU_FT
[ "<BEGIN>\n## `resource_headers`", "Given a :class:`~clusterjob.JobScript` instance, return a list of\n lines that encode the resource requirements, to be added at the top of\n the rendered job script\n<END>", "<BEGIN>\n## `replace_body_vars`", "Given a multiline string that is the body of the jo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_status API. 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 cmd_status API. 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...
Given a :class:`~clusterjob.AsyncResult` instance, return a command that queries the scheduler for the job status, as a list of command arguments. If ``finished=True``, the scheduler is queried via ``sacct``. Otherwise, ``squeue`` is used.
"Given a :class:`~clusterjob.AsyncResult` instance, return a command\n that queries the scheduler for the job status, as a list of command\n arguments. If ``finished=True``, the scheduler is queried via\n ``sacct``. Otherwise, ``squeue`` is used."
69
false
goerz/clusterjob
cmd_status
6,316
LDU_FT/avelkoski/FRB/search
LDU_FT
[ "<BEGIN>\n## `all_releases`", "Function to request all releases of economic data.\n `<https://research.stlouisfed.org/docs/api/fred/releases.html>`_", " :arg str response_type: File extension of response. Options are 'xml', 'json',\n 'dict','df','numpy','csv','tab,'pipe'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Function to request economic data series that match search text. `<https://research.stlouisfed.org/docs/api/fred/series_search.html>`_ :arg str search_text: The words to match against economic data series. Required. :arg str response_type: File extension of response. Options are 'xml', 'json', ...
"Function to request economic data series that match search text.\n `<https://research.stlouisfed.org/docs/api/fred/series_search.html>`_\n\n :arg str search_text: The words to match against economic data series. Required.\n :arg str response_type: File extension of response. Options are 'xml', 'js...
40
false
avelkoski/FRB
search
6,317
LDU_FT/NetworkAutomation/jaide/open_connection
LDU_FT
[ "<BEGIN>\n## `check_instance`", "Wrapper that tests the type of _session.", " Purpose: This decorator function is used by all functions within\n | the Jaide class that interact with a device to ensure the\n | proper session type is in use. If it is not, it will\n | ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_connection API. 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 open_connection API. 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...
Open a Jaide session with the device. To open a Jaide session to the device, and run the appropriate function against the device. Arguments for the downstream function are passed through. @param ip: String of the IP or hostname of the device to connect to. @type ip: str @param username: The st...
"Open a Jaide session with the device.\n\n To open a Jaide session to the device, and run the appropriate function\n against the device. Arguments for the downstream function are passed\n through.\n\n @param ip: String of the IP or hostname of the device to connect to.\n @type ip: str\n @param usernam...
191
false
NetworkAutomation/jaide
open_connection
6,318
LDU_FT/nion-software/nionswift-instrumentation-kit/handle_record_clicked
LDU_FT
[ "<BEGIN>\n## `initialize_state`", "Call this to initialize the state of the UI after everything has been connected.\n<END>", "<BEGIN>\n## `handle_play_clicked`", "Call this when the user clicks the play/pause button.\n<END>", "<BEGIN>\n## `set_probe_position`", "Set the probe position, in normalized coord...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_record_clicked 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 handle_record_clicked API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Call this when the user clicks the record button.
"Call this when the user clicks the record button."
37
false
nion-software/nionswift-instrumentation-kit
handle_record_clicked
6,319
LDU_FT/arogozhnikov/einops/parse_expression
LDU_FT
[ "<BEGIN>\n## `parse_expression`", "Parses an indexing expression (for a single tensor).\n Checks uniqueness of names, checks usage of '...' (allowed only once)\n Returns set of all used identifiers and a list of axis groups\n<END>", "<BEGIN>\n## `_check_elementary_axis_name`", "Valid elementary axes con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_expression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_expression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parses an indexing expression (for a single tensor). Checks uniqueness of names, checks usage of '...' (allowed only once) Returns set of all used identifiers and a list of axis groups
"Parses an indexing expression (for a single tensor).\n Checks uniqueness of names, checks usage of '...' (allowed only once)\n Returns set of all used identifiers and a list of axis groups"
32
false
arogozhnikov/einops
parse_expression
6,320
LDU_FT/DaveMcEwan/ndim/angle_diff
LDU_FT
[ "<BEGIN>\n## `pt_on_bezier_curve`", "Return point at t on bezier curve defined by control points P.\n<END>", "<BEGIN>\n## `pts_on_bezier_curve`", "Return list N+1 points representing N line segments on bezier curve\n defined by control points P.\n<END>", "<BEGIN>\n## `bezier_curve_approx_len`", "Return a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the angle_diff API. 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 angle_diff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return difference in angle from start_a to end_a. Direction follows the right-hand-rule so positive is counter-clockwise.
"Return difference in angle from start_a to end_a.\nDirection follows the right-hand-rule so positive is counter-clockwise."
40
false
DaveMcEwan/ndim
angle_diff
6,321
LDU_FT/ns1/ns1-python/loadFromFile
LDU_FT
[ "<BEGIN>\n## `delete`", "Delete the record from the zone, including all advanced configuration,\n meta data, etc.\n<END>", "<BEGIN>\n## `update`", "Update record configuration. Pass list of keywords and their values to\n update. For the list of keywords available for zone configuration, see\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadFromFile API. 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 loadFromFile API. 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...
Load JSON config file from disk at the given path :param str path: path to config file
"Load JSON config file from disk at the given path\n\n :param str path: path to config file"
159
false
ns1/ns1-python
loadFromFile
6,322
LDU_FT/Damgaard/PyImgur/get_user
LDU_FT
[ "<BEGIN>\n## `convert_general`", "Take a python object and convert it to the format Imgur expects.\n<END>", "<BEGIN>\n## `to_imgur_format`", "Convert the parameters to the format Imgur expects.\n<END>", "<BEGIN>\n## `_get_album_or_image`", "Return a gallery image/album depending on what the json represent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return a User object for this username. :param username: The name of the user we want more information about.
"Return a User object for this username.\n\n :param username: The name of the user we want more information about."
139
false
Damgaard/PyImgur
get_user
6,323
LDU_FT/Alir3z4/django-databrowse/field_dict
LDU_FT
[ "<BEGIN>\n## `field_dict`", "Helper function that returns a dictionary of all fields in the given\n model. If self.field_filter is set, it only includes the fields that\n match the filter.\n<END>", "<BEGIN>\n## `root`", "Handles main URL routing for the databrowse app.", " `url` is the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field_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 extrac...
Helper function that returns a dictionary of all DateFields or DateTimeFields in the given model. If self.field_names is set, it takes that into account when building the dictionary.
"Helper function that returns a dictionary of all DateFields or\n DateTimeFields in the given model. If self.field_names is set,\n it takes that into account when building the dictionary."
22
false
Alir3z4/django-databrowse
field_dict
6,324
LDU_FT/benley/butcher/getvar
LDU_FT
[ "<BEGIN>\n## `_metahash`", "Checksum hash of all the inputs to this rule.", " Output is invalid until collect_srcs and collect_deps have been run.", " In theory, if this hash doesn't change, the outputs won't change\n either, which makes it useful for caching.\n<END>", "<BEGIN>\n## `col...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getvar API. 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 getvar API. 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 ...
Scan an ast object for targetvar and return its value. Only handles single direct assignment of python literal types. See docs on ast.literal_eval for more info: http://docs.python.org/2/library/ast.html#ast.literal_eval Args: syntree: ast.Module object targetvar: name of global variable t...
"Scan an ast object for targetvar and return its value.\n\n Only handles single direct assignment of python literal types. See docs on\n ast.literal_eval for more info:\n http://docs.python.org/2/library/ast.html#ast.literal_eval\n\n Args:\n syntree: ast.Module object\n targetvar: name of global v...
118
false
benley/butcher
getvar
6,325
LDU_FT/ungarj/tilematrix/_global_tiles_from_bounds
LDU_FT
[ "<BEGIN>\n## `tile`", "Return Tile object of this TilePyramid.", " - zoom: zoom level\n - row: tile matrix row\n - col: tile matrix column\n<END>", "<BEGIN>\n## `matrix_width`", "Tile matrix width (number of columns) at zoom level.", " - zoom: zoom level\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _global_tiles_from_bounds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _global_tiles_from_bounds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Return also Tiles if bounds cross the antimeridian.
"Return also Tiles if bounds cross the antimeridian."
71
false
ungarj/tilematrix
_global_tiles_from_bounds
6,326
LDU_FT/SwissDataScienceCenter/renku-python/_handle_github
LDU_FT
[ "<BEGIN>\n## `_jsonld`", "Return formatted graph in JSON-LD ``format`` function.\n<END>", "<BEGIN>\n## `_rdf2dot_simple`", "Create a simple graph of processes and artifacts.\n<END>", "<BEGIN>\n## `_rdf2dot_reduced`", "A reduced dot graph.", " Adapted from original source:\n https://rdflib.readthed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_github API. 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 _handle_github API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Handle exception and submit it as GitHub issue.
"Handle exception and submit it as GitHub issue."
121
false
SwissDataScienceCenter/renku-python
_handle_github
6,327
LDU_FT/fedora-infra/fedmsg/load_config
LDU_FT
[ "<BEGIN>\n## `set_high_water_mark`", "Set a high water mark on the zmq socket. Do so in a way that is\n cross-compatible with zeromq2 and zeromq3.\n<END>", "<BEGIN>\n## `set_tcp_keepalive`", "Set a series of TCP keepalive options on the socket if\n and only if\n 1) they are specified explicitly in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 extra...
Setup a runtime config dict by integrating the following sources (ordered by precedence): - defaults (unless disable_defaults = True) - config file - command line arguments If the ``fedmsg_command`` argument is False, no command line arguments are checked.
"Setup a runtime config dict by integrating the following sources\n (ordered by precedence):\n\n - defaults (unless disable_defaults = True)\n - config file\n - command line arguments\n\n If the ``fedmsg_command`` argument is False, no command line arguments are\n checked."
248
false
fedora-infra/fedmsg
load_config
6,328
LDU_FT/Unidata/MetPy/_check_and_flip
LDU_FT
[ "<BEGIN>\n## `warn_deprecated`", "Display deprecation warning in a standard way.", " Parameters\n ----------\n since : str\n The release at which this API became deprecated.", " message : str, optional\n Override the default deprecation message. The format\n specifier `%(name...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_and_flip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_and_flip API. 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...
Transpose array or list of arrays if they are 2D.
"Transpose array or list of arrays if they are 2D."
1,193
true
Unidata/MetPy
_check_and_flip
6,329
LDU_FT/JNRowe/upoints/tokml
LDU_FT
[ "<BEGIN>\n## `import_locations`", "Parse zoneinfo zone description data files.", " ``import_locations()`` returns a list of :class:`Zone` objects.", " It expects data files in one of the following formats::", " AN\t+1211-06900\tAmerica/Curacao\n AO\t-0848+01314\tAfrica/Lu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokml API. 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 tokml API. 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...
Generate a KML Placemark element subtree. Returns: etree.Element: KML Placemark element
"Generate a KML Placemark element subtree.\n\n Returns:\n etree.Element: KML Placemark element"
438
false
JNRowe/upoints
tokml
6,330
LDU_FT/divio/djangocms-text-ckeditor/get_editor_widget
LDU_FT
[ "<BEGIN>\n## `get_editor_widget`", "Returns the Django form Widget to be used for\n the text area\n<END>", "<BEGIN>\n## `get_form_class`", "Returns a subclass of Form to be used by this plugin\n<END>", "<BEGIN>\n## `_plugin_tags_to_html`", "Convert plugin object 'tags' into the form for public site...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_editor_widget API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_editor_widget API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns the Django form Widget to be used for the text area
"Returns the Django form Widget to be used for\n the text area"
11
false
divio/djangocms-text-ckeditor
get_editor_widget
6,331
LDU_FT/IAMconsortium/pyam/check_internal_consistency
LDU_FT
[ "<BEGIN>\n## `read_ix`", "Read timeseries data from an ixmp object", " Parameters\n ----------\n ix: ixmp.TimeSeries or ixmp.Scenario\n this option requires the ixmp package as a dependency\n kwargs: arguments passed to ixmp.TimeSeries.timeseries()\n<END>", "<BEGIN>\n## `requires_package`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_internal_consistency 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 check_internal_consistency API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Check whether the database is internally consistent We check that all variables are equal to the sum of their sectoral components and that all the regions add up to the World total. If the check is passed, None is returned, otherwise a dictionary of inconsistent variables is returned. ...
"Check whether the database is internally consistent\n\n We check that all variables are equal to the sum of their sectoral\n components and that all the regions add up to the World total. If\n the check is passed, None is returned, otherwise a dictionary of\n inconsistent variables is retur...
256
false
IAMconsortium/pyam
check_internal_consistency
6,332
LDU_FT/JelleAalbers/multihist/axis_names_without
LDU_FT
[ "<BEGIN>\n## `from_histogram`", "Make a Hist1D from a numpy bin_edges + histogram pair\n :param histogram: Initial histogram\n :param bin_edges: Bin edges of histogram. Must be one longer than length of histogram\n :param axis_names: Ignored. Sorry :-)\n :return:\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the axis_names_without 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 axis_names_without 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...
Return axis names without axis, or None if axis_names is None
"Return axis names without axis, or None if axis_names is None"
57
false
JelleAalbers/multihist
axis_names_without
6,333
LDU_FT/maxpumperla/elephas/from_labeled_point
LDU_FT
[ "<BEGIN>\n## `add_params`", "Add two lists of parameters one by one", " :param param_list_left: list of numpy arrays\n :param param_list_right: list of numpy arrays\n :return: list of numpy arrays\n<END>", "<BEGIN>\n## `subtract_params`", "Subtract two lists of parameters", " :param param_list...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_labeled_point 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 from_labeled_point 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 a LabeledPoint RDD back to a pair of numpy arrays :param rdd: LabeledPoint RDD :param categorical: boolean, if labels should be one-hot encode when returned :param nb_classes: optional int, indicating the number of class labels :return: pair of numpy arrays, features and labels
"Convert a LabeledPoint RDD back to a pair of numpy arrays\n\n :param rdd: LabeledPoint RDD\n :param categorical: boolean, if labels should be one-hot encode when returned\n :param nb_classes: optional int, indicating the number of class labels\n :return: pair of numpy arrays, features and labels"
87
false
maxpumperla/elephas
from_labeled_point
6,334
LDU_FT/edx/edx-celeryutils/_truncate_to_field
LDU_FT
[ "<BEGIN>\n## `mark_resolved`", "Mark the specified task as resolved in the FailedTask table.", " If more than one record exists with the specified task id, they will all be\n marked resolved.\n<END>", "<BEGIN>\n## `_truncate_to_field`", "Shorten data to fit in the specified model field.", " If th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _truncate_to_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _truncate_to_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Shorten data to fit in the specified model field. If the data were too big for the field, it would cause a failure to insert, so we shorten it, truncating in the middle (because valuable information often shows up at the end.
"Shorten data to fit in the specified model field.\n\n If the data were too big for the field, it would cause a failure to\n insert, so we shorten it, truncating in the middle (because\n valuable information often shows up at the end."
33
false
edx/edx-celeryutils
_truncate_to_field
6,335
LDU_FT/empymod/empymod/check_solution
LDU_FT
[ "<BEGIN>\n## `check_ab`", "r\"\"\"Check source-receiver configuration.", " This check-function is called from one of the modelling routines in\n :mod:`model`. Consult these modelling routines for a detailed description\n of the input parameters.", " Parameters\n ----------\n ab : int\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_solution API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_solution API. 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...
r"""Check required solution with parameters. This check-function is called from one of the modelling routines in :mod:`model`. Consult these modelling routines for a detailed description of the input parameters. Parameters ---------- solution : str String to define analytical solution....
"r\"\"\"Check required solution with parameters.\n\n This check-function is called from one of the modelling routines in\n :mod:`model`. Consult these modelling routines for a detailed description\n of the input parameters.\n\n Parameters\n ----------\n solution : str\n String to define analyti...
570
false
empymod/empymod
check_solution
6,336
LDU_FT/softlayer/softlayer-python/cli
LDU_FT
[ "<BEGIN>\n## `cli`", "List package items used for ordering.", " The item keyNames listed can be used with `slcli order place` to specify\n the items that are being ordered in the package.", " .. Note::\n Items with a numbered category, like disk0 or gpu0, can be included\n multiple time...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
host order options for a given dedicated host. To get a list of available backend routers see example: slcli dh create-options --datacenter dal05 --flavor 56_CORES_X_242_RAM_X_1_4_TB
"host order options for a given dedicated host.\n\n To get a list of available backend routers see example:\n slcli dh create-options --datacenter dal05 --flavor 56_CORES_X_242_RAM_X_1_4_TB"
1,375
true
softlayer/softlayer-python
cli
6,337
LDU_FT/rmax/scrapy-redis/bytes_to_str
LDU_FT
[ "<BEGIN>\n## `from_settings`", "Returns an instance from given settings.", " This uses by default the key ``dupefilter:<timestamp>``. When using the\n ``scrapy_redis.scheduler.Scheduler`` class, this method is not used as\n it needs to pass the spider name in the key.", " Parameter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bytes_to_str API. 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 bytes_to_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns a str if a bytes object is given.
"Returns a str if a bytes object is given."
38
false
rmax/scrapy-redis
bytes_to_str
6,338
LDU_FT/AndrewAnnex/SpiceyPy/ckobj
LDU_FT
[ "<BEGIN>\n## `_distribution_info`", "Creates the distribution name and the expected extension for the\n CSPICE package and returns it.", " :return (distribution, extension) tuple where distribution is the best\n guess from the strings available within the platform_urls list\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ckobj API. 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 ckobj API. 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...
Find the set of ID codes of all objects in a specified CK file. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckobj_c.html :param ck: Name of CK file. :type ck: str :param outCell: Optional user provided Spice Int cell. :type outCell: Optional spiceypy.utils.support_types.SpiceCell :...
"Find the set of ID codes of all objects in a specified CK file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckobj_c.html\n\n :param ck: Name of CK file.\n :type ck: str\n :param outCell: Optional user provided Spice Int cell.\n :type outCell: Optional spiceypy.utils.support_types.SpiceCe...
2,164
true
AndrewAnnex/SpiceyPy
ckobj
6,339
LDU_FT/empymod/empymod/tofile
LDU_FT
[ "<BEGIN>\n## `check_ab`", "r\"\"\"Check source-receiver configuration.", " This check-function is called from one of the modelling routines in\n :mod:`model`. Consult these modelling routines for a detailed description\n of the input parameters.", " Parameters\n ----------\n ab : int\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tofile API. 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 tofile API. 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 ...
r"""Save filter values to ascii-files. Store the filter base and the filter coefficients in separate files in the directory `path`; `path` can be a relative or absolute path. Examples -------- >>> import empymod >>> # Load a filter >>> filt = empymod.filters.wer...
"r\"\"\"Save filter values to ascii-files.\n\n Store the filter base and the filter coefficients in separate files\n in the directory `path`; `path` can be a relative or absolute path.\n\n Examples\n --------\n >>> import empymod\n >>> # Load a filter\n >>> filt = empymo...
570
false
empymod/empymod
tofile
6,340
LDU_FT/PonteIneptique/flask-github-proxy/make_ref
LDU_FT
[ "<BEGIN>\n## `AdvancedJsonify`", "Advanced Jsonify Response Maker", " :param data: Data\n :param status_code: Status_code\n :return: Response\n<END>", "<BEGIN>\n## `response`", "View representation of the object", " :param callback: Function to represent the error in view. Defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_ref API. 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 make_ref API. 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...
Make a branch on github :param branch: Name of the branch to create :return: Sha of the branch or self.ProxyError
"Make a branch on github\n\n :param branch: Name of the branch to create\n :return: Sha of the branch or self.ProxyError"
52
false
PonteIneptique/flask-github-proxy
make_ref
6,341
LDU_FT/thombashi/pytablewriter/get_extensions
LDU_FT
[ "<BEGIN>\n## `write_table`", "|write_table| with\n `Labeled Tab-separated Values (LTSV) <http://ltsv.org/>`__ format.\n Invalid characters in labels/data are removed.", " :raises pytablewriter.EmptyHeaderError: If the |headers| is empty.\n :Example:\n :ref:`example-ltsv-ta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_extensions API. 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_extensions API. 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...
:return: Available file extensions. :rtype: list :Example: .. code:: python >>> import pytablewriter as ptw >>> for name in ptw.TableWriterFactory.get_extensions(): ... print(name) ... csv h...
":return: Available file extensions.\n :rtype: list\n\n :Example:\n .. code:: python\n\n >>> import pytablewriter as ptw\n >>> for name in ptw.TableWriterFactory.get_extensions():\n ... print(name)\n ...\n csv\n ...
97
false
thombashi/pytablewriter
get_extensions
6,342
LDU_FT/Apstra/aeon-venos/_get_sz_info
LDU_FT
[ "<BEGIN>\n## `sudoers`", "This method is used to enable/disable bash sudo commands running\n through the guestshell virtual service. By default sudo access\n is prevented due to the setting in the 'sudoers' file. Therefore\n the setting must be disabled in the file to enable sudo commands."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_sz_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_sz_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 extr...
Obtains the current resource allocations, assumes that the guestshell is in an 'Activated' state
"Obtains the current resource allocations, assumes that the\n guestshell is in an 'Activated' state"
18
false
Apstra/aeon-venos
_get_sz_info
6,343
LDU_FT/agschwender/pilbox/region
LDU_FT
[ "<BEGIN>\n## `color_hex_to_dec_tuple`", "Converts a color from hexadecimal to decimal tuple, color can be in\n the following formats: 3-digit RGB, 4-digit ARGB, 6-digit RGB and\n 8-digit ARGB.\n<END>", "<BEGIN>\n## `region`", "Selects a sub-region of the image using the supplied rectangle,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the region API. 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 region API. 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 ...
Selects a sub-region of the image using the supplied rectangle, x, y, width, height.
"Selects a sub-region of the image using the supplied rectangle,\n x, y, width, height."
17
false
agschwender/pilbox
region
6,344
LDU_FT/NeuralEnsemble/lazyarray/reverse
LDU_FT
[ "<BEGIN>\n## `check_shape`", "Decorator for larray magic methods, to ensure that the operand has\n the same shape as the array.\n<END>", "<BEGIN>\n## `partial_shape`", "Calculate the size of the sub-array represented by `addr`\n<END>", "<BEGIN>\n## `reverse`", "Given a function f(a, b), returns f(b, a)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse API. 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 reverse API. 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...
Given a function f(a, b), returns f(b, a)
"Given a function f(a, b), returns f(b, a)"
15
false
NeuralEnsemble/lazyarray
reverse
6,345
LDU_FT/quintusdias/glymur/_validate_label
LDU_FT
[ "<BEGIN>\n## `version`", "Wrapper for opj_version library routine.\n<END>", "<BEGIN>\n## `check_error`", "Set a generic function as the restype attribute of all OpenJPEG\n functions that return a BOOL_TYPE value. This way we do not have to check\n for error status in each wrapping function and an excep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_label API. 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 _validate_label API. 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...
Label boxes can only be inside association, codestream headers, or compositing layer header boxes.
"Label boxes can only be inside association, codestream headers, or\n compositing layer header boxes."
550
false
quintusdias/glymur
_validate_label
6,346
LDU_FT/brbsix/pip-utils/find_owners
LDU_FT
[ "<BEGIN>\n## `is_dependant`", "Determine whether `package` is a dependant of `project_name`.\n<END>", "<BEGIN>\n## `find_owners`", "Return the package(s) that file belongs to.\n<END>", "<BEGIN>\n## `is_owner`", "Determine whether `abspath` belongs to `package`.\n<END>", "<BEGIN>\n## `long_description`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_owners API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_owners API. 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 the package(s) that file belongs to.
"Return the package(s) that file belongs to."
25
false
brbsix/pip-utils
find_owners
6,347
LDU_FT/tchellomello/python-amcrest/_generate_token
LDU_FT
[ "<BEGIN>\n## `record_config`", "rec_opt is the Record options listed as example below:", " +----------------------+--------+------------------------------------+\n | ParamName | Value | Description |\n +----------------------+--------+---------------------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_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 _generate_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...
Create authentation to use with requests.
"Create authentation to use with requests."
105
false
tchellomello/python-amcrest
_generate_token
6,348
LDU_FT/typemytype/booleanOperations/tValueForPoint
LDU_FT
[ "<BEGIN>\n## `_prepPointsForSegments`", "Move any off curves at the end of the contour\n to the beginning of the contour. This makes\n segmentation easier.\n<END>", "<BEGIN>\n## `_reversePoints`", "Reverse the points. This differs from the\n reversal point pen in RoboFab in that it doesn't\n worry...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tValueForPoint API. 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 tValueForPoint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
get a t values for a given point required: the point must be a point on the curve. in an overlap cause the point will be an intersection points wich is alwasy a point on the curve
"get a t values for a given point\n required:\n the point must be a point on the curve.\n in an overlap cause the point will be an intersection points wich is alwasy a point on the curve"
24
false
typemytype/booleanOperations
tValueForPoint
6,349
LDU_FT/dailymuse/oz/confidence
LDU_FT
[ "<BEGIN>\n## `db`", "Gets the SQLALchemy session for this request\n<END>", "<BEGIN>\n## `_sqlalchemy_on_finish`", "Closes the sqlalchemy transaction. Rolls back if an error occurred.\n<END>", "<BEGIN>\n## `_sqlalchemy_on_connection_close`", "Rollsback and closes the active session, since the client discon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confidence API. 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 confidence API. 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 a tuple (chi squared, confident) of the experiment. Confident is simply a boolean specifying whether we're > 95%% sure that the results are statistically significant.
"Returns a tuple (chi squared, confident) of the experiment. Confident\n is simply a boolean specifying whether we're > 95%% sure that the\n results are statistically significant."
58
false
dailymuse/oz
confidence
6,350
LDU_FT/ctuning/ck/select
LDU_FT
[ "<BEGIN>\n## `call_ck`", "Input: {\n Input for CK\n }", " Output: {\n return - return code = 0, if successful\n > 0, if error\n (error) - error text if return > 0", " (stdout) - stdout, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. 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 select API. 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 ...
Input: { dict - dict with values being dicts with 'name' as string to display and 'sort' as int (for ordering) (title) - print title (error_if_empty) - if 'yes' and Enter, make error (skip_sort) - if 'yes', do not sort array ...
"Input: {\n dict - dict with values being dicts with 'name' as string to display and 'sort' as int (for ordering)\n (title) - print title\n (error_if_empty) - if 'yes' and Enter, make error\n (skip_sort) - if 'yes', do not sort array\n ...
640
false
ctuning/ck
select
6,351
LDU_FT/pirate/mesh-networking/run
LDU_FT
[ "<BEGIN>\n## `_generate_MAC`", "generate a non-guaranteed-unique mac address\n<END>", "<BEGIN>\n## `run`", "runloop that gets triggered by node.start()\n reads new packets off the link and feeds them to recv()\n<END>", "<BEGIN>\n## `recv`", "run incoming packet through the filters, then place it in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
runloop that gets triggered by node.start() reads new packets off the link and feeds them to recv()
"runloop that gets triggered by node.start()\n reads new packets off the link and feeds them to recv()"
44
false
pirate/mesh-networking
run
6,352
LDU_FT/ryanpetrello/cleaver/add_path
LDU_FT
[ "<BEGIN>\n## `all_experiments`", "Retrieve every available experiment.", " Returns a list of ``cleaver.experiment.Experiment``s\n<END>", "<BEGIN>\n## `get_experiment`", "Retrieve an experiment by its name and variants (assuming it exists).", " :param name a unique string name for the experim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add a new path to the list of search paths. Return False if it does not exist. :param path: The new search path. Relative paths are turned into an absolute and normalized form. If the path looks like a file (not ending in `/`), the filename is stripped off. ...
"Add a new path to the list of search paths. Return False if it does\n not exist.\n\n :param path: The new search path. Relative paths are turned into an\n absolute and normalized form. If the path looks like a file (not\n ending in `/`), the filename is stripped off....
70
false
ryanpetrello/cleaver
add_path
6,353
LDU_FT/Hundemeier/sacn/make_data_packet
LDU_FT
[ "<BEGIN>\n## `activate_output`", "Activates a universe that's then starting to sending every second.\n See http://tsp.esta.org/tsp/documents/docs/E1-31-2016.pdf for more information\n :param universe: the universe to activate\n<END>", "<BEGIN>\n## `deactivate_output`", "Deactivates an existing s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_data_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_data_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 ...
Converts raw byte data to a sACN DataPacket. Note that the raw bytes have to come from a 2016 sACN Message. This does not support Sync Addresses, Force_Sync option and DMX Start code! :param raw_data: raw bytes as tuple or list :return: a DataPacket with the properties set like the raw bytes
"Converts raw byte data to a sACN DataPacket. Note that the raw bytes have to come from a 2016 sACN Message.\n This does not support Sync Addresses, Force_Sync option and DMX Start code!\n :param raw_data: raw bytes as tuple or list\n :return: a DataPacket with the properties set like the raw bytes...
32
false
Hundemeier/sacn
make_data_packet
6,354
LDU_FT/saeschdivara/ArangoPy/remove_by_example
LDU_FT
[ "<BEGIN>\n## `all`", "Returns all documents of the collection", " :param collection Collection instance\n :param skip The number of documents to skip in the query\n :param limit The maximal amount of documents to return. The skip is applied before the limit restriction.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_by_example API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_by_example API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This will find all documents in the collection that match the specified example object. Note: the limit attribute is not supported on sharded collections. Using it will result in an error. The options attributes waitForSync and limit can given yet without an ecapsulation into a json object. ...
"This will find all documents in the collection that match the specified example object.\n\n Note: the limit attribute is not supported on sharded collections. Using it will result in an error.\n The options attributes waitForSync and limit can given yet without an ecapsulation into a json object....
115
false
saeschdivara/ArangoPy
remove_by_example
6,355
LDU_FT/OCR-D/core/add_file
LDU_FT
[ "<BEGIN>\n## `xmllint_format`", "Pretty-print XML like ``xmllint`` does.", " Arguments:\n xml (string): Serialized XML\n<END>", "<BEGIN>\n## `download_to_directory`", "Download a file to the workspace.", " Early Shortcut: If url is a file://-URL and that file is already in the directory, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extracte...
Add a `OcrdFile </../../ocrd_models/ocrd_models.ocrd_file.html>`_. Arguments: fileGrp (string): Add file to ``mets:fileGrp`` with this ``USE`` attribute mimetype (string): url (string): ID (string): pageId (string): force (boolean): Whethe...
"Add a `OcrdFile </../../ocrd_models/ocrd_models.ocrd_file.html>`_.\n\n Arguments:\n fileGrp (string): Add file to ``mets:fileGrp`` with this ``USE`` attribute\n mimetype (string):\n url (string):\n ID (string):\n pageId (string):\n force (boolean...
176
false
OCR-D/core
add_file
6,356
LDU_FT/odlgroup/odl/complex_dtype
LDU_FT
[ "<BEGIN>\n## `is_valid_input_array`", "Test if ``x`` is a correctly shaped point array in R^d.\n<END>", "<BEGIN>\n## `is_valid_input_meshgrid`", "Test if ``x`` is a `meshgrid` sequence for points in R^d.\n<END>", "<BEGIN>\n## `out_shape_from_meshgrid`", "Get the broadcast output shape from a `meshgrid`.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complex_dtype API. 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 complex_dtype API. 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 complex counterpart of ``dtype`` if existing, else ``default``. Parameters ---------- dtype : Real or complex floating point data type. It can be given in any way the `numpy.dtype` constructor understands. default : Object to be returned if no complex counterpart is found...
"Return complex counterpart of ``dtype`` if existing, else ``default``.\n\n Parameters\n ----------\n dtype :\n Real or complex floating point data type. It can be given in any\n way the `numpy.dtype` constructor understands.\n default :\n Object to be returned if no complex counterpart...
4,047
true
odlgroup/odl
complex_dtype
6,357
LDU_FT/Zimbra-Community/python-zimbra/connect
LDU_FT
[ "<BEGIN>\n## `set_context_params`", "Set header context parameters. Refer to the top of <Zimbra\n Server-Root>/docs/soap.txt about specifics.", " The <format>-Parameter cannot be changed, because it is set by the\n implementing class.", " Should be called by implementing method to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Overrides HTTPSConnection.connect to specify TLS version
"Overrides HTTPSConnection.connect to specify TLS version"
48
false
Zimbra-Community/python-zimbra
connect
6,358
LDU_FT/rbit/pydtls/read
LDU_FT
[ "<BEGIN>\n## `decode_cert`", "Convert an X509 certificate into a Python dictionary", " This function converts the given X509 certificate into a Python dictionary\n in the manner established by the Python standard library's ssl module.\n<END>", "<BEGIN>\n## `_get_server_certificate`", "Retrieve a serve...
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 data from connection Read up to len bytes and return them. Arguments: len -- maximum number of bytes to read Return value: string containing read bytes
"Read data from connection\n\n Read up to len bytes and return them.\n Arguments:\n len -- maximum number of bytes to read\n\n Return value:\n string containing read bytes"
83
false
rbit/pydtls
read
6,359
LDU_FT/peopledoc/workalendar/is_working_day
LDU_FT
[ "<BEGIN>\n## `get_variable_days`", "Add Late Summer holiday (First Monday of September)\n<END>", "<BEGIN>\n## `iso_register`", "Registers Calendar class as country or region in IsoRegistry.", " Registered country must set class variables ``iso`` using this decorator.", " >>> from workalendar.core im...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_working_day API. 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 is_working_day API. 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...
Return True if it's a working day. In addition to the regular holidays, you can add exceptions. By providing ``extra_working_days``, you'll state that these dates **are** working days. By providing ``extra_holidays``, you'll state that these dates **are** holidays, even if not ...
"Return True if it's a working day.\n In addition to the regular holidays, you can add exceptions.\n\n By providing ``extra_working_days``, you'll state that these dates\n **are** working days.\n\n By providing ``extra_holidays``, you'll state that these dates **are**\n holidays, even...
106
false
peopledoc/workalendar
is_working_day
6,360
LDU_FT/KelSolaar/Oncilla/build_api
LDU_FT
[ "<BEGIN>\n## `reStructuredText_to_html`", "Outputs a reStructuredText file to html.", " :param input: Input reStructuredText file to convert.\n :type input: unicode\n :param output: Output html file.\n :type output: unicode\n :param css_file: Css file.\n :type css_file: unicode\n :return: D...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_api API. 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 build_api API. 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...
Builds the Sphinx documentation API. :param packages: Packages to include in the API. :type packages: list :param input: Input modules directory. :type input: unicode :param output: Output reStructuredText files directory. :type output: unicode :param sanitizer: Sanitizer python module. ...
"Builds the Sphinx documentation API.\n\n :param packages: Packages to include in the API.\n :type packages: list\n :param input: Input modules directory.\n :type input: unicode\n :param output: Output reStructuredText files directory.\n :type output: unicode\n :param sanitizer: Sanitizer python mo...
33
false
KelSolaar/Oncilla
build_api
6,361
LDU_FT/indico/indico-plugins/stringify_seconds
LDU_FT
[ "<BEGIN>\n## `available_backends`", "Lists the currently available backend types\n<END>", "<BEGIN>\n## `initial_export`", "Performs the initial data export for an agent\n<END>", "<BEGIN>\n## `get_result`", "Perform the call and return the graph data", " :return: Encoded PNG graph data string to b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stringify_seconds API. 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 stringify_seconds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Takes time as a value of seconds and deduces the delta in human-readable HHh MMm SSs format.
"Takes time as a value of seconds and deduces the delta in human-readable\n HHh MMm SSs format."
173
false
indico/indico-plugins
stringify_seconds
6,362
LDU_FT/phdata/sdc-api-tool/pipeline_exists
LDU_FT
[ "<BEGIN>\n## `define_system_args`", "Append the parser arguments for the 'system' commands\n<END>", "<BEGIN>\n## `start_pipeline`", "Start a running pipeline. The API waits for the pipeline to be fully started.", " Args:\n url (str): the host url in the form 'http://host:port/'.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pipeline_exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pipeline_exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
:param url: (str): the host url in the form 'http://host:port/'. :param pipeline_id: (string) the pipeline identifier :param auth: (tuple) a tuple of username, password :return: (boolean)
":param url: (str): the host url in the form 'http://host:port/'.\n :param pipeline_id: (string) the pipeline identifier\n :param auth: (tuple) a tuple of username, password\n :return: (boolean)"
42
false
phdata/sdc-api-tool
pipeline_exists
6,363
LDU_FT/saltant-org/saltant-py/get
LDU_FT
[ "<BEGIN>\n## `sync`", "Sync this model with latest data on the saltant server.", " Note that in addition to returning the updated object, it also\n updates the existing object.", " Returns:\n :class:`saltant.models.base_task_type.BaseTaskType`:\n This task type i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get the model instance with a given id. Args: id (int or str): The primary identifier (e.g., pk or UUID) for the task instance to get. Returns: :class:`saltant.models.resource.Model`: A :class:`saltant.models.resource.Model` subclass ...
"Get the model instance with a given id.\n\n Args:\n id (int or str): The primary identifier (e.g., pk or UUID)\n for the task instance to get.\n\n Returns:\n :class:`saltant.models.resource.Model`:\n A :class:`saltant.models.resource.Model` subclass\n ...
134
false
saltant-org/saltant-py
get
6,364
LDU_FT/theno/utlz/text_with_newlines
LDU_FT
[ "<BEGIN>\n## `flo`", "Return the string given by param formatted with the callers locals.\n<END>", "<BEGIN>\n## `_wrap_with`", "Color wrapper.", " Example:\n >>> blue = _wrap_with('34')\n >>> print(blue('text'))\n \\033[34mtext\\033[0m\n<END>", "<BEGIN>\n## `clean`", "Delete temp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text_with_newlines 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 text_with_newlines 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...
Return text with a `newline` inserted after each `line_length` char. Return `text` unchanged if line_length == 0.
"Return text with a `newline` inserted after each `line_length` char.\n\n Return `text` unchanged if line_length == 0."
68
false
theno/utlz
text_with_newlines
6,365
LDU_FT/juiceinc/recipe/all
LDU_FT
[ "<BEGIN>\n## `cauldron_extras`", "Yield extra tuples containing a field name and a callable that takes\n a row\n<END>", "<BEGIN>\n## `make_column_suffixes`", "Make sure we have the right column suffixes. These will be appended\n to `id` when generating the query.\n<END>", "<BEGIN>\n## `parse_c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
Return a (potentially cached) list of result objects.
"Return a (potentially cached) list of result objects."
129
false
juiceinc/recipe
all
6,366
LDU_FT/limix/numpy-sugar/hsolve
LDU_FT
[ "<BEGIN>\n## `dotd`", "r\"\"\"Diagonal of :math:`\\mathrm A\\mathrm B^\\intercal`.", " If ``A`` is :math:`n\\times p` and ``B`` is :math:`p\\times n`, it is done in\n :math:`O(pn)`.", " Args:\n A (array_like): Left matrix.\n B (array_like): Right matrix.\n out (:class:`numpy.ndar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hsolve API. 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 hsolve API. 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 ...
r"""Solver for the linear equations of two variables and equations only. It uses Householder reductions to solve ``Ax = y`` in a robust manner. Parameters ---------- A : array_like Coefficient matrix. y : array_like Ordinate values. Returns ------- :class:`numpy.ndarra...
"r\"\"\"Solver for the linear equations of two variables and equations only.\n\n It uses Householder reductions to solve ``Ax = y`` in a robust manner.\n\n Parameters\n ----------\n A : array_like\n Coefficient matrix.\n y : array_like\n Ordinate values.\n\n Returns\n -------\n :cl...
124
false
limix/numpy-sugar
hsolve
6,367
LDU_FT/openbermuda/ripl/build_row
LDU_FT
[ "<BEGIN>\n## `interpret`", "Try and find the image file ", " some magic here would be good.", " FIXME move elsewhere and make so everyone can use.", " interpreter that finds things?\n<END>", "<BEGIN>\n## `horizontal_layout`", "Augment slide with horizontal layout info\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_row API. 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 build_row API. 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...
Line describes an image or images to show Returns a dict with a list of dicts of image names or text items Examples: # A single image to display >>> x.build_row('foo.png') [{'image': 'foo.png'}] # Two images with text in between: >>> x.build_row('foo.png or ba...
"Line describes an image or images to show\n\n Returns a dict with a list of dicts of image names or text items\n\n Examples:\n\n # A single image to display\n >>> x.build_row('foo.png')\n [{'image': 'foo.png'}]\n\n # Two images with text in between:\n >>> x.build_row('f...
33
false
openbermuda/ripl
build_row
6,368
LDU_FT/SteveMcGrath/pySecurityCenter/ip_info
LDU_FT
[ "<BEGIN>\n## `gen_csv`", "csv SecurityCenterObj, AssetListName, CSVFields, EmailAddress\n<END>", "<BEGIN>\n## `login`", "Logs the user into SecurityCenter and stores the needed token and cookies.\n<END>", "<BEGIN>\n## `analysis`", "Analysis\n A thin wrapper to handle vuln/event/mobile/log analysis ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ip_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ip_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
ip_info Returns information about the IP specified in the repository ids defined.
"ip_info\n Returns information about the IP specified in the repository ids\n defined."
120
false
SteveMcGrath/pySecurityCenter
ip_info
6,369
LDU_FT/wtsi-hgi/python-hgijson/_create_deserializer
LDU_FT
[ "<BEGIN>\n## `json_encoder_to_serializer`", "Converts a `JSONEncoder` class into an equivalent `Serializer` class.\n :param encoder_cls: the encoder class type or a function that returns the type\n :return: the equivalent `Serializer` class\n<END>", "<BEGIN>\n## `json_decoder_to_deserializer`", "Convert...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_deserializer 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_deserializer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Creates a deserializer that is to be used by this decoder. :return: the deserializer
"Creates a deserializer that is to be used by this decoder.\n :return: the deserializer"
32
false
wtsi-hgi/python-hgijson
_create_deserializer
6,370
LDU_FT/rflamary/POT/batch_grad_dual
LDU_FT
[ "<BEGIN>\n## `plot1D_mat`", "Plot matrix M with the source and target 1D distribution", " Creates a subplot with the source distribution a on the left and\n target distribution b on the tot. The matrix M is shown in between.", " Parameters\n ----------\n a : np.array, shape (na,)\n Sour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_grad_dual API. 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 batch_grad_dual API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Computes the partial gradient of the dual optimal transport problem. For each (i,j) in a batch of coordinates, the partial gradients are : .. math:: \partial_{u_i} F = u_i * b_s/l_{v} - \sum_{j \in B_v} exp((u_i + v_j - M_{i,j})/reg) * a_i * b_j \partial_{v_j} F = v_j * b_s/l_{u} - \sum_{i \i...
"Computes the partial gradient of the dual optimal transport problem.\n\n For each (i,j) in a batch of coordinates, the partial gradients are :\n\n .. math::\n \\partial_{u_i} F = u_i * b_s/l_{v} - \\sum_{j \\in B_v} exp((u_i + v_j - M_{i,j})/reg) * a_i * b_j\n\n \\partial_{v_j} F = v_j * b_s/l_{u} ...
711
false
rflamary/POT
batch_grad_dual
6,371
LDU_FT/scanny/python-pptx/cat
LDU_FT
[ "<BEGIN>\n## `convert_to_xml`", "Convert signed angle float like -42.42 to int 60000 per degree,\n normalized to positive value.\n<END>", "<BEGIN>\n## `convert_to_xml`", "Convert signed angle float like -427.42 to int 60000 per degree.", " Value is normalized to a positive value less than 360 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cat API. 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 cat API. 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...
Return the ``<c:cat>`` element XML for this series, as an oxml element.
"Return the ``<c:cat>`` element XML for this series, as an oxml\n element."
990
false
scanny/python-pptx
cat
6,372