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/pyhys/minimalmodbus/_checkSetpointValue
LDU_FT
[ "<BEGIN>\n## `_checkSetpointValue`", "Check that the given setpointvalue is valid.", " Args:\n * setpointvalue (numerical): The setpoint value to be checked. Must be positive.\n * maxvalue (numerical): Upper limit for setpoint value. Must be positive.", " Raises:\n TypeError, ValueE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _checkSetpointValue 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 _checkSetpointValue API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Check that the given setpointvalue is valid. Args: * setpointvalue (numerical): The setpoint value to be checked. Must be positive. * maxvalue (numerical): Upper limit for setpoint value. Must be positive. Raises: TypeError, ValueError
"Check that the given setpointvalue is valid.\n \n Args:\n * setpointvalue (numerical): The setpoint value to be checked. Must be positive.\n * maxvalue (numerical): Upper limit for setpoint value. Must be positive.\n \n Raises:\n TypeError, ValueError"
357
false
pyhys/minimalmodbus
_checkSetpointValue
38,073
LDU_FT/chibisov/drf-extensions/_html_class_str_from_tag
LDU_FT
[ "<BEGIN>\n## `get_etags_and_matchers`", "Get the etags from the header and perform a validation against the required preconditions.\n<END>", "<BEGIN>\n## `evaluate_preconditions`", "Evaluate whether the precondition for the request is met.\n<END>", "<BEGIN>\n## `_regex_from_encoded_pattern`", "foo' -> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _html_class_str_from_tag 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 _html_class_str_from_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Get the appropriate ' class="..."' string (note the leading space), if any, for the given tag.
"Get the appropriate ' class=\"...\"' string (note the leading\n space), if any, for the given tag."
55
false
chibisov/drf-extensions
_html_class_str_from_tag
38,074
LDU_FT/gpoulter/python-ngram/items_sharing_ngrams
LDU_FT
[ "<BEGIN>\n## `copy`", "Return a new NGram object with the same settings, and\n referencing the same items. Copy is shallow in that\n each item is not recursively copied. Optionally specify\n alternate items to populate the copy.", " >>> from ngram import NGram\n >>> from co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the items_sharing_ngrams 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 items_sharing_ngrams API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Retrieve the subset of items that share n-grams the query string. :param query: look up items that share N-grams with this string. :return: mapping from matched string to the number of shared N-grams. >>> from ngram import NGram >>> n = NGram(["ham","spam","eggs"]) >>> sorted(n...
"Retrieve the subset of items that share n-grams the query string.\n\n :param query: look up items that share N-grams with this string.\n :return: mapping from matched string to the number of shared N-grams.\n\n >>> from ngram import NGram\n >>> n = NGram([\"ham\",\"spam\",\"eggs\"])\n ...
59
false
gpoulter/python-ngram
items_sharing_ngrams
38,075
LDU_FT/AlexMathew/scrapple/extract_links
LDU_FT
[ "<BEGIN>\n## `execute_command`", "The web command runs the Scrapple web interface through a simple \\\n `Flask <http://flask.pocoo.org>`_ app. ", " When the execute_command() method is called from the \\\n :ref:`runCLI() <implementation-cli>` function, it starts of two simultaneous \\\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_links API. 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 extract_links API. 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...
Method for performing the link extraction for the crawler. \ The selector passed as the argument is a selector to point to the anchor tags \ that the crawler should pass through. A list of links is obtained, and the links \ are iterated through. The relative paths are converted into absolute paths and \ a ``Xp...
"Method for performing the link extraction for the crawler. \\\n\n\t\tThe selector passed as the argument is a selector to point to the anchor tags \\\n\t\tthat the crawler should pass through. A list of links is obtained, and the links \\\n\t\tare iterated through. The relative paths are converted into absolute paths ...
62
false
AlexMathew/scrapple
extract_links
38,076
LDU_FT/ambitioninc/newrelic-api/create
LDU_FT
[ "<BEGIN>\n## `update`", "Updates any of the optional parameters of the alert condition nrql", " :type alert_condition_nrql_id: int\n :param alert_condition_nrql_id: Alerts condition NRQL id to update", " :type policy_id: int\n :param policy_id: Alert policy id where target alert co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This API endpoint allows you to create an alert policy :type name: str :param name: The name of the policy :type incident_preference: str :param incident_preference: Can be PER_POLICY, PER_CONDITION or PER_CONDITION_AND_TARGET :rtype: dict :return: The JSON...
"This API endpoint allows you to create an alert policy\n\n :type name: str\n :param name: The name of the policy\n\n :type incident_preference: str\n :param incident_preference: Can be PER_POLICY, PER_CONDITION or\n PER_CONDITION_AND_TARGET\n\n :rtype: dict\n :retur...
299
false
ambitioninc/newrelic-api
create
38,077
LDU_FT/fooelisa/pyiosxr/lock
LDU_FT
[ "<BEGIN>\n## `make_rpc_call`", "Allow a user to query a device directly using XML-requests.", " :param rpc_command: (str) rpc command such as:\n <Get><Operational><LLDP><NodeTable></NodeTable></LLDP></Operational></Get>\n<END>", "<BEGIN>\n## `open`", "Open a connectio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lock API. 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 lock API. 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...
Lock the config database. Use if Locking/Unlocking is not performaed automatically by lock=False
"Lock the config database.\n\n Use if Locking/Unlocking is not performaed automatically by lock=False"
38
false
fooelisa/pyiosxr
lock
38,078
LDU_FT/lorien/grab/json
LDU_FT
[ "<BEGIN>\n## `get_item`", "Returned item should have specific interface. See module docstring.\n<END>", "<BEGIN>\n## `has_item`", "Test if required item exists in the cache.\n<END>", "<BEGIN>\n## `build_grab_exception`", "Build Grab exception from the pycurl exception", " Args:\n ex - the orig...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return response body deserialized into JSON object.
"Return response body deserialized into JSON object."
188
false
lorien/grab
json
38,079
LDU_FT/CartoDB/cartoframes/data_boundaries
LDU_FT
[ "<BEGIN>\n## `get_scheme_cartocss`", "Get TurboCARTO CartoCSS based on input parameters\n<END>", "<BEGIN>\n## `custom`", "Create a custom scheme.", " Args:\n colors (list of str): List of hex values for styling data\n bins (int, optional): Number of bins to style by. If not given, the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_boundaries API. 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 data_boundaries API. 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...
Find all boundaries available for the world or a `region`. If `boundary` is specified, get all available boundary polygons for the region specified (if any). This method is espeically useful for getting boundaries for a region and, with :py:meth:`CartoContext.data <cartoframes.context.Ca...
"Find all boundaries available for the world or a `region`. If\n `boundary` is specified, get all available boundary polygons for the\n region specified (if any). This method is espeically useful for getting\n boundaries for a region and, with :py:meth:`CartoContext.data\n <cartoframes.conte...
217
false
CartoDB/cartoframes
data_boundaries
38,080
LDU_FT/fastai/fastai/_url_params
LDU_FT
[ "<BEGIN>\n## `xception`", "Preview version of Xception network. Not tested yet - use at own risk. No pretrained model yet.\n<END>", "<BEGIN>\n## `get_model`", "Method returns a RNN_Learner object, that wraps an instance of the RNN_Encoder module.", " Args:\n opt_fn (Optimizer): the torch o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _url_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _url_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Build Google Images Search Url params and return them as a string.
"Build Google Images Search Url params and return them as a string."
1,382
true
fastai/fastai
_url_params
38,081
LDU_FT/ly0/baidupcsapi/share
LDU_FT
[ "<BEGIN>\n## `__err_handler`", "百度网盘下载错误控制\n :param act: 出错时的行为, 有 download\n :param errno: 出错时的errno,这个要配合act才有实际意义\n :param callback: 返回时的调用函数, 为空时返回None\n :param args: 给callback函数的参数tuple\n :param kwargs: 给callback函数的带名参数字典", " 在本函数调用后一定可以解决提交过来的问题, 在外部不需要重复检查是否存在原问题...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the share API. 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 share API. 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...
创建一个文件的分享链接 :param file_ids: 要分享的文件fid列表 :type file_ids: list :param pwd: 分享密码,没有则没有密码 :type pwd: str :return: requests.Response 对象 .. note:: 返回正确 { "errno": 0, "request_id": 请求识别...
"创建一个文件的分享链接\n\n :param file_ids: 要分享的文件fid列表\n :type file_ids: list\n\n :param pwd: 分享密码,没有则没有密码\n :type pwd: str\n\n :return: requests.Response 对象\n\n .. note::\n 返回正确\n {\n \"errno\": 0,\n\n ...
222
false
ly0/baidupcsapi
share
38,082
LDU_FT/NiklasRosenstein/myo-python/decode
LDU_FT
[ "<BEGIN>\n## `encode`", "Encodes the number *value* to a MAC address ASCII string in binary form.\n Raises a #ValueError if *value* is a negative number or exceeds the MAC\n address range.\n<END>", "<BEGIN>\n## `decode`", "Decodes an ASCII encoded binary MAC address tring into a number.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode API. 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 decode API. 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 ...
Decodes an ASCII encoded binary MAC address tring into a number.
"Decodes an ASCII encoded binary MAC address tring into a number."
44
false
NiklasRosenstein/myo-python
decode
38,083
LDU_FT/etobella/python-xmlsig/calculate_signature
LDU_FT
[ "<BEGIN>\n## `sign`", "Signs a Signature node\n :param node: Signature node \n :type node: lxml.etree.Element\n :return: None\n<END>", "<BEGIN>\n## `fill_key_info`", "Fills the KeyInfo node\n :param key_info: KeyInfo node \n :type key_info: lxml.etree.Element\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_signature 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 calculate_signature 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...
Calculate or verifies the signature :param node: Signature node :type node: lxml.etree.Element :param sign: It checks if it must calculate or verify :type sign: bool :return: None
"Calculate or verifies the signature\n :param node: Signature node\n :type node: lxml.etree.Element\n :param sign: It checks if it must calculate or verify\n :type sign: bool\n :return: None"
36
false
etobella/python-xmlsig
calculate_signature
38,084
LDU_FT/sdispater/poetry/accepts
LDU_FT
[ "<BEGIN>\n## `path_to_url`", "Convert a path to a file: URL. The path will be made absolute and have\n quoted path parts.\n<END>", "<BEGIN>\n## `is_installable_dir`", "Return True if `path` is a directory containing a setup.py file.\n<END>", "<BEGIN>\n## `get_requires_for_build_wheel`", "Returns a lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accepts API. 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 accepts API. 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...
Determines if the given package matches this dependency.
"Determines if the given package matches this dependency."
107
false
sdispater/poetry
accepts
38,085
LDU_FT/wmayner/pyphi/eq_repertoires
LDU_FT
[ "<BEGIN>\n## `memory_full`", "Check if the memory is too full for further caching.\n<END>", "<BEGIN>\n## `cache`", "Memory-limited cache decorator.", " ``maxmem`` is a float between 0 and 100, inclusive, specifying the maximum\n percentage of physical memory that the cache can use.", " If ``typed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eq_repertoires API. 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 eq_repertoires API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return whether this concept has the same repertoires as another. .. warning:: This only checks if the cause and effect repertoires are equal as arrays; mechanisms, purviews, or even the nodes that the mechanism and purview indices refer to, might be different.
"Return whether this concept has the same repertoires as another.\n\n .. warning::\n This only checks if the cause and effect repertoires are equal as\n arrays; mechanisms, purviews, or even the nodes that the mechanism\n and purview indices refer to, might be different."
914
false
wmayner/pyphi
eq_repertoires
38,086
LDU_FT/wavefrontHQ/python-client/create_alert
LDU_FT
[ "<BEGIN>\n## `display`", "Sets the display of this Message.", " The form of display for this message # noqa: E501", " :param display: The display of this Message. # noqa: E501\n :type: str\n<END>", "<BEGIN>\n## `scope`", "Sets the scope of this Message.", " The audience sco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_alert API. 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 create_alert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Create a specific alert # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_alert(async_req=True) >>> result = thread.get() :param async_req bool ...
"Create a specific alert # noqa: E501\n\n # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.create_alert(async_req=True)\n >>> result = thread.get()\n\n :param async_r...
954
false
wavefrontHQ/python-client
create_alert
38,087
LDU_FT/mozilla/popcoder/preprocess
LDU_FT
[ "<BEGIN>\n## `preprocess`", "Processes popcorn JSON and builds a sane data model out of it\n @param data : The popcorn editor project json blob\n<END>", "<BEGIN>\n## `parse_duration`", "Corrects for any offsets that may have been created by loop and skip\n events\n<END>", "<BEGIN>\n## `trim`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preprocess API. 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 preprocess API. 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...
Processes popcorn JSON and builds a sane data model out of it @param data : The popcorn editor project json blob
"Processes popcorn JSON and builds a sane data model out of it\n @param data : The popcorn editor project json blob"
16
false
mozilla/popcoder
preprocess
38,088
LDU_FT/eventbrite/pysoa/to_dict
LDU_FT
[ "<BEGIN>\n## `dict_to_hashable`", "Takes a dict and returns an immutable, hashable version of that dict that can be used as a key in dicts or as a\n set value. Any two dicts passed in with the same content are guaranteed to return the same value. Any two dicts\n passed in with different content are guarante...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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...
Convert the tree node to its dictionary representation. :return: an expansion dictionary that represents the type and expansions of this tree node. :rtype dict[list[union[str, unicode]]]
"Convert the tree node to its dictionary representation.\n\n :return: an expansion dictionary that represents the type and expansions of this tree node.\n :rtype dict[list[union[str, unicode]]]"
178
false
eventbrite/pysoa
to_dict
38,089
LDU_FT/SmileyChris/easy-thumbnails/set
LDU_FT
[ "<BEGIN>\n## `default`", "Easy-thumbnails' default name processor.", " For example: ``source.jpg.100x100_q80_crop_upscale.jpg``\n<END>", "<BEGIN>\n## `alias`", "Generate filename based on thumbnail alias name (option ``THUMBNAIL_ALIASES``).", " For example: ``source.jpg.medium_large.jpg``\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add an alias. :param alias: The name of the alias to add. :param options: The easy-thumbnails options dictonary for this alias (should include ``size``). :param target: A field, model, or app to limit this alias to (optional).
"Add an alias.\n\n :param alias: The name of the alias to add.\n :param options: The easy-thumbnails options dictonary for this alias\n (should include ``size``).\n :param target: A field, model, or app to limit this alias to\n (optional)."
218
false
SmileyChris/easy-thumbnails
set
38,090
LDU_FT/lemieuxl/pyplink/_grouper
LDU_FT
[ "<BEGIN>\n## `next`", "Returns the next marker.", " Returns:\n tuple: The marker name as a string and its genotypes as a\n :py:class:`numpy.ndarray`.\n<END>", "<BEGIN>\n## `_read_current_marker`", "Reads the current marker and returns its genotypes.\n<END>", "<BEGIN>\n## `seek...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _grouper API. 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 _grouper API. 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...
Collect data into fixed-length chunks or blocks. Args: n (int): The size of the chunk. fillvalue (int): The fill value. Returns: iterator: An iterator over the chunks.
"Collect data into fixed-length chunks or blocks.\n\n Args:\n n (int): The size of the chunk.\n fillvalue (int): The fill value.\n\n Returns:\n iterator: An iterator over the chunks."
34
false
lemieuxl/pyplink
_grouper
38,091
LDU_FT/mattloper/chumpy/tree_iterator
LDU_FT
[ "<BEGIN>\n## `get_peak_mem`", "this returns peak memory use since process starts till the moment its called\n<END>", "<BEGIN>\n## `dfs_do_func_on_graph`", "invoke func on each node of the dr graph\n<END>", "<BEGIN>\n## `sparse_is_desireable`", "Examines a pair of matrices and determines if the result of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree_iterator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree_iterator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Generator function that traverse the dr tree start from this node (self).
"Generator function that traverse the dr tree start from this node (self)."
30
false
mattloper/chumpy
tree_iterator
38,092
LDU_FT/SavinaRoja/OpenAccess_EPUB/absolute_path
LDU_FT
[ "<BEGIN>\n## `make_EPUB`", "Standard workflow for creating an EPUB document.", " make_EPUB is used to produce an EPUB file from a parsed article. In addition\n to the article it also requires a path to the appropriate image directory\n which it will insert into the EPUB file, as well the output directo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the absolute_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the absolute_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Some paths must be made absolute, this will attempt to convert them.
"Some paths must be made absolute, this will attempt to convert them."
245
false
SavinaRoja/OpenAccess_EPUB
absolute_path
38,093
LDU_FT/click-contrib/click-configfile/clean
LDU_FT
[ "<BEGIN>\n## `find_packages_by_root_package`", "Better than excluding everything that is not needed,\n collect only what is needed.\n<END>", "<BEGIN>\n## `make_long_description`", "click_ is a framework to simplify writing composable commands for\n command-line tools. This package extends the click_ fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Cleanup temporary dirs/files to regain a clean state.
"Cleanup temporary dirs/files to regain a clean state."
181
false
click-contrib/click-configfile
clean
38,094
LDU_FT/HDI-Project/MLPrimitives/find_sequences
LDU_FT
[ "<BEGIN>\n## `resample`", "pd.DataFrame.resample adapter.", " Call the `df.resample` method on the given time_index\n and afterwards call the indicated aggregation.", " Optionally group the dataframe by the indicated columns before\n performing the resampling.", " If groupby option is used, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_sequences API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_sequences API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Find sequences of values that are above epsilon. This is done following this steps: * create a boolean mask that indicates which value are above epsilon. * shift this mask by one place, filing the empty gap with a False * compare the shifted mask with the original one to see if there are c...
"Find sequences of values that are above epsilon.\n\n This is done following this steps:\n\n * create a boolean mask that indicates which value are above epsilon.\n * shift this mask by one place, filing the empty gap with a False\n * compare the shifted mask with the original one to see if ther...
96
false
HDI-Project/MLPrimitives
find_sequences
38,095
LDU_FT/sporsh/carnifex/connect
LDU_FT
[ "<BEGIN>\n## `attr_string`", "Build a string consisting of 'key=value' substrings for each keyword\n argument in :kwargs:", " @param filterKeys: list of key names to ignore\n @param filterValues: list of values to ignore (e.g. None will ignore all\n key=value pairs that has that...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Starts a process and connect a protocol to it.
"Starts a process and connect a protocol to it."
61
false
sporsh/carnifex
connect
38,096
LDU_FT/KE-works/pykechain/remove_manager
LDU_FT
[ "<BEGIN>\n## `value`", "Value of a reference property.", " You can set the reference with a Part, Part id or None value.\n Ensure that the model of the provided part, matches the configured model", " :return: a :class:`Part` or None\n :raises APIError: When unable to find the assoc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_manager API. 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 remove_manager API. 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...
Remove a single manager to the scope. :param manager: single username to be added to the scope list of managers :type manager: basestring :raises APIError: when unable to update the scope manager
"Remove a single manager to the scope.\n\n :param manager: single username to be added to the scope list of managers\n :type manager: basestring\n :raises APIError: when unable to update the scope manager"
751
false
KE-works/pykechain
remove_manager
38,097
LDU_FT/wtsi-hgi/consul-lock/release_regex
LDU_FT
[ "<BEGIN>\n## `get_consul_configuration_from_environment`", "Gets configuration on how to connect to Consul from the environment.\n :return: the configuration derived from the environment\n :raises KeyError: if a required environment variable has not been set\n<END>", "<BEGIN>\n## `create_logger`", "Crea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release_regex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release_regex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Releases all locks with names that that match the given regular expression. :param key_regex: Python regular expression that captures the names of the locks that are to be released :return: the names of the locks that were released
"Releases all locks with names that that match the given regular expression.\n :param key_regex: Python regular expression that captures the names of the locks that are to be released\n :return: the names of the locks that were released"
55
false
wtsi-hgi/consul-lock
release_regex
38,098
LDU_FT/QuantEcon/QuantEcon.py/compute_sequence
LDU_FT
[ "<BEGIN>\n## `backward_induction`", "r\"\"\"\n Solve by backward induction a :math:`T`-period finite horizon\n discrete dynamic program with stationary reward and transition\n probability functions :math:`r` and :math:`q` and discount factor\n :math:`\\beta \\in [0, 1]`.", " The optimal value fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_sequence API. 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 compute_sequence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Simulate quantities and prices for the economy Parameters ---------- x0 : array_like(float) The initial state ts_length : scalar(int) Length of the simulation Pay : array_like(float) Vector to price an asset whose payout is Pay*xt
"Simulate quantities and prices for the economy\n\n Parameters\n ----------\n x0 : array_like(float)\n The initial state\n\n ts_length : scalar(int)\n Length of the simulation\n\n Pay : array_like(float)\n Vector to price an asset whose payout is Pay*x...
1,292
true
QuantEcon/QuantEcon.py
compute_sequence
38,099
LDU_FT/jmcgeheeiv/pyfakefs/lresolve
LDU_FT
[ "<BEGIN>\n## `_classify_directory_contents`", "Classify contents of a directory as files/directories.", " Args:\n filesystem: The fake filesystem used for implementation\n root: (str) Directory to examine.", " Returns:\n (tuple) A tuple consisting of three values: the directory exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lresolve API. 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 lresolve API. 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...
Search for the specified object, resolving only parent links. This is analogous to the stat/lstat difference. This resolves links *to* the object but not of the final object itself. Args: path: Specifies target FakeFile object to retrieve. Returns: The FakeFil...
"Search for the specified object, resolving only parent links.\n\n This is analogous to the stat/lstat difference. This resolves links\n *to* the object but not of the final object itself.\n\n Args:\n path: Specifies target FakeFile object to retrieve.\n\n Returns:\n T...
534
false
jmcgeheeiv/pyfakefs
lresolve
38,100
LDU_FT/arkottke/pysra/_estimate_strains
LDU_FT
[ "<BEGIN>\n## `_calc_strain_ref`", "Compute the reference strain using Equation (6).\n<END>", "<BEGIN>\n## `_calc_mod_reduc`", "Compute the shear modulus reduction using Equation (1).\n<END>", "<BEGIN>\n## `_calc_damping`", "Compute the damping ratio using Equation (16).\n<END>", "<BEGIN>\n## `relative_e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _estimate_strains API. 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 _estimate_strains API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Estimate the strains by running an EQL site response. This step was recommended in Section 8.3.1 of Zalachoris (2014).
"Estimate the strains by running an EQL site response.\n\n This step was recommended in Section 8.3.1 of Zalachoris (2014)."
111
false
arkottke/pysra
_estimate_strains
38,101
LDU_FT/rapidpro/expressions/_parse
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 _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 ...
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 ...
Returns a date, datetime or time depending on what information is available
"Returns a date, datetime or time depending on what information is available"
124
false
rapidpro/expressions
_parse
38,102
LDU_FT/linuxsoftware/ls.joyous/_allowAnotherAt
LDU_FT
[ "<BEGIN>\n## `getLocalTime`", "Get the time in the local timezone from date and time\n<END>", "<BEGIN>\n## `getLocalDateAndTime`", "Get the date and time in the local timezone from date and optionally time\n<END>", "<BEGIN>\n## `getLocalDatetime`", "Get a datetime in the local timezone from date and optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _allowAnotherAt API. 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 _allowAnotherAt API. 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 can only create one of these pages per site.
"You can only create one of these pages per site."
192
false
linuxsoftware/ls.joyous
_allowAnotherAt
38,103
LDU_FT/user-cont/conu/get_conditions
LDU_FT
[ "<BEGIN>\n## `clean`", "remove the directory we operated on", " :return: None\n<END>", "<BEGIN>\n## `initialize`", "create the directory if needed and configure it", " :return: None\n<END>", "<BEGIN>\n## `_set_selinux_context`", "Set SELinux context or fields using chcon program. Raises ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_conditions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_conditions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
get conditions through which the pod has passed :return: list of PodCondition enum or empty list
"get conditions through which the pod has passed\n :return: list of PodCondition enum or empty list"
487
false
user-cont/conu
get_conditions
38,104
LDU_FT/Rockhopper-Technologies/enlighten/get_csbi
LDU_FT
[ "<BEGIN>\n## `_check_bool`", "Used as an error handler for Windows calls\n Gets last error if call is not successful\n<END>", "<BEGIN>\n## `get_csbi`", "Returns a CONSOLE_SCREEN_BUFFER_INFO structure for the given console or stdout\n<END>", "<BEGIN>\n## `enable_vt_mode`", "Enables virtual terminal proc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_csbi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_csbi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns a CONSOLE_SCREEN_BUFFER_INFO structure for the given console or stdout
"Returns a CONSOLE_SCREEN_BUFFER_INFO structure for the given console or stdout"
104
false
Rockhopper-Technologies/enlighten
get_csbi
38,105
LDU_FT/pikepdf/pikepdf/_get_subelements
LDU_FT
[ "<BEGIN>\n## `encode_pdf_date`", "Encode Python datetime object as PDF date string", " From Adobe pdfmark manual:\n (D:YYYYMMDDHHmmSSOHH'mm')\n D: is an optional prefix. YYYY is the year. All fields after the year are\n optional. MM is the month (01-12), DD is the day (01-31), HH is the\n hour (0...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_subelements API. 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_subelements API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Gather the sub-elements attached to a node Gather rdf:Bag and and rdf:Seq into set and list respectively. For alternate languages values, take the first language only for simplicity.
"Gather the sub-elements attached to a node\n\n Gather rdf:Bag and and rdf:Seq into set and list respectively. For\n alternate languages values, take the first language only for\n simplicity."
104
false
pikepdf/pikepdf
_get_subelements
38,106
LDU_FT/offu/WeRoBot/get_users_by_tag
LDU_FT
[ "<BEGIN>\n## `make_view`", "为一个 BaseRoBot 生成 Flask view。", " Usage ::", " from werobot import WeRoBot", " robot = WeRoBot(token='token')", " @robot.handler\n def hello(message):\n return 'Hello World!'", " from flask import Flask\n from werobot.con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_users_by_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_users_by_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 ...
获取标签下粉丝列表 :param tag_id: 标签 ID :param next_open_id: 第一个拉取用户的 OPENID,默认从头开始拉取 :return: 返回的 JSON 数据包
"获取标签下粉丝列表\n\n :param tag_id: 标签 ID\n :param next_open_id: 第一个拉取用户的 OPENID,默认从头开始拉取\n :return: 返回的 JSON 数据包"
223
false
offu/WeRoBot
get_users_by_tag
38,107
LDU_FT/MaxHalford/prince/row_cosine_similarities
LDU_FT
[ "<BEGIN>\n## `row_contributions`", "Returns the row contributions towards each principal component.\n<END>", "<BEGIN>\n## `partial_row_coordinates`", "Returns the row coordinates for each group.\n<END>", "<BEGIN>\n## `transform`", "Computes the row principal coordinates of a dataset.", " Same as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the row_cosine_similarities 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 row_cosine_similarities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Returns the cosine similarities between the rows and their principal components. The row cosine similarities are obtained by calculating the cosine of the angle shaped by the row principal coordinates and the row principal components. This is calculated by squaring each row projection coordinat...
"Returns the cosine similarities between the rows and their principal components.\n\n The row cosine similarities are obtained by calculating the cosine of the angle shaped by\n the row principal coordinates and the row principal components. This is calculated by\n squaring each row projection coor...
36
false
MaxHalford/prince
row_cosine_similarities
38,108
LDU_FT/notifiers/notifiers/_resources
LDU_FT
[ "<BEGIN>\n## `handle_oneof`", "Custom handle of `oneOf` JSON schema validator. Tried to match primitive type and see if it should be allowed\n to be passed multiple timns into a command", " :param oneof_schema: `oneOf` JSON schema\n :return: Tuple of :class:`click.ParamType`, ``multiple`` flag and ``d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resources API. 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 _resources API. 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...
Callback func to display provider resources
"Callback func to display provider resources"
95
false
notifiers/notifiers
_resources
38,109
LDU_FT/pyfca/pyfca/respects
LDU_FT
[ "<BEGIN>\n## `L`", "recursively constructs L line for g; i = len(g)-1\n<END>", "<BEGIN>\n## `H`", "recursively constructs H line for g; i = len(g)-1\n<END>", "<BEGIN>\n## `UV_H`", "Constructs implications and intents based on H\n gw = g width\n Hg = H(g), g is the binary coding of the attribute set\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the respects API. 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 respects API. 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...
g is an int, where each bit is an attribute implication UV is ternary coded 1 = ∈V, 2 = ∈U, 0 otherwise g and UV have the same number of digits
"g is an int, where each bit is an attribute\n implication UV is ternary coded 1 = ∈V, 2 = ∈U, 0 otherwise\n g and UV have the same number of digits"
25
false
pyfca/pyfca
respects
38,110
LDU_FT/ShenggaoZhu/midict/_MI_setitem
LDU_FT
[ "<BEGIN>\n## `cvt_iter`", "Convert an iterator/generator to a tuple so that it can be iterated again.", " E.g., convert zip in PY3.\n<END>", "<BEGIN>\n## `convert_dict`", "recursively convert a normal Mapping `d` and it's values to a specified type\n (defaults to AttrDict)\n<END>", "<BEGIN>\n## `_ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _MI_setitem API. 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 _MI_setitem API. 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...
Separate __setitem__ function of MIMapping
"Separate __setitem__ function of MIMapping"
66
false
ShenggaoZhu/midict
_MI_setitem
38,111
LDU_FT/NLeSC/scriptcwl/to_obj
LDU_FT
[ "<BEGIN>\n## `load_steps`", "Return a dictionary containing Steps read from file.", " Args:\n steps_dir (str, optional): path to directory containing CWL files.\n step_file (str, optional): path or http(s) url to a single CWL file.\n step_list (list, optional): a list of directories, url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_obj API. 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_obj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the step as an dict that can be written to a yaml file. Returns: dict: yaml representation of the step.
"Return the step as an dict that can be written to a yaml file.\n\n Returns:\n dict: yaml representation of the step."
85
false
NLeSC/scriptcwl
to_obj
38,112
LDU_FT/harvard-nrg/yaxil/atomic_write
LDU_FT
[ "<BEGIN>\n## `splitarg`", "This function will split arguments separated by spaces or commas \n to be backwards compatible with the original ArcGet command line tool\n<END>", "<BEGIN>\n## `search`", "Search for DICOM files within a given directory and receive back a \n dictionary of {StudyInstanceUID: {S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the atomic_write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the atomic_write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Write a file atomically by writing the file content to a temporary location first, then renaming the file. TODO: this relies pretty heavily on os.rename to ensure atomicity, but os.rename does not silently overwrite files that already exist on Windows natively. For now, the functionality provide...
"Write a file atomically by writing the file content to a\n temporary location first, then renaming the file. \n \n TODO: this relies pretty heavily on os.rename to ensure atomicity, but \n os.rename does not silently overwrite files that already exist on \n Windows natively. For now, the functionality p...
71
false
harvard-nrg/yaxil
atomic_write
38,113
LDU_FT/NicolasLM/spinach/register_periodic_tasks
LDU_FT
[ "<BEGIN>\n## `_reset`", "Initialization that must happen before the arbiter is (re)started\n<END>", "<BEGIN>\n## `attach_tasks`", "Attach a set of tasks.", " A task cannot be scheduled or executed before it is attached to an\n Engine.", " >>> tasks = Tasks()\n >>> spin.attach_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_periodic_tasks 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 register_periodic_tasks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Register tasks that need to be scheduled periodically.
"Register tasks that need to be scheduled periodically."
93
false
NicolasLM/spinach
register_periodic_tasks
38,114
LDU_FT/mlenzen/collections-extended/move_to_end
LDU_FT
[ "<BEGIN>\n## `get`", "Return value with given key or index.", "\t\tIf no value is found, return d (None by default).\n<END>", "<BEGIN>\n## `pop`", "Remove and return value with given key or index (last item by default).", "\t\tIf key is not found, returns d if given,\n\t\totherwise raises KeyError or Inde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_to_end API. 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 move_to_end API. 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...
Move an existing element to the end (or beginning if last==False). Runs in O(N).
"Move an existing element to the end (or beginning if last==False).\n\n\t\tRuns in O(N)."
104
false
mlenzen/collections-extended
move_to_end
38,115
LDU_FT/asphalt-framework/asphalt/request_resource
LDU_FT
[ "<BEGIN>\n## `run_application`", "Configure logging and start the given root component in the default asyncio event loop.", " Assuming the root component was started successfully, the event loop will continue running\n until the process is terminated.", " Initializes the logging system first based on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Look up a resource in the chain of contexts. This is like :meth:`get_resource` except that if the resource is not already available, it will wait for one to become available. :param type: type of the requested resource :param name: name of the requested resource :return: the re...
"Look up a resource in the chain of contexts.\n\n This is like :meth:`get_resource` except that if the resource is not already available, it\n will wait for one to become available.\n\n :param type: type of the requested resource\n :param name: name of the requested resource\n :return...
143
false
asphalt-framework/asphalt
request_resource
38,116
LDU_FT/SectorLabs/django-localized-fields/resolve_object_property
LDU_FT
[ "<BEGIN>\n## `save`", "Saves this model instance to the database.\n<END>", "<BEGIN>\n## `to_python`", "Converts the value from a database value into a Python value.\n<END>", "<BEGIN>\n## `get_prep_value`", "Gets the value in a format to store into the database.\n<END>", "<BEGIN>\n## `formfield`", "Get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_object_property 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 resolve_object_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Resolves the value of a property on an object. Is able to resolve nested properties. For example, a path can be specified: 'other.beer.name' Raises: AttributeError: In case the property could not be resolved. Returns: The value of the specified property.
"Resolves the value of a property on an object.\n\n Is able to resolve nested properties. For example,\n a path can be specified:\n\n 'other.beer.name'\n\n Raises:\n AttributeError:\n In case the property could not be resolved.\n\n Returns:\n The value of the specified proper...
117
false
SectorLabs/django-localized-fields
resolve_object_property
38,117
LDU_FT/MultipedRobotics/pyxl320/makeBulkAnglePacket
LDU_FT
[ "<BEGIN>\n## `makeServoIDPacket`", "Given the current ID, returns a packet to set the servo to a new ID\n<END>", "<BEGIN>\n## `packetToDict`", "Given a packet, this turns it into a dictionary ... is this useful?", "\tin: packet, array of numbers\n\tout: dictionary (key, value)\n<END>", "<BEGIN>\n## `sweep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeBulkAnglePacket 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 makeBulkAnglePacket 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...
Write bulk angle information to servos. info = [[ID, angle], [ID, angle], ...]
"Write bulk angle information to servos.\n\n\tinfo = [[ID, angle], [ID, angle], ...]"
71
false
MultipedRobotics/pyxl320
makeBulkAnglePacket
38,118
LDU_FT/pymc-devs/pymc/setNumWorkers
LDU_FT
[ "<BEGIN>\n## `moral_graph`", "moral_graph(model,format='raw', prog='dot', path=None)", " Draws the moral graph for this model and writes it to path with filename name.\n Returns the pydot 'dot' object for further user manipulation.", " GraphViz and PyDot must be installed to use this function.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setNumWorkers API. 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 setNumWorkers API. 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...
Set number of worker threads to num_workers
"Set number of worker threads to num_workers"
1,025
true
pymc-devs/pymc
setNumWorkers
38,119
LDU_FT/FelixSchwarz/pymta/push
LDU_FT
[ "<BEGIN>\n## `_start_new_worker_process`", "Start a new child worker process which will listen on the given\n socket and return a reference to the new process.\n<END>", "<BEGIN>\n## `get_all_allowed_internal_commands`", "Returns an iterable which includes all allowed commands. This does\n not me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push API. 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 push API. 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...
Send a message to the peer (using the correct SMTP line terminators (usually only called from the SMTPSession).
"Send a message to the peer (using the correct SMTP line terminators\n (usually only called from the SMTPSession)."
27
false
FelixSchwarz/pymta
push
38,120
LDU_FT/pesaply/sarafu/get_transactions
LDU_FT
[ "<BEGIN>\n## `get_account_details`", "This method can be used in a number of scenarios:\n 1. When it is necessary to very account information\n 2. When there's a need to filter transactions by an account id\n 3. When account details (e.g. name of account) are needed\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_transactions API. 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_transactions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This method optionally takes the following extra keyword arguments: to_date: a datetime object representing the date the filter should end with from_date: a datetime object representing the date the filter should start from txn_ref: the transaction reference of a particular transaction ...
"This method optionally takes the following extra\n keyword arguments:\n to_date: a datetime object representing the date the filter should end with\n from_date: a datetime object representing the date the filter should start from\n txn_ref: the transaction reference of a particular transact...
30
false
pesaply/sarafu
get_transactions
38,121
LDU_FT/theno/utlz/filled_out_template
LDU_FT
[ "<BEGIN>\n## `flo`", "Return the string given by param formatted with the callers locals.\n<END>", "<BEGIN>\n## `_wrap_with`", "Color wrapper.", " Example:\n >>> blue = _wrap_with('34')\n >>> print(blue('text'))\n \\033[34mtext\\033[0m\n<END>", "<BEGIN>\n## `clean`", "Delete temp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filled_out_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filled_out_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. T...
Return content of file filename with applied substitutions.
"Return content of file filename with applied substitutions."
68
false
theno/utlz
filled_out_template
38,122
LDU_FT/yougov/vr.common/basename
LDU_FT
[ "<BEGIN>\n## `str_to_pool`", "Given a string containing an nginx upstream section, return the pool name\n and list of nodes.\n<END>", "<BEGIN>\n## `get_buildfile_path`", "Path to which a build tarball should be downloaded.\n<END>", "<BEGIN>\n## `_retry`", "Try to call f(*args, **kwargs) \"n\" times bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the basename API. 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 basename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return the name of the folder that you'd get if you cloned 'url' into the current working directory.
"Return the name of the folder that you'd get if you cloned 'url' into the\n current working directory."
49
false
yougov/vr.common
basename
38,123
LDU_FT/danpaquin/coinbasepro-python/sell
LDU_FT
[ "<BEGIN>\n## `get_account_history`", "List account activity. Account activity either increases or\n decreases your account balance.", " Entry type indicates the reason for the account change.\n * transfer:\tFunds moved to/from Coinbase to cbpro\n * match:\tFunds moved as a result of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sell API. 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 sell API. 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...
Place a sell order. This is included to maintain backwards compatibility with older versions of cbpro-Python. For maximum support from docstrings and function signatures see the order type-specific functions place_limit_order, place_market_order, and place_stop_order. Args: ...
"Place a sell order.\n\n This is included to maintain backwards compatibility with older versions\n of cbpro-Python. For maximum support from docstrings and function\n signatures see the order type-specific functions place_limit_order,\n place_market_order, and place_stop_order.\n\n A...
127
false
danpaquin/coinbasepro-python
sell
38,124
LDU_FT/openstack/swauth/match
LDU_FT
[ "<BEGIN>\n## `filter_factory`", "Returns a WSGI filter app for use with paste.deploy.\n<END>", "<BEGIN>\n## `make_pre_authed_request`", "Nearly the same as swift.common.wsgi.make_pre_authed_request\n except that this also always sets the 'swift.source' and user\n agent.", " Newer Swift ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Checks whether the user-provided key matches the user's credentials :param key: User-supplied key :param creds: User's stored credentials :param salt: Salt for hashing :param kwargs: Extra keyword args for compatibility reason with other auth_type classes ...
"Checks whether the user-provided key matches the user's credentials\n\n :param key: User-supplied key\n :param creds: User's stored credentials\n :param salt: Salt for hashing\n :param kwargs: Extra keyword args for compatibility reason with\n other auth_type classes\n...
133
false
openstack/swauth
match
38,125
LDU_FT/awslabs/sockeye/get_length_task_loss
LDU_FT
[ "<BEGIN>\n## `check_arg_compatibility`", "Check if some arguments are incompatible with each other.", " :param args: Arguments as returned by argparse.\n<END>", "<BEGIN>\n## `check_resume`", "Check if we should resume a broken training run.", " :param args: Arguments as returned by argparse.\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_length_task_loss 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_length_task_loss API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns a Loss instance. :param config: Loss configuration. :return: Instance implementing Loss.
"Returns a Loss instance.\n\n :param config: Loss configuration.\n :return: Instance implementing Loss."
1,056
true
awslabs/sockeye
get_length_task_loss
38,126
LDU_FT/ppb/pursuedpybear/_build_index
LDU_FT
[ "<BEGIN>\n## `on_start_scene`", "Start a new scene. The current scene pauses.\n<END>", "<BEGIN>\n## `on_stop_scene`", "Stop a running scene. If there's a scene on the stack, it resumes.\n<END>", "<BEGIN>\n## `on_replace_scene`", "Replace the running scene with a new one.\n<END>", "<BEGIN>\n## `register`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_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 extr...
Rebuild _module_file_index from sys.modules
"Rebuild _module_file_index from sys.modules"
53
false
ppb/pursuedpybear
_build_index
38,127
LDU_FT/rushter/heamy/xgb_progressbar
LDU_FT
[ "<BEGIN>\n## `concat`", "Concatenate a sequence of pandas or numpy objects into one entity.\n<END>", "<BEGIN>\n## `reshape_1d`", "If parameter is 1D row vector then convert it into 2D matrix.\n<END>", "<BEGIN>\n## `idx`", "Universal indexing for numpy and pandas objects.\n<END>", "<BEGIN>\n## `xgb_progr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xgb_progressbar API. 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 xgb_progressbar API. 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...
Progressbar for xgboost using tqdm library. Examples -------- >>> model = xgb.train(params, X_train, 1000, callbacks=[xgb_progress(1000), ])
"Progressbar for xgboost using tqdm library.\n\n Examples\n --------\n\n >>> model = xgb.train(params, X_train, 1000, callbacks=[xgb_progress(1000), ])"
91
false
rushter/heamy
xgb_progressbar
38,128
LDU_FT/OnroerendErfgoed/crabpy_pyramid/get_crab
LDU_FT
[ "<BEGIN>\n## `range_return`", "Determine what range of objects to return.", " Will check fot both `Range` and `X-Range` headers in the request and\n set both `Content-Range` and 'X-Content-Range' headers.", " :rtype: list\n<END>", "<BEGIN>\n## `set_http_caching`", "Set an HTTP Cache Control heade...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_crab API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_crab API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get the Crab Gateway :rtype: :class:`crabpy.gateway.crab.CrabGateway` # argument might be a config or a request
"Get the Crab Gateway\n\n :rtype: :class:`crabpy.gateway.crab.CrabGateway`\n # argument might be a config or a request"
72
false
OnroerendErfgoed/crabpy_pyramid
get_crab
38,129
LDU_FT/dedupeio/dedupe/getCanonicalRep
LDU_FT
[ "<BEGIN>\n## `getCentroid`", "Takes in a list of attribute values for a field,\n evaluates the centroid using the comparator,\n & returns the centroid (i.e. the 'best' value for the field)\n<END>", "<BEGIN>\n## `getCanonicalRep`", "Given a list of records within a duplicate cluster, constructs a\n ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCanonicalRep API. 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 getCanonicalRep API. 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...
Given a list of records within a duplicate cluster, constructs a canonical representation of the cluster by finding canonical values for each field
"Given a list of records within a duplicate cluster, constructs a\n canonical representation of the cluster by finding canonical\n values for each field"
136
false
dedupeio/dedupe
getCanonicalRep
38,130
LDU_FT/tensorflow/tensor2tensor/inputs
LDU_FT
[ "<BEGIN>\n## `paracrawl_v3_pairs`", "Generates raw (English, other) pairs from a ParaCrawl V3.0 data file.", " Args:\n paracrawl_file: A ParaCrawl V3.0 en-.. data file.\n Yields:\n Pairs of (sentence_en, sentence_xx), as Unicode strings.\n Raises:\n StopIteration: If the file ends while this method ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inputs API. 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 inputs API. 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 ...
Make Inputs for built-in datasets. Args: num_devices: how many devices to build the inputs for. dataset_name: a TFDS or T2T dataset name. If it's a T2T dataset name, prefix with "t2t_". data_dir: data directory. input_name: optional, name of the inputs from the dictionary. num_chunks: optio...
"Make Inputs for built-in datasets.\n\n Args:\n num_devices: how many devices to build the inputs for.\n dataset_name: a TFDS or T2T dataset name. If it's a T2T dataset name, prefix\n with \"t2t_\".\n data_dir: data directory.\n input_name: optional, name of the inputs from the dictionary.\n num_ch...
4,769
true
tensorflow/tensor2tensor
inputs
38,131
LDU_FT/cloudnull/turbolift/parse_auth_response
LDU_FT
[ "<BEGIN>\n## `start`", "Return a list of objects from the API for a container.\n<END>", "<BEGIN>\n## `_cdn`", "Retrieve a long list of all files in a container.", " :return final_list, list_count, last_obj:\n<END>", "<BEGIN>\n## `remove_dirs`", "Delete a directory recursively.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_auth_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_auth_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Parse the auth response and return the tenant, token, and username. :param auth_response: the full object returned from an auth call :returns: ``dict``
"Parse the auth response and return the tenant, token, and username.\n\n :param auth_response: the full object returned from an auth call\n :returns: ``dict``"
148
false
cloudnull/turbolift
parse_auth_response
38,132
LDU_FT/facebook/pyre-check/resolve_source_mapping
LDU_FT
[ "<BEGIN>\n## `log_time`", "Log the time it takes to run a function. It's sort of like timeit, but\n prettier.\n<END>", "<BEGIN>\n## `daemonize`", "We double-fork here to detach the daemon process from the parent.\n If we were to just fork the child as a daemon, we'd have to worry about the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_source_mapping 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 resolve_source_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns a mapping from absolute source path to absolute output path as specified by the sources object. Files are not guaranteed to exist.
"Returns a mapping from absolute source path to absolute output path as specified\n by the sources object. Files are not guaranteed to exist."
150
false
facebook/pyre-check
resolve_source_mapping
38,133
LDU_FT/anuragkumarak95/wordnet/generate_net
LDU_FT
[ "<BEGIN>\n## `paint`", "Utility func, for printing colorful logs in console...", " @args:\n --\n str : String to be modified.\n color : color code to which the string will be formed. default is 'r'=RED", " @returns:\n --\n str : final modified string with foreground color as per parameter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_net API. 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 generate_net API. 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...
Generate WordNetwork dict of Word() instance, and dump as a file if asked to. @Args: -- df : IDF value generated by find_tf_idf() tf_idf : TF-IDF value generated by find_tf_idf() dump_path : file_path where to dump network entities, standart format is '.wrnt' (default=None) @returns:...
"Generate WordNetwork dict of Word() instance, and dump as a file if asked to.\n\n @Args:\n --\n df : IDF value generated by find_tf_idf()\n tf_idf : TF-IDF value generated by find_tf_idf()\n dump_path : file_path where to dump network entities, standart format is '.wrnt' (default=None)\n\n ...
23
false
anuragkumarak95/wordnet
generate_net
38,134
LDU_FT/ARMmbed/icetea/stop
LDU_FT
[ "<BEGIN>\n## `init_process_dut`", "Initialize process type Dut as DutProcess or DutConsole.\n<END>", "<BEGIN>\n## `allocate`", "Allocates resources from available local devices.", " :param dut_configuration_list: List of ResourceRequirements objects\n :param args: Not used\n :return: Al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. 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 stop API. 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...
Stops and joins readthread. :return: Nothing
"Stops and joins readthread.\n\n :return: Nothing"
663
false
ARMmbed/icetea
stop
38,135
LDU_FT/python-astrodynamics/spacetrack/_find_controller
LDU_FT
[ "<BEGIN>\n## `check_git_unchanged`", "Check git to avoid overwriting user changes.\n<END>", "<BEGIN>\n## `check_staged`", "Check if there are 'changes to be committed' in the index.\n<END>", "<BEGIN>\n## `_raise_for_status`", "Raise an appropriate error for a given response.", " Arguments:\n res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_controller API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_controller API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Find first controller that matches given request class. Order is specified by the keys of ``SpaceTrackClient.request_controllers`` (:class:`~collections.OrderedDict`)
"Find first controller that matches given request class.\n\n Order is specified by the keys of\n ``SpaceTrackClient.request_controllers``\n (:class:`~collections.OrderedDict`)"
71
false
python-astrodynamics/spacetrack
_find_controller
38,136
LDU_FT/INM-6/hybridLFPy/_set_up_savefolder
LDU_FT
[ "<BEGIN>\n## `plot_signal_sum`", "on axes plot the signal contributions", " args:\n ::\n ax : matplotlib.axes.AxesSubplot object\n z : np.ndarray\n T : list, [tstart, tstop], which timeinterval\n ylims : list, set range of yaxis to scale with other plots\n fancy : bool, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_up_savefolder 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 _set_up_savefolder 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...
Create catalogs for different file output to clean up savefolder.
"Create catalogs for different file output to clean up savefolder."
412
false
INM-6/hybridLFPy
_set_up_savefolder
38,137
LDU_FT/jahuth/litus/dict_of_lists_to_list_of_dicts
LDU_FT
[ "<BEGIN>\n## `create_timing_signals`", "Creates a linear list/np.array of timestamps and a list of integers, specifying the sequence \n and number of levels.", " The levels are first rotated on the first dimension, then the second and so on. If the \n last dimension is -1, the number of lev...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_of_lists_to_list_of_dicts 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 dict_of_lists_to_list_of_dicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Takes a dictionary of lists and creates a list of dictionaries. If the lists are of unequal length, the remaining entries are set to `None`. Shorthand: `litus.dl2ld(..)`: >>> litus.dl2ld({'a': [1, 3, 1], 'b': [2, 4, 2], 'c': [3, 5, 3]}) [{'a': 1, 'b': 2, 'c': 3}, {'a': 3, 'b':...
"Takes a dictionary of lists and creates a list of dictionaries.\n If the lists are of unequal length, the remaining entries are set to `None`.\n\n Shorthand: `litus.dl2ld(..)`:\n\n >>> litus.dl2ld({'a': [1, 3, 1], 'b': [2, 4, 2], 'c': [3, 5, 3]})\n\n [{'a': 1, 'b': 2, 'c': 3}, {'a':...
190
false
jahuth/litus
dict_of_lists_to_list_of_dicts
38,138
LDU_FT/Diaoul/subliminal/guess_matches
LDU_FT
[ "<BEGIN>\n## `refine`", "Refine a video by searching `OMDb API <http://omdbapi.com/>`_.", " Several :class:`~subliminal.video.Episode` attributes can be found:", " * :attr:`~subliminal.video.Episode.series`\n * :attr:`~subliminal.video.Episode.year`\n * :attr:`~subliminal.video.Episode.serie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guess_matches API. 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 guess_matches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get matches between a `video` and a `guess`. If a guess is `partial`, the absence information won't be counted as a match. :param video: the video. :type video: :class:`~subliminal.video.Video` :param guess: the guess. :type guess: dict :param bool partial: whether or not the guess is partial....
"Get matches between a `video` and a `guess`.\n\n If a guess is `partial`, the absence information won't be counted as a match.\n\n :param video: the video.\n :type video: :class:`~subliminal.video.Video`\n :param guess: the guess.\n :type guess: dict\n :param bool partial: whether or not the guess is...
171
false
Diaoul/subliminal
guess_matches
38,139
LDU_FT/niolabs/python-xbee/_parse_samples_header
LDU_FT
[ "<BEGIN>\n## `_write`", "_write: binary data -> None", " Packages the given binary data in an API frame and writes the\n result to the serial port\n<END>", "<BEGIN>\n## `_build_command`", "_build_command: string (binary data) ... -> binary data", " _build_command will construct a comm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_samples_header 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 _parse_samples_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
_parse_samples_header: binary data in XBee IO data format -> (int, [int ...], [int ...], int, int) _parse_samples_header will read the first three bytes of the binary data given and will return the number of samples which follow, a list of enabled digital inputs, a list ...
"_parse_samples_header: binary data in XBee IO data format ->\n (int, [int ...], [int ...], int, int)\n\n _parse_samples_header will read the first three bytes of the\n binary data given and will return the number of samples which\n follow, a list of enabled digital inputs, a...
91
false
niolabs/python-xbee
_parse_samples_header
38,140
LDU_FT/awslabs/serverless-application-model/_traverse_dict
LDU_FT
[ "<BEGIN>\n## `deaggregate_record`", "Given a Kinesis record data that is decoded, deaggregate if it was packed using the\n Kinesis Producer Library into individual records. This method will be a no-op for any\n records that are not aggregated (but will still return them).", " decoded_data - the base64...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _traverse_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _traverse_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Traverse a dictionary to resolve intrinsic functions on every value :param input_dict: Input dictionary to traverse :param resolution_data: Data that the `resolver_method` needs to operate :param resolver_method: Method that can actually resolve an intrinsic function, if it detects one ...
"Traverse a dictionary to resolve intrinsic functions on every value\n\n :param input_dict: Input dictionary to traverse\n :param resolution_data: Data that the `resolver_method` needs to operate\n :param resolver_method: Method that can actually resolve an intrinsic function, if it detects one\n ...
672
false
awslabs/serverless-application-model
_traverse_dict
38,141
LDU_FT/aarongarrett/inspyred/parallel_evaluation_mp
LDU_FT
[ "<BEGIN>\n## `mutator`", "Return an inspyred mutator function based on the given function.", " This function generator takes a function that operates on only\n one candidate to produce a single mutated candidate. The generator \n handles the iteration over each candidate in the set to be mutated.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallel_evaluation_mp 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 parallel_evaluation_mp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Evaluate the candidates in parallel using ``multiprocessing``. This function allows parallel evaluation of candidate solutions. It uses the standard multiprocessing library to accomplish the parallelization. The function assigns the evaluation of each candidate to its own job, all of which are then di...
"Evaluate the candidates in parallel using ``multiprocessing``.\n\n This function allows parallel evaluation of candidate solutions.\n It uses the standard multiprocessing library to accomplish the \n parallelization. The function assigns the evaluation of each\n candidate to its own job, all of which are t...
390
false
aarongarrett/inspyred
parallel_evaluation_mp
38,142
LDU_FT/krinj/k-util/load_from_file
LDU_FT
[ "<BEGIN>\n## `interpolate_color`", "Linear interpolate two 3-channel colors, using channel based interpolation.\n<END>", "<BEGIN>\n## `interpolate`", "Linearly interpolate between two float values.\n<END>", "<BEGIN>\n## `filter_value`", "Linearly interpolate between two float values.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Read and reconstruct the data from a JSON file.
"Read and reconstruct the data from a JSON file."
30
false
krinj/k-util
load_from_file
38,143
LDU_FT/ytjia/utils-py/ts_to_dt_str
LDU_FT
[ "<BEGIN>\n## `class_check_para`", "force check accept and return,\n decorator, @class_check_para(accept=, returns=, mail=)\n :param kw:\n :return:\n<END>", "<BEGIN>\n## `decorator_info`", "Convenience function returns nicely formatted error/warning msg.\n :param f_name:\n :param expected:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ts_to_dt_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ts_to_dt_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
时间戳转换为日期字符串 Args: ts: 待转换的时间戳 dt_format: 目标日期字符串格式 Returns: 日期字符串
"时间戳转换为日期字符串\n Args:\n ts: 待转换的时间戳\n dt_format: 目标日期字符串格式\n\n Returns: 日期字符串"
31
false
ytjia/utils-py
ts_to_dt_str
38,144
LDU_FT/T-002/pycast/transform
LDU_FT
[ "<BEGIN>\n## `local_error`", "Calculates the error between the two given values.", " :param list originalValue: List containing the values of the original data.\n :param list calculatedValue: List containing the values of the calculated TimeSeries that\n corresponds to originalVal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. 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 transform API. 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 a new transformed matrix. :return: Returns a new transformed Matrix :rtype: Matrix
"Return a new transformed matrix.\n\n :return: Returns a new transformed Matrix\n :rtype: Matrix"
338
false
T-002/pycast
transform
38,145
LDU_FT/portantier/habu/cmd_b64
LDU_FT
[ "<BEGIN>\n## `cmd_arp_poison`", "Send ARP 'is-at' packets to each victim, poisoning their\n ARP tables for send the traffic to your system.", " Note: If you want a full working Man In The Middle attack, you need\n to enable the packet forwarding on your operating system to act like a\n router. You c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_b64 API. 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 cmd_b64 API. 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...
Encodes or decode data in base64, just like the command base64. \b $ echo awesome | habu.b64 YXdlc29tZQo= \b $ echo YXdlc29tZQo= | habu.b64 -d awesome
"Encodes or decode data in base64, just like the command base64.\n\n \\b\n $ echo awesome | habu.b64\n YXdlc29tZQo=\n\n \\b\n $ echo YXdlc29tZQo= | habu.b64 -d\n awesome"
304
false
portantier/habu
cmd_b64
38,146
LDU_FT/twisted/mantissa/locateChild
LDU_FT
[ "<BEGIN>\n## `createUser`", "Create a new, blank user account with the given name and domain and, if\n specified, with the given password.", " @type localpart: C{unicode}\n @param localpart: The local portion of the username. ie, the\n C{'alice'} in C{'alice@example.com'}.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the locateChild API. 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 locateChild API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Find the offering with the name matching the first segment and return a L{File} for its I{staticContentPath}.
"Find the offering with the name matching the first segment and return a\n L{File} for its I{staticContentPath}."
1,120
true
twisted/mantissa
locateChild
38,147
LDU_FT/eruvanos/openbrokerapi/serve
LDU_FT
[ "<BEGIN>\n## `check_plan_id`", "Checks that the plan_id exists in the catalog\n :return: boolean\n<END>", "<BEGIN>\n## `provision`", "Further readings `CF Broker API#Provisioning <https://docs.cloudfoundry.org/services/api.html#provisioning>`_", " :param instance_id: Instance id provided by th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serve API. 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 serve API. 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...
Starts flask with the given brokers. You can provide a list or just one ServiceBroker :param service_brokers: ServicesBroker for services to provide :param credentials: Username and password that will be required to communicate with service broker :param logger: Used for api logs. This will not influen...
"Starts flask with the given brokers.\n You can provide a list or just one ServiceBroker\n\n :param service_brokers: ServicesBroker for services to provide\n :param credentials: Username and password that will be required to communicate with service broker\n :param logger: Used for api logs. This will not i...
27
false
eruvanos/openbrokerapi
serve
38,148
LDU_FT/choderalab/pymbar/mbar_hessian
LDU_FT
[ "<BEGIN>\n## `read_file`", "Read contents of the specified file.", " Parameters:\n -----------\n filename : str\n The name of the file to be read", " Returns:\n lines : list of str\n The contents of the file, split by line\n<END>", "<BEGIN>\n## `getFreeEnergyDifferences`", "Get the dim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mbar_hessian API. 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 mbar_hessian API. 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...
Hessian of MBAR objective function. Parameters ---------- u_kn : np.ndarray, shape=(n_states, n_samples), dtype='float' The reduced potential energies, i.e. -log unnormalized probabilities N_k : np.ndarray, shape=(n_states), dtype='int' The number of samples in each state f_k : np.n...
"Hessian of MBAR objective function.\n\n Parameters\n ----------\n u_kn : np.ndarray, shape=(n_states, n_samples), dtype='float'\n The reduced potential energies, i.e. -log unnormalized probabilities\n N_k : np.ndarray, shape=(n_states), dtype='int'\n The number of samples in each state\n f...
533
false
choderalab/pymbar
mbar_hessian
38,149
LDU_FT/brutasse/graphite-api/squareRoot
LDU_FT
[ "<BEGIN>\n## `_find_paths`", "Recursively generates absolute paths whose components\n underneath current_dir match the corresponding pattern in\n patterns\n<END>", "<BEGIN>\n## `union_overlapping`", "Union any overlapping intervals in the given set.\n<END>", "<BEGIN>\n## `recurse`", "Recursi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the squareRoot API. 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 squareRoot API. 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...
Takes one metric or a wildcard seriesList, and computes the square root of each datapoint. Example:: &target=squareRoot(Server.instance01.threads.busy)
"Takes one metric or a wildcard seriesList, and computes the square root\n of each datapoint.\n\n Example::\n\n &target=squareRoot(Server.instance01.threads.busy)"
519
false
brutasse/graphite-api
squareRoot
38,150
LDU_FT/emirozer/bowshock/search_star
LDU_FT
[ "<BEGIN>\n## `search_target_obj`", "Query for a specific target:", " http://asterank.com/api/skymorph/search?<params>\n target\tTarget object (lookup in MPC).\n<END>", "<BEGIN>\n## `search_orbit`", "Query based on orbital elements:", " http://asterank.com/api/skymorph/search_orbit?<params>\n e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_star API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_star API. 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...
It is also possible to query the stars by label, here is an example of querying for the star labeled as Sun. http://star-api.herokuapp.com/api/v1/stars/Sun
"It is also possible to query the stars by label, here is an example of querying for the star labeled as Sun.\n\n http://star-api.herokuapp.com/api/v1/stars/Sun"
90
false
emirozer/bowshock
search_star
38,151
LDU_FT/kodexlab/reliure/deprecated
LDU_FT
[ "<BEGIN>\n## `add_field`", "Add a named field to the schema.", " .. Warning:: the field name should not contains spaces and should not\n start with an underscore.", " :param name: name of the new field\n :type name: str\n :param field: type instance for the field \n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deprecated API. 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 deprecated API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Decorator to notify that a fct is deprecated
"Decorator to notify that a fct is deprecated"
243
false
kodexlab/reliure
deprecated
38,152
LDU_FT/DallasMorningNews/django-datafreezer/clean
LDU_FT
[ "<BEGIN>\n## `clean`", "Verifies that beginning date is before ending date.\n<END>", "<BEGIN>\n## `get_success_url`", "Ensure the user-originating redirection URL is safe.\n<END>", "<BEGIN>\n## `form_valid`", "Security check complete. Log the user in.\n<END>", "<BEGIN>\n## `map_hubs_to_verticals`", "R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Verifies that beginning date is before ending date.
"Verifies that beginning date is before ending date."
63
false
DallasMorningNews/django-datafreezer
clean
38,153
LDU_FT/sunlightlabs/name-cleaver/kernel
LDU_FT
[ "<BEGIN>\n## `extract_suffix`", "Returns a tuple of (name, suffix), or (name, None) if no suffix could be found.\n As the method name indicates, the name is returned without the suffix.", " Suffixes deemed to be degrees are discarded.\n<END>", "<BEGIN>\n## `reverse_last_first`", "Takes a name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kernel API. 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 kernel API. 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 ...
The 'kernel' is an attempt to get at just the most pithy words in the name
"The 'kernel' is an attempt to get at just the most pithy words in the name"
18
false
sunlightlabs/name-cleaver
kernel
38,154
LDU_FT/jonhadfield/python-hosts/is_readable
LDU_FT
[ "<BEGIN>\n## `get_entry_type`", "Return the type of entry for the line of hosts file passed\n :param hosts_entry: A line from the hosts file\n :return: 'comment' | 'blank' | 'ipv4' | 'ipv6'\n<END>", "<BEGIN>\n## `str_to_hostentry`", "Transform a line from a hosts file into an instance of HostsEn...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_readable API. 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 is_readable API. 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...
Test if the supplied filesystem path can be read :param path: A filesystem path :return: True if the path is a file that can be read. Otherwise, False
"Test if the supplied filesystem path can be read\n :param path: A filesystem path\n :return: True if the path is a file that can be read. Otherwise, False"
28
false
jonhadfield/python-hosts
is_readable
38,155
LDU_FT/indietyp/django-automated-logging/emit
LDU_FT
[ "<BEGIN>\n## `validate_instance`", "Validating if the instance should be logged, or is excluded\n<END>", "<BEGIN>\n## `get_current_environ`", "Get current application and path object from middleware\n<END>", "<BEGIN>\n## `processor`", "This is the standard logging processor.", " This is used to send ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit API. 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 emit API. 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...
Handler instance that records to the database. try and except is preventing a circular import. Reference: http://stackoverflow.com/questions/4379042/django-circular-model-import-issue
"Handler instance that records to the database.\n\n try and except is preventing a circular import.\n Reference:\n http://stackoverflow.com/questions/4379042/django-circular-model-import-issue"
28
false
indietyp/django-automated-logging
emit
38,156
LDU_FT/thriftrw/thriftrw-python/p_map_type
LDU_FT
[ "<BEGIN>\n## `add_include`", "Adds a module as an included module.", " :param name:\n Name under which the included module should be exposed in the\n current module.\n :param module_spec:\n ModuleSpec of the included module.\n<END>", "<BEGIN>\n## `link`", "Link...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_map_type API. 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 p_map_type API. 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...
map_type : MAP '<' field_type ',' field_type '>' annotations
"map_type : MAP '<' field_type ',' field_type '>' annotations"
135
false
thriftrw/thriftrw-python
p_map_type
38,157
LDU_FT/ojii/django-multilingual-ng/get_field
LDU_FT
[ "<BEGIN>\n## `reorder_translation_formset_by_language_code`", "Shuffle the forms in the formset of multilingual model in the\n order of their language_ids.\n<END>", "<BEGIN>\n## `multilingual`", "Returns context variables containing information about available languages.\n<END>", "<BEGIN>\n## `multilingu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Just like django.contrib.admin.validation.get_field, but knows about translation models.
"Just like django.contrib.admin.validation.get_field, but knows\n about translation models."
58
false
ojii/django-multilingual-ng
get_field
38,158
LDU_FT/flyte/xbee-helper/next_frame_id
LDU_FT
[ "<BEGIN>\n## `raise_if_error`", "Checks a frame and raises the relevant exception if required.\n<END>", "<BEGIN>\n## `hex_to_int`", "Convert hex string like \"\\x0A\\xE3\" to 2787.\n<END>", "<BEGIN>\n## `adc_to_percentage`", "Convert the ADC raw value to a percentage.\n<END>", "<BEGIN>\n## `convert_adc`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_frame_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_frame_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 ext...
Gets a byte of the next valid frame ID (1 - 255), increments the internal _frame_id counter and wraps it back to 1 if necessary.
"Gets a byte of the next valid frame ID (1 - 255), increments the\n internal _frame_id counter and wraps it back to 1 if necessary."
25
false
flyte/xbee-helper
next_frame_id
38,159
LDU_FT/common-workflow-language/schema_salad/declare_type
LDU_FT
[ "<BEGIN>\n## `declare_type`", "Add this type to our collection, if needed.\n<END>", "<BEGIN>\n## `add_namespaces`", "Collect the provided namespaces, checking for conflicts.\n<END>", "<BEGIN>\n## `collect_namespaces`", "Walk through the metadata object, collecting namespace declarations.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the declare_type API. 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 declare_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add this type to our collection, if needed.
"Add this type to our collection, if needed."
53
false
common-workflow-language/schema_salad
declare_type
38,160
LDU_FT/jlmadurga/permabots/post
LDU_FT
[ "<BEGIN>\n## `process`", "Render value_template of the parameter using context.", " :param context: Processing context\n<END>", "<BEGIN>\n## `post`", "Process Telegram webhook.\n 1. Serialize Telegram message\n 2. Get an enabled Telegram bot\n 3. Create :class:`Update...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Add a new chat state --- serializer: MessengerChatStateSerializer responseMessages: - code: 401 message: Not authenticated - code: 400 message: Not valid request
"Add a new chat state\n ---\n serializer: MessengerChatStateSerializer\n responseMessages:\n - code: 401\n message: Not authenticated\n - code: 400\n message: Not valid request"
152
false
jlmadurga/permabots
post
38,161
LDU_FT/theelous3/asks/_formulate_body
LDU_FT
[ "<BEGIN>\n## `request`", "Base function for one time http requests.", " Args:\n method (str): The http method to use. For example 'GET'\n uri (str): The url of the resource.\n Example: 'https://example.com/stuff'\n kwargs: Any number of arguments supported, found here:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _formulate_body API. 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 _formulate_body API. 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...
Takes user supplied data / files and forms it / them appropriately, returning the contents type, len, and the request body its self. Returns: The str mime type for the Content-Type header. The len of the body. The body as a str.
"Takes user supplied data / files and forms it / them\n appropriately, returning the contents type, len,\n and the request body its self.\n\n Returns:\n The str mime type for the Content-Type header.\n The len of the body.\n The body as a str."
75
false
theelous3/asks
_formulate_body
38,162
LDU_FT/bobbyesh/word-fencer/parser_factory
LDU_FT
[ "<BEGIN>\n## `is_cjk_punctuation`", "Returns true if char is a punctuation mark in a CJK language.\n<END>", "<BEGIN>\n## `parser_factory`", "Returns a Parser object specific to the language specified by :param:`lang`.", " :param lang: A string naming the desired parser. See the keys in :var:`class_`\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parser_factory API. 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 parser_factory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a Parser object specific to the language specified by :param:`lang`. :param lang: A string naming the desired parser. See the keys in :var:`class_` for valid strings. :Example: >>> chinese_parser = parser_factory('zh-Hans') >>> isinstance(chinese_parser, ChineseSimplifiedParser) True...
"Returns a Parser object specific to the language specified by :param:`lang`.\n\n :param lang: A string naming the desired parser. See the keys in :var:`class_`\n for valid strings.\n\n :Example:\n\n >>> chinese_parser = parser_factory('zh-Hans')\n >>> isinstance(chinese_parser, ChineseSimplifiedParser)...
16
false
bobbyesh/word-fencer
parser_factory
38,163
LDU_FT/TrafficSenseMSD/SumoTools/setOffset
LDU_FT
[ "<BEGIN>\n## `getDistance2D`", "getDistance2D(double, double, double, double, boolean, boolean) -> double", " Returns the distance between the two coordinate pairs (x1,y1) and (x2,y2)", " If isGeo=True, coordinates are interpreted as longitude and latitude rather\n than cartesian coordina...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setOffset API. 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 setOffset API. 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...
setOffset(string, double, double) -> None Set the current offset for the given view.
"setOffset(string, double, double) -> None\n\n Set the current offset for the given view."
475
false
TrafficSenseMSD/SumoTools
setOffset
38,164
LDU_FT/lambdalisue/maidenhair/baseline
LDU_FT
[ "<BEGIN>\n## `load`", "Load data from file matched with given glob pattern.", " Return value will be a list of data unless :attr:`unite` is `True`.\n If :attr:`unite` is `True` then all data will be united into a single data.", " Parameters\n ----------\n pathname : string or list\n A gl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the baseline API. 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 baseline API. 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...
Substract baseline from the dataset Parameters ---------- dataset : list of numpy array list A list of numpy array list column : integer An index of column which will be proceeded fn : function A function which require data and return baseline. If it is `None`, the f...
"Substract baseline from the dataset\n\n Parameters\n ----------\n dataset : list of numpy array list\n A list of numpy array list\n column : integer\n An index of column which will be proceeded\n fn : function\n A function which require data and return baseline.\n If it is `N...
128
false
lambdalisue/maidenhair
baseline
38,165
LDU_FT/jbasko/configmanager/get
LDU_FT
[ "<BEGIN>\n## `values`", "Returns a mapping of items to their new values. The mapping includes only items whose value or raw string value\n has changed in the context.\n<END>", "<BEGIN>\n## `changes`", "Returns a mapping of items to their effective change objects which include the old values\n an...
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...
Returns config value. See Also: :meth:`.set` and :attr:`.value`
"Returns config value.\n\n See Also:\n :meth:`.set` and :attr:`.value`"
120
false
jbasko/configmanager
get
38,166
LDU_FT/alfred82santa/dirty-models/get_1st_attr_by_path
LDU_FT
[ "<BEGIN>\n## `recover_model_from_data`", "Function to reconstruct a model from DirtyModel basic information: original data, the modified and deleted\n fields.\n Necessary for pickle an object\n<END>", "<BEGIN>\n## `recover_dynamic_model_from_data`", "Function to reconstruct a model from DirtyModel basic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_1st_attr_by_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_1st_attr_by_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
It returns first value looked up by field path. Field path is dot-formatted string path: ``parent_field.child_field``. :param field_path: field path. It allows ``*`` as wildcard. :type field_path: str :param default: Default value if field does not exist. If it i...
"It returns first value looked up by field path.\n Field path is dot-formatted string path: ``parent_field.child_field``.\n\n :param field_path: field path. It allows ``*`` as wildcard.\n :type field_path: str\n :param default: Default value if field does not exist.\n ...
86
false
alfred82santa/dirty-models
get_1st_attr_by_path
38,167
LDU_FT/grahambell/pymoc/remove
LDU_FT
[ "<BEGIN>\n## `run`", "Main run method for PyMOC tool.", " Takes a list of command line arguments to process.", " Each operation is performed on a current \"running\" MOC\n object.\n<END>", "<BEGIN>\n## `read_moc`", "Read a file into the current running MOC object.", " If the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. 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 remove API. 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 ...
Remove cells at a given order from the MOC.
"Remove cells at a given order from the MOC."
165
false
grahambell/pymoc
remove
38,168
LDU_FT/klen/makesite/clean_cache
LDU_FT
[ "<BEGIN>\n## `migrate`", "Migration utils [create, run, undo, redo].\n<END>", "<BEGIN>\n## `update`", "Atomically update instance, setting field/value pairs from kwargs\n<END>", "<BEGIN>\n## `ls`", "List sites\n ----------", " Show list of installed sites.", " ::", " usage: makesite ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_cache API. 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 clean_cache API. 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...
Generate cache key and clean cached value.
"Generate cache key and clean cached value."
54
false
klen/makesite
clean_cache
38,169
LDU_FT/LeKono/pyhgnc/alias_symbol
LDU_FT
[ "<BEGIN>\n## `get_many2many_table`", "Creates a many-to-many table that links the given tables table1 and table2.", " :param str table1: Tablename of left hand table without TABLE_PREFIX.\n :param str table2: Tablename of right hand table without TABLE_PREFIX.\n :return:\n<END>", "<BEGIN>\n## `_limit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alias_symbol API. 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 alias_symbol API. 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...
Method to query :class:`.models.AliasSymbol` objects in database :param alias_symbol: alias symbol(s) :type alias_symbol: str or tuple(str) or None :param is_previous_symbol: flag for 'is previous' :type is_previous_symbol: bool or tuple(bool) or None :param hgnc_symbol: HGNC ...
"Method to query :class:`.models.AliasSymbol` objects in database\n\n :param alias_symbol: alias symbol(s)\n :type alias_symbol: str or tuple(str) or None\n\n :param is_previous_symbol: flag for 'is previous'\n :type is_previous_symbol: bool or tuple(bool) or None\n\n :param hgnc_symb...
248
false
LeKono/pyhgnc
alias_symbol
38,170
LDU_FT/getfleety/coralillo/reload
LDU_FT
[ "<BEGIN>\n## `snake_case`", "Takes a string that represents for example a class name and returns\n the snake case version of it. It is used for model-to-key conversion\n<END>", "<BEGIN>\n## `value_or_default`", "Returns the given value or the specified default value for this\n field\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reload API. 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 reload API. 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 ...
reloads this object so if it was updated in the database it now contains the new values
"reloads this object so if it was updated in the database it now\n contains the new values"
62
false
getfleety/coralillo
reload
38,171
LDU_FT/tox-dev/tox-travis/match_envs
LDU_FT
[ "<BEGIN>\n## `travis_after`", "Wait for all jobs to finish, then exit successfully.\n<END>", "<BEGIN>\n## `after_config_matches`", "Determine if this job should wait for the others.\n<END>", "<BEGIN>\n## `get_job_statuses`", "Wait for all the travis jobs to complete.", " Once the other jobs are compl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_envs API. 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 match_envs API. 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...
Determine the envs that match the desired_envs. If ``passthru` is True, and none of the declared envs match the desired envs, then the desired envs will be used verbatim. :param declared_envs: The envs that are declared in the tox config. :param desired_envs: The envs desired from the tox-travis confi...
"Determine the envs that match the desired_envs.\n\n If ``passthru` is True, and none of the declared envs match the\n desired envs, then the desired envs will be used verbatim.\n\n :param declared_envs: The envs that are declared in the tox config.\n :param desired_envs: The envs desired from the tox-travi...
51
false
tox-dev/tox-travis
match_envs
38,172