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/EliotBerriot/django-dynamic-preferences/all
LDU_FT
[ "<BEGIN>\n## `by_name`", "Return a dictionary with preferences identifiers and values, but without the section name in the identifier\n<END>", "<BEGIN>\n## `get_cache_key`", "Return the cache key corresponding to a given preference\n<END>", "<BEGIN>\n## `from_cache`", "Return a preference raw_value from c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return a dictionary containing all preferences by section Loaded from cache or from db in case of cold cache
"Return a dictionary containing all preferences by section\n Loaded from cache or from db in case of cold cache"
64
false
EliotBerriot/django-dynamic-preferences
all
20,373
LDU_FT/gwastro/pycbc-glue/parse
LDU_FT
[ "<BEGIN>\n## `component_offsetvectors`", "Given an iterable of offset vectors, return the shortest list of\n\tthe unique n-instrument offset vectors from which all the vectors\n\tin the input iterable can be constructed. This can be used to\n\tdetermine the minimal set of n-instrument coincs required to\n\tconst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parses an XML document into a form read for insertion into the database xml = the xml document to be parsed
"Parses an XML document into a form read for insertion into the database\n\n xml = the xml document to be parsed"
1,048
true
gwastro/pycbc-glue
parse
20,374
LDU_FT/wuher/devil/camelcase_to_slash
LDU_FT
[ "<BEGIN>\n## `create`", "Create object from the given data.", " The given data may or may not have been validated prior to calling\n this function. This function will try its best in creating the object.\n If the resulting object cannot be produced, raises ``ValidationError``.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the camelcase_to_slash 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 camelcase_to_slash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Converts CamelCase to camel/case code ripped from http://stackoverflow.com/questions/1175208/does-the-python-standard-library-have-function-to-convert-camelcase-to-camel-cas
"Converts CamelCase to camel/case\n\n code ripped from http://stackoverflow.com/questions/1175208/does-the-python-standard-library-have-function-to-convert-camelcase-to-camel-cas"
193
false
wuher/devil
camelcase_to_slash
20,375
LDU_FT/bram85/topydo/hash_list_values
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 hash_list_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_list_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Calculates a unique value for each item in the list, these can be used as identifiers. The value is based on hashing an item using the p_key function. Suitable for lists not larger than approx. 16K items. Returns a tuple with the status and a list of tuples where each item is combined with the ID...
"Calculates a unique value for each item in the list, these can be used as\n identifiers.\n\n The value is based on hashing an item using the p_key function.\n\n Suitable for lists not larger than approx. 16K items.\n\n Returns a tuple with the status and a list of tuples where each item is\n combined wi...
331
false
bram85/topydo
hash_list_values
20,376
LDU_FT/wtsi-hgi/consul-lock/find_regex
LDU_FT
[ "<BEGIN>\n## `get_consul_configuration_from_environment`", "Gets configuration on how to connect to Consul from the environment.\n :return: the configuration derived from the environment\n :raises KeyError: if a required environment variable has not been set\n<END>", "<BEGIN>\n## `create_logger`", "Crea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_regex API. 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 find_regex API. 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...
Finds the locks with key names that match the given regex. :param name_regex: key name regex :return: keys that match
"Finds the locks with key names that match the given regex.\n :param name_regex: key name regex\n :return: keys that match"
55
false
wtsi-hgi/consul-lock
find_regex
20,377
LDU_FT/nateshmbhat/pyttsx3/setBusy
LDU_FT
[ "<BEGIN>\n## `init`", "Constructs a new TTS engine instance or reuses the existing instance for\n the driver name.", " @param driverName: Name of the platform specific driver to use. If\n None, selects the default driver for the operating system.\n @type: str\n @param debug: Debugging output ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setBusy API. 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 setBusy API. 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...
Called by the driver to indicate it is busy. @param busy: True when busy, false when idle @type busy: bool
"Called by the driver to indicate it is busy.\n\n @param busy: True when busy, false when idle\n @type busy: bool"
73
false
nateshmbhat/pyttsx3
setBusy
20,378
LDU_FT/bitesofcode/projexui/maximum
LDU_FT
[ "<BEGIN>\n## `addEntry`", "Creates a new entry item for this widget.\r", " :param key | <str>\r\n value | <variant>\n<END>", "<BEGIN>\n## `dictionary`", "Returns a dictionary of the key/value pairing for the items in\r\n this widget.\r", " :return {<s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maximum API. 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 maximum API. 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 maximum value for this ruler. If the cached value is None, then a default value will be specified based on the ruler type. :return <variant>
"Returns the maximum value for this ruler. If the cached value is None,\n then a default value will be specified based on the ruler type.\n \n :return <variant>"
4,917
true
bitesofcode/projexui
maximum
20,379
LDU_FT/unfoldingWord-dev/python-gogs-client/delete
LDU_FT
[ "<BEGIN>\n## `json_get`", "Retrieves the key from a parsed_json dictionary, or raises an exception if the\n key is not present\n<END>", "<BEGIN>\n## `append_url`", "Append path to base_url in a sensible way.\n<END>", "<BEGIN>\n## `authenticated_user`", "Returns the user authenticated by ``auth``", " ...
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 ...
Manually make a DELETE request. :param str path: relative url of the request (e.g. `/users/username`) :param auth.Authentication auth: authentication object :param kwargs dict: Extra arguments for the request, as supported by the `requests <http://docs.python-request...
"Manually make a DELETE request.\n\n :param str path: relative url of the request (e.g. `/users/username`)\n :param auth.Authentication auth: authentication object\n :param kwargs dict: Extra arguments for the request, as supported by the\n `requests <http://docs.python-r...
123
false
unfoldingWord-dev/python-gogs-client
delete
20,380
LDU_FT/bpsmith/tia/do_init
LDU_FT
[ "<BEGIN>\n## `sma`", "If n is 0 then return the ltd mean; else return the n day mean\n<END>", "<BEGIN>\n## `true_range`", "http://en.wikipedia.org/wiki/Average_true_range\n The greatest of the following:\n - Current High less the current Low\n - Current High less the previous Close (absolute value)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_init API. 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 do_init API. 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...
will be called prior to waiting for the message
"will be called prior to waiting for the message"
226
false
bpsmith/tia
do_init
20,381
LDU_FT/happyleavesaoc/python-limitlessled/color
LDU_FT
[ "<BEGIN>\n## `command_set_factory`", "Create command set for controlling a specific led group.\n :param bridge: The bridge the leds are connected to.\n :param group_number: The group number.\n :param led_type: The type of the leds.\n :return: The created command set.\n<END>", "<BEGIN>\n## `rate`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color API. 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 color API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Set group color. Color is set on a best-effort basis. :param color: RGB color tuple.
"Set group color.\n\n Color is set on a best-effort basis.\n\n :param color: RGB color tuple."
164
false
happyleavesaoc/python-limitlessled
color
20,382
LDU_FT/Murali-group/halp/delete_element
LDU_FT
[ "<BEGIN>\n## `_combine_attribute_arguments`", "Combines attr_dict and attr dictionaries, by updating attr_dict\n with attr.", " :param attr_dict: dictionary of attributes of the node.\n :param attr: keyword arguments of attributes of the node;\n attr's values will ove...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_element API. 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 delete_element API. 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...
Deletes an element (lazily). :raises: ValueError -- No such element in the priority queue.
"Deletes an element (lazily).\n\n :raises: ValueError -- No such element in the priority queue."
278
false
Murali-group/halp
delete_element
20,383
LDU_FT/jameslyons/pycipher/ic
LDU_FT
[ "<BEGIN>\n## `encipher`", "Encipher string using Atbash cipher.", " Example::", " ciphertext = Atbash().encipher(plaintext) ", " :param string: The string to encipher.\n :param keep_punct: if true, punctuation and spacing are retained. If false, it is all removed. Default...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ic API. 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 ic API. 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...
takes ciphertext, calculates index of coincidence.
"takes ciphertext, calculates index of coincidence."
135
false
jameslyons/pycipher
ic
20,384
LDU_FT/rkargon/pixelsorter/quantize
LDU_FT
[ "<BEGIN>\n## `hue`", "Returns the saturation of a pixel.\n Gray pixels have saturation 0.\n :param p: A tuple of (R,G,B) values\n :return: A saturation value between 0 and 360\n<END>", "<BEGIN>\n## `saturation`", "Returns the saturation of a pixel, defined as the ratio of chroma to value.\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quantize API. 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 quantize API. 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...
Use a kdtree to quickly find the closest palette colors for the pixels
"Use a kdtree to quickly find the closest palette colors for the pixels"
79
false
rkargon/pixelsorter
quantize
20,385
LDU_FT/basler/pypylon/shift
LDU_FT
[ "<BEGIN>\n## `shift`", "Return a list corresponding to the lines of text in the `txt` list\n indented by `indent`. Prepend instead the string given in `prepend` to the\n beginning of the first line. Note that if len(prepend) > len(indent), then\n `prepend` will be truncated (doing better is tricky!). Thi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shift API. 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 shift API. 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...
Return a list corresponding to the lines of text in the `txt` list indented by `indent`. Prepend instead the string given in `prepend` to the beginning of the first line. Note that if len(prepend) > len(indent), then `prepend` will be truncated (doing better is tricky!). This preserves a special '' ent...
"Return a list corresponding to the lines of text in the `txt` list\n indented by `indent`. Prepend instead the string given in `prepend` to the\n beginning of the first line. Note that if len(prepend) > len(indent), then\n `prepend` will be truncated (doing better is tricky!). This preserves a \n special '...
42
false
basler/pypylon
shift
20,386
LDU_FT/vladcalin/gemstone/_gather_exposed_methods
LDU_FT
[ "<BEGIN>\n## `parse_json_structure`", "Given a raw representation of a json structure, returns the parsed corresponding data\n structure (``JsonRpcRequest`` or ``JsonRpcRequestBatch``)", " :param string_item:\n :return:\n<END>", "<BEGIN>\n## `from_dict`", "Validates a dict instance and transforms i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gather_exposed_methods 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 _gather_exposed_methods API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Searches for the exposed methods in the current microservice class. A method is considered exposed if it is decorated with the :py:func:`gemstone.public_method` or :py:func:`gemstone.private_api_method`.
"Searches for the exposed methods in the current microservice class. A method is considered\n exposed if it is decorated with the :py:func:`gemstone.public_method` or\n :py:func:`gemstone.private_api_method`."
107
false
vladcalin/gemstone
_gather_exposed_methods
20,387
LDU_FT/eventbrite/pysoa/_cleanly_slice_encoded_string
LDU_FT
[ "<BEGIN>\n## `dict_to_hashable`", "Takes a dict and returns an immutable, hashable version of that dict that can be used as a key in dicts or as a\n set value. Any two dicts passed in with the same content are guaranteed to return the same value. Any two dicts\n passed in with different content are guarante...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cleanly_slice_encoded_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cleanly_slice_encoded_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Takes a byte string (a UTF-8 encoded string) and splits it into two pieces such that the first slice is no longer than argument `length_limit`, then returns a tuple containing the first slice and remainder of the byte string, respectively. The first slice may actually be shorter than `length_limit`, bec...
"Takes a byte string (a UTF-8 encoded string) and splits it into two pieces such that the first slice is no\n longer than argument `length_limit`, then returns a tuple containing the first slice and remainder of the\n byte string, respectively. The first slice may actually be shorter than `length_limit`, ...
178
false
eventbrite/pysoa
_cleanly_slice_encoded_string
20,388
LDU_FT/pmorissette/bt/update
LDU_FT
[ "<BEGIN>\n## `use_integer_positions`", "Set indicator to use (or not) integer positions for a given strategy or\n security.", " By default all positions in number of stocks should be integer.\n However this may lead to unexpected results when working with adjusted\n prices of stocks....
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 security with a given date and optionally, some data. This will update price, value, weight, etc.
"Update security with a given date and optionally, some data.\n This will update price, value, weight, etc."
47
false
pmorissette/bt
update
20,389
LDU_FT/scalative/haas/addSkip
LDU_FT
[ "<BEGIN>\n## `run`", "Run the haas test runner.", " This will load and configure the selected plugins, set up the\n environment and begin test discovery, loading and running.", " Parameters\n ----------\n plugin_manager : haas.plugin_manager.PluginManager\n [Optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addSkip API. 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 addSkip API. 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...
Register that a test that was skipped. Parameters ---------- test : unittest.TestCase The test that has completed. reason : str The reason the test was skipped.
"Register that a test that was skipped.\n\n Parameters\n ----------\n test : unittest.TestCase\n The test that has completed.\n reason : str\n The reason the test was skipped."
66
false
scalative/haas
addSkip
20,390
LDU_FT/mozilla/crontabber/toposort
LDU_FT
[ "<BEGIN>\n## `toposort`", "Dependencies are expressed as a dictionary whose keys are items\nand whose values are a set of dependent items. Output is a list of\nsets in topological order. The first set consists of items with no\ndependences, each subsequent set consists of items that depend upon\nitems in the prec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toposort API. 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 toposort API. 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...
Dependencies are expressed as a dictionary whose keys are items and whose values are a set of dependent items. Output is a list of sets in topological order. The first set consists of items with no dependences, each subsequent set consists of items that depend upon items in the preceeding sets.
"Dependencies are expressed as a dictionary whose keys are items\nand whose values are a set of dependent items. Output is a list of\nsets in topological order. The first set consists of items with no\ndependences, each subsequent set consists of items that depend upon\nitems in the preceeding sets."
59
false
mozilla/crontabber
toposort
20,391
LDU_FT/bloomberg/bqplot/bar
LDU_FT
[ "<BEGIN>\n## `register_mark`", "Returns a decorator registering a mark class in the mark type registry.", " If no key is provided, the class name is used as a key. A key is provided\n for each core bqplot mark so that the frontend can use\n this key regardless of the kernel language.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bar API. 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 bar API. 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...
Draws a bar chart in the current context figure. Parameters ---------- x: numpy.ndarray, 1d The x-coordinates of the data points. y: numpy.ndarray, 1d The y-coordinates of the data pints. options: dict (default: {}) Options for the scales to be created. If a scale labeled '...
"Draws a bar chart in the current context figure.\n\n Parameters\n ----------\n\n x: numpy.ndarray, 1d\n The x-coordinates of the data points.\n y: numpy.ndarray, 1d\n The y-coordinates of the data pints.\n options: dict (default: {})\n Options for the scales to be created. If a scal...
142
false
bloomberg/bqplot
bar
20,392
LDU_FT/phodge/homely/find_by_localpath
LDU_FT
[ "<BEGIN>\n## `clonetopath`", "Clone the repo at <self.pushablepath> into <dest>\n Note that if self.pushablepath is None, then self.path will be used\n instead.\n<END>", "<BEGIN>\n## `_removecleaner`", "Remove the cleaner from the list if it already exists. Returns True if\n the cleaner w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_localpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_localpath API. 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 repo with the specified local <path>
"Returns the repo with the specified local <path>"
49
false
phodge/homely
find_by_localpath
20,393
LDU_FT/bashu/django-watermark/watermark
LDU_FT
[ "<BEGIN>\n## `watermark`", "Returns the URL to a watermarked copy of the image specified.\n<END>", "<BEGIN>\n## `_get_filesystem_path`", "Makes a filesystem path from the specified URL path\n<END>", "<BEGIN>\n## `generate_filename`", "Comes up with a good filename for the watermarked image\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watermark API. 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 watermark API. 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 URL to a watermarked copy of the image specified.
"Returns the URL to a watermarked copy of the image specified."
18
false
bashu/django-watermark
watermark
20,394
LDU_FT/umutbozkurt/django-rest-framework-mongoengine/get_field_info
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 get_field_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Given a model class, returns a `FieldInfo` instance, which is a `namedtuple`, containing metadata about the various field types on the model including information about their relationships.
"Given a model class, returns a `FieldInfo` instance, which is a\n `namedtuple`, containing metadata about the various field types on the model\n including information about their relationships."
36
false
umutbozkurt/django-rest-framework-mongoengine
get_field_info
20,395
LDU_FT/ldo/dbussy/split_path
LDU_FT
[ "<BEGIN>\n## `data_key`", "returns a unique value that allows data to be used as a dict/set key.\n<END>", "<BEGIN>\n## `get_version`", "returns the libdbus library version as a tuple of integers (major, minor, micro).\n<END>", "<BEGIN>\n## `matches_rule`", "does Message message match against the specified...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
convenience routine for splitting a path into a list of components.
"convenience routine for splitting a path into a list of components."
74
false
ldo/dbussy
split_path
20,396
LDU_FT/rbarrois/throttle/consume
LDU_FT
[ "<BEGIN>\n## `get_bucket`", "Fetch a Bucket for the given key.", " rate and capacity might be overridden from the Throttler defaults.", " Args:\n rate (float): Units regenerated by second, or None to keep\n Throttler defaults\n capacity (int): Maximum units a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume API. 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 consume API. 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...
Consume an amount for a given key. Non-default rate/capacity can be given to override Throttler defaults. Returns: bool: whether the units could be consumed
"Consume an amount for a given key.\n\n Non-default rate/capacity can be given to override Throttler defaults.\n\n Returns:\n bool: whether the units could be consumed"
24
false
rbarrois/throttle
consume
20,397
LDU_FT/unt-libraries/codalib/writeANVLString
LDU_FT
[ "<BEGIN>\n## `waitForURL`", "Give it a URL. Keep trying to get a HEAD request from it until it works.\n If it doesn't work, wait a while and try again\n<END>", "<BEGIN>\n## `doWaitWebRequest`", "Same as doWebRequest, but with built in wait-looping\n<END>", "<BEGIN>\n## `doWebRequest`", "A urllib2 wrap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the writeANVLString API. 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 writeANVLString API. 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...
Take a dictionary and write out they key/value pairs in ANVL format
"Take a dictionary and write out they key/value pairs in ANVL format"
40
false
unt-libraries/codalib
writeANVLString
20,398
LDU_FT/jjjake/giganews/_download_article
LDU_FT
[ "<BEGIN>\n## `_download_article`", "Download a given article.", " :type article_number: str\n :param article_number: the article number to download.", " :type group: str\n :param group: the group that contains the article to be downloaded.", " :returns: nntplib article res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_article API. 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 _download_article API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Download a given article. :type article_number: str :param article_number: the article number to download. :type group: str :param group: the group that contains the article to be downloaded. :returns: nntplib article response object if successful, else False.
"Download a given article.\n\n :type article_number: str\n :param article_number: the article number to download.\n\n :type group: str\n :param group: the group that contains the article to be downloaded.\n\n :returns: nntplib article response object if successful, else False."
36
false
jjjake/giganews
_download_article
20,399
LDU_FT/pymacaron/pymacaron/generate_crash_handler_decorator
LDU_FT
[ "<BEGIN>\n## `load_clients`", "Generate client libraries for the given apis, without starting an\n api server\n<END>", "<BEGIN>\n## `load_apis`", "Load all swagger files found at the given path, except those whose\n names are in the 'ignore' list\n<END>", "<BEGIN>\n## `publish_apis`", "Publi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_crash_handler_decorator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_crash_handler_decorator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Return the crash_handler to pass to pymacaron_core, with optional error decoration
"Return the crash_handler to pass to pymacaron_core, with optional error decoration"
47
false
pymacaron/pymacaron
generate_crash_handler_decorator
20,400
LDU_FT/miLibris/flask-rest-jsonapi/build_scope
LDU_FT
[ "<BEGIN>\n## `_get_key_values`", "Return a dict containing key / values items for a given key, used for items like filters, page, etc.", " :param str name: name of the querystring parameter\n :return dict: a dict of key / values items\n<END>", "<BEGIN>\n## `querystring`", "Return original quer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_scope API. 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 build_scope API. 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...
Compute the name of the scope for oauth :param Resource resource: the resource manager :param str method: an http method :return str: the name of the scope
"Compute the name of the scope for oauth\n\n :param Resource resource: the resource manager\n :param str method: an http method\n :return str: the name of the scope"
149
false
miLibris/flask-rest-jsonapi
build_scope
20,401
LDU_FT/ska-sa/hypercube/slice_index
LDU_FT
[ "<BEGIN>\n## `bytes_required`", "Returns\n -------\n int\n Estimated number of bytes required by arrays registered\n on the cube, taking their extents into account.\n<END>", "<BEGIN>\n## `register_dimension`", "Registers a dimension on this cube.", " .. code-block:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slice_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slice_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a tuple of slices, each slice equal to the slice(lower_extent, upper_extent, 1) of the dimensions supplied in slice_dims. If the dimension is integer d, slice(0, d, 1) will be used instead of the lower and upper extents .. code-block:: python A = np.ones(ntime, na) ...
"Returns a tuple of slices, each slice equal to the\n slice(lower_extent, upper_extent, 1) of the dimensions\n supplied in slice_dims. If the dimension is integer d,\n slice(0, d, 1) will be used instead of the lower and upper extents\n\n .. code-block:: python\n\n A = np.ones(nti...
163
false
ska-sa/hypercube
slice_index
20,402
LDU_FT/cedricbonhomme/Stegano/hide
LDU_FT
[ "<BEGIN>\n## `a2bits`", "Converts a string to its bits representation as a string of 0's and 1's.", " >>> a2bits(\"Hello World!\")\n '010010000110010101101100011011000110111100100000010101110110111101110010011011000110010000100001'\n<END>", "<BEGIN>\n## `a2bits_list`", "Convert a string to its bits re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hide API. 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 hide API. 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...
Hide a message (string) in an image with the LSB (Least Significant Bit) technique.
"Hide a message (string) in an image with the\n LSB (Least Significant Bit) technique."
38
false
cedricbonhomme/Stegano
hide
20,403
LDU_FT/kplindegaard/smbus2/write_block_data
LDU_FT
[ "<BEGIN>\n## `read`", "Prepares an i2c read transaction.", " :param address: Slave address.\n :type: address: int\n :param length: Number of bytes to read.\n :type: length: int\n :return: New :py:class:`i2c_msg` instance for read operation.\n :rtype: :py:class:`i2c_msg`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_block_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_block_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Write a block of byte data to a given register. :param i2c_addr: i2c address :type i2c_addr: int :param register: Start register :type register: int :param data: List of bytes :type data: list :param force: :type force: Boolean :rtype: None
"Write a block of byte data to a given register.\n\n :param i2c_addr: i2c address\n :type i2c_addr: int\n :param register: Start register\n :type register: int\n :param data: List of bytes\n :type data: list\n :param force:\n :type force: Boolean\n :rtype: ...
51
false
kplindegaard/smbus2
write_block_data
20,404
LDU_FT/bluedynamics/cone.ugm/local_manager_is_default
LDU_FT
[ "<BEGIN>\n## `prepare`", "Hook after prepare and set 'id' disabled.\n<END>", "<BEGIN>\n## `prepare`", "Hook after prepare and set 'principal_roles' as selection to\n ``self.form``.\n<END>", "<BEGIN>\n## `expiration_extractor`", "Extract expiration information.", " - If active flag not set, Acc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the local_manager_is_default 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 local_manager_is_default API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Check whether gid is default group for local manager group.
"Check whether gid is default group for local manager group."
39
false
bluedynamics/cone.ugm
local_manager_is_default
20,405
LDU_FT/bschollnick/semantic_url/pi_to_number
LDU_FT
[ "<BEGIN>\n## `norm_page_cnt`", "Normalize a integer (page).", " * Ensure that it is greater than Zero, and is not None.\n - If less than 1, or None, set it to 1", " * if max_number is None, then do not check for max_number\n * if greater than max_number, reset it to be max_number\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pi_to_number API. 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 pi_to_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert subpage & subitem to a integer * if page == 1, then return 0, since the item count is the true # of items * if page == 2, then return, page-1 * items_per_page, since we are returning the # of items on a full page. Args: * None Returns: * Integer - Which represents the nu...
"Convert subpage & subitem to a integer\n\n * if page == 1, then return 0, since the item count is the true # of items\n * if page == 2, then return, page-1 * items_per_page, since we are\n returning the # of items on a full page.\n\n Args:\n * None\n\n Returns:\n * Integer - Which repres...
61
false
bschollnick/semantic_url
pi_to_number
20,406
LDU_FT/bwhite/hadoopy/openEmbedded
LDU_FT
[ "<BEGIN>\n## `__add_options`", "Add the `Makespec` options to a option-parser instance or a\n option group.\n<END>", "<BEGIN>\n## `exec_python`", "Wrap running python script in a subprocess.", " Return stdout of the invoked command.\n<END>", "<BEGIN>\n## `exec_python_rc`", "Wrap running python scr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the openEmbedded API. 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 openEmbedded API. 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...
Open a CArchive of name NAME embedded within this CArchive.
"Open a CArchive of name NAME embedded within this CArchive."
610
false
bwhite/hadoopy
openEmbedded
20,407
LDU_FT/Gjum/agarnet/gcommer_claim
LDU_FT
[ "<BEGIN>\n## `gcommer_claim`", "Try to get a token for this server address.\n `address` has to be ip:port, e.g. `'1.2.3.4:1234'`\n Returns tuple(address, token)\n<END>", "<BEGIN>\n## `gcommer_donate`", "Donate a token for this server address.\n `address` and `token` should be the return values from f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gcommer_claim API. 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 gcommer_claim API. 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...
Try to get a token for this server address. `address` has to be ip:port, e.g. `'1.2.3.4:1234'` Returns tuple(address, token)
"Try to get a token for this server address.\n `address` has to be ip:port, e.g. `'1.2.3.4:1234'`\n Returns tuple(address, token)"
57
false
Gjum/agarnet
gcommer_claim
20,408
LDU_FT/SavinaRoja/OpenAccess_EPUB/get_absolute_path
LDU_FT
[ "<BEGIN>\n## `make_EPUB`", "Standard workflow for creating an EPUB document.", " make_EPUB is used to produce an EPUB file from a parsed article. In addition\n to the article it also requires a path to the appropriate image directory\n which it will insert into the EPUB file, as well the output directo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_absolute_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_absolute_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This function will return an appropriate absolute path for the path it is given. If the input is absolute, it will return unmodified; if the input is relative, it will be rendered as relative to the current working directory.
"This function will return an appropriate absolute path for the path it is\n given. If the input is absolute, it will return unmodified; if the input is\n relative, it will be rendered as relative to the current working directory."
245
false
SavinaRoja/OpenAccess_EPUB
get_absolute_path
20,409
LDU_FT/jpype-project/jpype/_JImportFactory
LDU_FT
[ "<BEGIN>\n## `_javahome_binary`", "for osx > 10.5 we have the nice util /usr/libexec/java_home available. Invoke it and\n return its output. It seems this tool has been removed in osx 10.9.\n<END>", "<BEGIN>\n## `_get_from_registry`", "Retrieves the path to the default Java installation stored in the\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _JImportFactory API. 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 _JImportFactory API. 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...
(internal) Factory for creating java modules dynamically. This is needed to create a new type node to hold static methods.
"(internal) Factory for creating java modules dynamically.\n\n This is needed to create a new type node to hold static methods."
46
false
jpype-project/jpype
_JImportFactory
20,410
LDU_FT/guykisel/inline-plz/cleanup
LDU_FT
[ "<BEGIN>\n## `out_of_date`", "Check if our local latest sha matches the remote latest sha\n<END>", "<BEGIN>\n## `position`", "Calculate position within the PR, which is not the line number\n<END>", "<BEGIN>\n## `load_config`", "Load inline-plz config from yaml config file with reasonable defaults.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup API. 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 cleanup API. 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...
Delete standard installation directories.
"Delete standard installation directories."
11
false
guykisel/inline-plz
cleanup
20,411
LDU_FT/awslabs/serverless-application-model/enabled_logical_ids
LDU_FT
[ "<BEGIN>\n## `deaggregate_record`", "Given a Kinesis record data that is decoded, deaggregate if it was packed using the\n Kinesis Producer Library into individual records. This method will be a no-op for any\n records that are not aggregated (but will still return them).", " decoded_data - the base64...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enabled_logical_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enabled_logical_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
:return: only the logical id's for the deployment preferences in this collection which are enabled
":return: only the logical id's for the deployment preferences in this collection which are enabled"
672
false
awslabs/serverless-application-model
enabled_logical_ids
20,412
LDU_FT/ethereum/pyethereum/check_keystore_json
LDU_FT
[ "<BEGIN>\n## `_canonical_type`", "Replace aliases to the corresponding type to compute the ids.\n<END>", "<BEGIN>\n## `method_id`", "Return the unique method id.", " The signature is defined as the canonical expression of the basic\n prototype, i.e. the function name with the parenthesised list of par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_keystore_json 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 check_keystore_json 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...
Check if ``jsondata`` has the structure of a keystore file version 3. Note that this test is not complete, e.g. it doesn't check key derivation or cipher parameters. :param jsondata: dictionary containing the data from the json file :returns: `True` if the data appears to be valid, otherwise `False`
"Check if ``jsondata`` has the structure of a keystore file version 3.\n\n Note that this test is not complete, e.g. it doesn't check key derivation or cipher parameters.\n\n :param jsondata: dictionary containing the data from the json file\n :returns: `True` if the data appears to be valid, otherwise `False`...
138
false
ethereum/pyethereum
check_keystore_json
20,413
LDU_FT/florianpaquet/mease/get_kwargs
LDU_FT
[ "<BEGIN>\n## `get_kwargs`", "Returns kwargs for both publisher and subscriber classes\n<END>", "<BEGIN>\n## `onConnect`", "Called when a client opens a websocket connection\n<END>", "<BEGIN>\n## `onOpen`", "Called when a client has opened a websocket connection\n<END>", "<BEGIN>\n## `onClose`", "Calle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_kwargs API. 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 kwargs for both publisher and subscriber classes
"Returns kwargs for both publisher and subscriber classes"
14
false
florianpaquet/mease
get_kwargs
20,414
LDU_FT/Richienb/quilt/randstring
LDU_FT
[ "<BEGIN>\n## `userinput`", "Get the input of the user via a universally secure method.", " :type prompttext: string\n :param prompttext: The text to display while receiving the data.", " :type times: integer\n :param times: The amount of times to ask the user. If value is not 1, a list will be ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the randstring API. 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 randstring API. 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...
Generate a random string consisting of letters, digits and punctuation :type length: integer :param length: The length of the generated string.
"Generate a random string consisting of letters, digits and punctuation\n\n :type length: integer\n :param length: The length of the generated string."
210
false
Richienb/quilt
randstring
20,415
LDU_FT/palantir/conjure-python-client/decode_conjure_enum_type
LDU_FT
[ "<BEGIN>\n## `_request`", "Make requests using configured :class:`requests.Session`.\n Any error details will be extracted to an :class:`HTTPError`\n which will contain relevant error details when printed.\n<END>", "<BEGIN>\n## `decode_conjure_bean_type`", "Decodes json into a conjure bean type ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_conjure_enum_type 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 decode_conjure_enum_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Decodes json into a conjure enum type. Args: obj: the json object to decode conjure_type: a class object which is the enum type we're decoding into. Returns: An instance of enum of type conjure_type.
"Decodes json into a conjure enum type.\n\n Args:\n obj: the json object to decode\n conjure_type: a class object which is the enum type\n we're decoding into.\n Returns:\n An instance of enum of type conjure_type."
20
false
palantir/conjure-python-client
decode_conjure_enum_type
20,416
LDU_FT/invoice-x/invoice2data/to_text
LDU_FT
[ "<BEGIN>\n## `to_text`", "Wraps Tesseract 4 OCR with custom language model.", " Parameters\n ----------\n path : str\n path of electronic invoice in JPG or PNG format", " Returns\n -------\n extracted_str : str\n returns extracted text from image in JPG or PNG format\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Wraps Tesseract 4 OCR with custom language model. Parameters ---------- path : str path of electronic invoice in JPG or PNG format Returns ------- extracted_str : str returns extracted text from image in JPG or PNG format
"Wraps Tesseract 4 OCR with custom language model.\n\n Parameters\n ----------\n path : str\n path of electronic invoice in JPG or PNG format\n\n Returns\n -------\n extracted_str : str\n returns extracted text from image in JPG or PNG format"
69
false
invoice-x/invoice2data
to_text
20,417
LDU_FT/sparknetworks/pgpm/deploy_schema_to_db
LDU_FT
[ "<BEGIN>\n## `deploy_schema_to_db`", "Deploys schema\n :param files_deployment: if specific script to be deployed, only find them\n :param mode:\n :param vcs_ref:\n :param vcs_link:\n :param issue_ref:\n :param issue_link:\n :param compare_table_scripts_as_int:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deploy_schema_to_db 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 deploy_schema_to_db 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...
Deploys schema :param files_deployment: if specific script to be deployed, only find them :param mode: :param vcs_ref: :param vcs_link: :param issue_ref: :param issue_link: :param compare_table_scripts_as_int: :param config_path: :param config_dict...
"Deploys schema\n :param files_deployment: if specific script to be deployed, only find them\n :param mode:\n :param vcs_ref:\n :param vcs_link:\n :param issue_ref:\n :param issue_link:\n :param compare_table_scripts_as_int:\n :param config_path:\n :param c...
39
false
sparknetworks/pgpm
deploy_schema_to_db
20,418
LDU_FT/yougov/librarypaste/short_key
LDU_FT
[ "<BEGIN>\n## `short_key`", "Generate a short key.", " >>> key = short_key()\n >>> len(key)\n 5\n<END>", "<BEGIN>\n## `init_datastore`", "Take the config definition and initialize the datastore.", " The config must contain either a 'datastore' parameter, which\n will be simply returned, or\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the short_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the short_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Generate a short key. >>> key = short_key() >>> len(key) 5
"Generate a short key.\n\n >>> key = short_key()\n >>> len(key)\n 5"
18
false
yougov/librarypaste
short_key
20,419
LDU_FT/relwell/corenlp-xml-lib/load
LDU_FT
[ "<BEGIN>\n## `mentions`", "Returns mentions", " :return: list of mentions\n :rtype: list\n<END>", "<BEGIN>\n## `sentence`", "The sentence related to this mention", " :getter: returns the sentence this mention relates to\n :type: corenlp_xml.document.Sentence\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Instantiates the node in the graph if it's not already stored in the graph :param graph: The dependency graph this node is a member of :type graph: corenlp_xml.dependencies.DependencyGraph :param element: The lxml element wrapping the node :type element: lxml.ElementBase
"Instantiates the node in the graph if it's not already stored in the graph\n\n :param graph: The dependency graph this node is a member of\n :type graph: corenlp_xml.dependencies.DependencyGraph\n :param element: The lxml element wrapping the node\n :type element: lxml.ElementBase"
87
false
relwell/corenlp-xml-lib
load
20,420
LDU_FT/andersinno/python-database-sanitizer/sanitize
LDU_FT
[ "<BEGIN>\n## `decode_copy_value`", "Decodes value received as part of Postgres `COPY` command.", " :param value: Value to decode.\n :type value: str", " :return: Either None if the value is NULL string, or the given value where\n escape sequences have been decoded from.\n :rtype: str|N...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanitize API. 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 sanitize API. 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...
Obtains dump of MySQL database by executing `mysqldump` command and sanitizes it output. :param url: URL to the database which is going to be sanitized, parsed by Python's URL parser. :type url: urllib.urlparse.ParseResult :param config: Optional sanitizer configuration to be used for ...
"Obtains dump of MySQL database by executing `mysqldump` command and\n sanitizes it output.\n\n :param url: URL to the database which is going to be sanitized, parsed by\n Python's URL parser.\n :type url: urllib.urlparse.ParseResult\n\n :param config: Optional sanitizer configuration to be u...
104
false
andersinno/python-database-sanitizer
sanitize
20,421
LDU_FT/vijayvarma392/surfinBH/multiplyQuats
LDU_FT
[ "<BEGIN>\n## `multiplyQuats`", "q1, q2 must be [scalar, x, y, z] but those may be arrays or scalars\n<END>", "<BEGIN>\n## `alignVec_quat`", "Returns a unit quaternion that will align vec with the z-axis\n<END>", "<BEGIN>\n## `transformTimeDependentVector`", "Given (for example) a minimal rotation frame qu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multiplyQuats API. 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 multiplyQuats API. 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...
q1, q2 must be [scalar, x, y, z] but those may be arrays or scalars
"q1, q2 must be [scalar, x, y, z] but those may be arrays or scalars"
46
false
vijayvarma392/surfinBH
multiplyQuats
20,422
LDU_FT/dswah/pyGAM/_W
LDU_FT
[ "<BEGIN>\n## `validate_callback_data`", "wraps a callback's method to pull the desired arguments from the vars dict\n also checks to ensure the method's arguments are in the vars dict", " Parameters\n ----------\n method : callable", " Returns\n -------\n validated callable\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _W API. 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 _W API. 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...
compute the PIRLS weights for model predictions. TODO lets verify the formula for this. if we use the square root of the mu with the stable opt, we get the same results as when we use non-sqrt mu with naive opt. this makes me think that they are equivalent. also, using non-sqr...
"compute the PIRLS weights for model predictions.\n\n TODO lets verify the formula for this.\n if we use the square root of the mu with the stable opt,\n we get the same results as when we use non-sqrt mu with naive opt.\n\n this makes me think that they are equivalent.\n\n also, usin...
770
false
dswah/pyGAM
_W
20,423
LDU_FT/danielperna84/pyhomematic/getCachedOrUpdatedValue
LDU_FT
[ "<BEGIN>\n## `start`", "Start the server thread if it wasn't created with autostart = True.\n<END>", "<BEGIN>\n## `getSystemVariable`", "Get single system variable from CCU / Homegear\n<END>", "<BEGIN>\n## `deleteSystemVariable`", "Delete a system variable from CCU / Homegear\n<END>", "<BEGIN>\n## `setI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCachedOrUpdatedValue 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 getCachedOrUpdatedValue API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Gets the channel's value with the given key. If the key is not found in the cache, the value is queried from the host. If 'channel' is given, the respective channel's value is returned.
"Gets the channel's value with the given key.\n\n If the key is not found in the cache, the value is queried from the host.\n If 'channel' is given, the respective channel's value is returned."
83
false
danielperna84/pyhomematic
getCachedOrUpdatedValue
20,424
LDU_FT/RedisJSON/rejson-py/jsondel
LDU_FT
[ "<BEGIN>\n## `bulk_of_jsons`", "Replace serialized JSON values with objects in a bulk array response (list)\n<END>", "<BEGIN>\n## `setEncoder`", "Sets the client's encoder\n ``encoder`` should be an instance of a ``json.JSONEncoder`` class\n<END>", "<BEGIN>\n## `setDecoder`", "Sets the client's dec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsondel API. 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 jsondel API. 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...
Deletes the JSON value stored at key ``name`` under ``path``
"Deletes the JSON value stored at key ``name`` under ``path``"
43
false
RedisJSON/rejson-py
jsondel
20,425
LDU_FT/CleanCut/green/getConfig
LDU_FT
[ "<BEGIN>\n## `toParallelTargets`", "Produce a list of targets which should be tested in parallel.", " For the most part this will be a list of test modules. The exception is\n when a dotted name representing something more granular than a module\n was input (like an individal test case or test method)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getConfig API. 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 getConfig API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get the Green config file settings. All available config files are read. If settings are in multiple configs, the last value encountered wins. Values specified on the command-line take precedence over all config file settings. Returns: A ConfigParser object.
"Get the Green config file settings.\n\n All available config files are read. If settings are in multiple configs,\n the last value encountered wins. Values specified on the command-line take\n precedence over all config file settings.\n\n Returns: A ConfigParser object."
33
false
CleanCut/green
getConfig
20,426
LDU_FT/ansible/molecule/_write_inventory
LDU_FT
[ "<BEGIN>\n## `bake`", "Bake an ``ansible-playbook`` command so it's ready to execute and\n returns ``None``.", " :return: None\n<END>", "<BEGIN>\n## `execute`", "Executes ``ansible-playbook`` and returns a string.", " :return: str\n<END>", "<BEGIN>\n## `execute`", "Execute the act...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_inventory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_inventory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Writes the provisioner's inventory file to disk and returns None. :return: None
"Writes the provisioner's inventory file to disk and returns None.\n\n :return: None"
234
false
ansible/molecule
_write_inventory
20,427
LDU_FT/beetbox/audioread/audio_open
LDU_FT
[ "<BEGIN>\n## `_notify_caps`", "The callback for the sinkpad's \"notify::caps\" signal.\n<END>", "<BEGIN>\n## `_pad_added`", "The callback for GstElement's \"pad-added\" signal.\n<END>", "<BEGIN>\n## `_no_more_pads`", "The callback for GstElement's \"no-more-pads\" signal.\n<END>", "<BEGIN>\n## `_new_sam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the audio_open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the audio_open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Open an audio file using a library that is available on this system. The optional `backends` parameter can be a list of audio file classes to try opening the file with. If it is not provided, `audio_open` tries all available backends. If you call this function many times, you can avoid the cost of ...
"Open an audio file using a library that is available on this\n system.\n\n The optional `backends` parameter can be a list of audio file\n classes to try opening the file with. If it is not provided,\n `audio_open` tries all available backends. If you call this function\n many times, you can avoid the c...
58
false
beetbox/audioread
audio_open
20,428
LDU_FT/lekhakpadmanabh/Summarizer/_aggregrate_scores
LDU_FT
[ "<BEGIN>\n## `goose_extractor`", "webpage extraction using\n Goose Library\n<END>", "<BEGIN>\n## `_normalize`", "returns tf-idf matrix\n (unigrams+bigrams)\n<END>", "<BEGIN>\n## `_intertext_score`", "returns tuple of scored sentences\n in order of appearance\n Note: Doing an A/B te...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _aggregrate_scores 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 _aggregrate_scores 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...
rerank the two vectors by min aggregrate rank, reorder
"rerank the two vectors by\n min aggregrate rank, reorder"
16
false
lekhakpadmanabh/Summarizer
_aggregrate_scores
20,429
LDU_FT/spyder-ide/conda-manager/_prepare_model_data
LDU_FT
[ "<BEGIN>\n## `get_package_versions`", "Gives all the compatible package canonical name", " name : str\n Name of the package\n<END>", "<BEGIN>\n## `closing_plugin`", "Perform actions before parent main window is closed.\n<END>", "<BEGIN>\n## `get_conf_path`", "Return absolute path for c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_model_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_model_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Prepare model data for the packages table model.
"Prepare model data for the packages table model."
160
false
spyder-ide/conda-manager
_prepare_model_data
20,430
LDU_FT/blockcypher/blockcypher-python/create_wallet_from_address
LDU_FT
[ "<BEGIN>\n## `script_to_address`", "Like script_to_address but supports altcoins\n Copied 2015-10-02 from https://github.com/mflaxman/pybitcointools/blob/faf56c53148989ea390238c3c4541a6ae1d601f5/bitcoin/transaction.py#L224-L236\n<END>", "<BEGIN>\n## `get_address_details`", "Takes an address and coin_symbol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_wallet_from_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_wallet_from_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Create a new wallet with one address You can add addresses with the add_address_to_wallet method below You can delete the wallet with the delete_wallet method below
"Create a new wallet with one address\n\n You can add addresses with the add_address_to_wallet method below\n You can delete the wallet with the delete_wallet method below"
163
false
blockcypher/blockcypher-python
create_wallet_from_address
20,431
LDU_FT/graphql-python/graphql-core/quoted_or_list
LDU_FT
[ "<BEGIN>\n## `is_valid_value`", "Given a type and any value, return True if that value is valid.\n<END>", "<BEGIN>\n## `get_key_for_schema_and_document_string`", "This method returns a unique key given a schema and a request_string\n<END>", "<BEGIN>\n## `document_from_string`", "This method returns a Grap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quoted_or_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quoted_or_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 ex...
Given [ A, B, C ] return '"A", "B" or "C"'.
"Given [ A, B, C ] return '\"A\", \"B\" or \"C\"'."
128
false
graphql-python/graphql-core
quoted_or_list
20,432
LDU_FT/siznax/wptools/_set_siteinfo
LDU_FT
[ "<BEGIN>\n## `_add_members`", "Adds category members and subcategories to data\n<END>", "<BEGIN>\n## `_set_data`", "Set category member data from API response\n<END>", "<BEGIN>\n## `get_members`", "GET Mediawiki:API (action=query) category members\n https://www.mediawiki.org/wiki/API:Categorymember...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_siteinfo API. 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 _set_siteinfo API. 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...
capture API sitematrix data in data attribute
"capture API sitematrix data in data attribute"
179
false
siznax/wptools
_set_siteinfo
20,433
LDU_FT/ff0000/scarlet/search_tags
LDU_FT
[ "<BEGIN>\n## `get_add_link`", "Appends the popup=1 query string to the url so the\n destination url treats it as a popup.\n<END>", "<BEGIN>\n## `render_view`", "Return an string version of a View with as_string method.\n First argument is the name of the view. Any other arguments\n should be keyw...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_tags API. 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 search_tags API. 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...
Search assets by passing a list of one or more tags.
"Search assets by passing a list of one or more tags."
548
false
ff0000/scarlet
search_tags
20,434
LDU_FT/cyrus-/cypy/fn_kwargs
LDU_FT
[ "<BEGIN>\n## `packed`", "each row is placed side-by-side with the length of the row interlaced\n the head of the packed matrix contains offsets to this length\n e.g. [[11, 22, 33], [44, 55], []] => [3, 7, 10, 3, 11, 22, 33, 2, 44, 55, 0]\n<END>", "<BEGIN>\n## `reversed`", "Create a connectivity ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fn_kwargs API. 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 fn_kwargs API. 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 a dict with the kwargs from the provided function. Example >>> def x(a, b=0, *args, **kwargs): pass >>> func_kwargs(x) == { 'b': 0 }
"Returns a dict with the kwargs from the provided function.\n\n Example\n\n >>> def x(a, b=0, *args, **kwargs): pass\n >>> func_kwargs(x) == { 'b': 0 }"
209
false
cyrus-/cypy
fn_kwargs
20,435
LDU_FT/nrcharles/caelum/_station_info
LDU_FT
[ "<BEGIN>\n## `parse_noaa_line`", "Parse NOAA stations.", " This is an old list, the format is:", " NUMBER NAME & STATE/COUNTRY LAT LON ELEV (meters)", " 010250 TROMSO NO 6941N 01855E 10\n<END>", "<BEGIN>\n## `closest_eere`", "Find closes...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _station_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _station_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
filename based meta data for a station code.
"filename based meta data for a station code."
60
false
nrcharles/caelum
_station_info
20,436
LDU_FT/henrysher/kotocore/service_data
LDU_FT
[ "<BEGIN>\n## `get_version`", "Returns a string-ified version number.", " Optionally accepts a ``full`` parameter, which if ``True``, will include\n any pre-release information. (Default: ``False``)\n<END>", "<BEGIN>\n## `requires_loaded`", "A decorator to ensure the resource data is loaded.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the service_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the service_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns all introspected service data. If the data has been previously accessed, a memoized version of the data is returned. :returns: A dict of introspected service data :rtype: dict
"Returns all introspected service data.\n\n If the data has been previously accessed, a memoized version of the\n data is returned.\n\n :returns: A dict of introspected service data\n :rtype: dict"
198
false
henrysher/kotocore
service_data
20,437
LDU_FT/vladcalin/gemstone/call_method
LDU_FT
[ "<BEGIN>\n## `parse_json_structure`", "Given a raw representation of a json structure, returns the parsed corresponding data\n structure (``JsonRpcRequest`` or ``JsonRpcRequestBatch``)", " :param string_item:\n :return:\n<END>", "<BEGIN>\n## `from_dict`", "Validates a dict instance and transforms i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Calls a blocking method in an executor, in order to preserve the non-blocking behaviour If ``method`` is a coroutine, yields from it and returns, no need to execute in in an executor. :param method: The method or coroutine to be called (with no arguments). :return: the result of the me...
"Calls a blocking method in an executor, in order to preserve the non-blocking behaviour\n\n If ``method`` is a coroutine, yields from it and returns, no need to execute in\n in an executor.\n\n :param method: The method or coroutine to be called (with no arguments).\n :return: the result of...
107
false
vladcalin/gemstone
call_method
20,438
LDU_FT/edeposit/edeposit.amqp.storage/_remove_tree
LDU_FT
[ "<BEGIN>\n## `render_trees`", "Render list of `trees` to HTML.", " Args:\n trees (list): List of :class:`.Tree`.\n path_composer (fn reference): Function used to compose paths from UUID.\n Look at :func:`.compose_tree_path` from :mod:`.web_tools`.", " Returns:\n str: HTML...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_tree API. 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 _remove_tree API. 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...
Really remove the tree identified by `tree` instance from all indexes from database. Args: tree (obj): :class:`.Tree` instance. parent (obj, default None): Reference to parent.
"Really remove the tree identified by `tree` instance from all indexes\n from database.\n\n Args:\n tree (obj): :class:`.Tree` instance.\n parent (obj, default None): Reference to parent."
140
false
edeposit/edeposit.amqp.storage
_remove_tree
20,439
LDU_FT/miguelgrinberg/python-socketio/call
LDU_FT
[ "<BEGIN>\n## `get_participants`", "Return an iterable with the active participants in a room.\n<END>", "<BEGIN>\n## `connect`", "Register a client connection to a namespace.\n<END>", "<BEGIN>\n## `pre_disconnect`", "Put the client in the to-be-disconnected list.", " This allows the client data st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. 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 call API. 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...
Emit a custom event to a client and wait for the response. :param event: The event name. It can be any string. The event names ``'connect'``, ``'message'`` and ``'disconnect'`` are reserved and should not be used. :param data: The data to send to the client o...
"Emit a custom event to a client and wait for the response.\n\n :param event: The event name. It can be any string. The event names\n ``'connect'``, ``'message'`` and ``'disconnect'`` are\n reserved and should not be used.\n :param data: The data to send to the cl...
172
false
miguelgrinberg/python-socketio
call
20,440
LDU_FT/EelcoHoogendoorn/Numpy_arraysetops_EP/object_as_axis
LDU_FT
[ "<BEGIN>\n## `group_by`", "construct a grouping object on the given keys, optionally performing the given reduction on the given values", " Parameters\n ----------\n keys : indexable object\n keys to group by\n values : array_like, optional\n sequence of values, of the same length as k...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the object_as_axis API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the object_as_axis API. 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...
cast an array of void objects to a typed axis Parameters ---------- arr : ndarray, [ndim], void array of type np.void dtype : numpy dtype object the output dtype to cast the input array to axis : int position to insert the newly formed axis into Returns ------- ...
"cast an array of void objects to a typed axis\n\n Parameters\n ----------\n arr : ndarray, [ndim], void\n array of type np.void\n dtype : numpy dtype object\n the output dtype to cast the input array to\n axis : int\n position to insert the newly formed axis into\n\n Returns\n ...
198
false
EelcoHoogendoorn/Numpy_arraysetops_EP
object_as_axis
20,441
LDU_FT/scikit-hep/probfit/fit_binx2
LDU_FT
[ "<BEGIN>\n## `parse_arg`", "convert dictionary of keyword argument and value to positional argument\n equivalent to::", " vnames = describe(f)\n return tuple([kwd[k] for k in vnames[offset:]])\n<END>", "<BEGIN>\n## `_get_args_and_errors`", "consistent algorithm to get argument and errors\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_binx2 API. 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 fit_binx2 API. 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...
perform chi^2 fit :param f: :param data: :param bins: :param range: :param printlevel: :param quiet: :param arg: :param kwd: :return:
"perform chi^2 fit\n :param f:\n :param data:\n :param bins:\n :param range:\n :param printlevel:\n :param quiet:\n :param arg:\n :param kwd:\n :return:"
51
false
scikit-hep/probfit
fit_binx2
20,442
LDU_FT/NikolayDachev/jadm/readline
LDU_FT
[ "<BEGIN>\n## `recv`", "Read from the standard output of the forked program.", " :param int size: how many chars should be read", " :return: the length of the read content, as an `int`\n<END>", "<BEGIN>\n## `generate`", "Generate a new private DSS key. This factory function can be used to\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readline API. 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 readline API. 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 line from the socket. We assume no data is pending after the line, so it's okay to attempt large reads.
"Read a line from the socket. We assume no data is pending after the\n line, so it's okay to attempt large reads."
141
false
NikolayDachev/jadm
readline
20,443
LDU_FT/mongodb/motor/get_motor_attr
LDU_FT
[ "<BEGIN>\n## `chain_return_value`", "Compatible way to return a value in all Pythons.", " PEP 479, raise StopIteration(value) from a coroutine won't work forever,\n but \"return value\" doesn't work in Python 2. Instead, Motor methods that\n return values resolve a Future with it, and are implemented w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_motor_attr API. 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_motor_attr API. 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...
If any Motor attributes can't be accessed, grab the equivalent PyMongo attribute. While we're at it, store some info about each attribute in the global motor_info dict.
"If any Motor attributes can't be accessed, grab the equivalent PyMongo\n attribute. While we're at it, store some info about each attribute\n in the global motor_info dict."
133
false
mongodb/motor
get_motor_attr
20,444
LDU_FT/konstantint/matplotlib-venn/prepare_venn_axes
LDU_FT
[ "<BEGIN>\n## `point_in_circle`", "Returns true if a given point is located inside (or on the border) of a circle.", " >>> point_in_circle((0, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 1), (0, 0), 1)\n False\n<END>", "<BEGIN>\n## `circle_i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_venn_axes API. 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 prepare_venn_axes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Sets properties of the axis object to suit venn plotting. I.e. hides ticks, makes proper xlim/ylim.
"Sets properties of the axis object to suit venn plotting. I.e. hides ticks, makes proper xlim/ylim."
166
false
konstantint/matplotlib-venn
prepare_venn_axes
20,445
LDU_FT/getsentry/sentry-python/setup_integrations
LDU_FT
[ "<BEGIN>\n## `init`", "Initializes the SDK and optionally integrations.", " This takes the same arguments as the client constructor.\n<END>", "<BEGIN>\n## `current`", "Returns the current instance of the hub.\n<END>", "<BEGIN>\n## `get_integration`", "Returns the integration for this hub by name or c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_integrations 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 setup_integrations 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...
Given a list of integration instances this installs them all. When `with_defaults` is set to `True` then all default integrations are added unless they were already provided before.
"Given a list of integration instances this installs them all. When\n `with_defaults` is set to `True` then all default integrations are added\n unless they were already provided before."
57
false
getsentry/sentry-python
setup_integrations
20,446
LDU_FT/caffeinehit/django-oauth2-provider/_validate_client
LDU_FT
[ "<BEGIN>\n## `check`", "Check if a desired scope ``wants`` is part of an available scope ``has``.", " Returns ``False`` if not, return ``True`` if yes.", " :example:", " If a list of scopes such as", " ::", " READ = 1 << 1\n WRITE = 1 << 2\n READ_WRITE = READ | WRITE", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_client API. 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_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
:return: ``tuple`` - ``(client or False, data or error)``
":return: ``tuple`` - ``(client or False, data or error)``"
74
false
caffeinehit/django-oauth2-provider
_validate_client
20,447
LDU_FT/althonos/pronto/rchildren
LDU_FT
[ "<BEGIN>\n## `_extract_resources`", "Extract the children of an element as a key/value mapping.\n<END>", "<BEGIN>\n## `_iter_rawterms`", "Iterate through the raw terms (Classes) in the ontology.\n<END>", "<BEGIN>\n## `_extract_obo_synonyms`", "Extract the synonyms defined in the rawterm.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rchildren API. 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 rchildren API. 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...
Create a recursive list of children. Parameters: level (int): The depth level to continue fetching children from (default is -1, to get children to the utter depths) intermediate (bool): Also include the intermediate children (default is True) Re...
"Create a recursive list of children.\n\n Parameters:\n level (int): The depth level to continue fetching children from\n (default is -1, to get children to the utter depths)\n intermediate (bool): Also include the intermediate children\n (default is True)\n\n ...
120
false
althonos/pronto
rchildren
20,448
LDU_FT/tariqdaouda/pyGeno/_importGenomeObjects
LDU_FT
[ "<BEGIN>\n## `getGenomeList`", "Return the names of all imported genomes\n<END>", "<BEGIN>\n## `removeDuplicates`", "removes duplicated lines from a 'inFileName' CSV file, the results are witten in 'outFileName\n<END>", "<BEGIN>\n## `catCSVs`", "Concatenates all csv in 'folder' and wites the results in 'o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _importGenomeObjects 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 _importGenomeObjects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
verbose must be an int [0, 4] for various levels of verbosity
"verbose must be an int [0, 4] for various levels of verbosity"
167
false
tariqdaouda/pyGeno
_importGenomeObjects
20,449
LDU_FT/20c/xbahn/wires
LDU_FT
[ "<BEGIN>\n## `disconnect`", "Close all connections that are set on this wire\n<END>", "<BEGIN>\n## `send_and_wait`", "Send a message and block until a response is received. Return response message\n<END>", "<BEGIN>\n## `wire`", "Wires the link to a connection. Can be called multiple\n times to set ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wires API. 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 wires API. 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...
Yields name (str), wire (Wire) for all wires on this link
"Yields name (str), wire (Wire) for all wires on\n this link"
119
false
20c/xbahn
wires
20,450
LDU_FT/TorkamaniLab/metapipe/progress
LDU_FT
[ "<BEGIN>\n## `consume`", "Converts the lexer tokens into valid statements. This process\n also checks command syntax.\n<END>", "<BEGIN>\n## `_get`", "Given a type and a dict of parser results, return\n the items as a list.\n<END>", "<BEGIN>\n## `_parse`", "Given a type and a list, parse it u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the progress API. 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 progress API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns the percentage, current and total number of jobs in the queue.
"Returns the percentage, current and total number of\n jobs in the queue."
84
false
TorkamaniLab/metapipe
progress
20,451
LDU_FT/kervi/kervi-devices/_input_pins
LDU_FT
[ "<BEGIN>\n## `read_raw_temp`", "Reads the raw (uncompensated) temperature from the sensor.\n<END>", "<BEGIN>\n## `read_raw_pressure`", "Reads the raw (uncompensated) pressure level from the sensor.\n<END>", "<BEGIN>\n## `read_temperature`", "Gets the compensated temperature in degrees celsius.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _input_pins API. 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 _input_pins API. 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...
Read multiple pins specified in the given list and return list of pin values GPIO.HIGH/True if the pin is pulled high, or GPIO.LOW/False if pulled low.
"Read multiple pins specified in the given list and return list of pin values\n GPIO.HIGH/True if the pin is pulled high, or GPIO.LOW/False if pulled low."
58
false
kervi/kervi-devices
_input_pins
20,452
LDU_FT/alephdata/memorious/op_count
LDU_FT
[ "<BEGIN>\n## `size`", "Total operations pending for this crawler\n<END>", "<BEGIN>\n## `read_word`", "OCR a single word from an image. Useful for captchas.\n Image should be pre-processed to remove noise etc.\n<END>", "<BEGIN>\n## `read_char`", "OCR a single character from an image. Useful for capt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the op_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the op_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Total operations performed for this crawler
"Total operations performed for this crawler"
71
false
alephdata/memorious
op_count
20,453
LDU_FT/curious-containers/cc-core/make_file_read_only
LDU_FT
[ "<BEGIN>\n## `brief_exception_text`", "Returns the Exception class and the message of the exception as string.", " :param exception: The exception to format\n :param secret_values: Values to hide in output\n<END>", "<BEGIN>\n## `print_exception`", "Prints the exception message and the name of the exce...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_file_read_only 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 make_file_read_only 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...
Removes the write permissions for the given file for owner, groups and others. :param file_path: The file whose privileges are revoked. :raise FileNotFoundError: If the given file does not exist.
"Removes the write permissions for the given file for owner, groups and others.\n\n :param file_path: The file whose privileges are revoked.\n :raise FileNotFoundError: If the given file does not exist."
96
false
curious-containers/cc-core
make_file_read_only
20,454
LDU_FT/fhcrc/nestly/log_tail
LDU_FT
[ "<BEGIN>\n## `_delim_accum`", "Accumulator for delimited files", " Combines each file with values from JSON dictionary in same directory", " :param iterable control_files: Iterable of control files\n :param filename_template: A template for the file to nest_map\n :param keys: List of keys to selec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_tail API. 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 log_tail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return the last ``nlines`` lines of the log file
"Return the last ``nlines`` lines of the log file"
73
false
fhcrc/nestly
log_tail
20,455
LDU_FT/anjishnu/ask-alexa-pykit/tweet_list_handler
LDU_FT
[ "<BEGIN>\n## `read_from_user`", "Helper function to prompt user for input of a specific type \n e.g. float, str, int \n Designed to work with both python 2 and 3 \n Yes I know this is ugly.\n<END>", "<BEGIN>\n## `load_builtin_slots`", "Helper function to load builtin slots from the data location\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tweet_list_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tweet_list_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. Th...
This is a generic function to handle any intent that reads out a list of tweets
"This is a generic function to handle any intent that reads out a list of tweets"
32
false
anjishnu/ask-alexa-pykit
tweet_list_handler
20,456
LDU_FT/pypa/bandersnatch/check_match
LDU_FT
[ "<BEGIN>\n## `_determine_unfiltered_package_names`", "Return a list of package names to be filtered base on the configuration\n file.\n<END>", "<BEGIN>\n## `check_match`", "Check if the package name matches against a project that is blacklisted\n in the configuration.", " Parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Check if the package name matches against a project that is blacklisted in the configuration. Parameters ========== name: str The normalized package name of the package/project to check against the blacklist. Returns ======= bool: ...
"Check if the package name matches against a project that is blacklisted\n in the configuration.\n\n Parameters\n ==========\n name: str\n The normalized package name of the package/project to check against\n the blacklist.\n\n Returns\n =======\n b...
70
false
pypa/bandersnatch
check_match
20,457
LDU_FT/jstitch/MambuPy/init
LDU_FT
[ "<BEGIN>\n## `convertDict2Attrs`", "The trick for iterable Mambu Objects comes here:", " You iterate over each element of the responded List from Mambu,\n and create a Mambu Activity object for each one, initializing\n them one at a time, and changing the attrs attribute (which just\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. 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 init API. 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...
Default initialization from a dictionary responded by Mambu in to the elements of the Mambu object. It assings the response to attrs attribute and converts each of its elements from a string to an adequate python object: number, datetime, etc. Basically it stores the response ...
"Default initialization from a dictionary responded by Mambu\n\n in to the elements of the Mambu object.\n\n It assings the response to attrs attribute and converts each of\n its elements from a string to an adequate python object: number,\n datetime, etc.\n\n Basically it stores the ...
357
false
jstitch/MambuPy
init
20,458
LDU_FT/SheffieldML/GPyOpt/get_samples_with_constraints
LDU_FT
[ "<BEGIN>\n## `constant_cost_withGradients`", "Constant cost function used by default: cost = 1, d_cost = 0.\n<END>", "<BEGIN>\n## `_cost_gp`", "Predicts the time cost of evaluating the function at x.\n<END>", "<BEGIN>\n## `_cost_gp_withGradients`", "Predicts the time cost and its gradient of evaluating th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_samples_with_constraints API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_samples_with_constraints API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Draw random samples and only save those that satisfy constraints Finish when required number of samples is generated
"Draw random samples and only save those that satisfy constraints\n Finish when required number of samples is generated"
259
false
SheffieldML/GPyOpt
get_samples_with_constraints
20,459
LDU_FT/transceptor-technology/pyleri/export_java
LDU_FT
[ "<BEGIN>\n## `export_js`", "Export the grammar to a JavaScript file which can be\n used with the js-lrparsing module.", " Two templates are available:\n Grammar.JS_WINDOW_TEMPLATE\n Grammar.JS_ES6_IMPORT_EXPORT_TEMPLATE (default)\n<END>", "<BEGIN>\n## `export_py`", "Expor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_java API. 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 export_java API. 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...
Export the grammar to a Java file which can be used with the jleri module.
"Export the grammar to a Java file which can be\n used with the jleri module."
14
false
transceptor-technology/pyleri
export_java
20,460
LDU_FT/Asana/python-asana/find_by_organization
LDU_FT
[ "<BEGIN>\n## `fetch_token`", "Exchange a code (and 'state' token) for a bearer token\n<END>", "<BEGIN>\n## `find_by_id`", "Returns the complete tag record for a single tag.", " Parameters\n ----------\n tag : {Id} The tag to get.\n [params] : {Object} Parameters for the request\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_organization API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_organization API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns the compact records for all teams in the organization visible to the authorized user. Parameters ---------- organization : {Id} Globally unique identifier for the workspace or organization. [params] : {Object} Parameters for the request
"Returns the compact records for all teams in the organization visible to\n the authorized user.\n\n Parameters\n ----------\n organization : {Id} Globally unique identifier for the workspace or organization.\n [params] : {Object} Parameters for the request"
318
false
Asana/python-asana
find_by_organization
20,461
LDU_FT/SavinaRoja/OpenAccess_EPUB/file_root_name
LDU_FT
[ "<BEGIN>\n## `make_EPUB`", "Standard workflow for creating an EPUB document.", " make_EPUB is used to produce an EPUB file from a parsed article. In addition\n to the article it also requires a path to the appropriate image directory\n which it will insert into the EPUB file, as well the output directo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_root_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_root_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns the root name of a file from a full file path. It will not raise an error if the result is empty, but an warning will be issued.
"Returns the root name of a file from a full file path.\n\n It will not raise an error if the result is empty, but an warning will be\n issued."
245
false
SavinaRoja/OpenAccess_EPUB
file_root_name
20,462
LDU_FT/RockFeng0/rtsf/_load_yaml_file
LDU_FT
[ "<BEGIN>\n## `get_summary`", "summarize the report data\r\n @param list_all: a list which save the report data\r\n @param kwargs: such as\r\n show_all: True/False report show all status cases\r\n proj_name: project name \r\n home_page: ho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_yaml_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_yaml_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
load yaml file and check file content format
"load yaml file and check file content format"
53
false
RockFeng0/rtsf
_load_yaml_file
20,463
LDU_FT/common-workflow-language/workflow-service/get_service_info
LDU_FT
[ "<BEGIN>\n## `get_version`", "Determines the version of a .py, .wdl, or .cwl file.\n<END>", "<BEGIN>\n## `wf_info`", "Returns the version of the file and the file extension.", " Assumes that the file path is to the file directly ie, ends with a valid file extension.Supports checking local\n files as w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_service_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_service_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get information about Workflow Execution Service. May include information related (but not limited to) the workflow descriptor formats, versions supported, the WES API versions supported, and information about general the service availability. :param str auth: String to send in ...
"Get information about Workflow Execution Service. May\n include information related (but not limited to) the\n workflow descriptor formats, versions supported, the\n WES API versions supported, and information about general\n the service availability.\n\n :param str auth: String to s...
53
false
common-workflow-language/workflow-service
get_service_info
20,464
LDU_FT/sdcooke/django_bundles/expand_file_names
LDU_FT
[ "<BEGIN>\n## `make_bundle`", "Does all of the processing required to create a bundle and write it to disk, returning its hash version\n<END>", "<BEGIN>\n## `run_process`", "This is a modification of subprocess.Popen.communicate that accepts an iterable stdin and is itself a generator for stdout\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_file_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_file_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Expands paths (e.g. css/*.css in files_root /actual/path/to/css/files/)
"Expands paths (e.g. css/*.css in files_root /actual/path/to/css/files/)"
16
false
sdcooke/django_bundles
expand_file_names
20,465
LDU_FT/Games-and-Simulations/sc-docker/check_dockermachine
LDU_FT
[ "<BEGIN>\n## `ensure_docker_can_run`", ":raises docker.errors.ContainerError\n :raises docker.errors.ImageNotFound\n :raises docker.errors.APIError\n<END>", "<BEGIN>\n## `ensure_local_net`", "Create docker local net if not found.", " :raises docker.errors.APIError\n<END>", "<BEGIN>\n## `ensure_lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_dockermachine 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 check_dockermachine API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Checks that docker-machine is available on the computer :raises FileNotFoundError if docker-machine is not present
"Checks that docker-machine is available on the computer\n\n :raises FileNotFoundError if docker-machine is not present"
19
false
Games-and-Simulations/sc-docker
check_dockermachine
20,466
LDU_FT/tomplus/kubernetes_asyncio/get_cluster_custom_object_scale
LDU_FT
[ "<BEGIN>\n## `raw`", "Sets the raw of this RuntimeRawExtension.", " Raw is the underlying serialization of this object. # noqa: E501", " :param raw: The raw of this RuntimeRawExtension. # noqa: E501\n :type: str\n<END>", "<BEGIN>\n## `delete_namespaced_cron_job`", "delete_namespaced...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cluster_custom_object_scale API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cluster_custom_object_scale API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
get_cluster_custom_object_scale # noqa: E501 read scale of the specified custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_cluster_custom_object_scale(group, version...
"get_cluster_custom_object_scale # noqa: E501\n\n read scale of the specified custom object # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.get_cluster_custom_object_scale(group, v...
1,540
true
tomplus/kubernetes_asyncio
get_cluster_custom_object_scale
20,467
LDU_FT/marshmallow-code/webargs/use_kwargs
LDU_FT
[ "<BEGIN>\n## `dict2schema`", "Generate a `marshmallow.Schema` class given a dictionary of\n `Fields <marshmallow.fields.Field>`.\n<END>", "<BEGIN>\n## `is_json`", "Indicates if this mimetype is JSON or not. By default a request\n is considered to include JSON data if the mimetype is\n ``application/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_kwargs API. 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 use_kwargs API. 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...
Decorator that injects parsed arguments into a view function or method as keyword arguments. This is a shortcut to :meth:`use_args` with ``as_kwargs=True``. Example usage with Flask: :: @app.route('/echo', methods=['get', 'post']) @parser.use_kwargs({'name': fields.Str...
"Decorator that injects parsed arguments into a view function or method\n as keyword arguments.\n\n This is a shortcut to :meth:`use_args` with ``as_kwargs=True``.\n\n Example usage with Flask: ::\n\n @app.route('/echo', methods=['get', 'post'])\n @parser.use_kwargs({'name': f...
108
false
marshmallow-code/webargs
use_kwargs
20,468
LDU_FT/semiversus/python-broqer/notify
LDU_FT
[ "<BEGIN>\n## `build_sink`", "Decorator to wrap a function to return a Sink subscriber.", " :param function: function to be wrapped\n :param unpack: value from emits will be unpacked (*value)\n<END>", "<BEGIN>\n## `build_map`", "Decorator to wrap a function to return a Map operator.", " :param fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notify API. 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 notify API. 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 ...
Only notifies subscribers if state has changed. See also Publisher.notify(). :param value: value to be emitted to subscribers :returns: a future if at least one subscriber has returned a future, elsewise None
"Only notifies subscribers if state has changed. See also\n Publisher.notify().\n\n :param value: value to be emitted to subscribers\n :returns: a future if at least one subscriber has returned a future,\n elsewise None"
65
false
semiversus/python-broqer
notify
20,469
LDU_FT/morse-talk/morse-talk/_numbers_units
LDU_FT
[ "<BEGIN>\n## `decode`", "Converts a string of morse code into English message", " The encoded message can also be decoded using the same morse chart\n backwards.", " >>> code = '... --- ...'\n >>> decode(code)\n 'SOS'\n<END>", "<BEGIN>\n## `grouper`", "grouper(3, 'ABCDEFG', 'x') --> ABC...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _numbers_units API. 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 _numbers_units API. 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...
>>> _numbers_units(45) '123456789012345678901234567890123456789012345'
">>> _numbers_units(45)\n '123456789012345678901234567890123456789012345'"
111
false
morse-talk/morse-talk
_numbers_units
20,470
LDU_FT/inveniosoftware/invenio-records-rest/verify_record_permission
LDU_FT
[ "<BEGIN>\n## `build_default_endpoint_prefixes`", "Build the default_endpoint_prefixes map.\n<END>", "<BEGIN>\n## `obj_or_import_string`", "Import string or return object.", " :params value: Import path or class object to instantiate.\n :params default: Default object to return if the import fails.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_record_permission 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 verify_record_permission API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Check that the current user has the required permissions on record. In case the permission check fails, an Flask abort is launched. If the user was previously logged-in, a HTTP error 403 is returned. Otherwise, is returned a HTTP error 401. :param permission_factory: permission factory used to check p...
"Check that the current user has the required permissions on record.\n\n In case the permission check fails, an Flask abort is launched.\n If the user was previously logged-in, a HTTP error 403 is returned.\n Otherwise, is returned a HTTP error 401.\n\n :param permission_factory: permission factory used to ...
165
false
inveniosoftware/invenio-records-rest
verify_record_permission
20,471
LDU_FT/mdiener/grace/p_expr_noin
LDU_FT
[ "<BEGIN>\n## `visit`", "Returns a generator that walks all children recursively.\n<END>", "<BEGIN>\n## `list_js_files`", "Generator for all JavaScript files in the directory, recursively", " >>> 'examples/module.js' in list(list_js_files('examples'))\n True\n<END>", "<BEGIN>\n## `save_file`", "Sav...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_expr_noin API. 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 p_expr_noin API. 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...
expr_noin : assignment_expr_noin | expr_noin COMMA assignment_expr_noin
"expr_noin : assignment_expr_noin\n | expr_noin COMMA assignment_expr_noin"
188
false
mdiener/grace
p_expr_noin
20,472