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/ebu/PlugIt/_get_node
LDU_FT
[ "<BEGIN>\n## `doQuery`", "Send a request to the server and return the result\n<END>", "<BEGIN>\n## `ping`", "Return true if the server successfully pinged\n<END>", "<BEGIN>\n## `checkVersion`", "Check if the server use the same version of our protocol\n<END>", "<BEGIN>\n## `getMedia`", "Return a tuple...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_node API. 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...
taken originally from http://stackoverflow.com/questions/2687173/django-how-can-i-get-a-block-from-a-template
"taken originally from\n http://stackoverflow.com/questions/2687173/django-how-can-i-get-a-block-from-a-template"
75
false
ebu/PlugIt
_get_node
4,673
LDU_FT/awslabs/aws-shell/run
LDU_FT
[ "<BEGIN>\n## `_create_key_manager`", "Create and initialize the keybinding manager.", " :type get_fuzzy_match: callable\n :param get_fuzzy_match: Gets the fuzzy matching config.", " :type set_fuzzy_match: callable\n :param set_fuzzy_match: Sets the fuzzy matching config.", " ...
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...
Open application's history buffer in an editor. :type command: list :param command: The dot command as a list split on whitespace, e.g ``['.foo', 'arg1', 'arg2']`` :type application: AWSShell :param application: The application object.
"Open application's history buffer in an editor.\n\n :type command: list\n :param command: The dot command as a list split\n on whitespace, e.g ``['.foo', 'arg1', 'arg2']``\n\n :type application: AWSShell\n :param application: The application object."
109
false
awslabs/aws-shell
run
4,674
LDU_FT/clusterpoint/python-client-api/get_documents
LDU_FT
[ "<BEGIN>\n## `_handle_response`", "Initialize the corect Response object from the response string based on the API command type.\n<END>", "<BEGIN>\n## `_parse_for_errors`", "Look for an error tag and raise APIError for fatal errors or APIWarning for nonfatal ones.\n<END>", "<BEGIN>\n## `get_content_string`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_documents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_documents API. 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...
Get the documents returned from Storege in this response. Keyword args: doc_format -- Specifies the doc_format for the returned documents. Can be 'dict', 'etree' or 'string'. Default is 'dict'. Returns: A dict where keys are document ids and ...
"Get the documents returned from Storege in this response.\n\n Keyword args:\n doc_format -- Specifies the doc_format for the returned documents.\n Can be 'dict', 'etree' or 'string'. Default is 'dict'.\n\n Returns:\n A dict where keys are document ...
120
false
clusterpoint/python-client-api
get_documents
4,675
LDU_FT/ayust/kitnirc/handle_event
LDU_FT
[ "<BEGIN>\n## `on_line`", "Default handling for incoming lines.", " This handler will automatically manage the following IRC messages:", " PING:\n Responds with a PONG.\n PRIVMSG:\n Dispatches the PRIVMSG event.\n NOTICE:\n Dispatches the NOTICE event.\n MOTDSTART:\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_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 extr...
Dispatch an event to its handler. Note: the handler does not receive the event which triggered its call. If you want to handle more than one event, it's recommended to put the shared handling in a separate function, and create wrapper handlers that call the shared function.
"Dispatch an event to its handler.\n\n Note: the handler does not receive the event which triggered its call.\n If you want to handle more than one event, it's recommended to put the\n shared handling in a separate function, and create wrapper handlers\n that call the shared function."
151
false
ayust/kitnirc
handle_event
4,676
LDU_FT/nir0s/serv/_set_service_name_from_command
LDU_FT
[ "<BEGIN>\n## `generate`", "Create a service.", " `COMMAND` is the path to the executable to run\n<END>", "<BEGIN>\n## `_parse_service_env_vars`", "Return a dict based on `key=value` pair strings.\n<END>", "<BEGIN>\n## `_set_service_name_from_command`", "Set the name of a service according to the comm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_service_name_from_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_service_name_from_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Set the name of a service according to the command. This is only relevant if the name wasn't explicitly provided. Note that this is risky as it sets the name according to the name of the file the command is using. If two services use the same binary, even if their args are different, th...
"Set the name of a service according to the command.\n\n This is only relevant if the name wasn't explicitly provided.\n Note that this is risky as it sets the name according to the\n name of the file the command is using. If two services\n use the same binary, even if their args are differe...
65
false
nir0s/serv
_set_service_name_from_command
4,677
LDU_FT/yeraydiazdiaz/lunr.py/step1ab
LDU_FT
[ "<BEGIN>\n## `get_nltk_builder`", "Returns a builder with stemmers for all languages added to it.", " Args:\n languages (list): A list of supported languages.\n<END>", "<BEGIN>\n## `register_languages`", "Register all supported languages to ensure compatibility.\n<END>", "<BEGIN>\n## `Tokenizer`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step1ab API. 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 step1ab API. 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...
step1ab() gets rid of plurals and -ed or -ing. e.g. caresses -> caress ponies -> poni ties -> ti caress -> caress cats -> cat feed -> feed agreed -> agree disabled -> disable matting ...
"step1ab() gets rid of plurals and -ed or -ing. e.g.\n\n caresses -> caress\n ponies -> poni\n ties -> ti\n caress -> caress\n cats -> cat\n\n feed -> feed\n agreed -> agree\n disabled -> disable\n\n ...
128
false
yeraydiazdiaz/lunr.py
step1ab
4,678
LDU_FT/msikma/kanaconv/_normalize_dakuten
LDU_FT
[ "<BEGIN>\n## `_clear_char`", "Clears the current character and makes the machine ready\n to accept the next character.\n<END>", "<BEGIN>\n## `_append_unknown_char`", "Appends the unknown character, in case one was encountered.\n<END>", "<BEGIN>\n## `_flush_char`", "Appends the rōmaji characters tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize_dakuten 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 _normalize_dakuten 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...
Replaces the dakuten and handakuten modifier character combinations with single characters. For example, か\u3099か becomes がけ, or は゜は becomes ぱは.
"Replaces the dakuten and handakuten modifier character combinations\n with single characters. For example, か\\u3099か becomes がけ,\n or は゜は becomes ぱは."
57
false
msikma/kanaconv
_normalize_dakuten
4,679
LDU_FT/stephrdev/django-formwizard/render_next_step
LDU_FT
[ "<BEGIN>\n## `as_view`", "This method is used within urls.py to create unique formwizard\n instances for every request. We need to override this method because\n we add some kwargs which are needed to make the formwizard usable.\n<END>", "<BEGIN>\n## `get_initkwargs`", "Creates a dict with all n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_next_step API. 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 render_next_step API. 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 method gets called when the next step/form should be rendered. `form` contains the last/current form.
"THis method gets called when the next step/form should be rendered.\n `form` contains the last/current form."
60
false
stephrdev/django-formwizard
render_next_step
4,680
LDU_FT/markreidvfx/pyaaf2/create_wav_link
LDU_FT
[ "<BEGIN>\n## `save`", "Writes current changes to disk and flushes modified objects in the\n AAFObjectManager\n<END>", "<BEGIN>\n## `close`", "Close the file. A closed file cannot be read or written any more.\n<END>", "<BEGIN>\n## `run_apidoc`", "This method is required by the setup method below.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_wav_link API. 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 create_wav_link API. 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...
This will return three MOBs for the given `metadata`: master_mob, source_mob, tape_mob The parameter `metadata` is presumed to be a dictionary from a run of ffprobe. It's not clear for the purposes of Pro Tools that a tape_mob needs to be made, it'll open the AAF perfectly well without out one. A...
"This will return three MOBs for the given `metadata`: master_mob, source_mob,\n tape_mob\n\n The parameter `metadata` is presumed to be a dictionary from a run of ffprobe.\n\n It's not clear for the purposes of Pro Tools that a tape_mob needs to be made,\n it'll open the AAF perfectly well without out one....
29
false
markreidvfx/pyaaf2
create_wav_link
4,681
LDU_FT/jpoullet2000/atlasclient/update
LDU_FT
[ "<BEGIN>\n## `handle_response`", "Given a requests.Response object, throw the appropriate exception, if applicable.\n<END>", "<BEGIN>\n## `create`", "Create a new instance of this resource type.", " As a general rule, the identifier should have been provided, but in\n some subclasses the ident...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update all resources in this collection.
"Update all resources in this collection."
66
false
jpoullet2000/atlasclient
update
4,682
LDU_FT/bokeh/bokeh/decode_base64_dict
LDU_FT
[ "<BEGIN>\n## `notify_owner`", "A decorator for mutating methods of property container classes\n that notifies owners of the property container about mutating changes.", " Args:\n func (callable) : the container method to wrap in a notification", " Returns:\n wrapped method", " Exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_base64_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_base64_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. Th...
Decode a base64 encoded array into a NumPy array. Args: data (dict) : encoded array data to decode Data should have the format encoded by :func:`encode_base64_dict`. Returns: np.ndarray
"Decode a base64 encoded array into a NumPy array.\n\n Args:\n data (dict) : encoded array data to decode\n\n Data should have the format encoded by :func:`encode_base64_dict`.\n\n Returns:\n np.ndarray"
2,090
true
bokeh/bokeh
decode_base64_dict
4,683
LDU_FT/aksas/pypo4sel/wait_not_displayed
LDU_FT
[ "<BEGIN>\n## `wait`", "Wait ``timeout`` seconds until ``method(**kwargs)`` returns a ``value`` that *bool(value)==True*.\n Returns last ``value``.\n If time expired and ``fail_on_timeout`` specified, then raise TimeoutException.", " :param method:\n :param timeout:\n :param fail_on_timeout:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_not_displayed 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 wait_not_displayed 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...
Wait until element becomes invisible or time out. Returns true is element became invisible, otherwise false. If timeout is not specified or 0, then uses specific element wait timeout. :param element: :param timeout: :param fail_on_timeout: :return:
"Wait until element becomes invisible or time out.\n Returns true is element became invisible, otherwise false.\n If timeout is not specified or 0, then uses specific element wait timeout.\n :param element:\n :param timeout:\n :param fail_on_timeout:\n :return:"
42
false
aksas/pypo4sel
wait_not_displayed
4,684
LDU_FT/sanger-pathogens/circlator/check_files_exist
LDU_FT
[ "<BEGIN>\n## `run_spades`", "Runs spades on all kmers. Each a separate run because SPAdes dies if any kmer does\n not work. Chooses the 'best' assembly to be the one with the biggest N50\n<END>", "<BEGIN>\n## `aligned_read_to_read`", "Returns Fasta or Fastq sequence from pysam aligned read\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_files_exist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_files_exist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Dies if any files in the list of filenames does not exist
"Dies if any files in the list of filenames does not exist"
102
false
sanger-pathogens/circlator
check_files_exist
4,685
LDU_FT/striglia/pyramid_swagger/partial_path_match
LDU_FT
[ "<BEGIN>\n## `includeme`", ":type config: :class:`pyramid.config.Configurator`\n<END>", "<BEGIN>\n## `validate_swagger_schema`", "Validate the structure of Swagger schemas against the spec.", " **Valid only for Swagger v1.2 spec**", " Note: It is possible that resource_listing is not present in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the partial_path_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the partial_path_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Validates if path1 and path2 matches, ignoring any kwargs in the string. We need this to ensure we can match Swagger patterns like: /foo/{id} against the observed pyramid path /foo/1 :param path1: path of a url :type path1: string :param path2: path of a url :type path2: string...
"Validates if path1 and path2 matches, ignoring any kwargs in the string.\n\n We need this to ensure we can match Swagger patterns like:\n /foo/{id}\n against the observed pyramid path\n /foo/1\n\n :param path1: path of a url\n :type path1: string\n :param path2: path of a url\n :type pa...
101
false
striglia/pyramid_swagger
partial_path_match
4,686
LDU_FT/potash/drain/to_float
LDU_FT
[ "<BEGIN>\n## `y_score`", "Score examples from a new matrix X\n Args:\n estimator: an sklearn estimator object\n X: design matrix with the same features that the estimator was trained on", " Returns: a vector of scores of the same length as X", " Note that estimator.predict_proba is pref...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_float API. 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 to_float API. 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...
cast numpy arrays to float32 if there's more than one, return an array
"cast numpy arrays to float32\n if there's more than one, return an array"
165
false
potash/drain
to_float
4,687
LDU_FT/geronimp/graftM/convert_cluster_dict_keys_to_aliases
LDU_FT
[ "<BEGIN>\n## `_write_consensus_strings`", "Writes the taxonomy of each leaf to a file. If the leaf has no\n taxonomy, a taxonomy string will be created using the annotations\n provided to the ancestor nodes of that leaf (meaning, it will be\n decorated).", " Parameters\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_cluster_dict_keys_to_aliases API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_cluster_dict_keys_to_aliases API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
Parameters ---------- cluster_dict : dict dictionary stores information on pre-placement clustering alias_hash : dict Stores information on each input read file given to GraftM, the corresponding reads found within each file, and their taxonomy Return...
"Parameters\n ----------\n cluster_dict : dict\n dictionary stores information on pre-placement clustering\n alias_hash : dict\n Stores information on each input read file given to GraftM, the\n corresponding reads found within each file, and their taxonomy\n\n ...
334
false
geronimp/graftM
convert_cluster_dict_keys_to_aliases
4,688
LDU_FT/aarongarrett/inspyred/adaptive_grid_archiver
LDU_FT
[ "<BEGIN>\n## `mutator`", "Return an inspyred mutator function based on the given function.", " This function generator takes a function that operates on only\n one candidate to produce a single mutated candidate. The generator \n handles the iteration over each candidate in the set to be mutated.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adaptive_grid_archiver 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 adaptive_grid_archiver API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Archive only the best individual(s) using a fixed size grid. This function archives the best solutions by using a fixed-size grid to determine which existing solutions should be removed in order to make room for new ones. This archiver is designed specifically for use with the Pareto Archived Evolu...
"Archive only the best individual(s) using a fixed size grid.\n \n This function archives the best solutions by using a fixed-size grid\n to determine which existing solutions should be removed in order to\n make room for new ones. This archiver is designed specifically for\n use with the Pareto Archived...
390
false
aarongarrett/inspyred
adaptive_grid_archiver
4,689
LDU_FT/roboogle/gtkmvc3/search_adapter_info
LDU_FT
[ "<BEGIN>\n## `__create_log_props`", "Creates all the logical property.", " The list of names of properties to be created is passed\n with frozenset log_props. The getter/setter information is\n taken from _{get,set}dict.", " This method resolves also wildcards in names, and perform...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_adapter_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_adapter_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Given a widget returns the default tuple found in __def_adapter. @param flavour can be used to specialize the search for a particular tuple.
"Given a widget returns the default tuple found in __def_adapter.\n\n @param flavour can be used to specialize the search for a\n particular tuple."
300
false
roboogle/gtkmvc3
search_adapter_info
4,690
LDU_FT/datasift/datasift-python/update
LDU_FT
[ "<BEGIN>\n## `validate`", "Validate the given CSDL", " :param csdl: The CSDL to be validated for analysis\n :type csdl: str\n :param service: The service for this API call (facebook, etc)\n :type service: str\n :return: dict of REST API output with headers ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update an Identity :param label: The label to give this new identity :param status: The status of this identity. Default: 'active' :param master: Represents whether this identity is a master. Default: False :return: dict of REST API output with headers at...
"Update an Identity\n\n :param label: The label to give this new identity\n :param status: The status of this identity. Default: 'active'\n :param master: Represents whether this identity is a master.\n Default: False\n :return: dict of REST API output with hea...
238
false
datasift/datasift-python
update
4,691
LDU_FT/welbornprod/colr/_build_codes
LDU_FT
[ "<BEGIN>\n## `main`", "Main entry point, expects doctopt arg dict as argd.\n<END>", "<BEGIN>\n## `print_err`", "A wrapper for print() that uses stderr by default.\n<END>", "<BEGIN>\n## `walk_dir_animated`", "Walk a directory, printing status updates along the way.\n<END>", "<BEGIN>\n## `walk_dir_progres...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_codes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_codes API. 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...
Build code map, encapsulated to reduce module-level globals.
"Build code map, encapsulated to reduce module-level globals."
316
false
welbornprod/colr
_build_codes
4,692
LDU_FT/square/pylink/connect
LDU_FT
[ "<BEGIN>\n## `main`", "Prints the core's information.", " Args:\n jlink_serial (str): the J-Link serial number\n device (str): the target CPU", " Returns:\n Always returns ``0``.", " Raises:\n JLinkException: on error\n<END>", "<BEGIN>\n## `acquire`", "Attempts to acquire a ...
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...
Connects the J-Link to its target. Args: self (JLink): the ``JLink`` instance chip_name (str): target chip name speed (int): connection speed, one of ``{5-12000, 'auto', 'adaptive'}`` verbose (bool): boolean indicating if connection should be verbose in logging ...
"Connects the J-Link to its target.\n\n Args:\n self (JLink): the ``JLink`` instance\n chip_name (str): target chip name\n speed (int): connection speed, one of ``{5-12000, 'auto', 'adaptive'}``\n verbose (bool): boolean indicating if connection should be verbose in logging\n\...
949
false
square/pylink
connect
4,693
LDU_FT/fridiculous/estimators/hash
LDU_FT
[ "<BEGIN>\n## `_get_proxy_object`", "Returns the proxy object for an input object", " If the object is already the proxy object, return it.\n Otherwise set the appropriate proxy object to the proxy object's attribute\n<END>", "<BEGIN>\n## `hash`", "Quick calculation of a hash to identify unique...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash API. 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 hash API. 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...
Quick calculation of a hash to identify uniquely Python objects containing numpy arrays. Parameters ----------- hash_name: 'md5' or 'sha1' Hashing algorithm used. sha1 is supposedly safer, but md5 is faster. coerce_mmap: boolean Make no differe...
"Quick calculation of a hash to identify uniquely Python objects\n containing numpy arrays.\n Parameters\n -----------\n hash_name: 'md5' or 'sha1'\n Hashing algorithm used. sha1 is supposedly safer, but md5 is\n faster.\n coerce_mmap: boolean\n Make n...
11
false
fridiculous/estimators
hash
4,694
LDU_FT/cthoyt/onto2nx/nextClass
LDU_FT
[ "<BEGIN>\n## `parse_owl_rdf`", "Parses an OWL resource that's encoded in OWL/RDF into a NetworkX directional graph", " :param str iri: The location of the OWL resource to be parsed by Ontospy\n :type iri: str\n :rtype: network.DiGraph\n<END>", "<BEGIN>\n## `get_or_create_home_repo`", "Check to make...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nextClass API. 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 nextClass API. 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...
Returns the next class in the list of classes. If it's the last one, returns the first one.
"Returns the next class in the list of classes. If it's the last one, returns the first one."
102
false
cthoyt/onto2nx
nextClass
4,695
LDU_FT/evolbioinfo/pastml/pastml_pipeline
LDU_FT
[ "<BEGIN>\n## `reconstruct_ancestral_states`", "Reconstructs ancestral states for the given character on the given tree.", " :param character: character whose ancestral states are to be reconstructed.\n :type character: str\n :param tree: tree whose ancestral state are to be reconstructed,\n anno...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pastml_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pastml_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 e...
Applies PASTML to the given tree with the specified states and visualizes the result (as html maps). :param tree: path to the input tree in newick format (must be rooted). :type tree: str :param data: path to the annotation file in tab/csv format with the first row containing the column names. :type d...
"Applies PASTML to the given tree with the specified states and visualizes the result (as html maps).\n\n :param tree: path to the input tree in newick format (must be rooted).\n :type tree: str\n\n :param data: path to the annotation file in tab/csv format with the first row containing the column names.\n ...
150
false
evolbioinfo/pastml
pastml_pipeline
4,696
LDU_FT/pacificclimate/cfmeta/_update_known_atts
LDU_FT
[ "<BEGIN>\n## `get_dir_meta`", "Pop path information and map to supplied atts\n<END>", "<BEGIN>\n## `get_fp_meta`", "Processes a CMIP3 style file path.", " The standard CMIP3 directory structure:", " <experiment>/<variable_name>/<model>/<ensemble_member>/<CMOR filename>.nc", " Filename is of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_known_atts 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 _update_known_atts 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...
Updates instance attributes with supplied keyword arguments.
"Updates instance attributes with supplied keyword arguments."
56
false
pacificclimate/cfmeta
_update_known_atts
4,697
LDU_FT/azraq27/neural/universal_read
LDU_FT
[ "<BEGIN>\n## `connectivity_map`", "Will perform connectivity analysis on ``dset`` using seed point ``(x,y,z)`` (in RAI order) with a sphere of radius ``radius``.\n Does not perform any preprocessing of ``dset``. This should be already motion corrected, noise-regressed, residualized, etc.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the universal_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the universal_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Will open and read a file with universal line endings, trying to decode whatever format it's in (e.g., utf8 or utf16)
"Will open and read a file with universal line endings, trying to decode whatever format it's in (e.g., utf8 or utf16)"
232
false
azraq27/neural
universal_read
4,698
LDU_FT/commonsense/metanl/get_record_pos
LDU_FT
[ "<BEGIN>\n## `unicode_is_punctuation`", "Test if a token is made entirely of Unicode characters of the following\n classes:", " - P: punctuation\n - S: symbols\n - Z: separators\n - M: combining marks\n - C: control characters", " >>> unicode_is_punctuation('word')\n False\n >>> uni...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_record_pos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_record_pos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Given a record, get the word's part of speech. Here we're going to return MeCab's part of speech (written in Japanese), though if it's a stopword we prefix the part of speech with '~'.
"Given a record, get the word's part of speech.\n\n Here we're going to return MeCab's part of speech (written in\n Japanese), though if it's a stopword we prefix the part of speech\n with '~'."
70
false
commonsense/metanl
get_record_pos
4,699
LDU_FT/mapbox/mapboxgl-jupyter/generate_vector_numeric_map
LDU_FT
[ "<BEGIN>\n## `generate_vector_color_map`", "Generate color stops array for use with match expression in mapbox template\n<END>", "<BEGIN>\n## `generate_vector_numeric_map`", "Generate stops array for use with match expression in mapbox template\n<END>", "<BEGIN>\n## `check_vector_template`", "Determines i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_vector_numeric_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_vector_numeric_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Generate stops array for use with match expression in mapbox template
"Generate stops array for use with match expression in mapbox template"
57
false
mapbox/mapboxgl-jupyter
generate_vector_numeric_map
4,700
LDU_FT/ElementAI/greensim/_schedule
LDU_FT
[ "<BEGIN>\n## `pause`", "Pauses the current process indefinitely -- it will require another process to `resume()` it. When this resumption\n happens, the process returns from this function.\n<END>", "<BEGIN>\n## `advance`", "Pauses the current process for the given delay (in simulated time). The process wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _schedule API. 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 _schedule API. 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...
Schedules a one-time event to be run along the simulation. The event is scheduled relative to current simulator time, so delay is expected to be a positive simulation time interval. The `event' parameter corresponds to a callable object (e.g. a function): it will be called so as to "execute" the event,...
"Schedules a one-time event to be run along the simulation. The event is scheduled relative to current simulator\n time, so delay is expected to be a positive simulation time interval. The `event' parameter corresponds to a\n callable object (e.g. a function): it will be called so as to \"execute\" the e...
83
false
ElementAI/greensim
_schedule
4,701
LDU_FT/Aluriak/bubble-tools/mergeability_validation
LDU_FT
[ "<BEGIN>\n## `bubble_to_dot`", "Write in dotfile a graph equivalent to those depicted in bubble file\n<END>", "<BEGIN>\n## `bubble_to_gexf`", "Write in bblfile a graph equivalent to those depicted in bubble file\n<END>", "<BEGIN>\n## `bubble_to_js`", "Write in jsdir a graph equivalent to those depicted in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mergeability_validation 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 mergeability_validation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Yield message about mergables powernodes
"Yield message about mergables powernodes"
88
false
Aluriak/bubble-tools
mergeability_validation
4,702
LDU_FT/grycap/RADL/getRequestedNameIface
LDU_FT
[ "<BEGIN>\n## `parse_radl`", "Parse a RADL document in JSON.", " Args.:\n - data(str or list): document to parse.", " Return(RADL): RADL object.\n<END>", "<BEGIN>\n## `radlToSimple`", "Return a list of maps whose values are only other maps or lists.\n<END>", "<BEGIN>\n## `getValue`", "Return t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getRequestedNameIface 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 getRequestedNameIface API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return the dns name associated to the net interface.
"Return the dns name associated to the net interface."
121
false
grycap/RADL
getRequestedNameIface
4,703
LDU_FT/Ouranosinc/xclim/infer_doy_max
LDU_FT
[ "<BEGIN>\n## `build_module`", "Create a module from imported objects.", " Parameters\n ----------\n name : str\n New module name.\n objs : dict\n Dictionary of the objects (or their name) to import into the module,\n keyed by the name they will take in the created module.\n doc : s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the infer_doy_max API. 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 infer_doy_max API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return the largest doy allowed by calendar. Parameters ---------- arr : xarray.DataArray Array with `time` coordinate. Returns ------- int The largest day of the year found in calendar.
"Return the largest doy allowed by calendar.\n\n Parameters\n ----------\n arr : xarray.DataArray\n Array with `time` coordinate.\n\n Returns\n -------\n int\n The largest day of the year found in calendar."
578
false
Ouranosinc/xclim
infer_doy_max
4,704
LDU_FT/iansf/qj/_stack_effect3
LDU_FT
[ "<BEGIN>\n## `qj`", "A combined logging and debugging function.", " Arguments:\n x: The thing to log. x is also the return value. Defaults to '', although\n it's somewhat odd to call this function without passing x.\n s: Optional string to prefix the log message with. Defaults to '', which\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _stack_effect3 API. 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 _stack_effect3 API. 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...
Compute the effect an op_code and oparg have on the stack. See python/compile.c.
"Compute the effect an op_code and oparg have on the stack. See python/compile.c."
28
false
iansf/qj
_stack_effect3
4,705
LDU_FT/urosjarc/decisionTable.py/__toString
LDU_FT
[ "<BEGIN>\n## `__tableStringParser`", "Will parse and check tableString parameter for any invalid strings.", "\t\tArgs:\n\t\t\ttableString (str): Standard table string with header and decisions.", "\t\tRaises:\n\t\t\tValueError: tableString is empty.\n\t\t\tValueError: One of the header element is not unique.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __toString API. 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 __toString API. 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...
Will replace dict values with string values Args: values (dict): Dictionary of values Returns: Updated values dict
"Will replace dict values with string values\n\n\t\tArgs:\n\t\t\tvalues (dict): Dictionary of values\n\n\t\tReturns:\n\t\t\tUpdated values dict"
35
false
urosjarc/decisionTable.py
__toString
4,706
LDU_FT/pennlabs/penn-sdk-python/pull_3year
LDU_FT
[ "<BEGIN>\n## `get_meals`", "Extract meals into old format from a DiningV2 JSON response\n<END>", "<BEGIN>\n## `menu`", "Get the menu for the venue corresponding to venue_id,\n on date.", " :param venue_id:\n A string representing the id of a venue, e.g. \"abc\".\n :param date:\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull_3year API. 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 pull_3year API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns a list (in JSON format) containing all the events from the Penn iCal Calendar. List contains events in chronological order. Each element of the list is a dictionary, containing: - Name of the event 'name' - Start date 'start' - End date 'end'
"Returns a list (in JSON format) containing all the events from the Penn iCal Calendar.\n\n List contains events in chronological order.\n\n Each element of the list is a dictionary, containing:\n - Name of the event 'name'\n - Start date 'start'\n - End date 'end'"
115
false
pennlabs/penn-sdk-python
pull_3year
4,707
LDU_FT/chaoss/grimoirelab-manuscripts/get_cardinality
LDU_FT
[ "<BEGIN>\n## `overview`", "Compute metrics in the overview section for enriched github issues\n indexes.\n Returns a dictionary. Each key in the dictionary is the name of\n a metric, the value is the value of that metric. Value can be\n a complex object (eg, a time series).", " :param index: inde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cardinality API. 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 get_cardinality API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Create a cardinality aggregation object and add it to the aggregation dict :param field: the field present in the index that is to be aggregated :returns: self, which allows the method to be chainable with the other methods
"Create a cardinality aggregation object and add it to the aggregation dict\n\n :param field: the field present in the index that is to be aggregated\n :returns: self, which allows the method to be chainable with the other methods"
271
false
chaoss/grimoirelab-manuscripts
get_cardinality
4,708
LDU_FT/vertexproject/synapse/ignorespace
LDU_FT
[ "<BEGIN>\n## `openDatFile`", "Open a file-like object using a pkg relative path.", " Example:", " fd = openDatFile('foopkg.barpkg/wootwoot.bin')\n<END>", "<BEGIN>\n## `scrape`", "Scrape types from a blob of text and return node tuples.", " Args:\n text (str): Text to scrape.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ignorespace API. 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 ignorespace API. 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...
Ignore whitespace as well as comment syntax ``//`` and ``/* ... */``
"Ignore whitespace as well as comment syntax ``//`` and ``/* ... */``"
1,135
true
vertexproject/synapse
ignorespace
4,709
LDU_FT/croscon/fleaker/parse_meta
LDU_FT
[ "<BEGIN>\n## `install`", "Install Fleaker.", " In a function so we can protect this file so it's only run when we\n explicitly invoke it and not, say, when py.test collects all Python\n modules.\n<END>", "<BEGIN>\n## `python_value`", "Return the JSON in the database as a ``dict``.", " Retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_meta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_meta API. 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...
Parses the meta field in the message, copies it's keys into a new dict and replaces the values, which should be attribute paths relative to the passed in object, with the current value at the end of that path. This function will run recursively when it encounters other dicts inside the m...
"Parses the meta field in the message, copies it's keys into a new\n dict and replaces the values, which should be attribute paths relative\n to the passed in object, with the current value at the end of that\n path. This function will run recursively when it encounters other dicts\n inside ...
259
false
croscon/fleaker
parse_meta
4,710
LDU_FT/leancloud/python-sdk/sign_up
LDU_FT
[ "<BEGIN>\n## `become`", "通过 session token 获取用户对象", " :param session_token: 用户的 session token\n :return: leancloud.User\n<END>", "<BEGIN>\n## `sign_up`", "创建一个新用户。新创建的 User 对象,应该使用此方法来将数据保存至服务器,而不是使用 save 方法。\n 用户对象上必须包含 username 和 password 两个字段\n<END>", "<BEGIN>\n## `login`", "登陆用户。...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_up API. 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 sign_up API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
创建一个新用户。新创建的 User 对象,应该使用此方法来将数据保存至服务器,而不是使用 save 方法。 用户对象上必须包含 username 和 password 两个字段
"创建一个新用户。新创建的 User 对象,应该使用此方法来将数据保存至服务器,而不是使用 save 方法。\n 用户对象上必须包含 username 和 password 两个字段"
161
false
leancloud/python-sdk
sign_up
4,711
LDU_FT/deeplook/vbbvg/get_name_id_interactive
LDU_FT
[ "<BEGIN>\n## `load_data`", "Load all VBB stop names and IDs into a Pandas dataframe.\n<END>", "<BEGIN>\n## `get_name_id_interactive`", "Return VBB/BVG ID for given stop name in given table.", " Enter interactive dialog when result is not unique.\n<END>", "<BEGIN>\n## `wait_time`", "Calculate waiting ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name_id_interactive 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_name_id_interactive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return VBB/BVG ID for given stop name in given table. Enter interactive dialog when result is not unique.
"Return VBB/BVG ID for given stop name in given table.\n\n Enter interactive dialog when result is not unique."
13
false
deeplook/vbbvg
get_name_id_interactive
4,712
LDU_FT/uber/rides-python-sdk/request_ufp_ride
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect controller to handle token exchange and query Uber API.\n<END>", "<BEGIN>\n## `_adapt_response`", "Convert error responses to standardized ErrorDetails.\n<END>", "<BEGIN>\n## `_adapt_response`", "Convert various error responses to standardized ErrorDetails.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_ufp_ride API. 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 request_ufp_ride API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Use an UberRidesClient to request a ride and print the results. Parameters api_client (UberRidesClient) An authorized UberRidesClient with 'request' scope. Returns The unique ID of the requested ride.
"Use an UberRidesClient to request a ride and print the results.\n\n Parameters\n api_client (UberRidesClient)\n An authorized UberRidesClient with 'request' scope.\n\n Returns\n The unique ID of the requested ride."
194
false
uber/rides-python-sdk
request_ufp_ride
4,713
LDU_FT/captin411/ofxclient/_download_query
LDU_FT
[ "<BEGIN>\n## `is_secure_option`", "Test an option to see if it is secured or not.", " :param section: section id\n :type section: string\n :param option: option name\n :type option: string\n :rtype: boolean\n otherwise.\n<END>", "<BEGIN>\n## `items`", "Get all items...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Formulate the specific query needed for download Not intended to be called by developers directly. :param as_of: Date in 'YYYYMMDD' format :type as_of: string
"Formulate the specific query needed for download\n\n Not intended to be called by developers directly.\n\n :param as_of: Date in 'YYYYMMDD' format\n :type as_of: string"
93
false
captin411/ofxclient
_download_query
4,714
LDU_FT/aio-libs/aiodocker/pull
LDU_FT
[ "<BEGIN>\n## `inspect`", "Return low-level information about an image", " Args:\n name: name of the image\n<END>", "<BEGIN>\n## `pull`", "Similar to `docker pull`, pull an image locally", " Args:\n fromImage: name of the image to pull\n repo: repository name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull API. 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 pull API. 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...
Similar to `docker pull`, pull an image locally Args: fromImage: name of the image to pull repo: repository name given to an image when it is imported tag: if empty when pulling an image all tags for the given image to be pulled auth: special {'a...
"Similar to `docker pull`, pull an image locally\n\n Args:\n fromImage: name of the image to pull\n repo: repository name given to an image when it is imported\n tag: if empty when pulling an image all tags\n for the given image to be pulled\n auth: spe...
108
false
aio-libs/aiodocker
pull
4,715
LDU_FT/CZ-NIC/yangson/up
LDU_FT
[ "<BEGIN>\n## `schema_root`", "Return the root node of the receiver's schema.\n<END>", "<BEGIN>\n## `iname`", "Return the instance name corresponding to the receiver.\n<END>", "<BEGIN>\n## `_node_digest`", "Return dictionary of receiver's properties suitable for clients.\n<END>", "<BEGIN>\n## `_iname2qna...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the up API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the up API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Return an instance node corresponding to the receiver's parent. Raises: NonexistentInstance: If there is no parent.
"Return an instance node corresponding to the receiver's parent.\n\n Raises:\n NonexistentInstance: If there is no parent."
352
false
CZ-NIC/yangson
up
4,716
LDU_FT/mrstephenneal/pdfconduit/add
LDU_FT
[ "<BEGIN>\n## `security`", "Print security object information for a pdf document\n<END>", "<BEGIN>\n## `draw`", "Draw watermark PDF file.", " Create watermark using either a reportlabs canvas or a PIL image.", " :param text1: str\n Text line 1\n :param text2: str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add a watermark file to an existing PDF document. Rotate and upscale watermark file as needed to fit existing PDF document. Watermark can be overlayed or placed underneath. :param document: str PDF document full path :param watermark: str Watermark PDF full pat...
"Add a watermark file to an existing PDF document.\n\n Rotate and upscale watermark file as needed to fit existing PDF document. Watermark can be overlayed or\n placed underneath.\n\n :param document: str\n PDF document full path\n :param watermark: str\n Watermark PDF...
63
false
mrstephenneal/pdfconduit
add
4,717
LDU_FT/collectiveacuity/jsonModel/_validate_string
LDU_FT
[ "<BEGIN>\n## `tabulate`", "a function to add the tabulate method to a jsonModel object", " :param json_model: jsonModel object\n :return: jsonModel object\n<END>", "<BEGIN>\n## `_evaluate_field`", "a helper method for evaluating record values based upon query criteria", " :param record_dict: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_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 ...
a helper method for validating properties of a string :return: input_string
"a helper method for validating properties of a string\n\n :return: input_string"
65
false
collectiveacuity/jsonModel
_validate_string
4,718
LDU_FT/ramses-tech/ramses/delete
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 delete API. 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 delete API. 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 ...
Explicitly reload context with DB usage to get access to complete DB object.
"Explicitly reload context with DB usage to get access\n to complete DB object."
180
false
ramses-tech/ramses
delete
4,719
LDU_FT/jorisroovers/pymarkdownlint/get_lint_config
LDU_FT
[ "<BEGIN>\n## `find_files`", "Finds files with an (optional) given extension in a given path.\n<END>", "<BEGIN>\n## `apply_on_csv_string`", "Splits a given string by comma, trims whitespace on the resulting strings and applies a given ```func``` to\n each item.\n<END>", "<BEGIN>\n## `get_lint_config`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lint_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lint_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Tries loading the config from the given path. If no path is specified, the default config path is tried, and if that is not specified, we the default config is returned.
"Tries loading the config from the given path. If no path is specified, the default config path\n is tried, and if that is not specified, we the default config is returned."
12
false
jorisroovers/pymarkdownlint
get_lint_config
4,720
LDU_FT/gforcada/haproxy_log_analysis/cmd_ip_counter
LDU_FT
[ "<BEGIN>\n## `filter_ip_range`", "Filter :class:`.Line` objects by IP range.", " Both *192.168.1.203* and *192.168.1.10* are valid if the provided ip\n range is ``192.168.1`` whereas *192.168.2.103* is not valid (note the\n *.2.*).", " :param ip_range: IP range that you want to filter to.\n :ty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_ip_counter API. 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 cmd_ip_counter API. 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...
Reports a breakdown of how many requests have been made per IP. .. note:: To enable this command requests need to provide a header with the forwarded IP (usually X-Forwarded-For) and be it the only header being captured.
"Reports a breakdown of how many requests have been made per IP.\n\n .. note::\n To enable this command requests need to provide a header with the\n forwarded IP (usually X-Forwarded-For) and be it the only header\n being captured."
71
false
gforcada/haproxy_log_analysis
cmd_ip_counter
4,721
LDU_FT/pbrod/numdifftools/richardson
LDU_FT
[ "<BEGIN>\n## `approx_fprime`", "Gradient of function, or Jacobian if function fun returns 1d array", " Parameters\n ----------\n x : array\n parameters at which the derivative is evaluated\n fun : function\n `fun(*((x,)+args), **kwargs)` returning either one value or 1d array\n epsi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the richardson API. 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 richardson API. 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...
Richardson extrapolation with parameter estimation
"Richardson extrapolation with parameter estimation"
107
false
pbrod/numdifftools
richardson
4,722
LDU_FT/giancosta86/Iris/getFileName
LDU_FT
[ "<BEGIN>\n## `getFlag`", "Creates a flag having path <variables dir path><os.sep><flagName>\n<END>", "<BEGIN>\n## `getFriendlyString`", "Returns the version, printed in a friendly way.", " More precisely, it trims trailing zero components.\n<END>", "<BEGIN>\n## `getVersions`", "Returns the versio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getFileName API. 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 getFileName API. 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 the basename of the artifact's file, using Maven's conventions. In particular, it will be: <artifactId>-<version>[-<suffix>][.<extension>]
"Returns the basename of the artifact's file, using Maven's conventions.\n\n In particular, it will be:\n\n <artifactId>-<version>[-<suffix>][.<extension>]"
45
false
giancosta86/Iris
getFileName
4,723
LDU_FT/ReadabilityHoldings/python-readability-api/get
LDU_FT
[ "<BEGIN>\n## `cast_datetime_filter`", "Cast a datetime filter value.", " :param value: string representation of a value that needs to be casted to\n a `datetime` object.\n<END>", "<BEGIN>\n## `filter_args_to_dict`", "Cast and validate filter args.", " :param filter_dict: Filter kwargs\n :p...
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...
Make a HTTP GET request to the Reader API. :param url: url to which to make a GET request.
"Make a HTTP GET request to the Reader API.\n\n :param url: url to which to make a GET request."
83
false
ReadabilityHoldings/python-readability-api
get
4,724
LDU_FT/sassoo/goldman/deserialize
LDU_FT
[ "<BEGIN>\n## `_gen_s3_path`", "Return the part of the S3 path based on inputs", " The path will be passed to the s3_upload method &\n will ultimately be merged with the standard AWS S3\n URL.", " An example model type of 'users' with a resource ID\n of 99 & an API endpoint e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API. 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 deserialize API. 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...
Invoke the deserializer Upon successful deserialization a dict will be returned containing the following key/vals: { 'content': <uploaded object>, 'content-type': <content-type of content>, 'file-ext': <file extension based on content-type>, ...
"Invoke the deserializer\n\n Upon successful deserialization a dict will be returned\n containing the following key/vals:\n\n {\n 'content': <uploaded object>,\n 'content-type': <content-type of content>,\n 'file-ext': <file extension based on conten...
446
false
sassoo/goldman
deserialize
4,725
LDU_FT/CS207-Final-Project-Group-10/cs207-FinalProject/plot_energy
LDU_FT
[ "<BEGIN>\n## `configuration_ES`", "Get the positions and velocities of the earth and sun from date t0 to t1.\n Returned as a tuple q, v\n q: Nx3 array of positions (x, y, z) in the J2000.0 coordinate frame.\n<END>", "<BEGIN>\n## `plot_ES`", "Plot the earth-sun orbits.\n q is a Tx6 array. T indexes t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_energy API. 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 plot_energy API. 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...
Plot kinetic and potential energy of system over time
"Plot kinetic and potential energy of system over time"
92
false
CS207-Final-Project-Group-10/cs207-FinalProject
plot_energy
4,726
LDU_FT/njharman/die/iter
LDU_FT
[ "<BEGIN>\n## `do_sum`", "Set self.sum, self.avr and return sum of dice rolled, count times.\n :param count: Number of rolls to make\n :return: Total sum of all rolls\n<END>", "<BEGIN>\n## `do_bucket`", "Set self.bucket and return results.\n :param count: Number of rolls to make\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter API. 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 iter API. 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...
Iterator of infinite dice rolls. :param count: [0] Return list of ``count`` sums :param func: [sum] Apply func to list of individual die rolls func([])
"Iterator of infinite dice rolls.\n :param count: [0] Return list of ``count`` sums\n :param func: [sum] Apply func to list of individual die rolls func([])"
28
false
njharman/die
iter
4,727
LDU_FT/PonteIneptique/collatinus-python/desinences
LDU_FT
[ "<BEGIN>\n## `assims`", "Cherche si la chaîne a peut subir une assimilation, renvoie cette chaîne éventuellement assimilée.", " :param mot: Mot pour lequel on doit vérifier des assimilations\n :type mot: str\n :return: Mot assimilé\n :rtype: str\n<END>", "<BEGIN>\n## `morpho`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the desinences API. 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 desinences API. 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...
Renvoie la liste des désinence de morpho d du modèle. :param d: Identifant de morphologie :type d: int :return: Liste des désinence de morpho d du modèle ou toutes les désinences du modèle (Applaties en python, doute sur original) :rtype: list of Desinence
"Renvoie la liste des désinence de morpho d du modèle.\n\n :param d: Identifant de morphologie\n :type d: int\n :return: Liste des désinence de morpho d du modèle ou toutes les désinences du modèle (Applaties en python, doute sur original)\n :rtype: list of Desinence"
109
false
PonteIneptique/collatinus-python
desinences
4,728
LDU_FT/jmcarp/robobrowser/ensure_soup
LDU_FT
[ "<BEGIN>\n## `parsed`", "Lazily parse response content, using HTML parser specified by the\n browser.\n<END>", "<BEGIN>\n## `_build_send_args`", "Merge optional arguments with defaults.", " :param kwargs: Keyword arguments to `Session::send`\n<END>", "<BEGIN>\n## `open`", "Open a URL.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_soup API. 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 ensure_soup API. 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...
Coerce a value (or list of values) to Tag (or list of Tag). :param value: String, BeautifulSoup, Tag, or list of the above :param str parser: Parser to use; defaults to BeautifulSoup default :return: Tag or list of Tags
"Coerce a value (or list of values) to Tag (or list of Tag).\n\n :param value: String, BeautifulSoup, Tag, or list of the above\n :param str parser: Parser to use; defaults to BeautifulSoup default\n :return: Tag or list of Tags"
73
false
jmcarp/robobrowser
ensure_soup
4,729
LDU_FT/earwig/mwparserfromhell/has
LDU_FT
[ "<BEGIN>\n## `normalize`", "Return the unicode character represented by the HTML entity.\n<END>", "<BEGIN>\n## `inheritdoc`", "Set __doc__ of *method* to __doc__ of *method* in its parent class.", " Since this is used on :class:`.SmartList`, the \"parent class\" used is\n ``list``. This function can b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has API. 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 has API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return whether any attribute in the tag has the given *name*. Note that a tag may have multiple attributes with the same name, but only the last one is read by the MediaWiki parser.
"Return whether any attribute in the tag has the given *name*.\n\n Note that a tag may have multiple attributes with the same name, but\n only the last one is read by the MediaWiki parser."
291
false
earwig/mwparserfromhell
has
4,730
LDU_FT/edx/edx-val/get_video_transcript_url
LDU_FT
[ "<BEGIN>\n## `generate_sjson_from_srt`", "Generate transcripts from sjson to SubRip (*.srt).", " Arguments:\n srt_subs(SubRip): \"SRT\" subs object", " Returns:\n Subs converted to \"SJSON\" format.\n<END>", "<BEGIN>\n## `generate_srt_from_sjson`", "Generate transcripts...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_video_transcript_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_video_transcript_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns course video transcript url or None if no transcript Arguments: video_id: it can be an edx_video_id or an external_id extracted from external sources in a video component. language_code: language code of a video transcript
"Returns course video transcript url or None if no transcript\n\n Arguments:\n video_id: it can be an edx_video_id or an external_id extracted from external sources in a video component.\n language_code: language code of a video transcript"
197
false
edx/edx-val
get_video_transcript_url
4,731
LDU_FT/ubc/ubcpi/parse_question_xml
LDU_FT
[ "<BEGIN>\n## `get_max_size`", "Calculate the max number of item that an option can stored in the pool at give time.", " This is to limit the pool size to POOL_SIZE", " Args:\n option_index (int): the index of the option to calculate the size for\n pool (dict): answer pool\n num_opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_question_xml 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 parse_question_xml 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...
Parse <question> element in the UBCPI XBlock's content XML. Args: root (lxml.etree.Element): The root of the <question> node in the tree. Returns: dict, a deserialized representation of a question. E.g. { 'text': 'What is the answer to life, the universe and everything?', ...
"Parse <question> element in the UBCPI XBlock's content XML.\n\n Args:\n root (lxml.etree.Element): The root of the <question> node in the tree.\n\n Returns:\n dict, a deserialized representation of a question. E.g.\n {\n 'text': 'What is the answer to life, the universe and everyt...
98
false
ubc/ubcpi
parse_question_xml
4,732
LDU_FT/staugur/Flask-PluginKit/get_all_hep
LDU_FT
[ "<BEGIN>\n## `push_dcp`", "Push a callable for :class:`~flask_pluginkit.PluginManager`, :func:`push_dcp`.", " Example usage::", " push_dcp('demo', lambda:'Hello dcp')", " .. versionadded:: 2.1.0\n<END>", "<BEGIN>\n## `__scanPlugins`", "Scanning local plugin directories and third-party plugi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_hep API. 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_all_hep API. 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...
Hook extension point. * before_request_hook, Before request (intercept requests are allowed) * before_request_top_hook, Before top request (Put it first) * after_request_hook, After request (no exception before return) * teardown_request_hook, After request (before return, with or wi...
"Hook extension point.\n\n * before_request_hook, Before request (intercept requests are allowed)\n\n * before_request_top_hook, Before top request (Put it first)\n\n * after_request_hook, After request (no exception before return)\n\n * teardown_request_hook, After request (before return, w...
128
false
staugur/Flask-PluginKit
get_all_hep
4,733
LDU_FT/briney/abutils/assign_pairs
LDU_FT
[ "<BEGIN>\n## `cluster`", "Perform sequence clustering with CD-HIT.", " Args:", " seqs (list): An iterable of sequences, in any format that `abutils.utils.sequence.Sequence()`\n can handle", " threshold (float): Clustering identity threshold. Default is `0.975`.", " out_f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assign_pairs API. 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 assign_pairs API. 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...
Assigns sequences to the appropriate mAb pair, based on the sequence name. Inputs: ::seqs:: is a list of dicts, of the format returned by querying a MongoDB containing Abstar output. ::name:: is the dict key of the field to be used to group the sequences into pairs. Default is 'seq_id' ...
"Assigns sequences to the appropriate mAb pair, based on the sequence name.\n\n Inputs:\n\n ::seqs:: is a list of dicts, of the format returned by querying a MongoDB containing\n Abstar output.\n ::name:: is the dict key of the field to be used to group the sequences into pairs.\n Default is 'seq...
445
false
briney/abutils
assign_pairs
4,734
LDU_FT/honeybadger-io/honeybadger-python/generate_payload
LDU_FT
[ "<BEGIN>\n## `supports`", "Check whether this is a django request or not.\n :param config: honeybadger configuration.\n :param context: current honeybadger configuration.\n :return: True if this is a django request, False else.\n<END>", "<BEGIN>\n## `generate_payload`", "Generate payload ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_payload API. 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 generate_payload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generate payload by iterating over registered plugins. Merges . :param context: current context. :param config: honeybadger configuration. :return: a dict with the generated payload.
"Generate payload by iterating over registered plugins. Merges .\n :param context: current context.\n :param config: honeybadger configuration.\n :return: a dict with the generated payload."
23
false
honeybadger-io/honeybadger-python
generate_payload
4,735
LDU_FT/cihai/cihai/lookup_char
LDU_FT
[ "<BEGIN>\n## `run`", "Wrapped so we can test in tests/test_examples.py\n<END>", "<BEGIN>\n## `reflect_db`", "No-op to reflect db info.", " This is available as a method so the database can be reflected\n outside initialization (such bootstrapping unihan during CLI usage).\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_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. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_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. The extra...
Return character information from datasets. Parameters ---------- char : str character / string to lookup Returns ------- :class:`sqlalchemy.orm.query.Query` : list of matches
"Return character information from datasets.\n\n Parameters\n ----------\n char : str\n character / string to lookup\n\n Returns\n -------\n :class:`sqlalchemy.orm.query.Query` :\n list of matches"
77
false
cihai/cihai
lookup_char
4,736
LDU_FT/scraperwiki/data-services-helpers/download_url
LDU_FT
[ "<BEGIN>\n## `update_status`", "Set the status endpoint on ScraperWiki to the latest entry e.g.\n 'Latest entry: 2013-10-01'\n<END>", "<BEGIN>\n## `install_cache`", "Patches the requests library with requests_cache.\n<END>", "<BEGIN>\n## `download_url`", "Get the content of a URL and return a file-like...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get the content of a URL and return a file-like object. back_off=True provides retry
"Get the content of a URL and return a file-like object.\n back_off=True provides retry"
10
false
scraperwiki/data-services-helpers
download_url
4,737
LDU_FT/zagaran/mongobackup/s3_upload
LDU_FT
[ "<BEGIN>\n## `call`", "Runs a bash command safely, with shell=false, catches any non-zero\n return codes. Raises slightly modified CalledProcessError exceptions\n on failures.\n Note: command is a string and cannot include pipes.\n<END>", "<BEGIN>\n## `tarbz`", "Tars and bzips a director...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the s3_upload API. 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 s3_upload API. 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...
Uploads the to Amazon S3 the contents of the provided file, keyed with the name of the file.
"Uploads the to Amazon S3 the contents of the provided file, keyed\n with the name of the file."
36
false
zagaran/mongobackup
s3_upload
4,738
LDU_FT/robotpy/pyfrc/on_key_pressed
LDU_FT
[ "<BEGIN>\n## `compute`", "Call this when vision processing should be enabled", " :param now: The value passed to ``update_sim``\n :param x: Returned from physics_controller.get_position\n :param y: Returned from physics_controller.get_position\n :param angle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_key_pressed API. 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 on_key_pressed API. 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...
likely to take in a set of parameters to treat as up, down, left, right, likely to actually be based on a joystick event... not sure yet
"likely to take in a set of parameters to treat as up, down, left,\n right, likely to actually be based on a joystick event... not sure\n yet"
109
false
robotpy/pyfrc
on_key_pressed
4,739
LDU_FT/vaab/colour/color_scale
LDU_FT
[ "<BEGIN>\n## `hsl2rgb`", "Convert HSL representation towards RGB", " :param h: Hue, position around the chromatic circle (h=1 equiv h=0)\n :param s: Saturation, color saturation (0=full gray, 1=full color)\n :param l: Ligthness, Overhaul lightness (0=full black, 1=full white)\n :rtype: 3-uple for RG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color_scale API. 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 color_scale API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a list of nb color HSL tuples between begin_hsl and end_hsl >>> from colour import color_scale >>> [rgb2hex(hsl2rgb(hsl)) for hsl in color_scale((0, 1, 0.5), ... (1, 1, 0.5), 3)] ['#f00', '#0f0', '#00f', '#f00'] >>> [rgb2hex(hsl2rgb(hsl)) ...
"Returns a list of nb color HSL tuples between begin_hsl and end_hsl\n\n >>> from colour import color_scale\n\n >>> [rgb2hex(hsl2rgb(hsl)) for hsl in color_scale((0, 1, 0.5),\n ... (1, 1, 0.5), 3)]\n ['#f00', '#0f0', '#00f', '#f00']\n\n >>> [rgb2hex(hsl2rgb(h...
99
false
vaab/colour
color_scale
4,740
LDU_FT/teaearlgraycold/puni/_init_notes
LDU_FT
[ "<BEGIN>\n## `full_url`", "Return the full reddit URL associated with the usernote.", " Arguments:\n subreddit: the subreddit name for the note (PRAW Subreddit object)\n<END>", "<BEGIN>\n## `_compress_url`", "Convert a reddit URL into the short-hand used by usernotes.", " Argument...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_notes API. 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 _init_notes API. 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...
Set up the UserNotes page with the initial JSON schema.
"Set up the UserNotes page with the initial JSON schema."
45
false
teaearlgraycold/puni
_init_notes
4,741
LDU_FT/AndresMWeber/Nomenclate/get_handler
LDU_FT
[ "<BEGIN>\n## `purge_tokens`", "Removes all specified token_attrs that exist in instance.token_attrs", " :param token_attrs: list(str), list of string values of tokens to remove. If None, removes all\n<END>", "<BEGIN>\n## `combine_dicts`", "Combines all arguments (if they are dictionaries) and kwargs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Find the appropriate return type handler to convert the query result to the desired return type :param query_result_type: type, desired return type :param return_type: type, actual return type :return: callable, function that will handle the conversion
"Find the appropriate return type handler to convert the query result to the desired return type\n\n :param query_result_type: type, desired return type\n :param return_type: type, actual return type\n :return: callable, function that will handle the conversion"
140
false
AndresMWeber/Nomenclate
get_handler
4,742
LDU_FT/SteveMcGrath/pySecurityCenter/dashboard_import
LDU_FT
[ "<BEGIN>\n## `gen_csv`", "csv SecurityCenterObj, AssetListName, CSVFields, EmailAddress\n<END>", "<BEGIN>\n## `login`", "Logs the user into SecurityCenter and stores the needed token and cookies.\n<END>", "<BEGIN>\n## `analysis`", "Analysis\n A thin wrapper to handle vuln/event/mobile/log analysis ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dashboard_import API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dashboard_import API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
dashboard_import Dashboard_Name, filename Uploads a dashboard template to the current user's dashboard tabs. UN-DOCUMENTED CALL: This function is not considered stable.
"dashboard_import Dashboard_Name, filename\n Uploads a dashboard template to the current user's dashboard tabs.\n\n UN-DOCUMENTED CALL: This function is not considered stable."
120
false
SteveMcGrath/pySecurityCenter
dashboard_import
4,743
LDU_FT/zagaran/mongobackup/backup
LDU_FT
[ "<BEGIN>\n## `call`", "Runs a bash command safely, with shell=false, catches any non-zero\n return codes. Raises slightly modified CalledProcessError exceptions\n on failures.\n Note: command is a string and cannot include pipes.\n<END>", "<BEGIN>\n## `tarbz`", "Tars and bzips a director...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backup API. 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 backup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Runs a backup operation to At Least a local directory. You must provide mongodb credentials along with a a directory for a dump operation and a directory to contain your compressed backup. backup_prefix: optionally provide a prefix to be prepended to your backups, by default the pr...
"Runs a backup operation to At Least a local directory.\r\n You must provide mongodb credentials along with a a directory for a dump\r\n operation and a directory to contain your compressed backup.\r\n \r\n backup_prefix: optionally provide a prefix to be prepended to your backups,\r\n by def...
36
false
zagaran/mongobackup
backup
4,744
LDU_FT/umutbozkurt/django-rest-framework-mongoengine/to_representation
LDU_FT
[ "<BEGIN>\n## `to_representation`", "convert value to representation.", " DRF ModelField uses ``value_to_string`` for this purpose. Mongoengine fields do not have such method.", " This implementation uses ``django.utils.encoding.smart_text`` to convert everything to text, while keeping json-safe ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_representation API. 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 to_representation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
convert value to representation. DRF ModelField uses ``value_to_string`` for this purpose. Mongoengine fields do not have such method. This implementation uses ``django.utils.encoding.smart_text`` to convert everything to text, while keeping json-safe types intact. NB: The argument is whole o...
"convert value to representation.\n\n DRF ModelField uses ``value_to_string`` for this purpose. Mongoengine fields do not have such method.\n\n This implementation uses ``django.utils.encoding.smart_text`` to convert everything to text, while keeping json-safe types intact.\n\n NB: The argument is ...
36
false
umutbozkurt/django-rest-framework-mongoengine
to_representation
4,745
LDU_FT/pysal/giddy/_maybe_classify
LDU_FT
[ "<BEGIN>\n## `is_component`", "Check if the set of ids form a single connected component", " Parameters\n ----------", " w : spatial weights boject", " ids : list\n identifiers of units that are tested to be a single connected\n component", " Returns\n -------", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _maybe_classify API. 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 _maybe_classify API. 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...
Helper method for classifying continuous data.
"Helper method for classifying continuous data."
132
false
pysal/giddy
_maybe_classify
4,746
LDU_FT/bram85/topydo/_update_view
LDU_FT
[ "<BEGIN>\n## `_process_flags`", "Override to add an additional check after processing the flags: when\n there are no flags left after argument parsing, then it means we'll be\n editing the whole todo.txt file as a whole and therefore we're not in\n multi mode.\n<END>", "<BEGIN>\n## `get_tod...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_view API. 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 _update_view API. 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...
Creates a view from the data entered in the view widget.
"Creates a view from the data entered in the view widget."
331
false
bram85/topydo
_update_view
4,747
LDU_FT/loganasherjones/yapconf/add_argument
LDU_FT
[ "<BEGIN>\n## `change_case`", "Changes the case to snake/kebab case depending on the separator.", " As regexes can be confusing, I'll just go through this line by line as an\n example with the following string: ' Foo2Boo_barBaz bat'", " 1. Remove whitespaces from beginning/end. => 'Foo2Boo_barBaz bat-...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_argument API. 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 add_argument API. 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...
Add boolean item as an argument to the given parser. An exclusive group is created on the parser, which will add a boolean-style command line argument to the parser. Examples: A non-nested boolean value with the name 'debug' will result in a command-line argument like t...
"Add boolean item as an argument to the given parser.\n\n An exclusive group is created on the parser, which will add\n a boolean-style command line argument to the parser.\n\n Examples:\n A non-nested boolean value with the name 'debug' will result\n in a command-line argumen...
139
false
loganasherjones/yapconf
add_argument
4,748
LDU_FT/spacetelescope/stsci.tools/getExtn
LDU_FT
[ "<BEGIN>\n## `stsci`", "For STScI GEIS files, need to do extra steps.\n<END>", "<BEGIN>\n## `stsci2`", "For STScI GEIS files, need to do extra steps.\n<END>", "<BEGIN>\n## `readgeis`", "Input GEIS files \"input\" will be read and a HDUList object will\n be returned.", " The user can use the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getExtn API. 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 getExtn API. 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...
Returns the PyFITS extension corresponding to extension specified in filename. Defaults to returning the first extension with data or the primary extension, if none have data. If a non-existent extension has been specified, it raises a `KeyError` exception.
"Returns the PyFITS extension corresponding to extension specified in\n filename.\n\n Defaults to returning the first extension with data or the primary\n extension, if none have data. If a non-existent extension has been\n specified, it raises a `KeyError` exception."
917
false
spacetelescope/stsci.tools
getExtn
4,749
LDU_FT/ns1/ns1-python/createNetwork
LDU_FT
[ "<BEGIN>\n## `delete`", "Delete the record from the zone, including all advanced configuration,\n meta data, etc.\n<END>", "<BEGIN>\n## `update`", "Update record configuration. Pass list of keywords and their values to\n update. For the list of keywords available for zone configuration, see\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createNetwork API. 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 createNetwork API. 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 new Network For the list of keywords available, see :attr:`ns1.rest.ipam.Networks.INT_FIELDS` and :attr:`ns1.rest.ipam.Networks.PASSTHRU_FIELDS` :param str name: Name of the Network to be created :param int scope_group: (Optional) id of an existing scope group to associate with
"Create a new Network\n For the list of keywords available, see :attr:`ns1.rest.ipam.Networks.INT_FIELDS` and :attr:`ns1.rest.ipam.Networks.PASSTHRU_FIELDS`\n\n :param str name: Name of the Network to be created\n :param int scope_group: (Optional) id of an existing scope group to associate with"
159
false
ns1/ns1-python
createNetwork
4,750
LDU_FT/quantifiedcode/checkmate/find_git_repository
LDU_FT
[ "<BEGIN>\n## `get_first_date_for_group`", ":param start: start date\n :n : how many groups we want to get\n :group_type : daily, weekly, monthly\n<END>", "<BEGIN>\n## `get_snapshots`", "Returns a list of snapshots in a given repository.\n<END>", "<BEGIN>\n## `diff_objects`", "Returns ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_git_repository API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_git_repository 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...
Tries to find a directory with a .git repository
"Tries to find a directory with a .git repository"
35
false
quantifiedcode/checkmate
find_git_repository
4,751
LDU_FT/portantier/habu/cmd_protoscan
LDU_FT
[ "<BEGIN>\n## `cmd_arp_poison`", "Send ARP 'is-at' packets to each victim, poisoning their\n ARP tables for send the traffic to your system.", " Note: If you want a full working Man In The Middle attack, you need\n to enable the packet forwarding on your operating system to act like a\n router. You c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_protoscan API. 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 cmd_protoscan API. 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...
Send IP packets with different protocol field content to guess what layer 4 protocols are available. The output shows which protocols doesn't generate a 'protocol-unreachable' ICMP response. Example: \b $ sudo python cmd_ipscan.py 45.77.113.133 1 icmp 2 igmp 4 ipencap 6 ...
"Send IP packets with different protocol field content to guess what\n layer 4 protocols are available.\n\n The output shows which protocols doesn't generate a 'protocol-unreachable'\n ICMP response.\n\n Example:\n\n \\b\n $ sudo python cmd_ipscan.py 45.77.113.133\n 1 icmp\n 2 igmp\n 4 ...
304
false
portantier/habu
cmd_protoscan
4,752
LDU_FT/chatfirst/chatfirst/bots_update
LDU_FT
[ "<BEGIN>\n## `bots_list`", "List all user's bots", " :rtype: list of Bot\n :return: user's bots\n<END>", "<BEGIN>\n## `bots_create`", "Save new bot", " :param bot: bot object to save\n :type bot: Bot\n<END>", "<BEGIN>\n## `bots_get`", "Fetch and fill Bot object", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bots_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bots_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Update Bot :param bot: bot object to update :type bot: Bot
"Update Bot\n\n :param bot: bot object to update\n :type bot: Bot"
38
false
chatfirst/chatfirst
bots_update
4,753
LDU_FT/knagra/farnsworth/manage_profile_requests_view
LDU_FT
[ "<BEGIN>\n## `anonymous_login_view`", "View for an admin to log her/himself out and login the anonymous user.\n<END>", "<BEGIN>\n## `end_anonymous_session_view`", "End the anonymous session if the user is a superuser.\n<END>", "<BEGIN>\n## `list_managers_view`", "Show a list of manager positions with link...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the manage_profile_requests_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the manage_profile_requests_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
The page to manage user profile requests.
"The page to manage user profile requests."
150
false
knagra/farnsworth
manage_profile_requests_view
4,754
LDU_FT/icometrix/dicom2nifti/_get_bvals_bvecs
LDU_FT
[ "<BEGIN>\n## `_get_gdcmconv`", "Get the full path to gdcmconv.\n If not found raise error\n<END>", "<BEGIN>\n## `compress_directory`", "This function can be used to convert a folder of jpeg compressed images to an uncompressed ones", " :param dicom_directory: directory of dicom files to compress\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_bvals_bvecs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_bvals_bvecs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Write the bvals from the sorted dicom files to a bval file
"Write the bvals from the sorted dicom files to a bval file"
243
false
icometrix/dicom2nifti
_get_bvals_bvecs
4,755
LDU_FT/facebook/codemod/multiline_regex_suggestor
LDU_FT
[ "<BEGIN>\n## `run_interactive`", "Asks the user about each patch suggested by the result of the query.", " @param query An instance of the Query class.\n @param editor Name of editor to use for manual intervention, e.g.\n 'vim'\n or 'emacs'. If o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multiline_regex_suggestor 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 multiline_regex_suggestor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Return a suggestor function which, given a list of lines, generates patches to substitute matches of the given regex with (if provided) the given substitution. @param regex Either a regex object or a string describing a regex. @param substitution Either None (meaning that we should flag the ma...
"Return a suggestor function which, given a list of lines, generates patches\n to substitute matches of the given regex with (if provided) the given\n substitution.\n\n @param regex Either a regex object or a string describing a regex.\n @param substitution Either None (meaning that we should flag ...
37
false
facebook/codemod
multiline_regex_suggestor
4,756
LDU_FT/devassistant/devassistant/_process_dependency
LDU_FT
[ "<BEGIN>\n## `is_local_subsection`", "Returns True if command dict is \"local subsection\", meaning\n that it is \"if\", \"else\" or \"for\" (not a real call, but calls\n run_section recursively.\n<END>", "<BEGIN>\n## `_process_req_txt`", "Returns a processed request or raises an exception\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_dependency 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 _process_dependency 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...
Add dependencies into self.dependencies, possibly also adding system packages that contain non-distro package managers (e.g. if someone wants to install dependencies with pip and pip is not present, it will get installed through RPM on RPM based systems, etc. Skips dependencies that are...
"Add dependencies into self.dependencies, possibly also adding system packages\n that contain non-distro package managers (e.g. if someone wants to install\n dependencies with pip and pip is not present, it will get installed through\n RPM on RPM based systems, etc.\n\n Skips dependencies th...
399
false
devassistant/devassistant
_process_dependency
4,757
LDU_FT/gsi-upm/soil/read_csv
LDU_FT
[ "<BEGIN>\n## `save_record`", "Save a collection of records to the database.\n Database writes are cached.\n<END>", "<BEGIN>\n## `convert`", "Get the serialized value for a given key.\n<END>", "<BEGIN>\n## `recover`", "Get the deserialized value for a given key, and the serialized version.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Read a CSV in canonical form: :: <agent_id, t_step, key, value, value_type>
"Read a CSV in canonical form: ::\n\n <agent_id, t_step, key, value, value_type>"
63
false
gsi-upm/soil
read_csv
4,758
LDU_FT/davidfokkema/artist/set_logxticks_for_all
LDU_FT
[ "<BEGIN>\n## `render`", "Render the plot using a template.", " Once the plot is complete, it needs to be rendered. Artist uses\n the Jinja2 templating engine. The default template results in a\n LaTeX file which can be included in your document.", " :param template: a user-suppli...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_logxticks_for_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_logxticks_for_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Manually specify the x-axis log tick values. :param row_column_list: a list containing (row, column) tuples to specify the subplots, or None to indicate *all* subplots. :type row_column_list: list or None :param logticks: logarithm of the locations for the ticks along the ...
"Manually specify the x-axis log tick values.\n\n :param row_column_list: a list containing (row, column) tuples to\n specify the subplots, or None to indicate *all* subplots.\n :type row_column_list: list or None\n :param logticks: logarithm of the locations for the ticks along the\n ...
278
false
davidfokkema/artist
set_logxticks_for_all
4,759
LDU_FT/markfinger/assembla/write
LDU_FT
[ "<BEGIN>\n## `_get_json`", "Base level method for fetching data from the API\n<END>", "<BEGIN>\n## `_post_json`", "Base level method for updating data via the API\n<END>", "<BEGIN>\n## `_put_json`", "Base level method for adding new data to the API\n<END>", "<BEGIN>\n## `_delete_json`", "Base level me...
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...
Create or update a Wiki Page on Assembla
"Create or update a Wiki Page on Assembla"
25
false
markfinger/assembla
write
4,760
LDU_FT/Grk0/python-libconf/main
LDU_FT
[ "<BEGIN>\n## `load`", "Load the contents of ``f`` (a file-like object) to a Python object", " The returned object is a subclass of ``dict`` that exposes string keys as\n attributes as well.", " Example:", " >>> with open('test/example.cfg') as f:\n ... config = libconf.load(f)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Open the libconfig file specified by sys.argv[1] and pretty-print it
"Open the libconfig file specified by sys.argv[1] and pretty-print it"
53
false
Grk0/python-libconf
main
4,761
LDU_FT/src-d/lookout-sdk/add_fields
LDU_FT
[ "<BEGIN>\n## `create_channel`", "Creates a gRPC channel", " The gRPC channel is created with the provided options and intercepts each\n invocation via the provided interceptors.", " The created channel is configured with the following default options:\n - \"grpc.max_send_message_length\": 100M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_fields API. 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...
Add the provided log fields If a key is already present, then it is ignored. :param fields: the log fields to add
"Add the provided log fields\n\n If a key is already present, then it is ignored.\n\n :param fields: the log fields to add"
40
false
src-d/lookout-sdk
add_fields
4,762
LDU_FT/sailthru/sailthru-python-client/save_list
LDU_FT
[ "<BEGIN>\n## `flatten_nested_hash`", "Flatten nested dictionary for GET / POST / DELETE API request\n<END>", "<BEGIN>\n## `sailthru_http_request`", "Perform an HTTP GET / POST / DELETE request\n<END>", "<BEGIN>\n## `extract_params`", "Extracts the values of a set of parameters, recursing into nested dicti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Upload a list. The list import job is queued and will happen shortly after the API request. http://docs.sailthru.com/api/list @param list: list name @param emails: List of email values or comma separated string
"Upload a list. The list import job is queued and will happen shortly after the API request.\n http://docs.sailthru.com/api/list\n @param list: list name\n @param emails: List of email values or comma separated string"
64
false
sailthru/sailthru-python-client
save_list
4,763
LDU_FT/twisted/txaws/_get_tag
LDU_FT
[ "<BEGIN>\n## `get_ca_certs`", "Retrieve a list of CAs at either the DEFAULT_CERTS_PATH or the env\n override, TXAWS_CERTS_PATH.", " In order to find .pem files, this function checks first for presence of the\n TXAWS_CERTS_PATH environment variable that should point to a directory\n containing cert f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_tag API. 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...
Get the L{NodeItem} attribute name for the given C{tag}.
"Get the L{NodeItem} attribute name for the given C{tag}."
465
false
twisted/txaws
_get_tag
4,764
LDU_FT/deontologician/restnavigator/docsfor
LDU_FT
[ "<BEGIN>\n## `cache`", "Stores a navigator in the identity map for the current\n api. Can take a link or a bare uri\n<END>", "<BEGIN>\n## `get_cached`", "Retrieves a cached navigator from the id_map.", " Either a Link object or a bare uri string may be passed in.\n<END>", "<BEGIN>\n## `is_ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the docsfor API. 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 docsfor API. 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...
Obtains the documentation for a link relation. Opens in a webbrowser window
"Obtains the documentation for a link relation. Opens in a webbrowser\n window"
72
false
deontologician/restnavigator
docsfor
4,765
LDU_FT/openclimatedata/pymagicc/_read_data_header_line
LDU_FT
[ "<BEGIN>\n## `get_magicc_region_to_openscm_region_mapping`", "Get the mappings from MAGICC to OpenSCM regions.", " This is not a pure inverse of the other way around. For example, we never provide\n \"GLOBAL\" as a MAGICC return value because it's unnecesarily confusing when we also\n have \"World\". F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_data_header_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_data_header_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Read a data header line, ensuring that it starts with the expected header Parameters ---------- stream : :obj:`StreamIO` Stream object containing the text to read expected_header : str, list of strs Expected header of the data header line
"Read a data header line, ensuring that it starts with the expected header\n\n Parameters\n ----------\n stream : :obj:`StreamIO`\n Stream object containing the text to read\n\n expected_header : str, list of strs\n Expected header of the data header line"
245
false
openclimatedata/pymagicc
_read_data_header_line
4,766
LDU_FT/jf-parent/brome/take_quality_screenshot
LDU_FT
[ "<BEGIN>\n## `validate_config`", "Validate that the browser config contains all the needed config\n<END>", "<BEGIN>\n## `send_keys`", "wait_until_clickable = kwargs.get(\n 'wait_until_clickable',\n BROME_CONFIG['proxy_element']['wait_until_clickable']\n )", " if wait_unti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the take_quality_screenshot 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 take_quality_screenshot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Take a quality screenshot Use the screenshot_name args when you want to take a screenshot for reference Args: screenshot_name (str) the name of the screenshot
"Take a quality screenshot\n\n Use the screenshot_name args when you want to take a\n screenshot for reference\n\n Args:\n screenshot_name (str) the name of the screenshot"
144
false
jf-parent/brome
take_quality_screenshot
4,767
LDU_FT/pauleveritt/kaybee/render
LDU_FT
[ "<BEGIN>\n## `render`", "Given a Sphinx builder and context with sphinx_app in it,\n generate HTML\n<END>", "<BEGIN>\n## `in_navitem`", "Given href of nav item, determine if resource is in it\n<END>", "<BEGIN>\n## `is_published`", "Return true if this resource has published date in the past\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. 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 render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Given a Sphinx builder and context with site in it, generate HTML
"Given a Sphinx builder and context with site in it,\n generate HTML"
71
false
pauleveritt/kaybee
render
4,768
LDU_FT/thespacedoctor/astrocalc/ut_datetime_to_mjd
LDU_FT
[ "<BEGIN>\n## `luminosity_to_flux`", "*Convert luminosity to a flux*", " **Key Arguments:**\n - ``lumErg_S`` -- luminosity in ergs/sec\n - ``dist_Mpc`` -- distance in Mpc", " **Return:**\n - ``fluxErg_cm2_S`` -- flux in ergs/cm2/s\n<END>", "<BEGIN>\n## `get_mjd`", "*Get the curre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ut_datetime_to_mjd 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 ut_datetime_to_mjd 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...
*ut datetime to mjd* If the date given has no time associated with it (e.g. ``20160426``), then the datetime assumed is ``20160426 00:00:00.0``. Precision should be respected. **Key Arguments:** - ``utDatetime`` -- UT datetime. Can accept various formats e.g. ``201604261444``, ``...
"*ut datetime to mjd*\n\n If the date given has no time associated with it (e.g. ``20160426``), then the datetime assumed is ``20160426 00:00:00.0``.\n\n Precision should be respected. \n\n **Key Arguments:**\n - ``utDatetime`` -- UT datetime. Can accept various formats e.g. ``2016042614...
160
false
thespacedoctor/astrocalc
ut_datetime_to_mjd
4,769
LDU_FT/etscrivner/nose-perfdump/get_slowest_files
LDU_FT
[ "<BEGIN>\n## `precmd`", "Parse the command on the given line.", " :param line: The raw input line\n :type line: str\n<END>", "<BEGIN>\n## `connect`", "Create a new connection to the SQLite3 database.", " :param dbname: The database name\n :type dbname: str\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_slowest_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_slowest_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns the slowest num files. :param num: The maximum number of results to be returned :type num: int
"Returns the slowest num files.\n \n :param num: The maximum number of results to be returned\n :type num: int"
28
false
etscrivner/nose-perfdump
get_slowest_files
4,770
LDU_FT/rodynnz/xccdf/str_to_time
LDU_FT
[ "<BEGIN>\n## `update_xml_element`", "Updates the xml element contents to matches the instance contents.", " :returns: Updated XML element.\n :rtype: lxml.etree._Element\n<END>", "<BEGIN>\n## `to_xml_string`", "Exports the element in XML format.", " :returns: element in XML format.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_to_time API. 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 str_to_time API. 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...
Formats a XCCDF dateTime string to a datetime object. :returns: datetime object. :rtype: datetime.datetime
"Formats a XCCDF dateTime string to a datetime object.\n\n :returns: datetime object.\n :rtype: datetime.datetime"
77
false
rodynnz/xccdf
str_to_time
4,771
LDU_FT/Datary/scrapbag/exclude_chars
LDU_FT
[ "<BEGIN>\n## `parse_spss_headerfile`", "Parse spss header file", " Arguments:\n path {str} -- path al fichero de cabecera.\n leyend_position -- posicion del la leyenda en el header.\n<END>", "<BEGIN>\n## `parse_spss_datafile`", "Parse spss data file", " Arguments:\n path {str} -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exclude_chars API. 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 exclude_chars API. 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...
Clean text string of simbols in exclusion list.
"Clean text string of simbols in exclusion list."
119
false
Datary/scrapbag
exclude_chars
4,772