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/Cog-Creators/Red-Lavalink/seek
LDU_FT
[ "<BEGIN>\n## `wait_until_ready`", "Waits for the underlying node to become ready.", " If no_raise is set, returns false when a timeout occurs instead of propogating TimeoutError.\n A timeout of None means to wait indefinitely.\n<END>", "<BEGIN>\n## `connect`", "Connects to the voice channel as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seek API. 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 seek API. 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...
If the track allows it, seeks to a position. Parameters ---------- position : int Between 0 and track length.
"If the track allows it, seeks to a position.\n\n Parameters\n ----------\n position : int\n Between 0 and track length."
103
false
Cog-Creators/Red-Lavalink
seek
40,073
LDU_FT/samuelcolvin/pydantic/get_field_schema_validations
LDU_FT
[ "<BEGIN>\n## `validate_email`", "Brutally simple email address validation. Note unlike most email address validation\n * raw ip address (literal) domain parts are not allowed.\n * \"John Doe <local_part@domain.com>\" style \"pretty\" email addresses are processed\n * the local part check is extremely bas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_schema_validations 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_field_schema_validations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Get the JSON Schema validation keywords for a ``field`` with an annotation of a Pydantic ``Schema`` with validation arguments.
"Get the JSON Schema validation keywords for a ``field`` with an annotation of\n a Pydantic ``Schema`` with validation arguments."
113
false
samuelcolvin/pydantic
get_field_schema_validations
40,074
LDU_FT/mmp2/megaman/set_data_matrix
LDU_FT
[ "<BEGIN>\n## `check_eigen_solver`", "Check that the selected eigensolver is valid", " Parameters\n ----------\n eigen_solver : string\n string value to validate\n size, nvec : int (optional)\n if both provided, use the specified problem size and number of vectors\n to determine ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_data_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_data_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Parameters ---------- X : ndarray (N_obs, N_features) The original data set to input.
"Parameters\n ----------\n X : ndarray (N_obs, N_features)\n The original data set to input."
287
false
mmp2/megaman
set_data_matrix
40,075
LDU_FT/FlorianRhiem/pyGLFW/wrap
LDU_FT
[ "<BEGIN>\n## `_find_library_candidates`", "Finds and returns filenames which might be the library you are looking for.\n<END>", "<BEGIN>\n## `_load_library`", "Finds, loads and returns the most recent version of the library.\n<END>", "<BEGIN>\n## `_get_library_search_paths`", "Returns a list of library se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap API. 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 wrap API. 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...
Wraps a nested python sequence or PIL/pillow Image.
"Wraps a nested python sequence or PIL/pillow Image."
105
false
FlorianRhiem/pyGLFW
wrap
40,076
LDU_FT/SUNCAT-Center/CatHub/get_ZPE
LDU_FT
[ "<BEGIN>\n## `molecules2symbols`", "Take a list of molecules and return just a list of atomic\n symbols, possibly adding hydrogen\n<END>", "<BEGIN>\n## `construct_reference_system`", "Take a list of symbols and construct gas phase\n references system, when possible avoiding O2.\n Candidates can be re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ZPE API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ZPE API. 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 zero point energy from a list of frequencies. Parameters ---------- viblist : List of numbers or string of list of numbers. Returns ------- ZPE : Zero point energy in eV.
"Returns the zero point energy from a list of frequencies.\n\n Parameters\n ----------\n viblist : List of numbers or string of list of numbers.\n\n Returns\n -------\n ZPE : Zero point energy in eV."
178
false
SUNCAT-Center/CatHub
get_ZPE
40,077
LDU_FT/nepalicalendar/nepalicalendar-py/check_valid_ad_range
LDU_FT
[ "<BEGIN>\n## `weekday`", "Returns the weekday of the date. 0 = aaitabar\n<END>", "<BEGIN>\n## `itermonthdates`", "Returns an iterator for the month in a year\n This iterator will return all days (as NepDate objects) for the month\n and all days before the start of the month or after the end of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_valid_ad_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_valid_ad_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Checks if the english date is in valid range for conversion
"Checks if the english date is in valid range for conversion"
22
false
nepalicalendar/nepalicalendar-py
check_valid_ad_range
40,078
LDU_FT/chrismattmann/nutch-python/crawl_cmd
LDU_FT
[ "<BEGIN>\n## `defaultCrawlId`", "Provide a reasonable default crawl name using the user name and date\n<END>", "<BEGIN>\n## `call`", "Call the Nutch Server, do some error checking, and return the response.", " :param verb: One of nutch.RequestVerbs\n :param servicePath: path component of URL t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crawl_cmd API. 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 crawl_cmd API. 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...
Runs the crawl job for n rounds :param seed_list: lines of seed URLs :param n: number of rounds :return: number of successful rounds
"Runs the crawl job for n rounds\n :param seed_list: lines of seed URLs\n :param n: number of rounds\n :return: number of successful rounds"
46
false
chrismattmann/nutch-python
crawl_cmd
40,079
LDU_FT/horejsek/python-webdriverwrapper/fill_out
LDU_FT
[ "<BEGIN>\n## `expected_error_page`", "Decorator expecting defined error page at the end of test method. As param\n use what :py:meth:`~.WebdriverWrapperErrorMixin.get_error_page`\n returns.", " .. versionadded:: 2.0\n Before this decorator was called ``ShouldBeErrorPage``.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_out API. 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 fill_out API. 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...
Shortcut for filling out first ``<form>`` on page. See :py:class:`~webdriverwrapper.forms.Form` for more information. .. versionadded:: 2.0
"Shortcut for filling out first ``<form>`` on page. See\n :py:class:`~webdriverwrapper.forms.Form` for more information.\n\n .. versionadded:: 2.0"
120
false
horejsek/python-webdriverwrapper
fill_out
40,080
LDU_FT/deep-compute/deeputil/parse_location
LDU_FT
[ "<BEGIN>\n## `FunctionTimer`", "To check execution time of a function\n borrowed from https://medium.com/pythonhive/python-decorator-to-measure-the-execution-time-of-methods-fa04cb6bb36d", " >>> def logger(details, args, kwargs): #some function that uses the time output\n ... print(details)\n .....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_location API. 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 parse_location API. 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...
loc can be of the format http://<ip/domain>[:<port>] eg: http://localhost:8888 http://localhost/ return ip (str), port (int) >>> parse_location('http://localhost/', 6379) ('localhost', 6379) >>> parse_location('http://localhost:8888', 6379) ('localhost', 8888)
"loc can be of the format http://<ip/domain>[:<port>]\n eg:\n http://localhost:8888\n http://localhost/\n return ip (str), port (int)\n >>> parse_location('http://localhost/', 6379)\n ('localhost', 6379)\n >>> parse_location('http://localhost:8888', 6379)\n ('localhost', 8888)"
68
false
deep-compute/deeputil
parse_location
40,081
LDU_FT/cmheisel/basecampreporting/update_todo_item
LDU_FT
[ "<BEGIN>\n## `people`", "Dictionary of people on the project, keyed by id\n<END>", "<BEGIN>\n## `comments`", "Looks through the last 3 messages and returns those comments.\n<END>", "<BEGIN>\n## `people_per_project`", "This will return all of the people in the given company that can\n access the giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_todo_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_todo_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Modifies an existing item. The values work much like the "create item" operation, so you should refer to that for a more detailed explanation.
"Modifies an existing item. The values work much like the \"create item\"\n operation, so you should refer to that for a more detailed explanation."
44
false
cmheisel/basecampreporting
update_todo_item
40,082
LDU_FT/sarugaku/vistir/get_wrapped_stream
LDU_FT
[ "<BEGIN>\n## `is_bytes`", "Check if a string is a bytes instance", " :param Union[str, bytes] string: A string that may be string or bytes like\n :return: Whether the provided string is a bytes type or not\n :rtype: bool\n<END>", "<BEGIN>\n## `fs_encode`", "Encode a filesystem path to the proper fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_wrapped_stream 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 get_wrapped_stream 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 stream, wrap it in a `StreamWrapper` instance and return the wrapped stream. :param stream: A stream instance to wrap :param str encoding: The encoding to use for the stream :param str errors: The error handler to use, default "replace" :returns: A new, wrapped stream :rtype: :class:`Stream...
"Given a stream, wrap it in a `StreamWrapper` instance and return the wrapped stream.\n\n :param stream: A stream instance to wrap\n :param str encoding: The encoding to use for the stream\n :param str errors: The error handler to use, default \"replace\"\n :returns: A new, wrapped stream\n :rtype: :clas...
54
false
sarugaku/vistir
get_wrapped_stream
40,083
LDU_FT/OnroerendErfgoed/crabpy/check_lazy_load_adrespositie
LDU_FT
[ "<BEGIN>\n## `crab_gateway_request`", "Utility function that helps making requests to the CRAB service.", " This is a specialised version of :func:`crabpy.client.crab_request` that\n allows adding extra functionality for the calls made by the gateway.", " :param client: A :class:`suds.client.Client` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_lazy_load_adrespositie 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 check_lazy_load_adrespositie API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Decorator function to lazy load a :class:`Adrespositie`.
"Decorator function to lazy load a :class:`Adrespositie`."
196
false
OnroerendErfgoed/crabpy
check_lazy_load_adrespositie
40,084
LDU_FT/meejah/txtorcon/add_to_tor
LDU_FT
[ "<BEGIN>\n## `tor_agent`", "This is the low-level method used by\n :meth:`txtorcon.Tor.web_agent` and\n :meth:`txtorcon.Circuit.web_agent` -- probably you should call one\n of those instead.", " :returns: a Deferred that fires with an object that implements\n :class:`twisted.web.iweb.IAgent` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to_tor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to_tor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns a Deferred which fires with 'self' after at least one descriptor has been uploaded. Errback if no descriptor upload succeeds.
"Returns a Deferred which fires with 'self' after at least one\n descriptor has been uploaded. Errback if no descriptor upload\n succeeds."
289
false
meejah/txtorcon
add_to_tor
40,085
LDU_FT/rosenbrockc/acorn/cleanup
LDU_FT
[ "<BEGIN>\n## `cascade`", "Restores a sequence of string definitions using the first entry as the\n original and then applying a series of :func:`~acorn.logging.diff.restore`\n calls.", " Args:\n sequence (list): of results returned by\n :func:`~acorn.logging.diff.compress`, except that ...
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...
Saves all the open databases to JSON so that the kernel can be shut down without losing in-memory collections.
"Saves all the open databases to JSON so that the kernel can be shut down\n without losing in-memory collections."
263
false
rosenbrockc/acorn
cleanup
40,086
LDU_FT/eternnoir/pyTelegramBotAPI/promote_chat_member
LDU_FT
[ "<BEGIN>\n## `split_string`", "Splits one string into multiple strings, with a maximum amount of `chars_per_string` characters per string.\n This is very useful for splitting one giant message into multiples.", " :param text: The text to split\n :param chars_per_string: The number of characters per lin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the promote_chat_member 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 promote_chat_member 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...
Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Pass False for all boolean parameters to demote a user. Returns True on success. :param chat_id: Unique identifier f...
"Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator\n in the chat for this to work and must have the appropriate admin rights.\n Pass False for all boolean parameters to demote a user. Returns True on success.\n :param chat_id: Unique identifi...
187
false
eternnoir/pyTelegramBotAPI
promote_chat_member
40,087
LDU_FT/samghelms/mathviz/template
LDU_FT
[ "<BEGIN>\n## `get_next_token`", "\"eats\" up the string until it hits an ending character to get valid leaf expressions.\n For example, given \\\\Phi_{z}(L) = \\\\sum_{i=1}^{N} \\\\frac{1}{C_{i} \\\\times V_{\\\\rm max, i}},\n this function would pull out \\\\Phi, stopping at _\n @ string: str\n retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the template API. 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 template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get a rendered template as a string iterator. You can use a name, a filename or a template string as first parameter. Template rendering arguments can be passed as dictionaries or directly (as keyword arguments).
"Get a rendered template as a string iterator.\n You can use a name, a filename or a template string as first parameter.\n Template rendering arguments can be passed as dictionaries\n or directly (as keyword arguments)."
116
false
samghelms/mathviz
template
40,088
LDU_FT/barrust/pyspellchecker/edit_distance_2
LDU_FT
[ "<BEGIN>\n## `export`", "Export the word frequency list for import in the future", " Args:\n filepath (str): The filepath to the exported dictionary\n encoding (str): The encoding of the resulting output\n gzipped (bool): Whether to gzip the dictionary or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_distance_2 API. 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 edit_distance_2 API. 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...
Compute all strings that are two edits away from `word` using only the letters in the corpus Args: word (str): The word for which to calculate the edit distance Returns: set: The set of strings that are edit distance two from the \ pro...
"Compute all strings that are two edits away from `word` using only\n the letters in the corpus\n\n Args:\n word (str): The word for which to calculate the edit distance\n Returns:\n set: The set of strings that are edit distance two from the \\\n ...
57
false
barrust/pyspellchecker
edit_distance_2
40,089
LDU_FT/Yelp/kafka-utils/rebalance_replication_groups
LDU_FT
[ "<BEGIN>\n## `get_assignment`", "Parse the given json plan in dict format.\n<END>", "<BEGIN>\n## `_send_consumer_aware_request`", "Send a list of requests to the consumer coordinator for the group\n specified using the supplied encode/decode functions. As the payloads\n that use consumer-aware r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rebalance_replication_groups 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 rebalance_replication_groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Rebalance partitions over replication groups. First step involves rebalancing replica-count for each partition across replication-groups. Second step involves rebalancing partition-count across replication-groups of the cluster.
"Rebalance partitions over replication groups.\n\n First step involves rebalancing replica-count for each partition across\n replication-groups.\n Second step involves rebalancing partition-count across replication-groups\n of the cluster."
538
false
Yelp/kafka-utils
rebalance_replication_groups
40,090
LDU_FT/heronotears/lazyxml/parse
LDU_FT
[ "<BEGIN>\n## `set_options`", "r\"\"\"Set Parser options.", " .. seealso::\n ``kw`` argument have the same meaning as in :func:`lazyxml.loads`\n<END>", "<BEGIN>\n## `xml2object`", "r\"\"\"Convert xml content to python object.", " :param content: xml content\n :rtype: dict", ...
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...
r"""Parse xml element. :param element: an :class:`~xml.etree.ElementTree.Element` instance :rtype: dict
"r\"\"\"Parse xml element.\n\n :param element: an :class:`~xml.etree.ElementTree.Element` instance\n :rtype: dict"
60
false
heronotears/lazyxml
parse
40,091
LDU_FT/jeffbuttars/upkg/exec
LDU_FT
[ "<BEGIN>\n## `exec`", "todo: Docstring for exec", " :param args: arg description\n :type args: type description\n :return:\n :rtype:\n<END>", "<BEGIN>\n## `exec`", "todo: Docstring for exec", " :param args: arg description\n :type args: type description\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exec API. 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 exec API. 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...
todo: Docstring for exec :param args: arg description :type args: type description :return: :rtype:
"todo: Docstring for exec\n\n :param args: arg description\n :type args: type description\n :return:\n :rtype:"
76
false
jeffbuttars/upkg
exec
40,092
LDU_FT/jantman/awslimitchecker/_update_limits_from_api
LDU_FT
[ "<BEGIN>\n## `_last_step`", "If ``self._savepath`` doesn't exist, can't be read as JSON, or doesn't\n match ``VERSION``, return 0. Otherwise, return the step which that file\n lists as the last-run step for this release.", " :return: last-run step from the release or 0\n :rtype: int\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_limits_from_api API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_limits_from_api API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Query EC2's DescribeAccountAttributes API action and update the network interface limit, as needed. Updates ``self.limits``. More info on the network interface limit, from the docs: 'This limit is the greater of either the default limit (350) or your On-Demand Instance limit multiplied ...
"Query EC2's DescribeAccountAttributes API action and\n update the network interface limit, as needed. Updates ``self.limits``.\n\n More info on the network interface limit, from the docs:\n 'This limit is the greater of either the default limit (350) or your\n On-Demand Instance limit multi...
372
false
jantman/awslimitchecker
_update_limits_from_api
40,093
LDU_FT/contraslash/django-crud-generator/render_template_with_args_in_file
LDU_FT
[ "<BEGIN>\n## `render_template_with_args_in_file`", "Get a file and render the content of the template_file_name with kwargs in a file\n :param file: A File Stream to write\n :param template_file_name: path to route with template name\n :param **kwargs: Args to be rendered in template\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_template_with_args_in_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_template_with_args_in_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Get a file and render the content of the template_file_name with kwargs in a file :param file: A File Stream to write :param template_file_name: path to route with template name :param **kwargs: Args to be rendered in template
"Get a file and render the content of the template_file_name with kwargs in a file\n :param file: A File Stream to write\n :param template_file_name: path to route with template name\n :param **kwargs: Args to be rendered in template"
10
false
contraslash/django-crud-generator
render_template_with_args_in_file
40,094
LDU_FT/yunojuno-archive/django-inbound-email/parse
LDU_FT
[ "<BEGIN>\n## `_decode_POST_value`", "Helper to decode a request field into unicode based on charsets encoding.", " Args:\n request: the HttpRequest object.\n field_name: the field expected in the request.POST", " Kwargs:\n default: if passed in then field is optional and default is ...
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...
Parse incoming request and return an email instance. Mailgun does a lot of the heavy lifting at their end - requests come in from them UTF-8 encoded, and with the message reply and signature stripped out for you. Args: request: an HttpRequest object, containing the forwarde...
"Parse incoming request and return an email instance.\n\n Mailgun does a lot of the heavy lifting at their end - requests\n come in from them UTF-8 encoded, and with the message reply and\n signature stripped out for you.\n\n Args:\n request: an HttpRequest object, containing the ...
29
false
yunojuno-archive/django-inbound-email
parse
40,095
LDU_FT/ondryaso/pi-rc522/set_tag
LDU_FT
[ "<BEGIN>\n## `request`", "Requests for tag.\n Returns (False, None) if no tag is present, otherwise returns (True, tag type)\n<END>", "<BEGIN>\n## `anticoll`", "Anti-collision detection.\n Returns tuple of (error state, tag ID).\n<END>", "<BEGIN>\n## `select_tag`", "Selects tag for further u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Sets tag for further operations. Calls deauth() if card is already set. Calls RFID select_tag(). Returns called select_tag() error state.
"Sets tag for further operations.\n Calls deauth() if card is already set.\n Calls RFID select_tag().\n Returns called select_tag() error state."
28
false
ondryaso/pi-rc522
set_tag
40,096
LDU_FT/fuzeman/trakt.py/to_dict
LDU_FT
[ "<BEGIN>\n## `lookup`", "Lookup items by their Trakt, IMDB, TMDB, TVDB, or TVRage ID.", " **Note:** If you lookup an identifier without a :code:`media` type specified it\n might return multiple items if the :code:`service` is not globally unique.", " :param id: Identifier value to lookup\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Dump progress to a dictionary. :return: Progress dictionary :rtype: :class:`~python:dict`
"Dump progress to a dictionary.\n\n :return: Progress dictionary\n :rtype: :class:`~python:dict`"
227
false
fuzeman/trakt.py
to_dict
40,097
LDU_FT/rapidpro/expressions/_get_arg_spec
LDU_FT
[ "<BEGIN>\n## `_read_requirements`", "Returns a list of package requirements read from the file.\n<END>", "<BEGIN>\n## `field`", "Reference a field in string separated by a delimiter\n<END>", "<BEGIN>\n## `epoch`", "Converts the given date to the number of seconds since January 1st, 1970 UTC\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_arg_spec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_arg_spec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Gets the argument spec of the given function, returning defaults as a dict of param names to values
"Gets the argument spec of the given function, returning defaults as a dict of param names to values"
124
false
rapidpro/expressions
_get_arg_spec
40,098
LDU_FT/flying-sheep/bcode/_readuntil
LDU_FT
[ "<BEGIN>\n## `_readuntil`", "Helper function to read bytes until a certain end byte is hit\n<END>", "<BEGIN>\n## `_decode_buffer`", "String types are normal (byte)strings\n\tstarting with an integer followed by ':'\n\twhich designates the string’s length.", "\tSince there’s no way to specify the byte type\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _readuntil API. 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 _readuntil API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Helper function to read bytes until a certain end byte is hit
"Helper function to read bytes until a certain end byte is hit"
17
false
flying-sheep/bcode
_readuntil
40,099
LDU_FT/seibert-media/Highton/list_tags
LDU_FT
[ "<BEGIN>\n## `decode`", "Decode the object to the object", " :param root_element: the parsed xml Element\n :type root_element: xml.etree.ElementTree.Element\n :return: the decoded Element as object\n :rtype: object\n<END>", "<BEGIN>\n## `add_note`", "Create a Note to current obje...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_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 extract...
Get the tags of current object :return: the tags :rtype: list
"Get the tags of current object\n\n :return: the tags\n :rtype: list"
80
false
seibert-media/Highton
list_tags
40,100
LDU_FT/microhomie/microhomie/has_update
LDU_FT
[ "<BEGIN>\n## `_setup_network`", "Setup platform specific network settings\n<END>", "<BEGIN>\n## `has_update`", "Depending on the interval:", " returns True if its time for an update,\n returns False if its not yet time for an update\n<END>", "<BEGIN>\n## `get_property_id_from_set_topic`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_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 extrac...
Depending on the interval: returns True if its time for an update, returns False if its not yet time for an update
"Depending on the interval:\n\n returns True if its time for an update,\n returns False if its not yet time for an update"
13
false
microhomie/microhomie
has_update
40,101
LDU_FT/erget/StereoVision/add_corners
LDU_FT
[ "<BEGIN>\n## `get_frames_singleimage`", "Get current left and right frames from a single image,\n by splitting the image in half.\n<END>", "<BEGIN>\n## `show_frames`", "Show current frames from cameras.", " ``wait`` is the wait interval in milliseconds before the window closes.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_corners API. 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 add_corners API. 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...
Record chessboard corners found in an image pair. The image pair should be an iterable composed of two CvMats ordered (left, right).
"Record chessboard corners found in an image pair.\n\n The image pair should be an iterable composed of two CvMats ordered\n (left, right)."
83
false
erget/StereoVision
add_corners
40,102
LDU_FT/Kensuke-Mitsuzawa/JapaneseTokenizers/__check_pos_condition
LDU_FT
[ "<BEGIN>\n## `__check_mecab_dict_path`", "check path to dict of Mecab in system environment\n<END>", "<BEGIN>\n## `__feature_parser`", "Parse the POS feature output by Mecab\n :param uni_feature unicode:\n :return ( (pos1, pos2, pos3), word_stem ):\n<END>", "<BEGIN>\n## `__postprocess_analyzed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __check_pos_condition 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 __check_pos_condition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
* What you can do - Check your pos condition - It converts character type into unicode if python version is 2.x
"* What you can do\n - Check your pos condition\n - It converts character type into unicode if python version is 2.x"
58
false
Kensuke-Mitsuzawa/JapaneseTokenizers
__check_pos_condition
40,103
LDU_FT/jim-easterbrook/pywws/read_data
LDU_FT
[ "<BEGIN>\n## `read_data`", "Receive data from the device.", " If the read fails for any reason, an :obj:`IOError` exception\n is raised.", " :param size: the number of bytes to read.", " :type size: int", " :return: the data received.", " :rtype: list(int)\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extract...
Receive data from the device. If the read fails for any reason, an :obj:`IOError` exception is raised. :param size: the number of bytes to read. :type size: int :return: the data received. :rtype: list(int)
"Receive data from the device.\n\n If the read fails for any reason, an :obj:`IOError` exception\n is raised.\n\n :param size: the number of bytes to read.\n\n :type size: int\n\n :return: the data received.\n\n :rtype: list(int)"
210
false
jim-easterbrook/pywws
read_data
40,104
LDU_FT/HazyResearch/fonduer/apply
LDU_FT
[ "<BEGIN>\n## `construct_stable_id`", "Contruct a stable ID for a Context given its parent and its character\n offsets relative to the parent.\n<END>", "<BEGIN>\n## `split_stable_id`", "Split stable id, returning:", " * Document (root) stable ID\n * Context polymorphic type\n * Charac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply API. 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 apply API. 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...
Apply the given UDF to the set of objects returned by the doc_loader, either single or multi-threaded, and optionally calling clear() first.
"Apply the given UDF to the set of objects returned by the doc_loader, either\n single or multi-threaded, and optionally calling clear() first."
540
false
HazyResearch/fonduer
apply
40,105
LDU_FT/rkhleics/wagtailmodeladmin/get_admin_urls_for_registration
LDU_FT
[ "<BEGIN>\n## `process_request`", "Ignore unnecessary actions for static file requests, posts, or ajax\n requests. We're only interested in redirecting following a 'natural'\n request redirection to the `wagtailadmin_explore_root` or\n `wagtailadmin_explore` views.\n<END>", "<BEGIN>\n## `get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_admin_urls_for_registration 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_admin_urls_for_registration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Utilised by Wagtail's 'register_admin_urls' hook to register urls for our the views that class offers.
"Utilised by Wagtail's 'register_admin_urls' hook to register urls for\n our the views that class offers."
52
false
rkhleics/wagtailmodeladmin
get_admin_urls_for_registration
40,106
LDU_FT/umich-brcf-bioinf/Connor/build_bam_tags
LDU_FT
[ "<BEGIN>\n## `_get_username_hostname`", "Best attempt to get username and hostname, returns \"na\" if problem.\n<END>", "<BEGIN>\n## `sort_dict`", "Accept a dict of key:values (numerics) returning list of key-value tuples ordered by desc values.", " If by_key=True, sorts by dict key.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_bam_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_bam_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 ex...
builds the list of BAM tags to be added to output BAMs
"builds the list of BAM tags to be added to output BAMs"
28
false
umich-brcf-bioinf/Connor
build_bam_tags
40,107
LDU_FT/fair-research/bdbag/compute_file_hashes
LDU_FT
[ "<BEGIN>\n## `compute_hashes`", "Digests input data read from file-like object fd or passed directly as bytes-like object.\n Compute hashes for multiple algorithms. Default is MD5.\n Returns a tuple of a hex-encoded digest string and a base64-encoded value suitable for an HTTP header.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_file_hashes 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 compute_file_hashes 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...
Digests data read from file denoted by file_path.
"Digests data read from file denoted by file_path."
20
false
fair-research/bdbag
compute_file_hashes
40,108
LDU_FT/coagulant/cleanweb/check_spam
LDU_FT
[ "<BEGIN>\n## `request`", "Error handling in requests\n http://api.yandex.ru/cleanweb/doc/dg/concepts/error-codes.xml\n<END>", "<BEGIN>\n## `check_spam`", "http://api.yandex.ru/cleanweb/doc/dg/concepts/check-spam.xml\n subject_type = plain|html|bbcode\n body_type = plain|html|b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_spam API. 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 check_spam API. 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...
http://api.yandex.ru/cleanweb/doc/dg/concepts/check-spam.xml subject_type = plain|html|bbcode body_type = plain|html|bbcode
"http://api.yandex.ru/cleanweb/doc/dg/concepts/check-spam.xml\n subject_type = plain|html|bbcode\n body_type = plain|html|bbcode"
10
false
coagulant/cleanweb
check_spam
40,109
LDU_FT/pyviz/holoviews/_normalize_subplot_ids
LDU_FT
[ "<BEGIN>\n## `initialize_plot`", "Initializes a new plot object with the last available frame.\n<END>", "<BEGIN>\n## `_get_axis_dims`", "Returns the dimensions corresponding to each axis.", " Should return a list of dimensions or list of lists of\n dimensions, which will be formatted to label ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize_subplot_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize_subplot_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....
Make sure a layout subplot property is initialized for every subplot that is referenced by a trace in the figure. For example, if a figure contains a `scatterpolar` trace with the `subplot` property set to `polar3`, this function will make sure the figure's layout has a `polar3` property, and will init...
"Make sure a layout subplot property is initialized for every subplot that\n is referenced by a trace in the figure.\n\n For example, if a figure contains a `scatterpolar` trace with the `subplot`\n property set to `polar3`, this function will make sure the figure's layout\n has a `polar3` property, and wil...
1,961
true
pyviz/holoviews
_normalize_subplot_ids
40,110
LDU_FT/pavoni/pyvera/get_last_scene_id
LDU_FT
[ "<BEGIN>\n## `init_controller`", "Initialize a controller.", " Provides a single global controller for applications that can't do this\n themselves\n<END>", "<BEGIN>\n## `data_request`", "Perform a data_request and return the result.\n<END>", "<BEGIN>\n## `get_device_by_name`", "Search the list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_scene_id API. 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_last_scene_id API. 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 last scene id. Refresh data from Vera if refresh is True, otherwise use local cache. Refresh is only needed if you're not using subscriptions.
"Get last scene id.\n\n Refresh data from Vera if refresh is True, otherwise use local cache.\n Refresh is only needed if you're not using subscriptions."
94
false
pavoni/pyvera
get_last_scene_id
40,111
LDU_FT/paylogic/halogen/deserialize
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Return a dictionary representation of the error.", " :return: A dict with the keys:\n - attr: Attribute which contains the error, or \"<root>\" if it refers to the schema root.\n - errors: A list of dictionary representations of the errors.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Deserialize the amount. :param value: Amount in CURRENCYAMOUNT or {"currency": CURRENCY, "amount": AMOUNT} format. For example EUR35.50 or {"currency": "EUR", "amount": "35.50"} :return: A paylogic Amount object. :raises ValidationError: when amount can"t be deserialzied :r...
"Deserialize the amount.\n\n :param value: Amount in CURRENCYAMOUNT or {\"currency\": CURRENCY, \"amount\": AMOUNT} format. For example EUR35.50\n or {\"currency\": \"EUR\", \"amount\": \"35.50\"}\n\n :return: A paylogic Amount object.\n :raises ValidationError: when amount can\"t be des...
51
false
paylogic/halogen
deserialize
40,112
LDU_FT/digidotcom/python-suitcase/crc16_kermit
LDU_FT
[ "<BEGIN>\n## `create_instance`", "Create an instance based off this placeholder with some parent\n<END>", "<BEGIN>\n## `_ph2f`", "Lookup a field given a field placeholder\n<END>", "<BEGIN>\n## `validate`", "Raises :class:`SuitcaseChecksumException` if not valid\n<END>", "<BEGIN>\n## `packed_checksum`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crc16_kermit API. 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 crc16_kermit API. 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...
Calculate/Update the Kermit CRC16 checksum for some data
"Calculate/Update the Kermit CRC16 checksum for some data"
25
false
digidotcom/python-suitcase
crc16_kermit
40,113
LDU_FT/rongcloud/server-sdk-python/publishTemplate
LDU_FT
[ "<BEGIN>\n## `getToken`", "获取 Token 方法 方法\n @param userId:用户 Id,最大长度 64 字节.是用户在 App 中的唯一标识码,必须保证在同一个 App 内不重复,重复的用户 Id 将被当作是同一用户。(必传)\n @param name:用户名称,最大长度 128 字节.用来在 Push 推送时显示用户的名称.用户名称,最大长度 128 字节.用来在 Push 推送时显示用户的名称。(必传)\n @param portraitUri:用户头像 URI,最大长度 1024 字节.用来在 Push 推送时显示用户的头像。...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publishTemplate API. 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 publishTemplate API. 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...
发送单聊模板消息方法(一个用户向多个用户发送不同消息内容,单条消息最大 128k。每分钟最多发送 6000 条信息,每次发送用户上限为 1000 人。) 方法 @param templateMessage:单聊模版消息。 @return code:返回码,200 为正常。 @return errorMessage:错误信息。
"发送单聊模板消息方法(一个用户向多个用户发送不同消息内容,单条消息最大 128k。每分钟最多发送 6000 条信息,每次发送用户上限为 1000 人。) 方法\n @param templateMessage:单聊模版消息。\n\t \n @return code:返回码,200 为正常。\n @return errorMessage:错误信息。"
93
false
rongcloud/server-sdk-python
publishTemplate
40,114
LDU_FT/jdoda/sdl2hl/get
LDU_FT
[ "<BEGIN>\n## `was_init`", "This function returns the subsystems which have previously been initialized.", " Returns:\n Set[InitFlag]: Flags indicating which subsystems have been initialized.\n<END>", "<BEGIN>\n## `load_bmp`", "Load a surface from a file.", " Args:\n path (str):...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return events at the front of the event queue, within the specified minimum and maximum type, and remove them from the queue. Args: quantity (int): The maximum number of events to return. min_type (int): The minimum value for the event type of the returned events. max_type (int): The ma...
"Return events at the front of the event queue, within the specified minimum and maximum type,\n and remove them from the queue.\n\n Args:\n quantity (int): The maximum number of events to return.\n min_type (int): The minimum value for the event type of the returned events.\n max_type (int):...
134
false
jdoda/sdl2hl
get
40,115
LDU_FT/MarcMeszaros/envitro/_strtobool
LDU_FT
[ "<BEGIN>\n## `_strtobool`", "Convert a string representation of truth to true (1) or false (0).", " True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values\n are 'n', 'no', 'f', 'false', 'off', '0' and ''. Raises ValueError if\n 'val' is anything else.\n<END>", "<BEGIN>\n## `_str_to_lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _strtobool API. 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 _strtobool API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Convert a string representation of truth to true (1) or false (0). True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values are 'n', 'no', 'f', 'false', 'off', '0' and ''. Raises ValueError if 'val' is anything else.
"Convert a string representation of truth to true (1) or false (0).\n\n True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values\n are 'n', 'no', 'f', 'false', 'off', '0' and ''. Raises ValueError if\n 'val' is anything else."
58
false
MarcMeszaros/envitro
_strtobool
40,116
LDU_FT/alixnovosi/botskeleton/send_dm_sos
LDU_FT
[ "<BEGIN>\n## `cred_init`", "Initialize what requires credentials/secret files.", " :param secrets_dir: dir to expect credentials in and store logs/history in.\n :param log: logger to use for log output.\n :param bot_name: name of this bot,\n used for various kinds of labelling.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_dm_sos API. 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 send_dm_sos API. 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...
Send DM to owner if something happens. :param message: message to send to owner. :returns: None.
"Send DM to owner if something happens.\n\n :param message: message to send to owner.\n :returns: None."
69
false
alixnovosi/botskeleton
send_dm_sos
40,117
LDU_FT/dgketchum/satellite_image/_postprocess
LDU_FT
[ "<BEGIN>\n## `_scene_centroid`", "Compute image center coordinates\n :return: Tuple of image center in lat, lon\n<END>", "<BEGIN>\n## `earth_sun_d`", "Earth-sun distance in AU", " :param dtime time, e.g. datetime.datetime(2007, 5, 1)\n :type datetime object\n :return float(distan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _postprocess API. 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 _postprocess API. 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...
Takes value as str, returns str, int, float, date, datetime, or time
"Takes value as str, returns str, int, float, date, datetime, or time"
86
false
dgketchum/satellite_image
_postprocess
40,118
LDU_FT/nicolargo/glances/load_config
LDU_FT
[ "<BEGIN>\n## `msg_curse`", "Return the string to display in the curse interface.\n<END>", "<BEGIN>\n## `load`", "Load the web list from the configuration file.\n<END>", "<BEGIN>\n## `set_server`", "Set the key to the value for the pos (position in the list).\n<END>", "<BEGIN>\n## `update`", "Update se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Load the outputs section of the configuration file.
"Load the outputs section of the configuration file."
678
false
nicolargo/glances
load_config
40,119
LDU_FT/admiralobvious/vyper/_find
LDU_FT
[ "<BEGIN>\n## `_get_env`", "Wrapper around os.getenv() which replaces characters\n in the original key. This allows env vars which have different keys\n than the config object keys.\n<END>", "<BEGIN>\n## `add_config_path`", "Add a path for Vyper to search for the config file in.\n Can be c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Given a key, find the value Vyper will check in the following order: override, arg, env, config file, key/value store, default Vyper will check to see if an alias exists first.
"Given a key, find the value\n Vyper will check in the following order:\n override, arg, env, config file, key/value store, default\n Vyper will check to see if an alias exists first."
38
false
admiralobvious/vyper
_find
40,120
LDU_FT/Oneiroe/PySimpleAutomata/dfa_json_importer
LDU_FT
[ "<BEGIN>\n## `dfa_word_acceptance`", "Checks if a given **word** is accepted by a DFA,\n returning True/false.", " The word w is accepted by a DFA if DFA has an accepting run\n on w. Since A is deterministic,\n :math:`w ∈ L(A)` if and only if :math:`ρ(s_0 , w) ∈ F` .", " :param dict dfa: input ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dfa_json_importer API. 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 dfa_json_importer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Imports a DFA from a JSON file. :param str input_file: path + filename to json file; :return: *(dict)* representing a DFA.
"Imports a DFA from a JSON file.\n\n :param str input_file: path + filename to json file;\n :return: *(dict)* representing a DFA."
208
false
Oneiroe/PySimpleAutomata
dfa_json_importer
40,121
LDU_FT/alpacahq/pipeline-live/_validate_compute_chunk_params
LDU_FT
[ "<BEGIN>\n## `get_stockprices`", "This is a proxy to the main fetch function to cache\n the result based on the chart range parameter.\n<END>", "<BEGIN>\n## `_get_stockprices`", "Get stock data (key stats and previous) from IEX.\n Just deal with IEX's 100 stocks limit per request.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_compute_chunk_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_compute_chunk_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Verify that the values passed to compute_chunk are well-formed.
"Verify that the values passed to compute_chunk are well-formed."
23
false
alpacahq/pipeline-live
_validate_compute_chunk_params
40,122
LDU_FT/Karaage-Cluster/python-tldap/is_managed
LDU_FT
[ "<BEGIN>\n## `check_password`", "Check a plaintext password against a hashed password.\n<END>", "<BEGIN>\n## `reset`", "Reset transaction back to original state, discarding all\n uncompleted transactions.\n<END>", "<BEGIN>\n## `_cache_get_for_dn`", "Object state is cached. When an update is require...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_managed API. 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 is_managed API. 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...
Checks whether the transaction manager is in manual or in auto state.
"Checks whether the transaction manager is in manual or in auto state."
151
false
Karaage-Cluster/python-tldap
is_managed
40,123
LDU_FT/theosysbio/means/_generate_mass_fluctuation_kinetics
LDU_FT
[ "<BEGIN>\n## `simulate_system`", "Perform Gillespie SSA simulations and returns trajectories for of each species.\n Each trajectory is interpolated at the given time points.\n By default, the average amounts of species for all simulations is returned.", " :param parameters: list of the init...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_mass_fluctuation_kinetics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_mass_fluctuation_kinetics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Generate the Mass Fluctuation Kinetics (i.e. the right hand side of the ODEs) :param central_moments: The matrix of central moment expressions :param dmu_over_dt: :param n_counter: a list of :class:`~means.core.descriptors.Moment`\s representing central moments :type n_counter: lis...
"Generate the Mass Fluctuation Kinetics (i.e. the right hand side of the ODEs)\r\n\r\n :param central_moments: The matrix of central moment expressions\r\n :param dmu_over_dt:\r\n :param n_counter: a list of :class:`~means.core.descriptors.Moment`\\s representing central moments\r\n :type n_...
244
false
theosysbio/means
_generate_mass_fluctuation_kinetics
40,124
LDU_FT/Demonware/jose/_validate
LDU_FT
[ "<BEGIN>\n## `deserialize_compact`", "Deserialization of a compact representation of a :class:`~jwt.JWE`", " :param jwt: The serialized JWT to deserialize.\n :rtype: :class:`~jose.JWT`.\n :raises: :class:`~jose.Error` if the JWT is malformed\n<END>", "<BEGIN>\n## `encrypt`", "Encrypts the given cla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Validate expiry related claims. If validate_claims is False, do nothing. Otherwise, validate the exp and nbf claims if they are present, and validate the iat claim if expiry_seconds is provided.
"Validate expiry related claims.\n\n If validate_claims is False, do nothing.\n\n Otherwise, validate the exp and nbf claims if they are present, and\n validate the iat claim if expiry_seconds is provided."
32
false
Demonware/jose
_validate
40,125
LDU_FT/tarbell-project/tarbell/_clean_suffix
LDU_FT
[ "<BEGIN>\n## `_get_or_create_config`", "Get or create a Tarbell configuration directory.\n<END>", "<BEGIN>\n## `slughifi`", "High Fidelity slugify - slughifi.py, v 0.1", " Examples :", " >>> text = 'C\\'est déjà l\\'été.'", " >>> slughifi(text)\n 'cest-deja-lete'", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clean_suffix API. 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 _clean_suffix API. 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...
If string endswith the suffix, remove it. Else leave it alone.
"If string endswith the suffix, remove it. Else leave it alone."
66
false
tarbell-project/tarbell
_clean_suffix
40,126
LDU_FT/Groundworkstech/pybfd/user_data
LDU_FT
[ "<BEGIN>\n## `generate_source_files`", "Genertate source files to be used during the compile process of the\n extension module.\n This is better than just hardcoding the values on python files because\n header definitions might change along differente Binutils versions and\n we'll be a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_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 extract...
Return the usrdata attribute of the BFD file being processed.
"Return the usrdata attribute of the BFD file being processed."
96
false
Groundworkstech/pybfd
user_data
40,127
LDU_FT/digmore/pypushed/push_user
LDU_FT
[ "<BEGIN>\n## `push_app`", "Push a notification to a Pushed application.", " Param: content -> content of Pushed notification message\n content_url (optional) -> enrich message with URL\n Returns Shipment ID as string\n<END>", "<BEGIN>\n## `push_channel`", "Push a notification to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Push a notification to a specific pushed user. Param: content -> content of Pushed notification message access_token -> OAuth access token content_url (optional) -> enrich message with URL Returns Shipment ID as string
"Push a notification to a specific pushed user.\n\n Param: content -> content of Pushed notification message\n access_token -> OAuth access token\n content_url (optional) -> enrich message with URL\n Returns Shipment ID as string"
18
false
digmore/pypushed
push_user
40,128
LDU_FT/tcalmant/ipopo/get_methods_names
LDU_FT
[ "<BEGIN>\n## `__conn_listener`", "Connection event listener", " :param state: The new connection state\n<END>", "<BEGIN>\n## `__path`", "Adds the prefix to the given path", " :param path: Z-Path\n :return: Prefixed Z-Path\n<END>", "<BEGIN>\n## `create`", "Creates a ZooKeeper node"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_methods_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 get_methods_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...
Generates the names of the fields where to inject the getter and setter methods :param public_properties: If True, returns the names of public property accessors, else of hidden property ones :return: getter and a setter field names
"Generates the names of the fields where to inject the getter and setter\n methods\n\n :param public_properties: If True, returns the names of public property\n accessors, else of hidden property ones\n :return: getter and a setter field names"
1,396
true
tcalmant/ipopo
get_methods_names
40,129
LDU_FT/taskcluster/taskcluster-client.py/getRecentErrors
LDU_FT
[ "<BEGIN>\n## `ping`", "Ping Server", " Respond without doing anything.\n This endpoint is used to check that the service is up.", " This method is ``stable``\n<END>", "<BEGIN>\n## `githubWebHookConsumer`", "Consume GitHub WebHook", " Capture a GitHub event and publish it via ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getRecentErrors API. 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 getRecentErrors API. 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...
Look up the most recent errors in the provisioner across all worker types Return a list of recent errors encountered This method gives output: ``v1/errors.json#`` This method is ``experimental``
"Look up the most recent errors in the provisioner across all worker types\n\n Return a list of recent errors encountered\n\n This method gives output: ``v1/errors.json#``\n\n This method is ``experimental``"
997
false
taskcluster/taskcluster-client.py
getRecentErrors
40,130
LDU_FT/pydot/pydot/graph_from_dot_file
LDU_FT
[ "<BEGIN>\n## `graph_from_dot_file`", "Load graphs from DOT file at `path`.", " @param path: to DOT file\n @param encoding: as passed to `io.open`.\n For example, `'utf-8'`.", " @return: Graphs that result from parsing.\n @rtype: `list` of `pydot.Dot`\n<END>", "<BEGIN>\n## `to_string`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the graph_from_dot_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the graph_from_dot_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. T...
Load graphs from DOT file at `path`. @param path: to DOT file @param encoding: as passed to `io.open`. For example, `'utf-8'`. @return: Graphs that result from parsing. @rtype: `list` of `pydot.Dot`
"Load graphs from DOT file at `path`.\n\n @param path: to DOT file\n @param encoding: as passed to `io.open`.\n For example, `'utf-8'`.\n\n @return: Graphs that result from parsing.\n @rtype: `list` of `pydot.Dot`"
57
false
pydot/pydot
graph_from_dot_file
40,131
LDU_FT/ehansis/ozelot/sanitize
LDU_FT
[ "<BEGIN>\n## `_query`", "Base query for an url and xpath", " Args:\n url (str): URL to search\n xpath (str): xpath to search (may be ``None``)\n<END>", "<BEGIN>\n## `get`", "Get a URL via the cache.", " If the URL exists in the cache, return the cached value. Otherwise ...
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...
Normalize a string Args: s (unicode string): input unicode string normalize_whitespace (bool): if True, normalize all whitespace to single spaces (including newlines), strip whitespace at start/end normalize_unicode (bool): if True, normalize unicode for...
"Normalize a string\n\n Args:\n s (unicode string): input unicode string\n normalize_whitespace (bool): if True, normalize all whitespace to single spaces (including newlines),\n strip whitespace at start/end\n normalize_unicode (bool): if True, normalize unic...
203
false
ehansis/ozelot
sanitize
40,132
LDU_FT/mitsei/dlkit/get_authorization_session
LDU_FT
[ "<BEGIN>\n## `get_osid_temporal_mdata`", "Return default mdata map for OsidTemporal\n<END>", "<BEGIN>\n## `get_osid_containable_mdata`", "Return default mdata map for OsidContainable\n<END>", "<BEGIN>\n## `get_osid_sourceable_mdata`", "Return default mdata map for OsidSourceable\n<END>", "<BEGIN>\n## `g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_authorization_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_authorization_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Gets an ``AuthorizationSession`` which is responsible for performing authorization checks. return: (osid.authorization.AuthorizationSession) - an authorization session for this service raise: OperationFailed - unable to complete request raise: Unimplemented - ``supports_author...
"Gets an ``AuthorizationSession`` which is responsible for performing authorization checks.\n\n return: (osid.authorization.AuthorizationSession) - an\n authorization session for this service\n raise: OperationFailed - unable to complete request\n raise: Unimplemented - ``supports_...
6,502
true
mitsei/dlkit
get_authorization_session
40,133
LDU_FT/tropo/tropo-webapi-python/index
LDU_FT
[ "<BEGIN>\n## `HelloWorld`", "This is the traditional \"Hello, World\" function. The idiom is used throughout the API. We construct a Tropo object, and then flesh out that object by calling \"action\" functions (in this case, tropo.say). Then call tropo.Render, which translates the Tropo object into JSON format. F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
t = Tropo() t.call(to="xiangjun_yu@192.168.26.1:5678") t.say("wo shi yi ke xiao xiao cao")
"t = Tropo()\n t.call(to=\"xiangjun_yu@192.168.26.1:5678\")\n t.say(\"wo shi yi ke xiao xiao cao\")"
42
false
tropo/tropo-webapi-python
index
40,134
LDU_FT/delfick/aws_syncr/modify_attached_policies
LDU_FT
[ "<BEGIN>\n## `catch_boto_400`", "Turn a BotoServerError 400 into a BadAmazon\n<END>", "<BEGIN>\n## `change`", "Print out a change and then do the change if not doing a dry run\n<END>", "<BEGIN>\n## `compare_two_documents`", "Compare two documents by converting them into json objects and back to strings an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_attached_policies 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 modify_attached_policies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Make sure this role has just the new policies
"Make sure this role has just the new policies"
40
false
delfick/aws_syncr
modify_attached_policies
40,135
LDU_FT/webrecorder/warcio/open
LDU_FT
[ "<BEGIN>\n## `_raise_invalid_gzip_err`", "A gzip file with multiple ARC/WARC records, non-chunked\n has been detected. This is not valid for replay, so notify user\n<END>", "<BEGIN>\n## `_consume_blanklines`", "Consume blank lines that are between records\n - For warcs, there are usually 2\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
open() which supports exclusive mode 'x' in python < 3.3
"open() which supports exclusive mode 'x' in python < 3.3"
91
false
webrecorder/warcio
open
40,136
LDU_FT/bitcraft/pyscroll/convert_surfaces
LDU_FT
[ "<BEGIN>\n## `hit`", "Returns the items that overlap a bounding rectangle.", " Returns the set of all items in the quad-tree that overlap with a\n bounding rectangle.", " @param rect:\n The bounding rectangle being tested against the quad-tree. This\n must possess le...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_surfaces API. 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 convert_surfaces API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convert all images in the data to match the parent :param parent: pygame.Surface :param alpha: preserve alpha channel or not :return: None
"Convert all images in the data to match the parent\n\n :param parent: pygame.Surface\n :param alpha: preserve alpha channel or not\n :return: None"
112
false
bitcraft/pyscroll
convert_surfaces
40,137
LDU_FT/miyakogi/wdom/innerHTML
LDU_FT
[ "<BEGIN>\n## `get_class_list`", "Get class-level class list, including all super class's.\n<END>", "<BEGIN>\n## `removeClass`", "[Not Standard] Remove classes from this node.\n<END>", "<BEGIN>\n## `appendChild`", "Append child node at the last of child nodes.", " If this instance is connected to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the innerHTML API. 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 innerHTML API. 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...
Set innerHTML both on this node and related browser node.
"Set innerHTML both on this node and related browser node."
233
false
miyakogi/wdom
innerHTML
40,138
LDU_FT/pyscaffold/configupdater/add_before
LDU_FT
[ "<BEGIN>\n## `add_before`", "Returns a builder inserting a new block before the current block\n<END>", "<BEGIN>\n## `add_after`", "Returns a builder inserting a new block after the current block\n<END>", "<BEGIN>\n## `comment`", "Creates a comment block", " Args:\n text (str): content ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_before API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_before API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns a builder inserting a new block before the current block
"Returns a builder inserting a new block before the current block"
78
false
pyscaffold/configupdater
add_before
40,139
LDU_FT/pavlin-policar/openTSNE/set_perplexity
LDU_FT
[ "<BEGIN>\n## `has_c_library`", "Check whether a C/C++ library is available on the system to the compiler.", " Parameters\n ----------\n library: str\n The library we want to check for e.g. if we are interested in FFTW3, we\n want to check for `fftw3.h`, so this parameter will be `fftw3`.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_perplexity API. 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 set_perplexity API. 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...
Change the perplexity of the affinity matrix. Note that we only allow lowering the perplexity or restoring it to its original value. This restriction exists because setting a higher perplexity value requires recomputing all the nearest neighbors, which can take a long time. To avoid pot...
"Change the perplexity of the affinity matrix.\n\n Note that we only allow lowering the perplexity or restoring it to its\n original value. This restriction exists because setting a higher\n perplexity value requires recomputing all the nearest neighbors, which\n can take a long time. To avo...
181
false
pavlin-policar/openTSNE
set_perplexity
40,140
LDU_FT/MLAB-project/pymlab/set_ports
LDU_FT
[ "<BEGIN>\n## `Move`", "Move some distance units from current position\n<END>", "<BEGIN>\n## `SPI_write_byte`", "Writes a data to a SPI device selected by chipselect bit.\n<END>", "<BEGIN>\n## `SPI_write`", "Writes data to SPI device selected by chipselect bit.\n<END>", "<BEGIN>\n## `GPIO_read`", "Read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_ports API. 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 set_ports API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Writes specified value to the pins defined as output by config_ports() method. Writing to input pins has no effect.
"Writes specified value to the pins defined as output by config_ports() method. Writing to input pins has no effect."
99
false
MLAB-project/pymlab
set_ports
40,141
LDU_FT/rainwoodman/kdcount/integrate
LDU_FT
[ "<BEGIN>\n## `compute_sum_values`", "Return the sum1_ij and sum2_ij values given\n the input indices and data instances.", " Notes\n -----\n This is called in `Binning.update_sums` to compute\n the `sum1` and `sum2` contributions for indices `(i,j)`", " Parameters\n ----------\n i,j : ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the integrate API. 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 integrate API. 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...
Calculate the total number of points between [min, max). If attr is given, also calculate the sum of the weight. This is a M log(N) operation, where M is the number of min/max queries and N is number of points.
"Calculate the total number of points between [min, max).\n\n If attr is given, also calculate the sum of the weight.\n\n This is a M log(N) operation, where M is the number of min/max\n queries and N is number of points."
69
false
rainwoodman/kdcount
integrate
40,142
LDU_FT/BlueBrain/nat/get_reference_templates
LDU_FT
[ "<BEGIN>\n## `check_ocrmypdf`", "Run ocrmypdf and confirmed that a valid file was created\n<END>", "<BEGIN>\n## `run_ocrmypdf`", "Run ocrmypdf and let caller deal with results\n<END>", "<BEGIN>\n## `getParamValues`", "Return the rows of sampleDF that are associated to the parameter\n specified in p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reference_templates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reference_templates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return the reference templates for the types as an ordered dictionary.
"Return the reference templates for the types as an ordered dictionary."
56
false
BlueBrain/nat
get_reference_templates
40,143
LDU_FT/EntilZha/PyFunctional/reduce_by_key_impl
LDU_FT
[ "<BEGIN>\n## `name`", "Retrieve a pretty name for the function\n :param function: function to get name from\n :return: pretty name\n<END>", "<BEGIN>\n## `map_t`", "Transformation for Sequence.map\n :param func: map function\n :return: transformation\n<END>", "<BEGIN>\n## `starmap_t`", "Transfo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reduce_by_key_impl 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 reduce_by_key_impl 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...
Implementation for reduce_by_key_t :param func: reduce function :param sequence: sequence to reduce :return: reduced sequence
"Implementation for reduce_by_key_t\n :param func: reduce function\n :param sequence: sequence to reduce\n :return: reduced sequence"
249
false
EntilZha/PyFunctional
reduce_by_key_impl
40,144
LDU_FT/crm416/semantic/extractDate
LDU_FT
[ "<BEGIN>\n## `parseUnits`", "Carries out a conversion (represented as a string) and returns the\n result as a human-readable string.", " Args:\n inp (str): Text representing a unit conversion, which should\n include a magnitude, a description of the initial units,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extractDate API. 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 extractDate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the first date found in the input string, or None if not found.
"Returns the first date found in the input string, or None if not\n found."
75
false
crm416/semantic
extractDate
40,145
LDU_FT/collectiveacuity/jsonModel/_validate_boolean
LDU_FT
[ "<BEGIN>\n## `tabulate`", "a function to add the tabulate method to a jsonModel object", " :param json_model: jsonModel object\n :return: jsonModel object\n<END>", "<BEGIN>\n## `_evaluate_field`", "a helper method for evaluating record values based upon query criteria", " :param record_dict: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_boolean API. 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_boolean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
a helper method for validating properties of a boolean :return: input_boolean
"a helper method for validating properties of a boolean\n\n :return: input_boolean"
65
false
collectiveacuity/jsonModel
_validate_boolean
40,146
LDU_FT/gorakhargosh/pathtools/walk
LDU_FT
[ "<BEGIN>\n## `get_dir_walker`", "Returns a recursive or a non-recursive directory walker.", " :param recursive:\n ``True`` produces a recursive walker; ``False`` produces a non-recursive\n walker.\n :returns:\n A walker function.\n<END>", "<BEGIN>\n## `walk`", "Walks a directory t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk API. 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 walk API. 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...
Walks a directory tree optionally recursively. Works exactly like :func:`os.walk` only adding the `recursive` argument. :param dir_pathname: The directory to traverse. :param recursive: ``True`` for walking recursively through the directory tree; ``False`` otherwise. :param topd...
"Walks a directory tree optionally recursively. Works exactly like\n :func:`os.walk` only adding the `recursive` argument.\n\n :param dir_pathname:\n The directory to traverse.\n :param recursive:\n ``True`` for walking recursively through the directory tree;\n ``False`` otherwise.\n :p...
38
false
gorakhargosh/pathtools
walk
40,147
LDU_FT/mikicz/arca/start_container
LDU_FT
[ "<BEGIN>\n## `get_or_create_environment`", "Returns the path to the current Python executable.\n<END>", "<BEGIN>\n## `validate_configuration`", "Validates the provided settings.", " * Checks ``inherit_image`` format.\n * Checks ``use_registry_name`` format.\n * Checks that ``apt_depende...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_container API. 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 start_container API. 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...
Starts a container with the image and name ``container_name`` and copies the repository into the container. :type image: docker.models.images.Image :rtype: docker.models.container.Container
"Starts a container with the image and name ``container_name`` and copies the repository into the container.\n\n :type image: docker.models.images.Image\n :rtype: docker.models.container.Container"
196
false
mikicz/arca
start_container
40,148
LDU_FT/MediaFire/mediafire-python-open-sdk/upload
LDU_FT
[ "<BEGIN>\n## `decode_resumable_upload_bitmap`", "Decodes bitmap_node to hash of unit_id: is_uploaded", " bitmap_node -- bitmap node of resumable_upload with\n 'count' number and 'words' containing array\n number_of_units -- number of units we are uploading to\n defi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Upload file, returns UploadResult object fd -- file-like object to upload from, expects exclusive access name -- file name folder_key -- folderkey of the target folder path -- path to file relative to folder_key filedrop_key -- filedrop to use instead of folder_key actio...
"Upload file, returns UploadResult object\n\n fd -- file-like object to upload from, expects exclusive access\n name -- file name\n folder_key -- folderkey of the target folder\n path -- path to file relative to folder_key\n filedrop_key -- filedrop to use instead of folder_key\n ...
145
false
MediaFire/mediafire-python-open-sdk
upload
40,149
LDU_FT/mila-iqia/fuel/convert_svhn_format_2
LDU_FT
[ "<BEGIN>\n## `convert_mnist`", "Converts the MNIST dataset to HDF5.", " Converts the MNIST dataset to an HDF5 dataset compatible with\n :class:`fuel.datasets.MNIST`. The converted dataset is\n saved as 'mnist.hdf5'.", " This method assumes the existence of the following files:\n `train-images-i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_svhn_format_2 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 convert_svhn_format_2 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Converts the SVHN dataset (format 2) to HDF5. This method assumes the existence of the files `{train,test,extra}_32x32.mat`, which are accessible through the official website [SVHNSITE]. Parameters ---------- directory : str Directory in which input files reside. output_directory :...
"Converts the SVHN dataset (format 2) to HDF5.\n\n This method assumes the existence of the files\n `{train,test,extra}_32x32.mat`, which are accessible through the\n official website [SVHNSITE].\n\n Parameters\n ----------\n directory : str\n Directory in which input files reside.\n output_...
358
false
mila-iqia/fuel
convert_svhn_format_2
40,150
LDU_FT/crate/crate-python/get
LDU_FT
[ "<BEGIN>\n## `coerce`", "Convert plain dictionaries to MutableDict.\n<END>", "<BEGIN>\n## `_raise_for_status`", "make sure that only crate.exceptions are raised that are defined in\n the DB-API specification\n<END>", "<BEGIN>\n## `_server_url`", "Normalizes a given server string to an url", " >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return the contents of a blob :param digest: the hex digest of the blob to return :param chunk_size: the size of the chunks returned on each iteration :return: generator returning chunks of data
"Return the contents of a blob\n\n :param digest: the hex digest of the blob to return\n :param chunk_size: the size of the chunks returned on each iteration\n :return: generator returning chunks of data"
81
false
crate/crate-python
get
40,151
LDU_FT/astropy/regions/source_table
LDU_FT
[ "<BEGIN>\n## `ds9_objects_to_string`", "Converts a `list` of `~regions.Region` to DS9 region string.", " Parameters\n ----------\n regions : `list`\n List of `~regions.Region` objects\n coordsys : `str`, optional\n This overrides the coordinate system frame for all regions.\n De...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the source_table API. 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 source_table API. 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...
Source table (`~astropy.table.Table`). Columns: GLON, GLAT, COUNTS
"Source table (`~astropy.table.Table`).\n\n Columns: GLON, GLAT, COUNTS"
237
false
astropy/regions
source_table
40,152
LDU_FT/IBMStreams/pypi.streamsx/end_parallel
LDU_FT
[ "<BEGIN>\n## `get_application_configuration`", "Get a named application configuration.", " An application configuration is a named set of securely stored properties\n where each key and its value in the property set is a string.", " An application configuration object is used to store information tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the end_parallel API. 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 end_parallel API. 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...
Ends a parallel region by merging the channels into a single stream. Returns: Stream: Stream for which subsequent transformations are no longer parallelized. .. seealso:: :py:meth:`set_parallel`, :py:meth:`parallel`
"Ends a parallel region by merging the channels into a single stream.\n\n Returns:\n Stream: Stream for which subsequent transformations are no longer parallelized.\n\n .. seealso:: :py:meth:`set_parallel`, :py:meth:`parallel`"
651
false
IBMStreams/pypi.streamsx
end_parallel
40,153
LDU_FT/MostAwesomeDude/gentleman/DeleteNodeTags
LDU_FT
[ "<BEGIN>\n## `request`", "Sends an HTTP request.", " This constructs a full URL, encodes and decodes HTTP bodies, and\n handles invalid responses in a pythonic way.", " @type method: string\n @param method: HTTP method to use\n @type path: string\n @param path: HTTP U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DeleteNodeTags API. 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 DeleteNodeTags API. 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...
Delete tags from a node. @type node: str @param node: node to remove tags from @type tags: list of str @param tags: tags to remove from the node @type dry_run: bool @param dry_run: whether to perform a dry run @rtype: int @return: job id
"Delete tags from a node.\n\n @type node: str\n @param node: node to remove tags from\n @type tags: list of str\n @param tags: tags to remove from the node\n @type dry_run: bool\n @param dry_run: whether to perform a dry run\n\n @rtype: int\n @return: job id"
173
false
MostAwesomeDude/gentleman
DeleteNodeTags
40,154
LDU_FT/aws/chalice/verify_event_source_current
LDU_FT
[ "<BEGIN>\n## `create_from_lambda_arn`", "Create a LogRetriever from a client and lambda arn.", " :type client: botocore.client.Logs\n :param client: A ``logs`` client.", " :type lambda_arn: str\n :param lambda_arn: The ARN of the lambda function.", " :return: An instance o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_event_source_current API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_event_source_current API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Check if the uuid matches the resource and function arn provided. Given a uuid representing an event source mapping for a lambda function, verify that the associated source arn and function arn match up to the parameters passed in. Instead of providing the event source arn, the resourc...
"Check if the uuid matches the resource and function arn provided.\n\n Given a uuid representing an event source mapping for a lambda\n function, verify that the associated source arn\n and function arn match up to the parameters passed in.\n\n Instead of providing the event source arn, the ...
96
false
aws/chalice
verify_event_source_current
40,155
LDU_FT/LettError/MutatorMath/readKerningElement
LDU_FT
[ "<BEGIN>\n## `makeUnicodeMapFromSources`", "Create a dict with glyphName -> unicode value pairs\n using the data in the sources. \n If all master glyphs have the same unicode value\n this value will be used in the map.\n If master glyphs have conflicting value, a warnin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readKerningElement 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 readKerningElement 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...
Read the kerning element. :: Make kerning at the location and with the masters specified at the instance level. <kerning/>
"Read the kerning element.\n\n ::\n\n Make kerning at the location and with the masters specified at the instance level.\n <kerning/>"
169
false
LettError/MutatorMath
readKerningElement
40,156
LDU_FT/bharadwaj-raju/libdesktop/get_volume
LDU_FT
[ "<BEGIN>\n## `get_config_dir`", "Get the configuration directory.", "\tGet the configuration directories, optionally for a specific program.", "\tArgs:\n\t\t\tprogram\t(str) : The name of the program whose configuration directories have to be found.\n\t\t\tsystem_wide (bool): Gets the system-wide configuratio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_volume API. 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_volume API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get the volume. Get the current volume. Returns: int: The current volume (percentage, between 0 and 100).
"Get the volume.\n\n\tGet the current volume.\n\n\tReturns:\n\t\t\tint: The current volume (percentage, between 0 and 100)."
119
false
bharadwaj-raju/libdesktop
get_volume
40,157
LDU_FT/sanger-pathogens/circlator/_contains
LDU_FT
[ "<BEGIN>\n## `run_spades`", "Runs spades on all kmers. Each a separate run because SPAdes dies if any kmer does\n not work. Chooses the 'best' assembly to be the one with the biggest N50\n<END>", "<BEGIN>\n## `aligned_read_to_read`", "Returns Fasta or Fastq sequence from pysam aligned read\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _contains API. 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 _contains API. 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 True iff (the query contig is contained in the reference contig and the query contig is not flagged to be kept)
"Returns True iff (the query contig is contained in the reference contig and\n the query contig is not flagged to be kept)"
102
false
sanger-pathogens/circlator
_contains
40,158
LDU_FT/maartenbreddels/ipyvolume/volshow
LDU_FT
[ "<BEGIN>\n## `volshow`", "Deprecated: please use ipyvolume.quickvolshow or use the ipyvolume.pylab interface.\n<END>", "<BEGIN>\n## `quickvolshow`", "Visualize a 3d array using volume rendering.", " :param data: 3d numpy array\n :param lighting: boolean, to use lighting or not, if set to false, lighti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the volshow API. 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 volshow API. 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...
Visualize a 3d array using volume rendering. Currently only 1 volume can be rendered. :param data: 3d numpy array :param origin: origin of the volume data, this is to match meshes which have a different origin :param domain_size: domain size is the size of the volume :param bool lighting: use lig...
"Visualize a 3d array using volume rendering.\n\n Currently only 1 volume can be rendered.\n\n\n :param data: 3d numpy array\n :param origin: origin of the volume data, this is to match meshes which have a different origin\n :param domain_size: domain size is the size of the volume\n :param bool lighting...
141
false
maartenbreddels/ipyvolume
volshow
40,159
LDU_FT/jaredLunde/vital-tools/format_obj_name
LDU_FT
[ "<BEGIN>\n## `line`", "Prints a line separator the full width of the terminal.", " @separator: the #str chars to create the line from\n @color: line color from :mod:vital.debug.colors\n @padding: adds extra lines to either the top, bottom or both\n of the line via :func:padd\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_obj_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_obj_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 e...
Formats the object name in a pretty way @obj: any python object @delim: the characters to wrap a parent object name in -> #str formatted name .. from vital.debug import format_obj_name format_obj_name(vital.debug.Timer) # -> 'Timer<vital.debug>' ...
"Formats the object name in a pretty way\n\n @obj: any python object\n @delim: the characters to wrap a parent object name in\n\n -> #str formatted name\n ..\n from vital.debug import format_obj_name\n\n format_obj_name(vital.debug.Timer)\n # -> 'Timer<vital....
396
false
jaredLunde/vital-tools
format_obj_name
40,160
LDU_FT/baccuslab/shannon/KL_divergence
LDU_FT
[ "<BEGIN>\n## `remove_symbol_from_dist`", "prob is a ndarray representing a probability distribution.\n index is a number between 0 and and the number of symbols ( len(prob)-1 )\n return the probability distribution if the element at 'index' was no longer available\n<END>", "<BEGIN>\n## `change_response`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the KL_divergence API. 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 KL_divergence API. 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...
Compute the KL divergence between distributions P and Q P and Q should be dictionaries linking symbols to probabilities. the keys to P and Q should be the same.
"Compute the KL divergence between distributions P and Q\n \n P and Q should be dictionaries linking symbols to probabilities.\n the keys to P and Q should be the same."
83
false
baccuslab/shannon
KL_divergence
40,161
LDU_FT/jmcarp/betfair.py/get_kwargs
LDU_FT
[ "<BEGIN>\n## `get_chunks`", "Split sequence into chunks.", " :param list sequence:\n :param int chunk_size:\n<END>", "<BEGIN>\n## `get_kwargs`", "Get all keys and values from dictionary where key is not `self`.", " :param dict kwargs: Input parameters\n<END>", "<BEGIN>\n## `check_status_code`",...
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...
Get all keys and values from dictionary where key is not `self`. :param dict kwargs: Input parameters
"Get all keys and values from dictionary where key is not `self`.\n\n :param dict kwargs: Input parameters"
68
false
jmcarp/betfair.py
get_kwargs
40,162
LDU_FT/olitheolix/qtmacs/qteGetMode
LDU_FT
[ "<BEGIN>\n## `qteSaveMacroData`", "Associate arbitrary ``data`` with ``widgetObj``.", " This is a convenience method to easily store applet/widget\n specific information in between calls.", " If ``widgetObj`` is **None** then the calling widget\n ``self.qteWidget`` will be used.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the qteGetMode API. 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 qteGetMode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return a tuple containing the ``mode``, its value, and its associated ``QLabel`` instance. |Args| * ``mode`` (**str**): size and position of new window. |Returns| * (**str**, **object**, **QLabel**: (mode, value, label). |Raises| * **QtmacsArgumentError** if...
"Return a tuple containing the ``mode``, its value, and\n its associated ``QLabel`` instance.\n\n |Args|\n\n * ``mode`` (**str**): size and position of new window.\n\n |Returns|\n\n * (**str**, **object**, **QLabel**: (mode, value, label).\n\n |Raises|\n\n * **QtmacsArgu...
1,108
true
olitheolix/qtmacs
qteGetMode
40,163
LDU_FT/python-visualization/folium/_get_self_bounds
LDU_FT
[ "<BEGIN>\n## `_get_self_bounds`", "Computes the bounds of the object itself (not including it's children)\n in the form [[lat_min, lon_min], [lat_max, lon_max]].\n<END>", "<BEGIN>\n## `path_options`", "Contains options and constants shared between vector overlays\n (Polygon, Polyline, Circle, Circle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_self_bounds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_self_bounds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Computes the bounds of the object itself (not including it's children) in the form [[lat_min, lon_min], [lat_max, lon_max]].
"Computes the bounds of the object itself (not including it's children)\n in the form [[lat_min, lon_min], [lat_max, lon_max]]."
111
false
python-visualization/folium
_get_self_bounds
40,164
LDU_FT/note35/sinon/notCalled
LDU_FT
[ "<BEGIN>\n## `__remove_args_first_item`", "# Todo: finding a better solution\n This is a dirty solution\n Because the first argument of inspectors' args will be itself\n For current implementation, it should be ignore\n<END>", "<BEGIN>\n## `lastCall`", "Return: SpyCall object for this spy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notCalled API. 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 notCalled API. 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...
Checking the inspector is not called Args: SinonSpy
"Checking the inspector is not called\n Args: SinonSpy"
162
false
note35/sinon
notCalled
40,165
LDU_FT/mohamedattahri/PyXMLi/__set_method
LDU_FT
[ "<BEGIN>\n## `c14n`", "Applies c14n to the xml input\n @param xml: str\n @return: str\n<END>", "<BEGIN>\n## `sign`", "Return xmldsig XML string from xml_string of XML.\n @param xml: str of bytestring xml to sign\n @param private: publicKey Private key\n @param public: publicKey Public key\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __set_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __set_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 extr...
Sets the method to use. @param value: str
"Sets the method to use.\n @param value: str"
102
false
mohamedattahri/PyXMLi
__set_method
40,166
LDU_FT/roclark/sportsreference/_find_players
LDU_FT
[ "<BEGIN>\n## `dataframe`", "Returns a ``pandas DataFrame`` containing all other relevant class\n properties and values for the specified game.\n<END>", "<BEGIN>\n## `_extract_player_stats`", "Combine all player stats into a single object.", " Since each player generally has a couple of rows wo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_players API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_players API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Find all players for each team. Iterate through every player for both teams as found in the boxscore tables and create a list of instances of the BoxscorePlayer class for each player. Return lists of player instances comprising the away and home team players, respectively. Para...
"Find all players for each team.\n\n Iterate through every player for both teams as found in the boxscore\n tables and create a list of instances of the BoxscorePlayer class for\n each player. Return lists of player instances comprising the away and\n home team players, respectively.\n\n ...
588
false
roclark/sportsreference
_find_players
40,167
LDU_FT/peterjc/backports.lzma/compress
LDU_FT
[ "<BEGIN>\n## `open`", "Open an LZMA-compressed file in binary or text mode.", " filename can be either an actual file name (given as a str or bytes object),\n in which case the named file is opened, or it can be an existing file object\n to read from or write to.", " The mode argument can be \"r\"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compress API. 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 compress API. 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...
Compress a block of data. Refer to LZMACompressor's docstring for a description of the optional arguments *format*, *check*, *preset* and *filters*. For incremental compression, use an LZMACompressor object instead.
"Compress a block of data.\n\n Refer to LZMACompressor's docstring for a description of the\n optional arguments *format*, *check*, *preset* and *filters*.\n\n For incremental compression, use an LZMACompressor object instead."
36
false
peterjc/backports.lzma
compress
40,168
LDU_FT/mnick/scikit-tensor/fold
LDU_FT
[ "<BEGIN>\n## `asalsan`", "ASALSAN algorithm to compute the three-way DEDICOM decomposition\n of a tensor", " See\n ---\n .. [1] Brett W. Bader, Richard A. Harshman, Tamara G. Kolda\n \"Temporal analysis of semantic graphs using ASALSAN\"\n 7th International Conference on Data Mining, 200...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fold API. 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 fold API. 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...
Recreate original tensor by folding unfolded_sptensor according toc ``ten_shape``. Returns ------- T : sptensor Sparse tensor that is created by refolding according to ``ten_shape``.
"Recreate original tensor by folding unfolded_sptensor according toc\n ``ten_shape``.\n\n Returns\n -------\n T : sptensor\n Sparse tensor that is created by refolding according to ``ten_shape``."
114
false
mnick/scikit-tensor
fold
40,169
LDU_FT/FujiMakoto/IPS-Vagrant/_read_zip
LDU_FT
[ "<BEGIN>\n## `dev_tools_installer`", "Installer factory\n @param cv: Current version (The version of Developer Tools we are installing)\n @type cv: ips_vagrant.common.version.Version\n @return: Installer instance\n @rtype: ips_vagrant.installer.dev_tools.latest.DevToolsInstaller\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_zip API. 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 _read_zip API. 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...
Read an IPS installation zipfile and return the core version number @type filepath: str @rtype: LooseVersion
"Read an IPS installation zipfile and return the core version number\n @type filepath: str\n @rtype: LooseVersion"
87
false
FujiMakoto/IPS-Vagrant
_read_zip
40,170
LDU_FT/pschmitt/pykeepass/_encode_time
LDU_FT
[ "<BEGIN>\n## `compute_transformed`", "Compute transformed key for opening database\n<END>", "<BEGIN>\n## `compute_header_hmac_hash`", "Compute HMAC-SHA256 hash of header.\n Used to prevent header tampering.\n<END>", "<BEGIN>\n## `compute_payload_block_hash`", "Compute hash of each payload block.\n U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert datetime to base64 or plaintext string
"Convert datetime to base64 or plaintext string"
46
false
pschmitt/pykeepass
_encode_time
40,171
LDU_FT/CS207-Final-Project-Group-10/cs207-FinalProject/T_i
LDU_FT
[ "<BEGIN>\n## `configuration_ES`", "Get the positions and velocities of the earth and sun from date t0 to t1.\n Returned as a tuple q, v\n q: Nx3 array of positions (x, y, z) in the J2000.0 coordinate frame.\n<END>", "<BEGIN>\n## `plot_ES`", "Plot the earth-sun orbits.\n q is a Tx6 array. T indexes t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the T_i API. 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 T_i API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Make Fluxion with the kinetic energy of body i
"Make Fluxion with the kinetic energy of body i"
92
false
CS207-Final-Project-Group-10/cs207-FinalProject
T_i
40,172