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/silenc3r/dikicli/create_default_config | LDU_FT | [
"<BEGIN>\n## `_parse_html`",
"Parse html string.",
" Parameters\n ----------\n html_dump : str\n HTML content.\n native : bool, optional\n Whether to translate from native to foreign language.",
" Returns\n -------\n translations : list\n Translations list.",
" R... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_default_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_default_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.
... | Write default config file to disk.
Backs up existing configuration file.
Returns
-------
filename : string
Path to config file. | "Write default config file to disk.\n\n Backs up existing configuration file.\n\n Returns\n -------\n filename : string\n Path to config file." | 62 | false | silenc3r/dikicli | create_default_config | 13,473 | |
LDU_FT/arneb/django-messages/format_subject | LDU_FT | [
"<BEGIN>\n## `save_model`",
"Saves the message for the recipient and looks in the form instance\n for other possible recipients. Prevents duplication by excludin the\n original recipient from the list of optional recipients.",
" When changing an existing message and choosing optional recipi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_subject API.
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 format_subject API.
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... | Prepends 'Re:' to the subject. To avoid multiple 'Re:'s
a counter is added.
NOTE: Currently unused. First step to fix Issue #48.
FIXME: Any hints how to make this i18n aware are very welcome. | "Prepends 'Re:' to the subject. To avoid multiple 'Re:'s\n a counter is added.\n NOTE: Currently unused. First step to fix Issue #48.\n FIXME: Any hints how to make this i18n aware are very welcome." | 35 | false | arneb/django-messages | format_subject | 13,474 | |
LDU_FT/jerith/txTwitter/friendships_destroy | LDU_FT | [
"<BEGIN>\n## `set_bool_param`",
"Set a boolean parameter if applicable.",
" :param dict params: A dict containing API call parameters.",
" :param str name: The name of the parameter to set.",
" :param bool value:\n The value of the parameter. If ``None``, the field will not be set. If\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the friendships_destroy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the friendships_destroy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Allows the authenticating user to unfollow the specified user.
https://dev.twitter.com/docs/api/1.1/post/friendships/destroy
:param str user_id:
The screen name of the user for whom to unfollow. Required if
``screen_name`` isn't given.
:param str screen_name:
... | "Allows the authenticating user to unfollow the specified user.\n\n https://dev.twitter.com/docs/api/1.1/post/friendships/destroy\n\n :param str user_id:\n The screen name of the user for whom to unfollow. Required if\n ``screen_name`` isn't given.\n :param str screen_name:\n ... | 169 | false | jerith/txTwitter | friendships_destroy | 13,475 | |
LDU_FT/axltxl/m2bk/run | LDU_FT | [
"<BEGIN>\n## `chkstr`",
"Small routine for checking whether a string is empty\n even a string",
" :param s: the string in question\n :param v: variable name\n<END>",
"<BEGIN>\n## `load`",
"Load this driver",
" Note that if either aws_access_key_id or aws_secret_access_key are\n not specifie... | 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... | Execute a process
:param cmd(str): name of the executable
:param args(str, optional): arbitrary arguments
:param timeout(int, optional): Execution timeout
:raises OSError: if the execution of cmd fails | "Execute a process\n\n :param cmd(str): name of the executable\n :param args(str, optional): arbitrary arguments\n :param timeout(int, optional): Execution timeout\n :raises OSError: if the execution of cmd fails" | 83 | false | axltxl/m2bk | run | 13,476 | |
LDU_FT/notanumber/xapian-haystack/_from_xapian_value | LDU_FT | [
"<BEGIN>\n## `_term_to_xapian_value`",
"Converts a term to a serialized\n Xapian value based on the field_type.\n<END>",
"<BEGIN>\n## `_from_xapian_value`",
"Converts a serialized Xapian value\n to Python equivalent based on the field_type.",
" Doesn't accept multivalued fields.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _from_xapian_value 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_xapian_value 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... | Converts a serialized Xapian value
to Python equivalent based on the field_type.
Doesn't accept multivalued fields. | "Converts a serialized Xapian value\n to Python equivalent based on the field_type.\n\n Doesn't accept multivalued fields." | 127 | false | notanumber/xapian-haystack | _from_xapian_value | 13,477 | |
LDU_FT/orb-framework/orb/dbStore | LDU_FT | [
"<BEGIN>\n## `virtual`",
"Allows for defining virtual columns and collectors on models -- these\n are objects that are defined in code and not directly in a data store.",
" :param cls:\n :param options:\n :return:\n<END>",
"<BEGIN>\n## `dict_factory`",
"Converts the cursor information from a SQL... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dbStore API.
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 dbStore API.
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... | Prepares to store this column for the a particular backend database.
:param backend: <orb.Database>
:param py_value: <variant>
:param context: <orb.Context>
:return: <variant> | "Prepares to store this column for the a particular backend database.\n\n :param backend: <orb.Database>\n :param py_value: <variant>\n :param context: <orb.Context>\n\n :return: <variant>" | 608 | false | orb-framework/orb | dbStore | 13,478 | |
LDU_FT/eventifyio/eventify/emit_event | LDU_FT | [
"<BEGIN>\n## `track_event`",
"Store state of events in memory\n :param event: Event object\n :param state: EventState object\n :param service_name: Name of service name\n<END>",
"<BEGIN>\n## `persist_event`",
"Track event to prevent duplication of work\n and potential loss of event\n :param top... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit_event API.
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 emit_event API.
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... | Publish an event
:param event: Event object | "Publish an event\n :param event: Event object" | 29 | false | eventifyio/eventify | emit_event | 13,479 | |
LDU_FT/roskakori/pygount/_pythonized_comments | LDU_FT | [
"<BEGIN>\n## `_check_encoding`",
"Check that ``encoding`` is a valid Python encoding\n :param name: name under which the encoding is known to the user, e.g. 'default encoding'\n :param encoding_to_check: name of the encoding to check, e.g. 'utf-8'\n :param source: source where the encoding has been set, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pythonized_comments 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 _pythonized_comments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Similar to tokens but converts strings after a colon (:) to comments. | "Similar to tokens but converts strings after a colon (:) to comments." | 17 | false | roskakori/pygount | _pythonized_comments | 13,480 | |
LDU_FT/alvarogzp/telegram-bot-framework/_get_running_workers_names | LDU_FT | [
"<BEGIN>\n## `default_format`",
"Returns full name (first and last) if name is available.\n If not, returns username if available.\n If not available too, returns the user id as a string.\n<END>",
"<BEGIN>\n## `full_name`",
"Returns the first and last name of the user separated by a space.\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_running_workers_names 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 _get_running_workers_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | May contain sensitive info (like user ids). Use with care. | "May contain sensitive info (like user ids). Use with care." | 36 | false | alvarogzp/telegram-bot-framework | _get_running_workers_names | 13,481 | |
LDU_FT/TurboGears/gearbox/find_command | LDU_FT | [
"<BEGIN>\n## `live_pidfile`",
"(pidfile:str) -> int | None\n Returns an int found in the named file, if there is one,\n and if there is a running process with that process id.\n Return None if no such process exists.\n<END>",
"<BEGIN>\n## `_turn_sigterm_into_systemexit`",
"Attempts to turn a SIGTERM ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Given an argument list, find a command and
return the processor and any remaining arguments. | "Given an argument list, find a command and\n return the processor and any remaining arguments." | 66 | false | TurboGears/gearbox | find_command | 13,482 | |
LDU_FT/fgmacedo/django-export-action/list_to_workbook | LDU_FT | [
"<BEGIN>\n## `_get_field_by_name`",
"Compatible with old API of model_class._meta.get_field_by_name(field_name)\n<END>",
"<BEGIN>\n## `_get_remote_field`",
"Compatible with Django 1.8~1.10 ('related' was renamed to 'remote_field')\n<END>",
"<BEGIN>\n## `_get_all_field_names`",
"100% compatible version of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_to_workbook API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_to_workbook API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Create just a openpxl workbook from a list of data | "Create just a openpxl workbook from a list of data" | 27 | false | fgmacedo/django-export-action | list_to_workbook | 13,483 | |
LDU_FT/maxweisspoker/simplebitcoinfuncs/uncompress | LDU_FT | [
"<BEGIN>\n## `sign`",
"Returns a DER-encoded signature from a input of a hash and private\n key, and optionally a K value.",
" Hash and private key inputs must be 64-char hex strings,\n k input is an int/long.",
" >>> h = 'f7011e94125b5bba7f62eb25efe23339eb1637539206c87df3ee61b5ec6b023e'\n >>> ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uncompress API.
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 uncompress API.
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... | Input must be hex string, and a valid compressed public key.
Check if it's a valid key first, using the validatepubkey()
function below, and then verify that the str len is 66. | "Input must be hex string, and a valid compressed public key.\n Check if it's a valid key first, using the validatepubkey()\n function below, and then verify that the str len is 66." | 91 | false | maxweisspoker/simplebitcoinfuncs | uncompress | 13,484 | |
LDU_FT/ramses-tech/ramses/_apply_callables | LDU_FT | [
"<BEGIN>\n## `get_existing_model`",
"Try to find existing model class named `model_name`.",
" :param model_name: String name of the model class.\n<END>",
"<BEGIN>\n## `prepare_relationship`",
"Create referenced model if it doesn't exist.",
" When preparing a relationship, we check to see if the mode... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_callables API.
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 _apply_callables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Iterate over ACEs from :acl: and apply callable principals
if any.
Principals are passed 3 arguments on call:
:ace: Single ACE object that looks like (action, callable,
permission or [permission])
:request: Current request object
:obj: Object instance... | "Iterate over ACEs from :acl: and apply callable principals\n if any.\n\n Principals are passed 3 arguments on call:\n :ace: Single ACE object that looks like (action, callable,\n permission or [permission])\n :request: Current request object\n :obj: Object ... | 180 | false | ramses-tech/ramses | _apply_callables | 13,485 | |
LDU_FT/planetlabs/planet-client-python/write | LDU_FT | [
"<BEGIN>\n## `get_body`",
"Get the response Body",
" :returns Body: A Body object containing the response.\n<END>",
"<BEGIN>\n## `last_modified`",
"Read the last-modified header as a datetime, if present.\n<END>",
"<BEGIN>\n## `write`",
"Write the contents of the body to the optionally provided f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Write the contents of the body to the optionally provided file and
providing progress to the optional callback. The callback will be
invoked 3 different ways:
* First as ``callback(start=self)``
* For each chunk of data written as
``callback(wrote=chunk_size_in_bytes, total=al... | "Write the contents of the body to the optionally provided file and\n providing progress to the optional callback. The callback will be\n invoked 3 different ways:\n\n * First as ``callback(start=self)``\n * For each chunk of data written as\n ``callback(wrote=chunk_size_in_bytes, t... | 129 | false | planetlabs/planet-client-python | write | 13,486 | |
LDU_FT/libvips/pyvips/set_string | LDU_FT | [
"<BEGIN>\n## `print_all`",
"Print all objects.",
" Print a table of all active libvips objects. Handy for debugging.\n<END>",
"<BEGIN>\n## `get_typeof`",
"Get the GType of a GObject property.",
" This function returns 0 if the property does not exist.\n<END>",
"<BEGIN>\n## `get`",
"Get a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Set a series of properties using a string.
For example::
'fred=12, tile'
'[fred=12]' | "Set a series of properties using a string.\n\n For example::\n\n 'fred=12, tile'\n '[fred=12]'" | 73 | false | libvips/pyvips | set_string | 13,487 | |
LDU_FT/paulovn/sparql-kernel/rdf_iterator | LDU_FT | [
"<BEGIN>\n## `token_at_cursor`",
"Find the token present at the passed position in the code buffer\n :return (tuple): a pair (token, start_position)\n<END>",
"<BEGIN>\n## `_send`",
"Send a response to the frontend and return an execute message\n @param data: response to send\n @param msg_t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rdf_iterator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rdf_iterator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Convert a Graph response into a double iterable, by triples and elements.
Optionally add element type, and filter triples by language (on literals) | "Convert a Graph response into a double iterable, by triples and elements.\n Optionally add element type, and filter triples by language (on literals)" | 55 | false | paulovn/sparql-kernel | rdf_iterator | 13,488 | |
LDU_FT/kytos/kytos-utils/install_napps | LDU_FT | [
"<BEGIN>\n## `get_napp`",
"Return napp metadata or None if not found.\n<END>",
"<BEGIN>\n## `reload_napps`",
"Reload a specific NApp or all Napps.",
" Args:\n napp (list): NApp list to be reload.\n Raises:\n requests.HTTPError: When there's a server error.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_napps API.
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 install_napps API.
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... | Install local or remote NApps.
This method is recursive, it will install each napps and your
dependencies. | "Install local or remote NApps.\n\n This method is recursive, it will install each napps and your\n dependencies." | 128 | false | kytos/kytos-utils | install_napps | 13,489 | |
LDU_FT/jadolg/rocketchat_API/im_history | LDU_FT | [
"<BEGIN>\n## `directory`",
"Search by users or channels on all server.\n<END>",
"<BEGIN>\n## `spotlight`",
"Searches for users or rooms that are visible to the user.\n<END>",
"<BEGIN>\n## `users_info`",
"Gets a user’s information, limited to the caller’s permissions.\n<END>",
"<BEGIN>\n## `chat_search`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the im_history API.
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 im_history API.
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... | Retrieves the history for a private im chat | "Retrieves the history for a private im chat" | 82 | false | jadolg/rocketchat_API | im_history | 13,490 | |
LDU_FT/tensorflow/tensor2tensor/get_reward_and_done | LDU_FT | [
"<BEGIN>\n## `paracrawl_v3_pairs`",
"Generates raw (English, other) pairs from a ParaCrawl V3.0 data file.",
" Args:\n paracrawl_file: A ParaCrawl V3.0 en-.. data file.\n Yields:\n Pairs of (sentence_en, sentence_xx), as Unicode strings.\n Raises:\n StopIteration: If the file ends while this method ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reward_and_done API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reward_and_done API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Given a representation of the board, returns reward and done. | "Given a representation of the board, returns reward and done." | 4,769 | true | tensorflow/tensor2tensor | get_reward_and_done | 13,491 | |
LDU_FT/Vito2015/pyextend/timeout | LDU_FT | [
"<BEGIN>\n## `haversine`",
"Compute km by geo-coordinates\n See also: haversine define https://en.wikipedia.org/wiki/Haversine_formula\n<END>",
"<BEGIN>\n## `calc_distance`",
"Calc distance (km) by geo-coordinates.\n @:param lng1: first coordinate.lng\n @:param lat1: first coordinate.lat\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeout API.
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 timeout API.
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... | Timeout checking just for Linux-like platform, not working in Windows platform. | "Timeout checking just for Linux-like platform, not working in Windows platform." | 42 | false | Vito2015/pyextend | timeout | 13,492 | |
LDU_FT/pybel/pybel-artifactory/hash_names | LDU_FT | [
"<BEGIN>\n## `convert_to_annotation`",
"Convert a namespace file to an annotation file.\n<END>",
"<BEGIN>\n## `history`",
"Output the hashes for the annotation resources' versions.\n<END>",
"<BEGIN>\n## `convert_to_namespace`",
"Convert an annotation file to a namespace file.\n<END>",
"<BEGIN>\n## `get_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return the hash of an iterable of strings, or a dict if multiple hash functions given.
:param iter[str] names: An iterable of strings
:param hash_function: A hash function or list of hash functions, like :func:`hashlib.md5` or :func:`hashlib.sha512`
:rtype: str | "Return the hash of an iterable of strings, or a dict if multiple hash functions given.\n\n :param iter[str] names: An iterable of strings\n :param hash_function: A hash function or list of hash functions, like :func:`hashlib.md5` or :func:`hashlib.sha512`\n :rtype: str" | 39 | false | pybel/pybel-artifactory | hash_names | 13,493 | |
LDU_FT/pallets/werkzeug/get_pin_and_cookie_name | LDU_FT | [
"<BEGIN>\n## `mimetype`",
"The mimetype (content type without charset etc.)\n<END>",
"<BEGIN>\n## `mimetype_params`",
"The mimetype parameters as dict. For example if the\n content type is ``text/html; charset=utf-8`` the params would be\n ``{'charset': 'utf-8'}``.",
" .. versionadded::... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pin_and_cookie_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pin_and_cookie_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Given an application object this returns a semi-stable 9 digit pin
code and a random key. The hope is that this is stable between
restarts to not make debugging particularly frustrating. If the pin
was forcefully disabled this returns `None`.
Second item in the resulting tuple is the cookie name for ... | "Given an application object this returns a semi-stable 9 digit pin\n code and a random key. The hope is that this is stable between\n restarts to not make debugging particularly frustrating. If the pin\n was forcefully disabled this returns `None`.\n\n Second item in the resulting tuple is the cookie nam... | 541 | false | pallets/werkzeug | get_pin_and_cookie_name | 13,494 | |
LDU_FT/glomex/gcdt/name_strip | LDU_FT | [
"<BEGIN>\n## `list_functions`",
"List the deployed lambda functions and print configuration.",
" :return: exit_code\n<END>",
"<BEGIN>\n## `deploy_lambda`",
"Create or update a lambda function.",
" :param awsclient:\n :param function_name:\n :param role:\n :param handler_filename:\n :para... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name_strip API.
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 name_strip API.
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... | Transforms name to AWS valid characters and adds prefix and type
:param name: Name of the role/policy
:param is_policy: True if policy should be added as suffix
:param prefix: True if prefix should be added
:return: Transformed and joined name | "Transforms name to AWS valid characters and adds prefix and type\n :param name: Name of the role/policy\n :param is_policy: True if policy should be added as suffix\n :param prefix: True if prefix should be added\n :return: Transformed and joined name" | 301 | false | glomex/gcdt | name_strip | 13,495 | |
LDU_FT/drewsonne/aws-autodiscovery-templater/generate_output_file | LDU_FT | [
"<BEGIN>\n## `run`",
"Entrypoint to kick off the job to generate the templater\n :return:\n<END>",
"<BEGIN>\n## `generate_output_file`",
"Generate a function to send the content to the file specified in 'path'\n :param path:\n :return:\n<END>",
"<BEGIN>\n## `generate_file_template_load`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_output_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_output_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.
... | Generate a function to send the content to the file specified in 'path'
:param path:
:return: | "Generate a function to send the content to the file specified in 'path'\n :param path:\n :return:" | 14 | false | drewsonne/aws-autodiscovery-templater | generate_output_file | 13,496 | |
LDU_FT/APSL/django-kaio/module_to_dict | LDU_FT | [
"<BEGIN>\n## `FILER_STORAGES`",
"Filer config to set custom private media path\n http://django-filer.readthedocs.org/en/0.9.4/settings.html#filer-storages\n<END>",
"<BEGIN>\n## `module_to_dict`",
"Converts a module namespace to a Python dictionary. Used by get_settings_diff.\n<END>",
"<BEGIN>\n## `BR... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the module_to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the module_to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Converts a module namespace to a Python dictionary. Used by get_settings_diff. | "Converts a module namespace to a Python dictionary. Used by get_settings_diff." | 12 | false | APSL/django-kaio | module_to_dict | 13,497 | |
LDU_FT/numberoverzero/bloop/prepare | LDU_FT | [
"<BEGIN>\n## `ordered`",
"Return sorted version of nested dicts/lists for comparing.",
" Modified from:\n http://stackoverflow.com/a/25851972\n<END>",
"<BEGIN>\n## `dump_key`",
"dump the hash (and range, if there is one) key(s) of an object into\n a dynamo-friendly format.",
" returns {dynamo_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare API.
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 prepare API.
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... | Constructs a :class:`~bloop.search.PreparedSearch`. | "Constructs a :class:`~bloop.search.PreparedSearch`." | 288 | false | numberoverzero/bloop | prepare | 13,498 | |
LDU_FT/crs4/pydoop/set_replication | LDU_FT | [
"<BEGIN>\n## `align_after`",
"Search for a sync point after offset and align just after that.\n<END>",
"<BEGIN>\n## `get_progress`",
"Give a rough estimate of the progress done.\n<END>",
"<BEGIN>\n## `is_local`",
"\\\n Is Hadoop configured to run in local mode?",
" By default, it is. [pseu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_replication API.
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_replication API.
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... | r"""
Set the replication of ``path`` to ``replication``\ .
:type path: str
:param path: the path of the file
:type replication: int
:param replication: the replication value
:raises: :exc:`~exceptions.IOError` | "r\"\"\"\n Set the replication of ``path`` to ``replication``\\ .\n\n :type path: str\n :param path: the path of the file\n :type replication: int\n :param replication: the replication value\n :raises: :exc:`~exceptions.IOError`" | 256 | false | crs4/pydoop | set_replication | 13,499 | |
LDU_FT/dturanski/springcloudstream/handle | LDU_FT | [
"<BEGIN>\n## `launch_server`",
"Launch a message server\n :param handler_function: The handler function to execute for each message\n :param options: Application options for TCP, etc.\n<END>",
"<BEGIN>\n## `handle`",
"Handle a message\n :return: True if success, False otherwise\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle API.
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 handle API.
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 ... | Handle a message
:param request: the request socket.
:param buffer_size: the buffer size.
:return: True if success, False otherwise | "Handle a message\n :param request: the request socket.\n :param buffer_size: the buffer size.\n :return: True if success, False otherwise" | 24 | false | dturanski/springcloudstream | handle | 13,500 | |
LDU_FT/aws/aws-iot-device-sdk-python/tls_set | LDU_FT | [
"<BEGIN>\n## `shadowGet`",
"**Description**",
" Retrieve the device shadow JSON document from AWS IoT by publishing an empty JSON document to the \n corresponding shadow topics. Shadow response topics will be subscribed to receive responses from \n AWS IoT regarding the result of the get op... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tls_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tls_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Configure network encryption and authentication options. Enables SSL/TLS support.
ca_certs : a string path to the Certificate Authority certificate files
that are to be treated as trusted by this client. If this is the only
option given then the client will operate in a similar manner to a web
... | "Configure network encryption and authentication options. Enables SSL/TLS support.\n\n ca_certs : a string path to the Certificate Authority certificate files\n that are to be treated as trusted by this client. If this is the only\n option given then the client will operate in a similar manner to a... | 420 | false | aws/aws-iot-device-sdk-python | tls_set | 13,501 | |
LDU_FT/mk-fg/feedjack/getsteps | LDU_FT | [
"<BEGIN>\n## `getsteps`",
"Returns a list with the max number of posts per \"tagcloud level\"\n<END>",
"<BEGIN>\n## `build`",
"Returns the tag cloud for a list of tags.\n<END>",
"<BEGIN>\n## `cloudata`",
"Returns a dictionary with all the tag clouds related to a site.\n<END>",
"<BEGIN>\n## `getcloud`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getsteps API.
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 getsteps API.
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 with the max number of posts per "tagcloud level" | "Returns a list with the max number of posts per \"tagcloud level\"" | 62 | false | mk-fg/feedjack | getsteps | 13,502 | |
LDU_FT/gatkin/declxml/_element_find_from_root | LDU_FT | [
"<BEGIN>\n## `parse_from_file`",
"Parse the XML file using the processor starting from the root of the document.",
" :param root_processor: Root processor of the XML document.\n :param xml_file_path: Path to XML file to parse.\n :param encoding: Encoding of the file.",
" :return: Parsed value.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _element_find_from_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _element_find_from_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... | Find the element specified by the given path starting from the root element of the document.
The first component of the element path is expected to be the name of the root element. Return
None if the element is not found. | "Find the element specified by the given path starting from the root element of the document.\n\n The first component of the element path is expected to be the name of the root element. Return\n None if the element is not found." | 127 | false | gatkin/declxml | _element_find_from_root | 13,503 | |
LDU_FT/Groundworkstech/pybfd/symbol_leading_char | LDU_FT | [
"<BEGIN>\n## `generate_source_files`",
"Genertate source files to be used during the compile process of the\n extension module.\n This is better than just hardcoding the values on python files because\n header definitions might change along differente Binutils versions and\n we'll be a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symbol_leading_char API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symbol_leading_char API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Return the symbol leading char attribute of the BFD file being
processed. | "Return the symbol leading char attribute of the BFD file being\n processed." | 96 | false | Groundworkstech/pybfd | symbol_leading_char | 13,504 | |
LDU_FT/gtaylor/django-athumb/create_thumbnail | LDU_FT | [
"<BEGIN>\n## `create_thumbnail`",
"This serves as a really basic example of a thumbnailing method. You\n may want to implement your own logic, but this will work for\n simple cases.",
" :param Image image: This is your engine's ``Image`` object. For\n PIL it's PIL.Image.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_thumbnail API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_thumbnail API.
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 serves as a really basic example of a thumbnailing method. You
may want to implement your own logic, but this will work for
simple cases.
:param Image image: This is your engine's ``Image`` object. For
PIL it's PIL.Image.
:param tuple geometry: Geometry of the image in ... | "This serves as a really basic example of a thumbnailing method. You\n may want to implement your own logic, but this will work for\n simple cases.\n\n :param Image image: This is your engine's ``Image`` object. For\n PIL it's PIL.Image.\n :param tuple geometry: Geometry of the im... | 76 | false | gtaylor/django-athumb | create_thumbnail | 13,505 | |
LDU_FT/brandonxiang/geojson-python-utils/rectangle_centroid | LDU_FT | [
"<BEGIN>\n## `linestrings_intersect`",
"To valid whether linestrings from geojson are intersected with each other.\n reference: http://www.kevlindev.com/gui/math/intersection/Intersection.js",
" Keyword arguments:\n line1 -- first line geojson object\n line2 -- second line geojson object",
" if... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rectangle_centroid 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 rectangle_centroid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | get the centroid of the rectangle
Keyword arguments:
rectangle -- polygon geojson object
return centroid | "get the centroid of the rectangle\n\n Keyword arguments:\n rectangle -- polygon geojson object\n\n return centroid" | 70 | false | brandonxiang/geojson-python-utils | rectangle_centroid | 13,506 | |
LDU_FT/bids-standard/pybids/setup | LDU_FT | [
"<BEGIN>\n## `apply_transformations`",
"Apply all transformations to the variables in the collection.",
" Args:\n transformations (list): List of transformations to apply.\n select (list): Optional list of names of variables to retain after all\n transformations are applied.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Set up the sequence of steps for analysis.
Args:
steps (list): Optional list of steps to set up. Each element
must be either an int giving the index of the step in the
JSON config block list, or a str giving the (unique) name of
the step, as specified... | "Set up the sequence of steps for analysis.\n\n Args:\n steps (list): Optional list of steps to set up. Each element\n must be either an int giving the index of the step in the\n JSON config block list, or a str giving the (unique) name of\n the step, as sp... | 372 | false | bids-standard/pybids | setup | 13,507 | |
LDU_FT/Gandi/gandi.cli/attach | LDU_FT | [
"<BEGIN>\n## `mkpassword`",
"Generates a random ascii string - useful to generate authinfos",
" :param length: string wanted length\n :type length: ``int``",
" :param chars: character population,\n defaults to alphabet (lower & upper) + numbers\n :type chars: ``str``, ``list``, ``... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach API.
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 attach API.
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 ... | Attach disk to vm.
disk can be a disk name, or ID
vm can be a vm name, or ID | "Attach disk to vm.\n\n disk can be a disk name, or ID\n vm can be a vm name, or ID" | 357 | false | Gandi/gandi.cli | attach | 13,508 | |
LDU_FT/ska-sa/katcp-python/parse_version | LDU_FT | [
"<BEGIN>\n## `request_time`",
"Return the current time in ms since the Unix Epoch.\n<END>",
"<BEGIN>\n## `request_raw_reverse`",
"A raw request handler to demonstrate the calling convention if\n @request decoraters are not used. Reverses the message arguments.\n<END>",
"<BEGIN>\n## `transform_future`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Create a :class:`ProtocolFlags` object from a version string.
Parameters
----------
version_str : str
The version string from a #version-connect katcp-protocol
message. | "Create a :class:`ProtocolFlags` object from a version string.\n\n Parameters\n ----------\n version_str : str\n The version string from a #version-connect katcp-protocol\n message." | 905 | false | ska-sa/katcp-python | parse_version | 13,509 | |
LDU_FT/7sDream/zhihu-py3/questions | LDU_FT | [
"<BEGIN>\n## `vote`",
"给答案或文章点赞或取消点赞",
" :param Answer/Post something: 需要点赞的答案或文章对象\n :param str vote:\n ===== ================ ======\n 取值 说明 默认值\n ===== ================ ======\n up 赞同 √\n down 反对 X... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the questions API.
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 questions API.
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: 收藏夹内所有问题,返回生成器
:rtype: Question.Iterable | "获取收藏夹内所有问题对象.\n\n :return: 收藏夹内所有问题,返回生成器\n :rtype: Question.Iterable" | 234 | false | 7sDream/zhihu-py3 | questions | 13,510 | |
LDU_FT/flukso/tmpo-py/sync | LDU_FT | [
"<BEGIN>\n## `dbcon`",
"Set up connection before executing function, commit and close connection\n afterwards. Unless a connection already has been created.\n<END>",
"<BEGIN>\n## `add`",
"Add new sensor to the database",
" Parameters\n ----------\n sid : str\n SensorId\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API.
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 sync API.
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... | Synchronise data
Parameters
----------
sids : list of str
SensorIDs to sync
Optional, leave empty to sync everything | "Synchronise data\n\n Parameters\n ----------\n sids : list of str\n SensorIDs to sync\n Optional, leave empty to sync everything" | 36 | false | flukso/tmpo-py | sync | 13,511 | |
LDU_FT/graphql-python/graphql-core/complete_list_value | LDU_FT | [
"<BEGIN>\n## `is_valid_value`",
"Given a type and any value, return True if that value is valid.\n<END>",
"<BEGIN>\n## `get_key_for_schema_and_document_string`",
"This method returns a unique key given a schema and a request_string\n<END>",
"<BEGIN>\n## `document_from_string`",
"This method returns a Grap... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complete_list_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complete_list_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Complete a list value by completing each item in the list with the inner type | "Complete a list value by completing each item in the list with the inner type" | 128 | false | graphql-python/graphql-core | complete_list_value | 13,512 | |
LDU_FT/shawnsilva/steamwebapi/communityvisibilitystate | LDU_FT | [
"<BEGIN>\n## `create_request_url`",
"Create the URL to submit to the Steam Web API",
" interface: Steam Web API interface containing methods.\n method: The method to call.\n version: The version of the method.\n paramters: Parameters to supply to the method.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the communityvisibilitystate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the communityvisibilitystate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Return the Visibility State of the Users Profile | "Return the Visibility State of the Users Profile" | 64 | false | shawnsilva/steamwebapi | communityvisibilitystate | 13,513 | |
LDU_FT/hyperledger/indy-sdk/vcx_messages_download | LDU_FT | [
"<BEGIN>\n## `create`",
"Creates a Class representing an Issuer Credential\n :param source_id: Tag associated by user of sdk\n :param attrs: attributes that will form the credential\n :param cred_def_handle: Handle from previously created credential def object\n :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vcx_messages_download API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vcx_messages_download API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Retrieve messages from the specified connection
:param status:
:param uids:
:param pw_dids:
:return: | "Retrieve messages from the specified connection\n :param status:\n :param uids:\n :param pw_dids:\n :return:" | 467 | false | hyperledger/indy-sdk | vcx_messages_download | 13,514 | |
LDU_FT/zencoder/zencoder-py/post | LDU_FT | [
"<BEGIN>\n## `delete`",
"Executes an HTTP DELETE request for the given URL.",
" ``params`` should be a dictionary\n<END>",
"<BEGIN>\n## `get`",
"Executes an HTTP GET request for the given URL.",
" ``data`` should be a dictionary of url parameters\n<END>",
"<BEGIN>\n## `post`",
"E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Executes an HTTP POST request for the given URL. | "Executes an HTTP POST request for the given URL." | 33 | false | zencoder/zencoder-py | post | 13,515 | |
LDU_FT/glenfant/openxmllib/documentCover | LDU_FT | [
"<BEGIN>\n## `mimeType`",
"The official MIME type for this document, guessed from the extensions\n of the :py:attr:`openxmllib.document.Document.filename` attribute, as\n opposed to the :py:attr:`openxmllib.document.Document.mime_type`\n attribute.",
" :return: ``application/xxx`` fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the documentCover API.
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 documentCover API.
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... | Cover page image
:return: (file extension, file object) tuple. | "Cover page image\n\n :return: (file extension, file object) tuple." | 37 | false | glenfant/openxmllib | documentCover | 13,516 | |
LDU_FT/qntm/greenery/reduce_after | LDU_FT | [
"<BEGIN>\n## `null`",
"An FSM accepting nothing (not even the empty string). This is\n\t\tdemonstrates that this is possible, and is also extremely useful\n\t\tin some situations\n<END>",
"<BEGIN>\n## `parallel`",
"Crawl several FSMs in parallel, mapping the states of a larger meta-FSM.\n\t\tTo determine whet... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reduce_after API.
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 reduce_after API.
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... | reduce() the result of this method call (unless you already reduced it). | "reduce() the result of this method call (unless you already reduced it)." | 63 | false | qntm/greenery | reduce_after | 13,517 | |
LDU_FT/KelSolaar/Manager/name | LDU_FT | [
"<BEGIN>\n## `name`",
"Setter for **self.__name** attribute.",
" :param value: Attribute value.\n :type value: unicode\n<END>",
"<BEGIN>\n## `activated`",
"Setter for **self.__activated** attribute.",
" :param value: Attribute value.\n :type value: bool\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Setter for **self.__name** attribute.
:param value: Attribute value.
:type value: unicode | "Setter for **self.__name** attribute.\n\n :param value: Attribute value.\n :type value: unicode" | 133 | false | KelSolaar/Manager | name | 13,518 | |
LDU_FT/PatrikValkovic/grammpy/_control_nonterminal | LDU_FT | [
"<BEGIN>\n## `reverse_cyk_transforms`",
"Reverse transformation made to grammar before CYK.\n Performs following steps:\n - transform from chomsky normal form\n - restore unit rules\n - restore epsilon rules\n :param root: Root node of the parsed tree.\n :return: Restored... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _control_nonterminal 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 _control_nonterminal API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Check if the nonterminal is valid.
:param nonterm: Nonterminal to check.
:raise NotNonterminalException: If the object doesn't inherit from Nonterminal class. | "Check if the nonterminal is valid.\n :param nonterm: Nonterminal to check.\n :raise NotNonterminalException: If the object doesn't inherit from Nonterminal class." | 126 | false | PatrikValkovic/grammpy | _control_nonterminal | 13,519 | |
LDU_FT/10gen/mongo-orchestration/get_app | LDU_FT | [
"<BEGIN>\n## `_host`",
"Get the Host from the most recent HTTP request.\n<END>",
"<BEGIN>\n## `wait_for`",
"waits while process starts.\n Args:\n port_num - port number\n timeout - specify how long, in seconds, a command can take before times out.\n return True if process started, r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | return bottle app that includes all sub-apps | "return bottle app that includes all sub-apps" | 153 | false | 10gen/mongo-orchestration | get_app | 13,520 | |
LDU_FT/heikomuller/sco-datastore/to_dict | LDU_FT | [
"<BEGIN>\n## `attributes_from_dict`",
"Convert a Json representation of a set of attribute instances into a\n dictionary.",
" Parameters\n ----------\n document : Json object\n Json serialization of attribute instances",
" Returns\n -------\n dict(Attribute)\n Dictionary of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Generate a JSON serialization for the run state object.
Returns
-------
Json-like object
Json serialization of model run state object | "Generate a JSON serialization for the run state object.\n\n Returns\n -------\n Json-like object\n Json serialization of model run state object" | 316 | false | heikomuller/sco-datastore | to_dict | 13,521 | |
LDU_FT/gr33ndata/dysl/karbasa | LDU_FT | [
"<BEGIN>\n## `get_ngram_counts`",
"Returns a list of n-gram counts\n Array of classes counts and last item is for corpus\n<END>",
"<BEGIN>\n## `to_ngrams`",
"Converts terms to all possibe ngrams \n terms: list of terms\n<END>",
"<BEGIN>\n## `lr_padding`",
"Pad doc from the left and r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the karbasa API.
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 karbasa API.
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... | Finding if class probabilities are close to eachother
Ratio of the distance between 1st and 2nd class,
to the distance between 1st and last class.
:param result: The dict returned by LM.calculate() | "Finding if class probabilities are close to eachother\n Ratio of the distance between 1st and 2nd class,\n to the distance between 1st and last class.\n\n :param result: The dict returned by LM.calculate()" | 48 | false | gr33ndata/dysl | karbasa | 13,522 | |
LDU_FT/wtsi-hgi/consul-lock/find | LDU_FT | [
"<BEGIN>\n## `get_consul_configuration_from_environment`",
"Gets configuration on how to connect to Consul from the environment.\n :return: the configuration derived from the environment\n :raises KeyError: if a required environment variable has not been set\n<END>",
"<BEGIN>\n## `create_logger`",
"Crea... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
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 find API.
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... | Finds the lock with the key name that matches that given.
:param name: the lock key to match
:return: the found lock | "Finds the lock with the key name that matches that given.\n :param name: the lock key to match\n :return: the found lock" | 55 | false | wtsi-hgi/consul-lock | find | 13,523 | |
LDU_FT/miguelgrinberg/Flask-SocketIO/on_event | LDU_FT | [
"<BEGIN>\n## `emit`",
"Emit a SocketIO event.",
" This function emits a SocketIO event to one or more connected clients. A\n JSON blob can be attached to the event as payload. This is a function that\n can only be called from a SocketIO event handler, as in obtains some\n information from the curren... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_event API.
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 on_event API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Register a SocketIO event handler.
``on_event`` is the non-decorator version of ``'on'``.
Example::
def on_foo_event(json):
print('received json: ' + str(json))
socketio.on_event('my event', on_foo_event, namespace='/chat')
:param message: The name of... | "Register a SocketIO event handler.\n\n ``on_event`` is the non-decorator version of ``'on'``.\n\n Example::\n\n def on_foo_event(json):\n print('received json: ' + str(json))\n\n socketio.on_event('my event', on_foo_event, namespace='/chat')\n\n :param message:... | 87 | false | miguelgrinberg/Flask-SocketIO | on_event | 13,524 | |
LDU_FT/genialis/resolwe/validate_query_params | LDU_FT | [
"<BEGIN>\n## `extend_settings`",
"Extend the settings the manager will serialize.",
" :param data_id: The :class:`~resolwe.flow.models.Data` object id\n being prepared for.\n :param files: The settings dictionary to be serialized. Keys are\n filenames, values are the objects ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_query_params 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 validate_query_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Ensure no unsupported query params were used. | "Ensure no unsupported query params were used." | 627 | false | genialis/resolwe | validate_query_params | 13,525 | |
LDU_FT/pycontribs/python-crowd/remove_user_from_group | LDU_FT | [
"<BEGIN>\n## `_get`",
"Wrapper around Requests for GET requests",
" Returns:\n Response:\n A Requests Response object\n<END>",
"<BEGIN>\n## `_get_xml`",
"Wrapper around Requests for GET XML requests",
" Returns:\n Response:\n A Requests Res... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_user_from_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_user_from_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Remove a user from a group
Attempts to remove a user from a group
Args
username: The username to remove from the group.
groupname: The group name to be removed from the user.
Returns:
True: Succeeded
False: If unsuccessful | "Remove a user from a group\n\n\tAttempts to remove a user from a group\n\n\tArgs\n username: The username to remove from the group.\n groupname: The group name to be removed from the user.\n\n Returns:\n True: Succeeded\n False: If unsuccessful" | 102 | false | pycontribs/python-crowd | remove_user_from_group | 13,526 | |
LDU_FT/Microsoft/azure-devops-python-api/get_pull_request_query | LDU_FT | [
"<BEGIN>\n## `create_attachment`",
"CreateAttachment.\n Creates an attachment in the wiki.\n :param object upload_stream: Stream to upload\n :param str project: Project ID or project name\n :param str wiki_identifier: Wiki Id or name.\n :param str name: Wiki attachment name.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pull_request_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.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pull_request_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.... | GetPullRequestQuery.
[Preview API] This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of quer... | "GetPullRequestQuery.\n [Preview API] This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of qu... | 1,304 | true | Microsoft/azure-devops-python-api | get_pull_request_query | 13,527 | |
LDU_FT/sckott/pygbif/count | LDU_FT | [
"<BEGIN>\n## `name_suggest`",
"A quick and simple autocomplete service that returns up to 20 name usages by\n doing prefix matching against the scientific name. Results are ordered by relevance.",
" :param q: [str] Simple search parameter. The value for this parameter can be a\n simple word or a phrase. W... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API.
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 count API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns occurrence counts for a predefined set of dimensions
:param taxonKey: [int] A GBIF occurrence identifier
:param basisOfRecord: [str] A GBIF occurrence identifier
:param country: [str] A GBIF occurrence identifier
:param isGeoreferenced: [bool] A GBIF occurrence identifier
:param datasetKey:... | "Returns occurrence counts for a predefined set of dimensions\n\n :param taxonKey: [int] A GBIF occurrence identifier\n :param basisOfRecord: [str] A GBIF occurrence identifier\n :param country: [str] A GBIF occurrence identifier\n :param isGeoreferenced: [bool] A GBIF occurrence identifier\n :param data... | 300 | false | sckott/pygbif | count | 13,528 | |
LDU_FT/postmanlabs/httpbin/response_headers | LDU_FT | [
"<BEGIN>\n## `json_safe`",
"Returns JSON-safe version of `string`.",
" If `string` is a Unicode string or a valid UTF-8, it is returned unmodified,\n as it can safely be encoded to JSON string.",
" If `string` contains raw/binary data, it is Base64-encoded, formatted and\n returned according to \"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response_headers API.
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 response_headers API.
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 a set of response headers from the query string.
---
tags:
- Response inspection
parameters:
- in: query
name: freeform
explode: true
allowEmptyValue: true
schema:
type: object
additionalProperties:
type: string
styl... | "Returns a set of response headers from the query string.\n ---\n tags:\n - Response inspection\n parameters:\n - in: query\n name: freeform\n explode: true\n allowEmptyValue: true\n schema:\n type: object\n additionalProperties:\n type: string... | 86 | false | postmanlabs/httpbin | response_headers | 13,529 | |
LDU_FT/plivo/plivo-python/process_response | LDU_FT | [
"<BEGIN>\n## `validate_signature`",
"Validates requests made by Plivo to your servers.",
" :param uri: Your server URL\n :param nonce: X-Plivo-Signature-V2-Nonce\n :param signature: X-Plivo-Signature-V2 header\n :param auth_token: Plivo Auth token\n :return: True if the request matches signature,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Processes the API response based on the status codes and method used
to access the API | "Processes the API response based on the status codes and method used\n to access the API" | 13 | false | plivo/plivo-python | process_response | 13,530 | |
LDU_FT/joyent/python-manta/stat | LDU_FT | [
"<BEGIN>\n## `_request`",
"Make a Manta request",
" ...\n @returns (res, content)\n<END>",
"<BEGIN>\n## `put_directory`",
"PutDirectory\n https://apidocs.joyent.com/manta/api.html#PutDirectory",
" @param mdir {str} A manta path, e.g. '/trent/stor/mydir'.\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stat API.
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 stat API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Return available dirent info for the given Manta path. | "Return available dirent info for the given Manta path." | 203 | false | joyent/python-manta | stat | 13,531 | |
LDU_FT/jonbretman/jinja-to-js/_process_math | LDU_FT | [
"<BEGIN>\n## `option`",
"Context manager for temporarily setting a keyword argument and\n then restoring it to whatever it was before.\n<END>",
"<BEGIN>\n## `is_method_call`",
"Returns True if `node` is a method call for `method_name`. `method_name`\n can be either a string or an iterable of strings.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_math API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_math API.
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... | Processes a math node e.g. `Div`, `Sub`, `Add`, `Mul` etc...
If `function` is provided the expression is wrapped in a call to that function. | "Processes a math node e.g. `Div`, `Sub`, `Add`, `Mul` etc...\n If `function` is provided the expression is wrapped in a call to that function." | 43 | false | jonbretman/jinja-to-js | _process_math | 13,532 | |
LDU_FT/calmjs/calmjs.parse/p_case_block | LDU_FT | [
"<BEGIN>\n## `optimize_structure_handler`",
"Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>",
"<BEGIN>\n## `optimize_layout_handler`",
"Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_case_block API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_case_block API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | case_block \
: LBRACE case_clauses_opt RBRACE
| LBRACE case_clauses_opt default_clause case_clauses_opt RBRACE | "case_block \\\n : LBRACE case_clauses_opt RBRACE\n | LBRACE case_clauses_opt default_clause case_clauses_opt RBRACE" | 253 | false | calmjs/calmjs.parse | p_case_block | 13,533 | |
LDU_FT/5monkeys/djedi-cms/get | LDU_FT | [
"<BEGIN>\n## `_encode_content`",
"Join node uri and content as string and convert to bytes to ensure no pickling in memcached.\n<END>",
"<BEGIN>\n## `_decode_content`",
"Split node string to uri and content and convert back to unicode.\n<END>",
"<BEGIN>\n## `render_node`",
"Render node as html for templat... | 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... | List uri revisions.
JSON Response:
[[uri, state], ...] | "List uri revisions.\n\n JSON Response:\n [[uri, state], ...]" | 37 | false | 5monkeys/djedi-cms | get | 13,534 | |
LDU_FT/Numigi/gitoo/_get_module_folders | LDU_FT | [
"<BEGIN>\n## `temp_repo`",
"Clone a git repository inside a temporary folder, yield the folder then delete the folder.",
" :param string url: url of the repo to clone.\n :param string branch: name of the branch to checkout to.\n :param string commit: Optional commit rev to checkout to. If mentioned, th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_module_folders API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_module_folders API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Get a list of module paths contained in a temp directory.
:param string temp_repo: the folder containing the modules. | "Get a list of module paths contained in a temp directory.\n\n :param string temp_repo: the folder containing the modules." | 40 | false | Numigi/gitoo | _get_module_folders | 13,535 | |
LDU_FT/cloudant/python-cloudant/field_set | LDU_FT | [
"<BEGIN>\n## `_start`",
"Starts streaming the feed using the provided session and feed options.\n<END>",
"<BEGIN>\n## `_translate`",
"Perform translation of feed options passed in as keyword\n arguments to CouchDB/Cloudant equivalent.\n<END>",
"<BEGIN>\n## `_validate`",
"Ensures that the key and th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Sets or replaces a value for a field in a locally cached Document
object. To remove the field set the ``value`` to None.
:param Document doc: Locally cached Document object that can be a
Document, DesignDocument or dict.
:param str field: Name of the field to set.
:param va... | "Sets or replaces a value for a field in a locally cached Document\n object. To remove the field set the ``value`` to None.\n\n :param Document doc: Locally cached Document object that can be a\n Document, DesignDocument or dict.\n :param str field: Name of the field to set.\n :p... | 489 | false | cloudant/python-cloudant | field_set | 13,536 | |
LDU_FT/aws/sagemaker-containers/import_module | LDU_FT | [
"<BEGIN>\n## `_orted_process`",
"Waits maximum of 5 minutes for orted process to start\n<END>",
"<BEGIN>\n## `_can_connect`",
"Checks if the connection to provided ``host`` and ``port`` is possible or not.\n Args:\n host (str): Hostname for the host to check connection.\n port (int):... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Download, prepare and install a compressed tar file from S3 or provided directory as a module.
SageMaker Python SDK saves the user provided scripts as compressed tar files in S3
https://github.com/aws/sagemaker-python-sdk.
This function downloads this compressed file, if provided, and transforms it as a mod... | "Download, prepare and install a compressed tar file from S3 or provided directory as a module.\n SageMaker Python SDK saves the user provided scripts as compressed tar files in S3\n https://github.com/aws/sagemaker-python-sdk.\n This function downloads this compressed file, if provided, and transforms it as a... | 200 | false | aws/sagemaker-containers | import_module | 13,537 | |
LDU_FT/lingfeiwang/findr-python/_cassists_any | LDU_FT | [
"<BEGIN>\n## `gassists_pv`",
"Calculates p-values of gene i regulating gene j with genotype data assisted method with multiple tests.\n\tdg:\tnumpy.ndarray(nt,ns,dtype=gtype(='u1' by default)) Genotype data.\n\t\tEntry dg[i,j] is genotype i's value for sample j.\n\t\tEach value must be among 0,1,...,na.\n\t\tGeno... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cassists_any API.
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 _cassists_any API.
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... | Calculates probability of gene i regulating gene j with continuous anchor data assisted method,
with multiple tests, by converting log likelihoods into probabilities per A for all B.
dc: numpy.ndarray(nt,ns,dtype=ftype(='f4' by default)) Continuous anchor data.
Entry dc[i,j] is anchor i's value for sample j.
Anch... | "Calculates probability of gene i regulating gene j with continuous anchor data assisted method,\n\twith multiple tests, by converting log likelihoods into probabilities per A for all B.\n\tdc:\tnumpy.ndarray(nt,ns,dtype=ftype(='f4' by default)) Continuous anchor data.\n\t\tEntry dc[i,j] is anchor i's value for sample ... | 50 | false | lingfeiwang/findr-python | _cassists_any | 13,538 | |
LDU_FT/PagerDuty/pagerduty-api-python-client/remove_escalation_policy | LDU_FT | [
"<BEGIN>\n## `abilities`",
"Fetch a list of permission-like strings for this account.\n<END>",
"<BEGIN>\n## `set_api_key_from_file`",
"Set the global api_key from a file path.\n<END>",
"<BEGIN>\n## `resolve`",
"Resolve an incident using a valid email address.\n<END>",
"<BEGIN>\n## `reassign`",
"Reassi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_escalation_policy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_escalation_policy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Remove an escalation policy from this team. | "Remove an escalation policy from this team." | 113 | false | PagerDuty/pagerduty-api-python-client | remove_escalation_policy | 13,539 | |
LDU_FT/sourceperl/pyModbusTCP/auto_open | LDU_FT | [
"<BEGIN>\n## `start`",
"Start the server.",
" Do nothing if server is already running.\n This function will block if no_block is not set to True.\n<END>",
"<BEGIN>\n## `stop`",
"Stop the server.",
" Do nothing if server is already not running.\n<END>",
"<BEGIN>\n## `host`",
"Get o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auto_open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auto_open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Get or set automatic TCP connect mode
:param state: auto_open state or None for get value
:type state: bool or None
:returns: auto_open state or None if set fail
:rtype: bool or None | "Get or set automatic TCP connect mode\n\n :param state: auto_open state or None for get value\n :type state: bool or None\n :returns: auto_open state or None if set fail\n :rtype: bool or None" | 96 | false | sourceperl/pyModbusTCP | auto_open | 13,540 | |
LDU_FT/sveetch/boussole/clean | LDU_FT | [
"<BEGIN>\n## `clean`",
"Filter given settings to keep only key names available in\n ``DEFAULT_SETTINGS``.",
" Args:\n settings (dict): Loaded settings.",
" Returns:\n dict: Settings object filtered.\n<END>",
"<BEGIN>\n## `set_settings`",
"Set every given settings... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API.
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 clean API.
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... | Filter given settings to keep only key names available in
``DEFAULT_SETTINGS``.
Args:
settings (dict): Loaded settings.
Returns:
dict: Settings object filtered. | "Filter given settings to keep only key names available in\n ``DEFAULT_SETTINGS``.\n\n Args:\n settings (dict): Loaded settings.\n\n Returns:\n dict: Settings object filtered." | 289 | false | sveetch/boussole | clean | 13,541 | |
LDU_FT/FNNDSC/med2image/tagstring | LDU_FT | [
"<BEGIN>\n## `verbosity`",
"get/set the verbosity level.",
" The verbosity level filters messages that are output\n to the console. Only messages tagged with a verbosity\n less-than-or-equal-to the class verbosity are output.",
" This does not affect output to non-console devices\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tagstring API.
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 tagstring API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | get/set the tag string itself.
If called with non-zero length argument, will toggle the
internal b_tag flag to True.
The tagstring, if flagged TRUE and non-zero length, will
prepend each output log line. In this manner, it's possible
to post-filter log files for specific tags.
... | "get/set the tag string itself.\n\n If called with non-zero length argument, will toggle the\n internal b_tag flag to True.\n\n The tagstring, if flagged TRUE and non-zero length, will\n prepend each output log line. In this manner, it's possible\n to post-filter log files for specifi... | 131 | false | FNNDSC/med2image | tagstring | 13,542 | |
LDU_FT/rytilahti/python-songpal/get_setting | LDU_FT | [
"<BEGIN>\n## `make`",
"Create a container.",
" Reports extra keys as well as missing ones.\n Thanks to habnabit for the idea!\n<END>",
"<BEGIN>\n## `create_post_request`",
"Call the given method over POST.",
" :param method: Name of the method\n :param params: dict of parameters\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_setting API.
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 get_setting API.
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... | Get a single setting for service.
:param service: Service to query.
:param method: Getter method for the setting, read from ApiMapping.
:param target: Setting to query.
:return: JSON response from the device. | "Get a single setting for service.\n\n :param service: Service to query.\n :param method: Getter method for the setting, read from ApiMapping.\n :param target: Setting to query.\n :return: JSON response from the device." | 86 | false | rytilahti/python-songpal | get_setting | 13,543 | |
LDU_FT/suurjaak/InputScope/make_cursor | LDU_FT | [
"<BEGIN>\n## `start`",
"Starts the listener with incoming and outgoing queues.\n<END>",
"<BEGIN>\n## `fetch`",
"Convenience wrapper for database SELECT and fetch all.\n<END>",
"<BEGIN>\n## `fetchone`",
"Convenience wrapper for database SELECT and fetch one.\n<END>",
"<BEGIN>\n## `insert`",
"Convenienc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_cursor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_cursor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns a cursor to the database, making new connection if not cached. | "Returns a cursor to the database, making new connection if not cached." | 38 | false | suurjaak/InputScope | make_cursor | 13,544 | |
LDU_FT/mmp2/megaman/rotation_matrix | LDU_FT | [
"<BEGIN>\n## `check_eigen_solver`",
"Check that the selected eigensolver is valid",
" Parameters\n ----------\n eigen_solver : string\n string value to validate\n size, nvec : int (optional)\n if both provided, use the specified problem size and number of vectors\n to determine ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rotation_matrix API.
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 rotation_matrix API.
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... | Calculates a rotation matrix given a vector d. The direction of d
corresponds to the rotation axis. The length of d corresponds to
the sin of the angle of rotation.
Variant of: http://mail.scipy.org/pipermail/numpy-discussion/2009-March/040806.html | "Calculates a rotation matrix given a vector d. The direction of d\n corresponds to the rotation axis. The length of d corresponds to\n the sin of the angle of rotation.\n\n Variant of: http://mail.scipy.org/pipermail/numpy-discussion/2009-March/040806.html" | 287 | false | mmp2/megaman | rotation_matrix | 13,545 | |
LDU_FT/gunthercox/ChatterBot/create | LDU_FT | [
"<BEGIN>\n## `get_response`",
"Return the bot's response based on the input.",
" :param statement: An statement object or string.\n :returns: A response to the input.\n :rtype: Statement",
" :param additional_response_selection_parameters: Parameters to pass to the\n cha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Creates a new statement matching the keyword arguments specified.
Returns the created statement. | "Creates a new statement matching the keyword arguments specified.\n Returns the created statement." | 158 | false | gunthercox/ChatterBot | create | 13,546 | |
LDU_FT/jic-dtool/dtoolcore/update_name | LDU_FT | [
"<BEGIN>\n## `generous_parse_uri`",
"Return a urlparse.ParseResult object with the results of parsing the\n given URI. This has the same properties as the result of parse_uri.",
" When passed a relative path, it determines the absolute path, sets the\n scheme to file, the netloc to localhost and return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Update the name of the proto dataset.
:param new_name: the new name of the proto dataset | "Update the name of the proto dataset.\n\n :param new_name: the new name of the proto dataset" | 111 | false | jic-dtool/dtoolcore | update_name | 13,547 | |
LDU_FT/OpenAgInitiative/openag_python/synthesize_firmware_module_info | LDU_FT | [
"<BEGIN>\n## `create_farm`",
"Create a farm. Creates a farm named FARM_NAME on the currently selected\n cloud server. You can use the `openag cloud select_farm` command to start\n mirroring data into it.\n<END>",
"<BEGIN>\n## `list_farms`",
"List all farms you can manage. If you have selected a farm alr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the synthesize_firmware_module_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the synthesize_firmware_module_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Modules are allowed to define attributes on their inputs and outputs that
override the values defined in their respective module types. This function
takes as input a dictionary of `modules` (mapping module IDs to
:class:`~openag.models.FirmwareModule` objects) and a dictionary of
`module_types` (mappin... | "Modules are allowed to define attributes on their inputs and outputs that\n override the values defined in their respective module types. This function\n takes as input a dictionary of `modules` (mapping module IDs to\n :class:`~openag.models.FirmwareModule` objects) and a dictionary of\n `module_types` (m... | 89 | false | OpenAgInitiative/openag_python | synthesize_firmware_module_info | 13,548 | |
LDU_FT/imjoey/pyhaproxy/__render_config_block | LDU_FT | [
"<BEGIN>\n## `build_configuration`",
"Parse the haproxy config file",
" Raises:\n Exception: when there are unsupported section",
" Returns:\n config.Configuration: haproxy config object\n<END>",
"<BEGIN>\n## `build_global`",
"parse `global` section, and return the conf... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __render_config_block API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __render_config_block API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Summary
Args:
config_block [config.Item, ...]: config lines
Returns:
str: config block str | "Summary\n\n Args:\n config_block [config.Item, ...]: config lines\n\n Returns:\n str: config block str" | 35 | false | imjoey/pyhaproxy | __render_config_block | 13,549 | |
LDU_FT/econ-ark/HARK/copy_module_to_local | LDU_FT | [
"<BEGIN>\n## `calcLogSumChoiceProbs`",
"Returns the final optimal value and choice probabilities given the choice\n specific value functions `Vals`. Probabilities are degenerate if sigma == 0.0.\n Parameters\n ----------\n Vals : [numpy.array]\n A numpy.array that holds choice specific values a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_module_to_local 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 copy_module_to_local API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | This function contains simple code to copy a submodule to a location on
your hard drive, as specified by you. The purpose of this code is to provide
users with a simple way to access a *copy* of code that usually sits deep in
the Econ-ARK package structure, for purposes of tinkering and experimenting
di... | "This function contains simple code to copy a submodule to a location on\n your hard drive, as specified by you. The purpose of this code is to provide\n users with a simple way to access a *copy* of code that usually sits deep in\n the Econ-ARK package structure, for purposes of tinkering and experimenting\n ... | 1,253 | true | econ-ark/HARK | copy_module_to_local | 13,550 | |
LDU_FT/stevearc/dql/total_read_throughput | LDU_FT | [
"<BEGIN>\n## `field_or_value`",
"For a clause that could be a field or value,\n create the right one and return it\n<END>",
"<BEGIN>\n## `from_where`",
"Factory method for creating the top-level expression\n<END>",
"<BEGIN>\n## `_factory`",
"Factory for joining constraints with a single conjunction\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the total_read_throughput 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 total_read_throughput API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Combined read throughput of table and global indexes | "Combined read throughput of table and global indexes" | 157 | false | stevearc/dql | total_read_throughput | 13,551 | |
LDU_FT/revelc/pyaccumulo/checkIteratorConflicts | LDU_FT | [
"<BEGIN>\n## `following_key`",
"Returns the key immediately following the input key - based on the Java implementation found in\n org.apache.accumulo.core.data.Key, function followingKey(PartialKey part)\n :param key: the key to be followed\n :return: a key that immediately follows the input key\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkIteratorConflicts 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 checkIteratorConflicts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Parameters:
- login
- tableName
- setting
- scopes | "Parameters:\n - login\n - tableName\n - setting\n - scopes" | 110 | false | revelc/pyaccumulo | checkIteratorConflicts | 13,552 | |
LDU_FT/JustinLovinger/optimal/_new_population_genalg | LDU_FT | [
"<BEGIN>\n## `_initial_population_gsa`",
"Create a random initial population of floating point values.",
" Args:\n population_size: an integer representing the number of solutions in the population.\n problem_size: the number of values in each solution.\n lower_bounds: a list, each value... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _new_population_genalg 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 _new_population_genalg API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Perform all genetic algorithm operations on a population, and return a new population.
population must have an even number of chromosomes.
Args:
population: A list of binary lists, ex. [[0,1,1,0], [1,0,1,0]]
fitness: A list of fitnesses that correspond with chromosomes in the population,
... | "Perform all genetic algorithm operations on a population, and return a new population.\n\n population must have an even number of chromosomes.\n\n Args:\n population: A list of binary lists, ex. [[0,1,1,0], [1,0,1,0]]\n fitness: A list of fitnesses that correspond with chromosomes in the population... | 152 | false | JustinLovinger/optimal | _new_population_genalg | 13,553 | |
LDU_FT/rshipp/python-dshield/_get | LDU_FT | [
"<BEGIN>\n## `_get`",
"Get and return data from the API.",
" :returns: A str, list, or dict, depending on the input values and API data.\n<END>",
"<BEGIN>\n## `backscatter`",
"Returns possible backscatter data.",
" This report only includes \"syn ack\" data and is summarized by source port.",
" ... | 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 do... | 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 do... | Get and return data from the API.
:returns: A str, list, or dict, depending on the input values and API data. | "Get and return data from the API.\n\n :returns: A str, list, or dict, depending on the input values and API data." | 52 | false | rshipp/python-dshield | _get | 13,554 | |
LDU_FT/NiklasRosenstein/py-bundler/iter_modules | LDU_FT | [
"<BEGIN>\n## `_get_long_path_name`",
"Returns the long path name for a Windows path, i.e. the properly cased\n path of an existing file or directory.\n<END>",
"<BEGIN>\n## `get_dependency_walker`",
"Checks if `depends.exe` is in the system PATH. If not, it will be downloaded\n and extracted to a temporary d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_modules API.
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 iter_modules API.
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... | An iterator for the modules that are imported by the specified *module*
or Python source file. The returned #ModuleInfo objects have their
*imported_from* member filled in order to be able to track how a module
was imported. | "An iterator for the modules that are imported by the specified *module*\n or Python source file. The returned #ModuleInfo objects have their\n *imported_from* member filled in order to be able to track how a module\n was imported." | 18 | false | NiklasRosenstein/py-bundler | iter_modules | 13,555 | |
LDU_FT/pytroll/trollimage/color_interp | LDU_FT | [
"<BEGIN>\n## `colorize`",
"Colorize a monochromatic array *arr*, based *colors* given for\n *values*. Interpolation is used. *values* must be in ascending order.\n<END>",
"<BEGIN>\n## `palettize`",
"From start *values* apply *colors* to *data*.\n<END>",
"<BEGIN>\n## `set_range`",
"Set the range of the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color_interp API.
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 color_interp API.
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 the color interpretation for this image. | "Get the color interpretation for this image." | 150 | false | pytroll/trollimage | color_interp | 13,556 | |
LDU_FT/phoemur/wgetter/approximate_size | LDU_FT | [
"<BEGIN>\n## `approximate_size`",
"Humansize.py from Dive into Python3\n Mark Pilgrim - http://www.diveintopython3.net/\n Copyright (c) 2009, Mark Pilgrim, All rights reserved.",
" Convert a file size to human-readable form.\n Keyword arguments:\n size -- file size in bytes\n a_kilobyte_is_102... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the approximate_size API.
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 approximate_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Humansize.py from Dive into Python3
Mark Pilgrim - http://www.diveintopython3.net/
Copyright (c) 2009, Mark Pilgrim, All rights reserved.
Convert a file size to human-readable form.
Keyword arguments:
size -- file size in bytes
a_kilobyte_is_1024_bytes -- if True (default), use multiples of 102... | "Humansize.py from Dive into Python3\n Mark Pilgrim - http://www.diveintopython3.net/\n Copyright (c) 2009, Mark Pilgrim, All rights reserved.\n\n Convert a file size to human-readable form.\n Keyword arguments:\n size -- file size in bytes\n a_kilobyte_is_1024_bytes -- if True (default), use multiple... | 19 | false | phoemur/wgetter | approximate_size | 13,557 | |
LDU_FT/equinor/segyio/from_array3D | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a new segy file.",
" Create a new segy file with the geometry and properties given by `spec`.\n This enables creating SEGY files from your data. The created file supports\n all segyio modes, but has an emphasis on writing. The spec must be\n complete, otherwise an exc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_array3D API.
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 from_array3D API.
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... | Create a new SEGY file from a 3D array
Create an structured SEGY file with defaulted headers from a 3-dimensional
array. The file is inline-sorted. ilines, xlines and samples are inferred
from the array. Structure-defining fields in the binary header and
in the traceheaders are set accordingly. Such fie... | "Create a new SEGY file from a 3D array\n Create an structured SEGY file with defaulted headers from a 3-dimensional\n array. The file is inline-sorted. ilines, xlines and samples are inferred\n from the array. Structure-defining fields in the binary header and\n in the traceheaders are set accordingly. Suc... | 250 | false | equinor/segyio | from_array3D | 13,558 | |
LDU_FT/Yelp/pyramid_zipkin/_get_settings_from_request | LDU_FT | [
"<BEGIN>\n## `_getattr_path`",
"getattr for a dot separated path",
" If an AttributeError is raised, it will return None.\n<END>",
"<BEGIN>\n## `_get_settings_from_request`",
"Extracts Zipkin attributes and configuration from request attributes.\n See the `zipkin_span` context in py-zipkin for more de... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_settings_from_request 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 _get_settings_from_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Extracts Zipkin attributes and configuration from request attributes.
See the `zipkin_span` context in py-zipkin for more detaied information on
all the settings.
Here are the supported Pyramid registry settings:
zipkin.create_zipkin_attr: allows the service to override the creation of
Zipkin ... | "Extracts Zipkin attributes and configuration from request attributes.\n See the `zipkin_span` context in py-zipkin for more detaied information on\n all the settings.\n\n Here are the supported Pyramid registry settings:\n\n zipkin.create_zipkin_attr: allows the service to override the creation of\n ... | 35 | false | Yelp/pyramid_zipkin | _get_settings_from_request | 13,559 | |
LDU_FT/ecmwf/cfgrib/canonical_dataset_to_grib | LDU_FT | [
"<BEGIN>\n## `from_grib_date_time`",
"Return the number of seconds since the ``epoch`` from the values of the ``message`` keys,\n using datetime.total_seconds().",
" :param message: the target GRIB message\n :param date_key: the date key, defaults to \"dataDate\"\n :param time_key: the time key, def... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the canonical_dataset_to_grib 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 canonical_dataset_to_grib API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Write a ``xr.Dataset`` in *canonical* form to a GRIB file. | "Write a ``xr.Dataset`` in *canonical* form to a GRIB file." | 50 | false | ecmwf/cfgrib | canonical_dataset_to_grib | 13,560 | |
LDU_FT/kakwa/ldapcherry/start | LDU_FT | [
"<BEGIN>\n## `get_param`",
"Get a parameter in config (handle default value)",
" :param param: name of the parameter to recover\n :type param: string\n :param default: the default value, raises an exception\n if param is not in configuration and default\n is None (whic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Subscribe all engine plugins and start the engine. | "Subscribe all engine plugins and start the engine." | 83 | false | kakwa/ldapcherry | start | 13,561 | |
LDU_FT/wylee/runcommands/collect_commands | LDU_FT | [
"<BEGIN>\n## `confirm`",
"Prompt for confirmation.",
" Confirmation can be aborted by typing in a no value instead of one\n of the yes values or with Ctrl-C.",
" Args:\n prompt (str): Prompt to present user [\"Really?\"]\n color (string|Color|bool) Color to print prompt string; can be\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_commands API.
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 collect_commands API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Collect commands from package and its subpackages.
This replaces the tedium of adding and maintaining a bunch of
imports like ``from .xyz import x, y, z`` in modules that are used
to collect all of the commands in a package.
Args:
package_name (str): Package to collect from. If not passed, the... | "Collect commands from package and its subpackages.\n\n This replaces the tedium of adding and maintaining a bunch of\n imports like ``from .xyz import x, y, z`` in modules that are used\n to collect all of the commands in a package.\n\n Args:\n package_name (str): Package to collect from. If not pas... | 111 | false | wylee/runcommands | collect_commands | 13,562 | |
LDU_FT/abe-winter/pg13-py/p_array | LDU_FT | [
"<BEGIN>\n## `names_from_exp`",
"Return a list of AttrX and NameX from the expression.\n<END>",
"<BEGIN>\n## `classify_wherex`",
"helper for wherex_to_rowlist. returns [SingleTableCond,...], [CartesianCond,...]\n<END>",
"<BEGIN>\n## `table_to_rowlist`",
"helper for wherex_to_rowlist. (table.Table, [exp, .... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_array API.
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 p_array API.
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... | expression : '{' commalist '}'
| kw_array '[' commalist ']' | "expression : '{' commalist '}'\n | kw_array '[' commalist ']'" | 182 | false | abe-winter/pg13-py | p_array | 13,563 | |
LDU_FT/vsjha18/nsetools/js_adaptor | LDU_FT | [
"<BEGIN>\n## `byte_adaptor`",
"provides py3 compatibility by converting byte based\n file stream to string based file stream",
" Arguments:\n fbuffer: file like objects containing bytes",
" Returns:\n string buffer\n<END>",
"<BEGIN>\n## `js_adaptor`",
"convert javascript objects lik... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the js_adaptor API.
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 js_adaptor API.
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... | convert javascript objects like true, none, NaN etc. to
quoted word.
Arguments:
buffer: string to be converted
Returns:
string after conversion | "convert javascript objects like true, none, NaN etc. to\n quoted word.\n\n Arguments:\n buffer: string to be converted\n\n Returns:\n string after conversion" | 30 | false | vsjha18/nsetools | js_adaptor | 13,564 | |
LDU_FT/72squared/redpipe/_pipeline | LDU_FT | [
"<BEGIN>\n## `connect_redis`",
"Connect your redis-py instance to redpipe.",
" Example:",
" .. code:: python",
" redpipe.connect_redis(redis.StrictRedis(), name='users')",
" Do this during your application bootstrapping.",
" You can also pass a redis-py-cluster instance to this method... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pipeline API.
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 _pipeline API.
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... | Don't call this function directly.
Used by the NestedPipeline class when it executes.
:param name:
:return: | "Don't call this function directly.\n Used by the NestedPipeline class when it executes.\n :param name:\n :return:" | 376 | false | 72squared/redpipe | _pipeline | 13,565 | |
LDU_FT/tango-controls/pytango/DbGetDeviceClassList | LDU_FT | [
"<BEGIN>\n## `get_object_executor`",
"Returns the proper executor for the given object.",
" If the object has *_executors* and *_green_mode* members it returns\n the submit callable for the executor corresponding to the green_mode.\n Otherwise it returns the global executor for the given green_mode.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DbGetDeviceClassList 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 DbGetDeviceClassList API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get Tango classes/device list embedded in a specific device server
:param argin: Device server process name
:type: tango.DevString
:return: Str[0] = Device name
Str[1] = Tango class
Str[n] = Device name
Str[n + 1] = Tango class
:rtype: tango.DevVarStringArray | "Get Tango classes/device list embedded in a specific device server\n\n :param argin: Device server process name\n :type: tango.DevString\n :return: Str[0] = Device name\n Str[1] = Tango class\n Str[n] = Device name\n Str[n + 1] = Tango class\n :rtype: tango.DevVarString... | 577 | false | tango-controls/pytango | DbGetDeviceClassList | 13,566 | |
LDU_FT/minhhoit/yacms/keywords_for | LDU_FT | [
"<BEGIN>\n## `formfield`",
"Apply the widget class defined by the\n ``RICHTEXT_WIDGET_CLASS`` setting.\n<END>",
"<BEGIN>\n## `as_tag`",
"Creates a tag expecting the format:\n ``{% tag_name as var_name %}``\n The decorated func returns the value that is given to\n ``var_name`` in th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keywords_for API.
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 keywords_for API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return a list of ``Keyword`` objects for the given model instance
or a model class. In the case of a model class, retrieve all
keywords for all instances of the model and apply a ``weight``
attribute that can be used to create a tag cloud. | "Return a list of ``Keyword`` objects for the given model instance\n or a model class. In the case of a model class, retrieve all\n keywords for all instances of the model and apply a ``weight``\n attribute that can be used to create a tag cloud." | 502 | false | minhhoit/yacms | keywords_for | 13,567 | |
LDU_FT/hellock/icrawler/connect | LDU_FT | [
"<BEGIN>\n## `to_dict`",
"convert detailed proxy info into a dict",
" Returns:\n dict: A dict with four keys: ``addr``, ``protocol``,\n ``weight`` and ``last_checked``\n<END>",
"<BEGIN>\n## `proxy_num`",
"Get the number of proxies in the pool",
" Args:\n ... | 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... | Connect two ThreadPools.
The ``in_queue`` of the second pool will be set as the ``out_queue`` of
the current pool, thus all the output will be input to the second pool.
Args:
component (ThreadPool): the ThreadPool to be connected.
Returns:
ThreadPool: the modifi... | "Connect two ThreadPools.\n\n The ``in_queue`` of the second pool will be set as the ``out_queue`` of\n the current pool, thus all the output will be input to the second pool.\n\n Args:\n component (ThreadPool): the ThreadPool to be connected.\n Returns:\n ThreadPool: t... | 105 | false | hellock/icrawler | connect | 13,568 | |
LDU_FT/carljm/django-adminfiles/addTags | LDU_FT | [
"<BEGIN>\n## `get_uploads`",
"Return a generator yielding uploads referenced in the given text.\n<END>",
"<BEGIN>\n## `parse_match`",
"Accept an re match object resulting from an ``UPLOAD_RE`` match\n and return a two-tuple where the first element is the\n corresponding ``FileUpload`` and the second is ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addTags API.
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 addTags API.
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... | Adds the list of tags to current tags. (flickr.photos.addtags) | "Adds the list of tags to current tags. (flickr.photos.addtags)" | 67 | false | carljm/django-adminfiles | addTags | 13,569 | |
LDU_FT/belbio/bel/get_pubmed | LDU_FT | [
"<BEGIN>\n## `convert_msg_to_html`",
"Convert \\n into a <BR> for an HTML formatted message\n<END>",
"<BEGIN>\n## `validate`",
"Validate Nanopub",
" Error Levels are similar to log levels - selecting WARNING includes both\n WARNING and ERROR, selecting ERROR just includes ERROR",
" The validation... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pubmed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pubmed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Get pubmed xml for pmid and convert to JSON
Remove MESH terms if they are duplicated in the compound term set
ArticleDate vs PubDate gets complicated: https://www.nlm.nih.gov/bsd/licensee/elements_descriptions.html see <ArticleDate> and <PubDate>
Only getting pub_year at this point from the <PubDate> elem... | "Get pubmed xml for pmid and convert to JSON\n\n Remove MESH terms if they are duplicated in the compound term set\n\n ArticleDate vs PubDate gets complicated: https://www.nlm.nih.gov/bsd/licensee/elements_descriptions.html see <ArticleDate> and <PubDate>\n Only getting pub_year at this point from the <PubDate... | 475 | false | belbio/bel | get_pubmed | 13,570 | |
LDU_FT/NoviceLive/intellicoder/from_section | LDU_FT | [
"<BEGIN>\n## `format`",
"Format the record using the corresponding formatter.\n<END>",
"<BEGIN>\n## `make_c_header`",
"Build a C header from the front and body.\n<END>",
"<BEGIN>\n## `reloc_var`",
"Build C source code to relocate a variable.\n<END>",
"<BEGIN>\n## `make_c_args`",
"Build a C argument li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_section API.
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 from_section API.
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... | Construct a Converter object from the specified section
of the specified binary stream. | "Construct a Converter object from the specified section\n of the specified binary stream." | 117 | false | NoviceLive/intellicoder | from_section | 13,571 | |
LDU_FT/MacHu-GWU/dataIO-project/find_venv_DST | LDU_FT | [
"<BEGIN>\n## `is_json_file`",
"Parse file extension.",
" - *.json: uncompressed, utf-8 encode json file\n - *.gz: compressed, utf-8 encode json file\n<END>",
"<BEGIN>\n## `load`",
"Load Json from file. If file are not exists, returns ``default``.",
" :param abspath: file path. use absolute path a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_venv_DST API.
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 find_venv_DST API.
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... | Find where this package should be installed to in this virtualenv.
For example: ``/path-to-venv/lib/python2.7/site-packages/package-name`` | "Find where this package should be installed to in this virtualenv.\n\n For example: ``/path-to-venv/lib/python2.7/site-packages/package-name``" | 115 | false | MacHu-GWU/dataIO-project | find_venv_DST | 13,572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.