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/tsnaomi/finnsyll/apply_T11
LDU_FT
[ "<BEGIN>\n## `syllabify`", "Syllabify the given word, whether simplex or complex.\n<END>", "<BEGIN>\n## `apply_T2`", "There is a syllable boundary within a VV sequence of two nonidentical\n vowels that are not a genuine diphthong, e.g., [ta.e], [ko.et.taa].\n<END>", "<BEGIN>\n## `apply_T5`", "If a (V)V...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_T11 API. 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 apply_T11 API. 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...
If a VVV sequence contains a /u, y/-final diphthong and the third vowel is /i/, there is a syllable boundary between the diphthong and /i/.
"If a VVV sequence contains a /u, y/-final diphthong and the third vowel\n is /i/, there is a syllable boundary between the diphthong and /i/."
108
false
tsnaomi/finnsyll
apply_T11
34,973
LDU_FT/mosdef-hub/mbuild/load
LDU_FT
[ "<BEGIN>\n## `calc_dihedral`", "Calculates a dihedral angle", " Here, two planes are defined by (point1, point2, point3) and\n (point2, point3, point4). The angle between them is returned.", " Parameters\n ----------\n point1, point2, point3, point4 : array-like, shape=(3,), dtype=float\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load a file into an mbuild compound. Files are read using the MDTraj package unless the `use_parmed` argument is specified as True. Please refer to http://mdtraj.org/1.8.0/load_functions.html for formats supported by MDTraj and https://parmed.github.io/ParmEd/html/ readwrite.html for formats supported ...
"Load a file into an mbuild compound.\n\n Files are read using the MDTraj package unless the `use_parmed` argument is\n specified as True. Please refer to http://mdtraj.org/1.8.0/load_functions.html\n for formats supported by MDTraj and https://parmed.github.io/ParmEd/html/\n readwrite.html for formats supp...
463
false
mosdef-hub/mbuild
load
34,974
LDU_FT/chrisvoncsefalvay/diffiehellman/generate_private_key
LDU_FT
[ "<BEGIN>\n## `generate_private_key`", "Generates a private key of key_length bits and attaches it to the object as the __private_key variable.", " :return: void\n :rtype: void\n<END>", "<BEGIN>\n## `generate_public_key`", "Generates public key.", " :return: void\n :rtype: void\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_private_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_private_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generates a private key of key_length bits and attaches it to the object as the __private_key variable. :return: void :rtype: void
"Generates a private key of key_length bits and attaches it to the object as the __private_key variable.\n\n :return: void\n :rtype: void"
13
false
chrisvoncsefalvay/diffiehellman
generate_private_key
34,975
LDU_FT/jjjake/internetarchive/recursive_file_count
LDU_FT
[ "<BEGIN>\n## `prepare_metadata`", "Prepare a metadata dict for an\n :class:`S3PreparedRequest <S3PreparedRequest>` or\n :class:`MetadataPreparedRequest <MetadataPreparedRequest>` object.", " :type metadata: dict\n :param metadata: The metadata dict to be prepared.", " :type source_metadata: dic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recursive_file_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recursive_file_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Given a filepath or list of filepaths, return the total number of files.
"Given a filepath or list of filepaths, return the total number of files."
281
false
jjjake/internetarchive
recursive_file_count
34,976
LDU_FT/wuher/devil/_getData
LDU_FT
[ "<BEGIN>\n## `create`", "Create object from the given data.", " The given data may or may not have been validated prior to calling\n this function. This function will try its best in creating the object.\n If the resulting object cannot be produced, raises ``ValidationError``.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getData API. 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 _getData API. 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...
Check that data is acceptable and return it. Default behavior is that the data has to be of type `dict`. In derived classes this method could for example allow `None` or empty strings and just return empty dictionary. :raises: ``ValidationError`` if data is missing or wrong type ...
"Check that data is acceptable and return it.\n\n Default behavior is that the data has to be of type `dict`. In derived\n classes this method could for example allow `None` or empty strings and\n just return empty dictionary.\n\n :raises: ``ValidationError`` if data is missing or wrong type...
193
false
wuher/devil
_getData
34,977
LDU_FT/postlund/pyatv/media_kind
LDU_FT
[ "<BEGIN>\n## `lookup_tag`", "Look up a tag based on its key. Returns a DmapTag.\n<END>", "<BEGIN>\n## `scan_for_apple_tvs`", "Scan for Apple TVs using zeroconf (bonjour) and returns them.\n<END>", "<BEGIN>\n## `add_service`", "Handle callback from zeroconf when a service has been discovered.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the media_kind API. 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 media_kind API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Convert iTunes media kind to API representation.
"Convert iTunes media kind to API representation."
146
false
postlund/pyatv
media_kind
34,978
LDU_FT/miguelgrinberg/Flask-SocketIO/send
LDU_FT
[ "<BEGIN>\n## `emit`", "Emit a SocketIO event.", " This function emits a SocketIO event to one or more connected clients. A\n JSON blob can be attached to the event as payload. This is a function that\n can only be called from a SocketIO event handler, as in obtains some\n information from the curren...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. 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 send API. 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 one or more connected clients.
"Send a message to one or more connected clients."
87
false
miguelgrinberg/Flask-SocketIO
send
34,979
LDU_FT/adamchainz/django-perf-rec/sorted_names
LDU_FT
[ "<BEGIN>\n## `sql_fingerprint`", "Simplify a query, taking away exact values and fields selected.", " Imperfect but better than super explicit, value-dependent queries.\n<END>", "<BEGIN>\n## `match_keyword`", "Checks if the given token represents one of the given keywords\n<END>", "<BEGIN>\n## `_is_gro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sorted_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sorted_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Sort a list of names but keep the word 'default' first if it's there.
"Sort a list of names but keep the word 'default' first if it's there."
13
false
adamchainz/django-perf-rec
sorted_names
34,980
LDU_FT/hmmlearn/hmmlearn/log_mask_zero
LDU_FT
[ "<BEGIN>\n## `log_multivariate_normal_density`", "Compute the log probability under a multivariate Gaussian distribution.\n Parameters\n ----------\n X : array_like, shape (n_samples, n_features)\n List of n_features-dimensional data points. Each row corresponds to a\n single data point.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_mask_zero API. 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 log_mask_zero API. 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...
Computes the log of input probabilities masking divide by zero in log. Notes ----- During the M-step of EM-algorithm, very small intermediate start or transition probabilities could be normalized to zero, causing a *RuntimeWarning: divide by zero encountered in log*. This function masks this u...
"Computes the log of input probabilities masking divide by zero in log.\n\n Notes\n -----\n During the M-step of EM-algorithm, very small intermediate start\n or transition probabilities could be normalized to zero, causing a\n *RuntimeWarning: divide by zero encountered in log*.\n\n This function mas...
108
false
hmmlearn/hmmlearn
log_mask_zero
34,981
LDU_FT/daler/metaseq/imshow
LDU_FT
[ "<BEGIN>\n## `requirements_check`", "Ensure we have programs needed to download/manipulate the data\n<END>", "<BEGIN>\n## `_up_to_date`", "Make sure md5sum(fn) == md5, and if not, delete `fn`.\n<END>", "<BEGIN>\n## `logged_command`", "helper function to log a command and then run it\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the imshow API. 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 imshow API. 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-it-all function to help with plotting heatmaps Parameters ---------- arr : array-like x : 1D array X values to use. If None, use range(arr.shape[1]) ax : matplotlib.Axes If not None, then only plot the array on the provided axes. This will ignore any additional argume...
"Do-it-all function to help with plotting heatmaps\n\n Parameters\n ----------\n arr : array-like\n\n x : 1D array\n X values to use. If None, use range(arr.shape[1])\n\n ax : matplotlib.Axes\n If not None, then only plot the array on the provided axes. This will\n ignore any addit...
400
false
daler/metaseq
imshow
34,982
LDU_FT/eventbrite/pysoa/trees_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 trees_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trees_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 ext...
Convert a list of `TreeNode`s to an expansion dictionary. :param trees_list: A list of `TreeNode` instances :type trees_list: list[TreeNode] :return: An expansion dictionary that represents the expansions detailed in the provided expansions tree nodes :rtype: dict[union[str, unicode]]
"Convert a list of `TreeNode`s to an expansion dictionary.\n\n :param trees_list: A list of `TreeNode` instances\n :type trees_list: list[TreeNode]\n\n :return: An expansion dictionary that represents the expansions detailed in the provided expansions tree nodes\n :rtype: dict[union[str, uni...
178
false
eventbrite/pysoa
trees_to_dict
34,983
LDU_FT/gautammishra/lyft-rides-python-sdk/request_access_token
LDU_FT
[ "<BEGIN>\n## `_build_headers`", "Create headers for the request.\n Parameters\n method (str)\n HTTP method (e.g. 'POST').\n auth_session (Session)\n The Session object containing OAuth 2.0 credentials.\n Returns\n headers (dict)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_access_token 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 request_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Make an HTTP POST to request an access token. Parameters grant_type (str) Either 'client_credientials' (Client Credentials Grant) or 'authorization_code' (Authorization Code Grant). client_id (str) Your app's Client ID. client_secret (str) Your...
"Make an HTTP POST to request an access token.\n Parameters\n grant_type (str)\n Either 'client_credientials' (Client Credentials Grant)\n or 'authorization_code' (Authorization Code Grant).\n client_id (str)\n Your app's Client ID.\n client_secret (str)\n ...
52
false
gautammishra/lyft-rides-python-sdk
request_access_token
34,984
LDU_FT/jacobtomlinson/datapoint-python/_visibility_to_text
LDU_FT
[ "<BEGIN>\n## `connection`", "Connect to DataPoint with the given API key profile name.\n<END>", "<BEGIN>\n## `elements`", "Return a list of the elements which are not None\n<END>", "<BEGIN>\n## `__retry_session`", "Retry the connection using requests if it fails. Use this as a wrapper\n to request ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _visibility_to_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _visibility_to_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Convert observed visibility in metres to text used in forecast
"Convert observed visibility in metres to text used in forecast"
39
false
jacobtomlinson/datapoint-python
_visibility_to_text
34,985
LDU_FT/kcallin/mqtt-codec/decode_body
LDU_FT
[ "<BEGIN>\n## `encode_bytes`", "Encode a buffer length followed by the bytes of the buffer\n itself.", " Parameters\n ----------\n src_buf: bytes\n Source bytes to be encoded. Function asserts that\n 0 <= len(src_buf) <= 2**16-1.\n dst_file: file\n File-like object with write...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_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 extra...
Generates a `MqttPingreq` packet given a `MqttFixedHeader`. This method asserts that header.packet_type is `pingreq`. Parameters ---------- header: MqttFixedHeader f: file Object with a read method. Raises ------ DecodeError ...
"Generates a `MqttPingreq` packet given a\n `MqttFixedHeader`. This method asserts that header.packet_type\n is `pingreq`.\n\n Parameters\n ----------\n header: MqttFixedHeader\n f: file\n Object with a read method.\n\n Raises\n ------\n DecodeE...
116
false
kcallin/mqtt-codec
decode_body
34,986
LDU_FT/asyncdef/interfaces/defer_for
LDU_FT
[ "<BEGIN>\n## `cancel`", "Cancel an active coroutine and remove it from the schedule.", " Args:\n identifier (typing.Any): The identifier returned from add.\n exc_type (typing.Optional[type]): The exception type to throw into\n the coroutine on cancel. No exception is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the defer_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the defer_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Defer the execution of a function for some number of seconds. Args: wait (typing.Union[int, float]): A numeric value that represents the number of seconds that must pass before the callback becomes available for execution. All given values must be pos...
"Defer the execution of a function for some number of seconds.\n\n Args:\n wait (typing.Union[int, float]): A numeric value that represents\n the number of seconds that must pass before the callback\n becomes available for execution. All given values must be\n ...
24
false
asyncdef/interfaces
defer_for
34,987
LDU_FT/rtfd/sphinx-autoapi/read_file
LDU_FT
[ "<BEGIN>\n## `load`", "Load objects from the filesystem into the ``paths`` dictionary.\n<END>", "<BEGIN>\n## `read_file`", "Read file input into memory, returning deserialized objects", " :param path: Path of file to read\n :param \\**kwargs:\n * ignore (``list``): List of file patt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extract...
Read file input into memory, returning deserialized objects :param path: Path of file to read :param \**kwargs: * ignore (``list``): List of file patterns to ignore
"Read file input into memory, returning deserialized objects\n\n :param path: Path of file to read\n :param \\**kwargs:\n * ignore (``list``): List of file patterns to ignore"
169
false
rtfd/sphinx-autoapi
read_file
34,988
LDU_FT/Spirent/py-stcrestclient/chassis
LDU_FT
[ "<BEGIN>\n## `url`", "Construct a URL from the given components.\n<END>", "<BEGIN>\n## `download_file`", "Download a file.", " If a timeout defined, it is not a time limit on the entire download;\n rather, an exception is raised if the server has not issued a response\n for timeout seco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chassis API. 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 chassis API. 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...
Get list of chassis known to test session.
"Get list of chassis known to test session."
102
false
Spirent/py-stcrestclient
chassis
34,989
LDU_FT/altair-viz/pdvega/version
LDU_FT
[ "<BEGIN>\n## `infer_vegalite_type`", "From an array-like input, infer the correct vega typecode\n ('ordinal', 'nominal', 'quantitative', or 'temporal')", " Parameters\n ----------\n data: Numpy array or Pandas Series\n data for which the type will be inferred\n ordinal_threshold: integer (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Obtain the packge version from a python file e.g. pkg/__init__.py See <https://packaging.python.org/en/latest/single_source_version.html>.
"Obtain the packge version from a python file e.g. pkg/__init__.py\n See <https://packaging.python.org/en/latest/single_source_version.html>."
48
false
altair-viz/pdvega
version
34,990
LDU_FT/django-extensions/django-extensions/highlight
LDU_FT
[ "<BEGIN>\n## `_slug_strip`", "Clean up a slug by removing slug separator characters that occur at\n the beginning or end of a slug.", " If an alternate separator is used, it will also replace any instances\n of the default '-' separator with the new separator.\n<END>", "<BEGIN>\n## `to_py...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the highlight API. 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 highlight API. 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...
Tag to put a highlighted source code <pre> block in your code. This takes two arguments, the language and a little explaination message that will be generated before the code. The second argument is optional. Your code will be fed through pygments so you can use any language it supports. Usage:: ...
"Tag to put a highlighted source code <pre> block in your code.\n This takes two arguments, the language and a little explaination message\n that will be generated before the code. The second argument is optional.\n\n Your code will be fed through pygments so you can use any language it\n supports.\n\n ...
191
false
django-extensions/django-extensions
highlight
34,991
LDU_FT/kolypto/py-good/message
LDU_FT
[ "<BEGIN>\n## `message`", "Convenience decorator that applies [`Msg()`](#msg) to a callable.", " ```python\n from good import Schema, message", " @message(u'Need a number')\n def intify(v):\n return int(v)\n ```", " :param message: Error message to use instead\n :type message: uni...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message API. 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 message API. 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...
Convenience decorator that applies [`Msg()`](#msg) to a callable. ```python from good import Schema, message @message(u'Need a number') def intify(v): return int(v) ``` :param message: Error message to use instead :type message: unicode :param name: Override schema name as wel...
"Convenience decorator that applies [`Msg()`](#msg) to a callable.\n\n ```python\n from good import Schema, message\n\n @message(u'Need a number')\n def intify(v):\n return int(v)\n ```\n\n :param message: Error message to use instead\n :type message: unicode\n :param name: Override schem...
118
false
kolypto/py-good
message
34,992
LDU_FT/linkedin/Zopkio/better_exec_command
LDU_FT
[ "<BEGIN>\n## `make_machine_mapping`", "Convert the machine list argument from a list of names into a mapping of logical names to\n physical hosts. This is similar to the _parse_configs function but separated to provide the\n opportunity for extension and additional checking of machine access\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the better_exec_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the better_exec_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Uses paramiko to execute a command but handles failure by raising a ParamikoError if the command fails. Note that unlike paramiko.SSHClient.exec_command this is not asynchronous because we wait until the exit status is known :Parameter ssh: a paramiko SSH Client :Parameter command: the command to execute ...
"Uses paramiko to execute a command but handles failure by raising a ParamikoError if the command fails.\r\n Note that unlike paramiko.SSHClient.exec_command this is not asynchronous because we wait until the exit status is known\r\n\r\n :Parameter ssh: a paramiko SSH Client\r\n :Parameter command: the command to ex...
85
false
linkedin/Zopkio
better_exec_command
34,993
LDU_FT/0101/pipetools/pipe_util
LDU_FT
[ "<BEGIN>\n## `pipe_util`", "Decorator that handles X objects and partial application for pipe-utils.\n<END>", "<BEGIN>\n## `auto_string_formatter`", "Decorator that handles automatic string formatting.", " By converting a string argument to a function that does formatting on said\n string.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pipe_util API. 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 pipe_util API. 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...
Decorator that handles X objects and partial application for pipe-utils.
"Decorator that handles X objects and partial application for pipe-utils."
46
false
0101/pipetools
pipe_util
34,994
LDU_FT/dragnet-org/dragnet/fit
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit :class`Extractor` features and model to a training dataset.", " Args:\n blocks (List[Block])\n labels (``np.ndarray``)\n weights (``np.ndarray``)", " Returns:\n :class`Extractor`\n<END>", "<BEGIN>\n## `get_html_labels_weight...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. 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 fit API. 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...
Fit :class`Extractor` features and model to a training dataset. Args: blocks (List[Block]) labels (``np.ndarray``) weights (``np.ndarray``) Returns: :class`Extractor`
"Fit :class`Extractor` features and model to a training dataset.\n\n Args:\n blocks (List[Block])\n labels (``np.ndarray``)\n weights (``np.ndarray``)\n\n Returns:\n :class`Extractor`"
134
false
dragnet-org/dragnet
fit
34,995
LDU_FT/blockstack/virtualchain/script_hex_to_address
LDU_FT
[ "<BEGIN>\n## `lpad`", "Left-pad a given string (msg) with a character (symbol) for a given number of bytes (length).\n Return the padded string\n<END>", "<BEGIN>\n## `changebase`", "Change a string's characters from one base to another.\n Return the re-encoded string\n<END>", "<BEGIN>\n## `num_to_var_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the script_hex_to_address 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 script_hex_to_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
High-level API call (meant to be blockchain agnostic) Examine a script (hex-encoded) and extract an address. Return the address on success Return None on error
"High-level API call (meant to be blockchain agnostic)\n Examine a script (hex-encoded) and extract an address.\n Return the address on success\n Return None on error"
491
false
blockstack/virtualchain
script_hex_to_address
34,996
LDU_FT/ministryofjustice/money-to-prisoners-common/get_client_token
LDU_FT
[ "<BEGIN>\n## `get_form_errors`", "Django form errors do not obey natural field order,\n this template tag returns non-field and field-specific errors\n :param form: the form instance\n<END>", "<BEGIN>\n## `sub_nav`", "Sub-nav displayed below proposition header\n - creates alternate language links if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_client_token API. 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_client_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Requests and stores the NOMIS API client token from mtp-api
"Requests and stores the NOMIS API client token from mtp-api"
84
false
ministryofjustice/money-to-prisoners-common
get_client_token
34,997
LDU_FT/CenturyLinkCloud/clc-python-sdk/GetNetworkDetails
LDU_FT
[ "<BEGIN>\n## `SetCredentials`", "Establish API username and password associated with APIv2 commands.\n<END>", "<BEGIN>\n## `get_session`", "Start a session with the given parameters", "\tUse instead of SetCredentials if you need a session object to avoid the use of global credentials.", "\tReturns a sessi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetNetworkDetails API. 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 GetNetworkDetails API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Gets the details for a Network and its IP Addresses. https://t3n.zendesk.com/entries/21726312-Get-Network-Details :param network: network name :param alias: short code for a particular account. If none will use account's default alias :param location: datacenter where group resides. If none will use account...
"Gets the details for a Network and its IP Addresses.\n\n\t\thttps://t3n.zendesk.com/entries/21726312-Get-Network-Details\n\n\t\t:param network: network name\n\t\t:param alias: short code for a particular account. If none will use account's default alias\n\t\t:param location: datacenter where group resides. If none w...
402
false
CenturyLinkCloud/clc-python-sdk
GetNetworkDetails
34,998
LDU_FT/martinpitt/python-dbusmock/GetAll
LDU_FT
[ "<BEGIN>\n## `AddAdapter`", "Convenience method to add a Bluetooth adapter", " You have to specify a device name which must be a valid part of an object\n path, e. g. \"hci0\", and an arbitrary system name (pretty hostname).", " Returns the new object path.\n<END>", "<BEGIN>\n## `AddDevice`", "Co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetAll API. 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 GetAll API. 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 ...
Standard D-Bus API for getting all property values
"Standard D-Bus API for getting all property values"
188
false
martinpitt/python-dbusmock
GetAll
34,999
LDU_FT/tisimst/pyDOE/star
LDU_FT
[ "<BEGIN>\n## `pbdesign`", "Generate a Plackett-Burman design\r", " Parameter\r\n ---------\r\n n : int\r\n The number of factors to create a matrix for.\r", " Returns\r\n -------\r\n H : 2d-array\r\n An orthogonal design matrix with n columns, one for each factor, and\r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Create the star points of various design matrices Parameters ---------- n : int The number of variables in the design Optional -------- alpha : str Available values are 'faced' (default), 'orthogonal', or 'rotatable' center : array A 1-by-2 array...
"Create the star points of various design matrices\r\n \r\n Parameters\r\n ----------\r\n n : int\r\n The number of variables in the design\r\n \r\n Optional\r\n --------\r\n alpha : str\r\n Available values are 'faced' (default), 'orthogonal', or 'rotatable'\r\n center : array\...
96
false
tisimst/pyDOE
star
35,000
LDU_FT/BerkeleyAutomation/autolab_core/_check_valid_data
LDU_FT
[ "<BEGIN>\n## `copy`", "Returns a copy of the RigidTransform.", " Returns\n -------\n :obj:`RigidTransform`\n A deep copy of the RigidTransform.\n<END>", "<BEGIN>\n## `_check_valid_rotation`", "Checks that the given rotation matrix is valid.\n<END>", "<BEGIN>\n## `_check_val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_valid_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_valid_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Checks that the incoming data is a 3 x #elements ndarray of normal vectors. Parameters ---------- data : :obj:`numpy.ndarray` The data to verify. Raises ------ ValueError If the data is not of the correct shape or type, or if the vectors ...
"Checks that the incoming data is a 3 x #elements ndarray of normal\n vectors.\n\n Parameters\n ----------\n data : :obj:`numpy.ndarray`\n The data to verify.\n\n Raises\n ------\n ValueError\n If the data is not of the correct shape or type, or if ...
518
false
BerkeleyAutomation/autolab_core
_check_valid_data
35,001
LDU_FT/r4fek/django-cassandra-engine/_give_columns_django_field_attributes
LDU_FT
[ "<BEGIN>\n## `_discover_models`", "Return a dict containing a list of cassandra.cqlengine.Model classes\n within installed App.\n<END>", "<BEGIN>\n## `django_table_names`", "Returns a list of all table names that have associated cqlengine models\n and are present in settings.INSTALLED_APPS.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _give_columns_django_field_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _give_columns_django_field_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
Add Django Field attributes to each cqlengine.Column instance. So that the Django Options class may interact with it as if it were a Django Field.
"Add Django Field attributes to each cqlengine.Column instance.\n\n So that the Django Options class may interact with it as if it were\n a Django Field."
37
false
r4fek/django-cassandra-engine
_give_columns_django_field_attributes
35,002
LDU_FT/PyThaiNLP/pythainlp/tag
LDU_FT
[ "<BEGIN>\n## `spell`", ":param str word: word to check spelling\n :param str engine:\n * pn - Peter Norvig's algorithm (default)\n :return: list of words\n<END>", "<BEGIN>\n## `get_corpus`", "Read corpus from file and return a frozenset", " :param string filename: file corpus\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
รับค่าเป็น ''list'' คืนค่าเป็น ''list'' เช่น [('คำ', 'ชนิดคำ'), ('คำ', 'ชนิดคำ'), ...]
"รับค่าเป็น ''list'' คืนค่าเป็น ''list'' เช่น [('คำ', 'ชนิดคำ'), ('คำ', 'ชนิดคำ'), ...]"
190
false
PyThaiNLP/pythainlp
tag
35,003
LDU_FT/ecederstrand/exchangelib/post_ratelimited
LDU_FT
[ "<BEGIN>\n## `wrap`", "Generate the necessary boilerplate XML for a raw SOAP request. The XML is specific to the server version.\n ExchangeImpersonation allows to act as the user we want to impersonate.\n<END>", "<BEGIN>\n## `get_auth_instance`", "Returns an *Auth instance suitable for the requests package...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_ratelimited API. 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 post_ratelimited API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
There are two error-handling policies implemented here: a fail-fast policy intended for stand-alone scripts which fails on all responses except HTTP 200. The other policy is intended for long-running tasks that need to respect rate-limiting errors from the server and paper over outages of up to 1 hour. Wra...
"There are two error-handling policies implemented here: a fail-fast policy intended for stand-alone scripts which\n fails on all responses except HTTP 200. The other policy is intended for long-running tasks that need to respect\n rate-limiting errors from the server and paper over outages of up to 1 hour.\n\n ...
83
false
ecederstrand/exchangelib
post_ratelimited
35,004
LDU_FT/ryanmcgrath/twython/create_metadata
LDU_FT
[ "<BEGIN>\n## `update_status_with_media`", "Updates the authenticating user's current status and attaches media\n for upload. In other words, it creates a Tweet with a picture attached.", " Docs:\n https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-updat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_metadata API. 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...
Adds metadata to a media element, such as image descriptions for visually impaired. Docs: https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-metadata-create
"Adds metadata to a media element, such as image descriptions for visually impaired.\n\n Docs:\n https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-metadata-create"
80
false
ryanmcgrath/twython
create_metadata
35,005
LDU_FT/Genida/dependenpy/as_dict
LDU_FT
[ "<BEGIN>\n## `cast`", "Cast a set of keys and an array to a Matrix object.\n<END>", "<BEGIN>\n## `connect_to`", "Connect this vertex to another one.", " Args:\n vertex (Vertex): vertex to connect to.\n weight (int): weight of the edge.", " Returns:\n Edge: th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_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 as_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...
Return the dependencies as a dictionary. Returns: dict: dictionary of dependencies.
"Return the dependencies as a dictionary.\n\n Returns:\n dict: dictionary of dependencies."
130
false
Genida/dependenpy
as_dict
35,006
LDU_FT/VisualOps/cli/remove_container
LDU_FT
[ "<BEGIN>\n## `create_app`", "insert app record when stack run as a app\n<END>", "<BEGIN>\n## `create_container`", "insert container record when create container\n<END>", "<BEGIN>\n## `get_app_data`", "get app data ( include name and app_data )\n<END>", "<BEGIN>\n## `_get_config`", "Get user docker con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_container API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_container API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Removes a container from a docker installation container Container id to remove force By default, remove a running container, set this to notremove it unconditionally v verbose mode Return boolean
"Removes a container from a docker installation\n\n container\n Container id to remove\n force\n By default, remove a running container, set this\n to notremove it unconditionally\n v\n verbose mode\n\n Return boolean"
90
false
VisualOps/cli
remove_container
35,007
LDU_FT/numberoverzero/bloop/reformat_record
LDU_FT
[ "<BEGIN>\n## `ordered`", "Return sorted version of nested dicts/lists for comparing.", " Modified from:\n http://stackoverflow.com/a/25851972\n<END>", "<BEGIN>\n## `dump_key`", "dump the hash (and range, if there is one) key(s) of an object into\n a dynamo-friendly format.", " returns {dynamo_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reformat_record API. 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 reformat_record API. 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...
Repack a record into a cleaner structure for consumption.
"Repack a record into a cleaner structure for consumption."
288
false
numberoverzero/bloop
reformat_record
35,008
LDU_FT/thombashi/pytablereader/to_table_data
LDU_FT
[ "<BEGIN>\n## `load`", "Extract tabular data as |TableData| instances from a CSV file.\n |load_source_desc_file|", " :return:\n Loaded table data.\n |load_table_name_desc|", " =================== ========================================\n Format specif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_table_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_table_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
:raises ValueError: :raises pytablereader.error.ValidationError:
":raises ValueError:\n :raises pytablereader.error.ValidationError:"
140
false
thombashi/pytablereader
to_table_data
35,009
LDU_FT/neovim/pynvim/connect_tcp
LDU_FT
[ "<BEGIN>\n## `connection_made`", "Used to signal `asyncio.Protocol` of a successful connection.\n<END>", "<BEGIN>\n## `data_received`", "Used to signal `asyncio.Protocol` of incoming data.\n<END>", "<BEGIN>\n## `pipe_data_received`", "Used to signal `asyncio.SubprocessProtocol` of incoming data.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_tcp API. 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 connect_tcp API. 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...
Connect to tcp/ip `address`:`port`. Delegated to `_connect_tcp`.
"Connect to tcp/ip `address`:`port`. Delegated to `_connect_tcp`."
139
false
neovim/pynvim
connect_tcp
35,010
LDU_FT/splitkeycoffee/pyhottop/set_drum_motor
LDU_FT
[ "<BEGIN>\n## `_generate_config`", "Generate a configuration that can be sent to the Hottop roaster.", " Configuration settings need to be represented inside of a byte array\n that is then written to the serial interface. Much of the configuration\n is static, but control settings are also i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_drum_motor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_drum_motor API. 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...
Set the drum motor config. :param drum_motor: Value to set the drum motor :type drum_motor: bool :returns: None :raises: InvalidInput
"Set the drum motor config.\n\n :param drum_motor: Value to set the drum motor\n :type drum_motor: bool\n :returns: None\n :raises: InvalidInput"
89
false
splitkeycoffee/pyhottop
set_drum_motor
35,011
LDU_FT/vedvyas/doxytag2zealdb/get_name
LDU_FT
[ "<BEGIN>\n## `set_property`", "Set a new (or updating existing) key value pair.", " Args:\n key: A string containing the key namespace\n value: A str, int, or bool value", " Raises:\n NotImplementedError: an unsupported value-type was provided\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Extract and return a representative "name" from a tag. Override as necessary. get_name's output can be controlled through keyword arguments that are provided when initializing a TagProcessor. For instance, a member of a class or namespace can have its parent scope included in the name b...
"Extract and return a representative \"name\" from a tag.\n\n Override as necessary. get_name's output can be controlled through\n keyword arguments that are provided when initializing a\n TagProcessor. For instance, a member of a class or namespace can have\n its parent scope included in th...
50
false
vedvyas/doxytag2zealdb
get_name
35,012
LDU_FT/datosgobar/textar/classify
LDU_FT
[ "<BEGIN>\n## `make_classifier`", "Entrenar un clasificador SVM sobre los textos cargados.", " Crea un clasificador que se guarda en el objeto bajo el nombre `name`.", " Args:\n name (str): Nombre para el clasidicador.\n ids (list): Se espera una lista de N ids de textos ya ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the classify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the classify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Usar un clasificador SVM para etiquetar textos nuevos. Args: classifier_name (str): Nombre del clasidicador a usar. examples (list or str): Se espera un ejemplo o una lista de ejemplos a clasificar en texto plano o en ids. max_labels (int, optional): Cantidad...
"Usar un clasificador SVM para etiquetar textos nuevos.\n\n Args:\n classifier_name (str): Nombre del clasidicador a usar.\n examples (list or str): Se espera un ejemplo o una lista de\n ejemplos a clasificar en texto plano o en ids.\n max_labels (int, optional): C...
24
false
datosgobar/textar
classify
35,013
LDU_FT/Saledddar/pyunet/load_method
LDU_FT
[ "<BEGIN>\n## `add_to_path`", "Adds a path to python paths and removes it after the 'with' block ends\n<END>", "<BEGIN>\n## `find_file_regex`", "Finds all the files with the specified root directory with the name matching the regex expression.\n Args :\n root_dir : The root ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns an instance of the method specified. Args : path : The path to the module contianing the method or function. method : The name of the function. class_name : The name of the class if the funtion is a method. instance_creator: The na...
"Returns an instance of the method specified.\n Args :\n path : The path to the module contianing the method or function.\n method : The name of the function.\n class_name : The name of the class if the funtion is a method.\n instance_creator: ...
18
false
Saledddar/pyunet
load_method
35,014
LDU_FT/urbn/Caesium/raise_error
LDU_FT
[ "<BEGIN>\n## `load_json`", "Load JSON from the request body and store them in\n self.request.arguments, like Tornado does by default for POSTed form\n parameters.", " If JSON cannot be decoded", " :raises ValueError: JSON Could not be decoded\n<END>", "<BEGIN>\n## `get_json_argum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raise_error API. 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 raise_error API. 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...
Sets an error status and returns a message to the user in JSON format :param int status: The status code to use :param str message: The message to return in the JSON response
"Sets an error status and returns a message to the user in JSON format\n\n :param int status: The status code to use\n :param str message: The message to return in the JSON response"
157
false
urbn/Caesium
raise_error
35,015
LDU_FT/phac-nml/sistr_cmd/seq_int_arr
LDU_FT
[ "<BEGIN>\n## `parse_cgmlst_alleles`", "Parse cgMLST alleles from fasta file\n cgMLST FASTA file must have a header format of \">{marker name}|{allele name}\"", " Args:\n cgmlst_fasta (str): cgMLST fasta file path", " Returns:\n dict of list: Marker name to list of allele sequences\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seq_int_arr API. 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 seq_int_arr API. 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...
Convert list of ACGT strings to matix of 1-4 ints Args: seqs (list of str): nucleotide sequences with only 'ACGT' characters Returns: numpy.array of int: matrix of integers from 1 to 4 inclusive representing A, C, G, and T str: nucleotide sequence string
"Convert list of ACGT strings to matix of 1-4 ints\n\n Args:\n seqs (list of str): nucleotide sequences with only 'ACGT' characters\n\n Returns:\n numpy.array of int: matrix of integers from 1 to 4 inclusive representing A, C, G, and T\n str: nucleotide sequence string"
148
false
phac-nml/sistr_cmd
seq_int_arr
35,016
LDU_FT/gebn/wood/is_modified
LDU_FT
[ "<BEGIN>\n## `_normalise_path`", "Ensures a path is parsed.", " :param path: A path string or Path object.\n :return: The path as a Path object.\n<END>", "<BEGIN>\n## `root`", "Retrieve a root directory object from a path.", " :param path: The path string or Path object.\n :return: The created...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_modified API. 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_modified API. 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 whether the files on the left and right are different. Note, modified implies the contents of the file have changed, which is predicated on the file existing on both the left and right. Therefore this will be false if the file on the left has been deleted, or the file on the right i...
"Find whether the files on the left and right are different. Note,\n modified implies the contents of the file have changed, which is\n predicated on the file existing on both the left and right. Therefore\n this will be false if the file on the left has been deleted, or the\n file on the ri...
70
false
gebn/wood
is_modified
35,017
LDU_FT/square/pylink/strace_clear_all
LDU_FT
[ "<BEGIN>\n## `main`", "Prints the core's information.", " Args:\n jlink_serial (str): the J-Link serial number\n device (str): the target CPU", " Returns:\n Always returns ``0``.", " Raises:\n JLinkException: on error\n<END>", "<BEGIN>\n## `acquire`", "Attempts to acquire a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strace_clear_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strace_clear_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Clears all STRACE events. Args: self (JLink): the ``JLink`` instance. Returns: ``None`` Raises: JLinkException: on error.
"Clears all STRACE events.\n\n Args:\n self (JLink): the ``JLink`` instance.\n\n Returns:\n ``None``\n\n Raises:\n JLinkException: on error."
949
false
square/pylink
strace_clear_all
35,018
LDU_FT/matthew-brett/delocate/add_platforms
LDU_FT
[ "<BEGIN>\n## `back_tick`", "Run command `cmd`, return stdout, or stdout, stderr if `ret_err`", " Roughly equivalent to ``check_output`` in Python 2.7", " Parameters\n ----------\n cmd : sequence\n command to execute\n ret_err : bool, optional\n If True, return stderr in addition t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_platforms API. 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 add_platforms API. 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...
Add platform tags `platforms` to `in_wheel` filename and WHEEL tags Add any platform tags in `platforms` that are missing from `in_wheel` filename. Add any platform tags in `platforms` that are missing from `in_wheel` ``WHEEL`` file. Parameters ---------- in_wheel : str Filename o...
"Add platform tags `platforms` to `in_wheel` filename and WHEEL tags\n\n Add any platform tags in `platforms` that are missing from `in_wheel`\n filename.\n\n Add any platform tags in `platforms` that are missing from `in_wheel`\n ``WHEEL`` file.\n\n Parameters\n ----------\n in_wheel : str\n ...
157
false
matthew-brett/delocate
add_platforms
35,019
LDU_FT/skyfielders/python-skyfield/utc_jpl
LDU_FT
[ "<BEGIN>\n## `add_deflection`", "Update `position` for how solar system masses will deflect its light.", " Given the ICRS `position` [x,y,z] of an object (au) that is being\n viewed from the `observer` also expressed as [x,y,z], and given an\n ephemeris that can be used to determine solar system body p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the utc_jpl API. 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 utc_jpl API. 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 to an ``A.D. 2014-Jan-18 01:35:37.5000 UT`` string. Returns a string for this date and time in UTC, in the format used by the JPL HORIZONS system. If this time is an array of dates, then a sequence of strings is returned instead of a single string.
"Convert to an ``A.D. 2014-Jan-18 01:35:37.5000 UT`` string.\n\n Returns a string for this date and time in UTC, in the format\n used by the JPL HORIZONS system. If this time is an array of\n dates, then a sequence of strings is returned instead of a\n single string."
392
false
skyfielders/python-skyfield
utc_jpl
35,020
LDU_FT/openpaperwork/paperwork-backend/update_label
LDU_FT
[ "<BEGIN>\n## `examine_rootdir`", "Examine the rootdir.\n Calls on_new_doc(doc), on_doc_modified(doc), on_doc_deleted(docid)\n every time a new, modified, or deleted document is found\n<END>", "<BEGIN>\n## `reload_index`", "Read the index, and load the document list from it", " Arguments...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_label API. 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...
Replace 'old_label' by 'new_label' on all the documents. Takes care of updating the index.
"Replace 'old_label' by 'new_label' on all the documents. Takes care of\n updating the index."
171
false
openpaperwork/paperwork-backend
update_label
35,021
LDU_FT/eng-tools/sfsimodels/one_vertical_total_stress
LDU_FT
[ "<BEGIN>\n## `set_beam_prop`", "Specify the properties of the beams", " :param values:\n :param repeat: if 'up' then duplicate up the structure\n :return:\n<END>", "<BEGIN>\n## `set_column_prop`", "Specify the properties of the columns", " :param values:\n :param repeat:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the one_vertical_total_stress API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the one_vertical_total_stress API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Determine the vertical total stress at a single depth z_c. :param z_c: depth from surface
"Determine the vertical total stress at a single depth z_c.\n\n :param z_c: depth from surface"
126
false
eng-tools/sfsimodels
one_vertical_total_stress
35,022
LDU_FT/martinpitt/python-dbusmock/ConnectionUpdate
LDU_FT
[ "<BEGIN>\n## `AddAdapter`", "Convenience method to add a Bluetooth adapter", " You have to specify a device name which must be a valid part of an object\n path, e. g. \"hci0\", and an arbitrary system name (pretty hostname).", " Returns the new object path.\n<END>", "<BEGIN>\n## `AddDevice`", "Co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ConnectionUpdate API. 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 ConnectionUpdate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Update settings on a connection. settings is a String String Variant Map Map. See https://developer.gnome.org/NetworkManager/0.9/spec.html #type-String_String_Variant_Map_Map
"Update settings on a connection.\n\n settings is a String String Variant Map Map. See\n https://developer.gnome.org/NetworkManager/0.9/spec.html\n #type-String_String_Variant_Map_Map"
188
false
martinpitt/python-dbusmock
ConnectionUpdate
35,023
LDU_FT/lionheart/django-pyodbc/get_key_columns
LDU_FT
[ "<BEGIN>\n## `_get_sql_server_ver`", "Returns the version of the SQL Server in use:\n<END>", "<BEGIN>\n## `_switch_tz_offset_sql`", "Returns the SQL that will convert field_name to UTC from tzname.\n<END>", "<BEGIN>\n## `datetime_trunc_sql`", "Given a lookup_type of 'year', 'month', 'day', 'hour', 'minute...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_key_columns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_key_columns API. 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...
Backends can override this to return a list of (column_name, referenced_table_name, referenced_column_name) for all key columns in given table.
"Backends can override this to return a list of (column_name, referenced_table_name,\n referenced_column_name) for all key columns in given table."
51
false
lionheart/django-pyodbc
get_key_columns
35,024
LDU_FT/cronofy/pycronofy/real_time_sequencing
LDU_FT
[ "<BEGIN>\n## `format_event_time`", "Accepts either an ISO 8601 string, a dict with a time and tzid OR a datetime object.\n Must be in UTC format:", " 2016-01-31T12:33:00Z\n 2016-01-31T12:33:00UTC\n 2016-01-31T12:33:00+00:00", " https://en.wikipedia.org/wiki/ISO_8601", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the real_time_sequencing 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 real_time_sequencing API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generates an real time sequencing link to start the OAuth process with an event to be automatically upserted :param dict availability: - A dict describing the availability details for the event: :sequence: An Array of dics representing sequences to find availability for ...
"Generates an real time sequencing link to start the OAuth process with\n an event to be automatically upserted\n\n :param dict availability: - A dict describing the availability details for the event:\n\n :sequence: An Array of dics representing sequences to find availability for\n ...
111
false
cronofy/pycronofy
real_time_sequencing
35,025
LDU_FT/pyqg/pyqg/step_forward_with_gridded_uv
LDU_FT
[ "<BEGIN>\n## `run_with_snapshots`", "Run the model forward, yielding to user code at specified intervals.", " Parameters\n ----------", " tsnapstart : int\n The timestep at which to begin yielding.\n tstapint : int\n The interval at which to yield.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_forward_with_gridded_uv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_forward_with_gridded_uv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Advance particles using a gridded velocity field. Because of the Runga-Kutta timestepping, we need two velocity fields at different times. Parameters ---------- U0, V0 : array-like Gridded velocity fields at time t - dt. U1, V1 : array-like ...
"Advance particles using a gridded velocity field. Because of the\n Runga-Kutta timestepping, we need two velocity fields at different\n times.\n \n Parameters\n ----------\n U0, V0 : array-like\n Gridded velocity fields at time t - dt.\n U1, V1 : array-like\n...
56
false
pyqg/pyqg
step_forward_with_gridded_uv
35,026
LDU_FT/ryanjdillon/pylleo/find_file
LDU_FT
[ "<BEGIN>\n## `create_bokeh_server`", "Start bokeh server with applications paths\n<END>", "<BEGIN>\n## `get_n_header`", "Get the nummber of header rows in a Little Leonardo data file", " Args\n ----\n f : file stream\n File handle for the file from which header rows will be read\n header_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_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 extract...
Find path of file in directory containing the search string
"Find path of file in directory containing the search string"
60
false
ryanjdillon/pylleo
find_file
35,027
LDU_FT/SeabornGames/Table/get_data_and_column_widths
LDU_FT
[ "<BEGIN>\n## `list_to_obj`", ":param list_: list of list or list of dictionary to use as the\n source\n :param columns: list of strings to label the columns when\n converting to str\n :param row_columns: list of columns in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_and_column_widths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_and_column_widths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
:param data_kwargs: kwargs used for converting data to strings :param width_kwargs: kwargs used for determining column widths :return: tuple(list of list of strings, list of int)
":param data_kwargs: kwargs used for converting data to strings\n :param width_kwargs: kwargs used for determining column widths\n :return: tuple(list of list of strings, list of int)"
93
false
SeabornGames/Table
get_data_and_column_widths
35,028
LDU_FT/edx/django-config-models/save
LDU_FT
[ "<BEGIN>\n## `get_serializer_class`", "Returns a ConfigurationModel serializer class for the supplied configuration_model.\n<END>", "<BEGIN>\n## `deserialize_json`", "Given a stream containing JSON, deserializers the JSON into ConfigurationModel instances.", " The stream is expected to be in the followin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. 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 save API. 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...
Clear the cached value when saving a new configuration entry
"Clear the cached value when saving a new configuration entry"
55
false
edx/django-config-models
save
35,029
LDU_FT/kevin-brown/drf-json-api/camelcase
LDU_FT
[ "<BEGIN>\n## `camelcase`", "Return a string in lowerCamelCase", " Examples:\n \"people\" -> \"people\"\n \"profile images\" -> \"profileImages\"\n<END>", "<BEGIN>\n## `render`", "Convert native data to JSON API", " Tries each of the methods in `wrappers`, using the first successful\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the camelcase API. 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 camelcase API. 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 string in lowerCamelCase Examples: "people" -> "people" "profile images" -> "profileImages"
"Return a string in lowerCamelCase\n\n Examples:\n \"people\" -> \"people\"\n \"profile images\" -> \"profileImages\""
34
false
kevin-brown/drf-json-api
camelcase
35,030
LDU_FT/CogSciUOS/StudDP/save
LDU_FT
[ "<BEGIN>\n## `path`", "Path of this node on Studip. Looks like Coures/folder/folder/document. Respects the renaming policies defined in the namemap\n<END>", "<BEGIN>\n## `title`", "get title of this node. If an entry for this course is found in the configuration namemap it is used, otherwise the default\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. 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 save API. 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...
Save configuration to provided path as a yaml file
"Save configuration to provided path as a yaml file"
26
false
CogSciUOS/StudDP
save
35,031
LDU_FT/stephanepechard/projy/substitutes
LDU_FT
[ "<BEGIN>\n## `author_from_git`", "Get the author name from git information.\n<END>", "<BEGIN>\n## `text_in_color`", "Print with a beautiful color. See codes at the top of this file.\n<END>", "<BEGIN>\n## `collect`", "Select the best suited data of all available in the subclasses.\n In each subc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the substitutes API. 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 substitutes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the substitutions for the templating replacements.
"Return the substitutions for the templating replacements."
38
false
stephanepechard/projy
substitutes
35,032
LDU_FT/TC01/calcpkg/logWrite
LDU_FT
[ "<BEGIN>\n## `structureOutput`", "Formats the output of a list of packages\n<END>", "<BEGIN>\n## `count`", "Counts the number of ticalc.org files containing some search term, doesn't return them\n<END>", "<BEGIN>\n## `searchHierarchy`", "Core function to search directory structure for child files and fold...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logWrite API. 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 logWrite API. 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...
Only write text to the log file, do not print
"Only write text to the log file, do not print"
62
false
TC01/calcpkg
logWrite
35,033
LDU_FT/OCHA-DAP/hdx-python-api/get_location_from_HDX_code
LDU_FT
[ "<BEGIN>\n## `validlocations`", "Read valid locations from HDX", " Args:\n configuration (Optional[Configuration]): HDX configuration. Defaults to global configuration.", " Returns:\n List[Dict]: A list of valid locations\n<END>", "<BEGIN>\n## `get_location_from_HDX_code`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_location_from_HDX_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_location_from_HDX_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Get location from HDX location code Args: code (str): code for which to get location name locations (Optional[List[Dict]]): Valid locations list. Defaults to list downloaded from HDX. configuration (Optional[Configuration]): HDX configuration. Defaults to global configuratio...
"Get location from HDX location code\n\n Args:\n code (str): code for which to get location name\n locations (Optional[List[Dict]]): Valid locations list. Defaults to list downloaded from HDX.\n configuration (Optional[Configuration]): HDX configuration. Defaults to global config...
513
false
OCHA-DAP/hdx-python-api
get_location_from_HDX_code
35,034
LDU_FT/pallets/werkzeug/path
LDU_FT
[ "<BEGIN>\n## `mimetype`", "The mimetype (content type without charset etc.)\n<END>", "<BEGIN>\n## `mimetype_params`", "The mimetype parameters as dict. For example if the\n content type is ``text/html; charset=utf-8`` the params would be\n ``{'charset': 'utf-8'}``.", " .. versionadded::...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Requested path as unicode. This works a bit like the regular path info in the WSGI environment but will always include a leading slash, even if the URL root is accessed.
"Requested path as unicode. This works a bit like the regular path\n info in the WSGI environment but will always include a leading slash,\n even if the URL root is accessed."
541
false
pallets/werkzeug
path
35,035
LDU_FT/napalm-automation/napalm-ios/_expand_interface_name
LDU_FT
[ "<BEGIN>\n## `_create_tmp_file`", "Write temp file and for use with inline config and SCP.\n<END>", "<BEGIN>\n## `_load_candidate_wrapper`", "Transfer file to remote device for either merge or replace operations", " Returns (return_status, msg)\n<END>", "<BEGIN>\n## `load_replace_candidate`", "SC...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expand_interface_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expand_interface_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Obtain the full interface name from the abbreviated name. Cache mappings in self.interface_map.
"Obtain the full interface name from the abbreviated name.\n\n Cache mappings in self.interface_map."
84
false
napalm-automation/napalm-ios
_expand_interface_name
35,036
LDU_FT/alfred82santa/dirty-models/clear
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 clear API. 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 clear API. 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...
Clears all the data in the object, keeping original data
"Clears all the data in the object, keeping original data"
86
false
alfred82santa/dirty-models
clear
35,037
LDU_FT/zxylvlp/PingPHP/p_If
LDU_FT
[ "<BEGIN>\n## `t_DOCCOMMENT`", "r'((\\'\\'\\'((?!\\'\\'\\')[\\s\\S])*\\'\\'\\')|(\\'{6,8})|(\"\"\"((?!\"\"\")[\\s\\S])*\"\"\")|(\"{6,8}))[ \\t]*\\n\n<END>", "<BEGIN>\n## `t_NATIVEPHP`", "r'<\\?php((?!<\\?php)[\\s\\S])*\\?>[ \\t]*(?=\\n)\n<END>", "<BEGIN>\n## `t_INDENTIFIER`", "r'(\\$?[_a-zA-Z][_a-zA-Z0-9]*...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_If API. 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 p_If API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
If : IfBlock | IfBlock ELSE COLON Terminator Block
"If : IfBlock\n | IfBlock ELSE COLON Terminator Block"
74
false
zxylvlp/PingPHP
p_If
35,038
LDU_FT/jmoiron/humanize/naturalsize
LDU_FT
[ "<BEGIN>\n## `abs_timedelta`", "Returns an \"absolute\" value for a timedelta, always representing a\n time distance.\n<END>", "<BEGIN>\n## `date_and_delta`", "Turn a value into a date and a timedelta which represents how long ago\n it was. If that's not possible, return (None, value).\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the naturalsize API. 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 naturalsize API. 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...
Format a number of byteslike a human readable filesize (eg. 10 kB). By default, decimal suffixes (kB, MB) are used. Passing binary=true will use binary suffixes (KiB, MiB) are used and the base will be 2**10 instead of 10**3. If ``gnu`` is True, the binary argument is ignored and GNU-style (ls -sh st...
"Format a number of byteslike a human readable filesize (eg. 10 kB). By\n default, decimal suffixes (kB, MB) are used. Passing binary=true will use\n binary suffixes (KiB, MiB) are used and the base will be 2**10 instead of\n 10**3. If ``gnu`` is True, the binary argument is ignored and GNU-style\n (ls -...
28
false
jmoiron/humanize
naturalsize
35,039
LDU_FT/clalancette/pycdlib/new
LDU_FT
[ "<BEGIN>\n## `parse`", "A method to parse an ISO9660 Path Table Record out of a string.", " Parameters:\n data - The string to parse.\n Returns:\n Nothing.\n<END>", "<BEGIN>\n## `_record`", "An internal method to generate a string representing this Path Table Record.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new API. 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 new API. 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...
Create a new Rock Ridge Rock Ridge record. Parameters: None. Returns: Nothing.
"Create a new Rock Ridge Rock Ridge record.\n\n Parameters:\n None.\n Returns:\n Nothing."
1,112
true
clalancette/pycdlib
new
35,040
LDU_FT/aiidateam/aiida-codtools/parse_stdout
LDU_FT
[ "<BEGIN>\n## `run_filter_calculation`", "Run the CifFilterCalculation on the CifData input node.\n<END>", "<BEGIN>\n## `inspect_filter_calculation`", "Inspect the result of the CifFilterCalculation, verifying that it produced a CifData output node.\n<END>", "<BEGIN>\n## `run_select_calculation`", "Run the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_stdout API. 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 parse_stdout API. 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...
Parse the formulae from the content written by the script to standard out. :param filelike: filelike object of stdout :returns: an exit code in case of an error, None otherwise
"Parse the formulae from the content written by the script to standard out.\n\n :param filelike: filelike object of stdout\n :returns: an exit code in case of an error, None otherwise"
73
false
aiidateam/aiida-codtools
parse_stdout
35,041
LDU_FT/lokhman/pydbal/update
LDU_FT
[ "<BEGIN>\n## `locked`", "Context generator for `with` statement, yields thread-safe connection.", " :return: thread-safe connection\n :rtype: pydbal.connection.Connection\n<END>", "<BEGIN>\n## `query`", "Executes an SQL SELECT query and returns rows generator.", " :param sql: query to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Updates a table row with specified data by given identifier. :param table: the expression of the table to update quoted or unquoted :param values: a dictionary containing column-value pairs :param identifier: the update criteria; a dictionary containing column-value pairs :return: the n...
"Updates a table row with specified data by given identifier.\n\n :param table: the expression of the table to update quoted or unquoted\n :param values: a dictionary containing column-value pairs\n :param identifier: the update criteria; a dictionary containing column-value pairs\n :return:...
84
false
lokhman/pydbal
update
35,042
LDU_FT/bitcraft/pyscroll/center
LDU_FT
[ "<BEGIN>\n## `hit`", "Returns the items that overlap a bounding rectangle.", " Returns the set of all items in the quad-tree that overlap with a\n bounding rectangle.", " @param rect:\n The bounding rectangle being tested against the quad-tree. This\n must possess le...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the center API. 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 center API. 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 ...
center the map on a pixel float numbers will be rounded. :param coords: (number, number)
"center the map on a pixel\n\n float numbers will be rounded.\n\n :param coords: (number, number)"
112
false
bitcraft/pyscroll
center
35,043
LDU_FT/pyviz/holoviews/process_cmap
LDU_FT
[ "<BEGIN>\n## `initialize_plot`", "Initializes a new plot object with the last available frame.\n<END>", "<BEGIN>\n## `_get_axis_dims`", "Returns the dimensions corresponding to each axis.", " Should return a list of dimensions or list of lists of\n dimensions, which will be formatted to label ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_cmap API. 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 process_cmap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert valid colormap specifications to a list of colors.
"Convert valid colormap specifications to a list of colors."
1,961
true
pyviz/holoviews
process_cmap
35,044
LDU_FT/njharman/die/do_sum
LDU_FT
[ "<BEGIN>\n## `do_sum`", "Set self.sum, self.avr and return sum of dice rolled, count times.\n :param count: Number of rolls to make\n :return: Total sum of all rolls\n<END>", "<BEGIN>\n## `do_bucket`", "Set self.bucket and return results.\n :param count: Number of rolls to make\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_sum API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_sum API. 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 ...
Set self.sum, self.avr and return sum of dice rolled, count times. :param count: Number of rolls to make :return: Total sum of all rolls
"Set self.sum, self.avr and return sum of dice rolled, count times.\n :param count: Number of rolls to make\n :return: Total sum of all rolls"
28
false
njharman/die
do_sum
35,045
LDU_FT/idank/bashlex/p_simple_command_element
LDU_FT
[ "<BEGIN>\n## `_createtoken`", "create a token with position information\n<END>", "<BEGIN>\n## `p_inputunit`", "inputunit : simple_list simple_list_terminator\n | NEWLINE\n | error NEWLINE\n | EOF\n<END>", "<BEGIN>\n## `p_word_list`", "word_list : WORD\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_simple_command_element 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 p_simple_command_element API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
simple_command_element : WORD | ASSIGNMENT_WORD | redirection
"simple_command_element : WORD\n | ASSIGNMENT_WORD\n | redirection"
59
false
idank/bashlex
p_simple_command_element
35,046
LDU_FT/aerkalov/ebooklib/get_body_content
LDU_FT
[ "<BEGIN>\n## `write_epub`", "Creates epub file with the content defined in EpubBook.", " >>> ebooklib.write_epub('book.epub', book)", " :Args:\n - name: file name for the output file\n - book: instance of EpubBook\n - options: extra opions as dictionary (optional)\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_body_content API. 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_body_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns content of BODY element for this HTML document. Content will be of type 'str' (Python 2) or 'bytes' (Python 3). :Returns: Returns content of this document.
"Returns content of BODY element for this HTML document. Content will be of type 'str' (Python 2)\n or 'bytes' (Python 3).\n\n :Returns:\n Returns content of this document."
66
false
aerkalov/ebooklib
get_body_content
35,047
LDU_FT/espressif/esptool/generate_signing_key
LDU_FT
[ "<BEGIN>\n## `decrypt`", "Decrypt a block of cipher text using the AES block cipher.\n<END>", "<BEGIN>\n## `increment`", "Increment the counter (overflow rolls back to 0).\n<END>", "<BEGIN>\n## `summary`", "Print a human-readable summary of efuse contents\n<END>", "<BEGIN>\n## `write_efuses`", "Write ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_signing_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_signing_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generate an ECDSA signing key for signing secure boot images (post-bootloader)
"Generate an ECDSA signing key for signing secure boot images (post-bootloader)"
199
false
espressif/esptool
generate_signing_key
35,048
LDU_FT/Rambatino/CHAID/from_pandas_df
LDU_FT
[ "<BEGIN>\n## `chisquare`", "Calculates the chisquare for a matrix of ind_v x dep_v\n for the unweighted and SPSS weighted case\n<END>", "<BEGIN>\n## `best_split`", "determine which splitting function to apply\n<END>", "<BEGIN>\n## `best_cat_heuristic_split`", "determine best categorical variable split ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_pandas_df API. 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 from_pandas_df API. 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...
Helper method to pre-process a pandas data frame in order to run CHAID analysis Parameters ---------- df : pandas.DataFrame the dataframe with the dependent and independent variables in which to slice from i_variables : dict dict of instance v...
"Helper method to pre-process a pandas data frame in order to run CHAID\n analysis\n\n Parameters\n ----------\n df : pandas.DataFrame\n the dataframe with the dependent and independent variables in which\n to slice from\n i_variables : dict\n dict of ...
34
false
Rambatino/CHAID
from_pandas_df
35,049
LDU_FT/chaimleib/intervaltree/count_nodes
LDU_FT
[ "<BEGIN>\n## `refresh_balance`", "Recalculate self.balance and self.depth based on child node values.\n<END>", "<BEGIN>\n## `compute_depth`", "Recursively computes true depth of the subtree. Should only\n be needed for debugging. Unless something is wrong, the\n depth field should reflect the co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_nodes API. 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 count_nodes API. 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...
Count the number of Nodes in this subtree. :rtype: int
"Count the number of Nodes in this subtree.\n :rtype: int"
139
false
chaimleib/intervaltree
count_nodes
35,050
LDU_FT/albert12132/templar/handle_whitespace
LDU_FT
[ "<BEGIN>\n## `applies`", "Checks if this rule applies to the given src and dst paths, based on the src pattern and\n dst pattern given in the constructor.", " If src pattern was None, this rule will apply to any given src path (same for dst).\n<END>", "<BEGIN>\n## `link`", "Links the content f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_whitespace API. 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 handle_whitespace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
r"""Handles whitespace cleanup. Tabs are "smartly" retabbed (see sub_retab). Lines that contain only whitespace are truncated to a single newline.
"r\"\"\"Handles whitespace cleanup.\n\n Tabs are \"smartly\" retabbed (see sub_retab). Lines that contain\n only whitespace are truncated to a single newline."
130
false
albert12132/templar
handle_whitespace
35,051
LDU_FT/google/apitools/_FetchCustomMappings
LDU_FT
[ "<BEGIN>\n## `_urljoin`", "Custom urljoin replacement supporting : before / in url.\n<END>", "<BEGIN>\n## `_SetCredentials`", "Fetch credentials, and set them for this client.", " Note that we can't simply return credentials, since creating them\n may involve side-effecting self.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _FetchCustomMappings 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 _FetchCustomMappings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Find and return all custom mappings for descriptors in descriptor_ls.
"Find and return all custom mappings for descriptors in descriptor_ls."
629
false
google/apitools
_FetchCustomMappings
35,052
LDU_FT/timster/peewee-validates/validate_model_unique
LDU_FT
[ "<BEGIN>\n## `validate_not_empty`", "Validate that a field is not empty (blank string).", " :raises: ``ValidationError('empty')``\n<END>", "<BEGIN>\n## `validate_length`", "Validate the length of a field with either low, high, or equal.\n Should work with anything that supports len().", " :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_model_unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_model_unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Validate the field is a unique, given a queryset and lookup_field. Example:: validator = validate_model_unique(User.email, User.select()) Creates a validator that can validate the uniqueness of an email address. :param lookup_field: Peewee model field that should be used for checking existing values....
"Validate the field is a unique, given a queryset and lookup_field. Example::\n\n validator = validate_model_unique(User.email, User.select())\n\n Creates a validator that can validate the uniqueness of an email address.\n\n :param lookup_field: Peewee model field that should be used for checking existing ...
82
false
timster/peewee-validates
validate_model_unique
35,053
LDU_FT/usc-isi-i2/dig-extractor/set_output_fields
LDU_FT
[ "<BEGIN>\n## `set_output_fields`", "Defines where to put the dictionary output of the extractor in the doc, but renames\n the fields of the extracted output for the document or just filters the keys\n<END>", "<BEGIN>\n## `__get_jp`", "Tries to get name from ExtractorProcessor to filter on first.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_output_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_output_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Defines where to put the dictionary output of the extractor in the doc, but renames the fields of the extracted output for the document or just filters the keys
"Defines where to put the dictionary output of the extractor in the doc, but renames\n the fields of the extracted output for the document or just filters the keys"
24
false
usc-isi-i2/dig-extractor
set_output_fields
35,054
LDU_FT/vcs-python/vcspull/filter_repos
LDU_FT
[ "<BEGIN>\n## `expand_dir`", "Return path with environmental variables and tilde ~ expanded.", " :param _dir:\n :type _dir: str\n :param cwd: current working dir (for deciphering relative _dir paths)\n :type cwd: str\n :rtype; str\n<END>", "<BEGIN>\n## `extract_repos`", "Return expanded config...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_repos API. 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 filter_repos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return a :py:obj:`list` list of repos from (expanded) config file. repo_dir, vcs_url and name all support fnmatch. :param config: the expanded repo config in :py:class:`dict` format. :type config: dict :param repo_dir: directory of checkout location, fnmatch pattern supported :type repo_dir: str o...
"Return a :py:obj:`list` list of repos from (expanded) config file.\n\n repo_dir, vcs_url and name all support fnmatch.\n\n :param config: the expanded repo config in :py:class:`dict` format.\n :type config: dict\n :param repo_dir: directory of checkout location, fnmatch pattern supported\n :type repo_di...
29
false
vcs-python/vcspull
filter_repos
35,055
LDU_FT/emlazzarin/acrylic/distinct
LDU_FT
[ "<BEGIN>\n## `change_sheet`", "Calling this method changes the sheet in anticipation for the\n next time you create an iterator.", " If you change the active sheet while iterating on a UnicodeReader\n instance, it will continue to iterate correctly until completion.\n The next time y...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distinct API. 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 distinct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns the unique values seen at `fieldname`.
"Returns the unique values seen at `fieldname`."
94
false
emlazzarin/acrylic
distinct
35,056
LDU_FT/openvax/datacache/table_names
LDU_FT
[ "<BEGIN>\n## `connect_if_correct_version`", "Return a sqlite3 database connection if the version in the database's\n metadata matches the version argument.", " Also implicitly checks for whether the data in this database has\n been completely filled, since we set the version last.", " TODO: Make a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the table_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the table_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns names of all tables in the database
"Returns names of all tables in the database"
101
false
openvax/datacache
table_names
35,057
LDU_FT/bachya/regenmaschine/_request
LDU_FT
[ "<BEGIN>\n## `upcoming`", "Return watering statistics for the next 6 days.\n<END>", "<BEGIN>\n## `_raise_for_remote_status`", "Raise an error from the remote API if necessary.\n<END>", "<BEGIN>\n## `login`", "Authenticate against a RainMachine device.\n<END>", "<BEGIN>\n## `_request`", "Make a request...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. 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 _request API. 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...
Wrap the generic request method to add access token, etc.
"Wrap the generic request method to add access token, etc."
22
false
bachya/regenmaschine
_request
35,058
LDU_FT/by46/simplekit/parse_image_name
LDU_FT
[ "<BEGIN>\n## `_bin_update_items`", "Subclassed from omdict._bin_update_items() to make update() and\n updateall() process lists of values as multiple values.", " <replacements and <leftovers> are modified directly, ala pass by\n reference.\n<END>", "<BEGIN>\n## `import_string`", "Import...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_image_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_image_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
parse the image name into three element tuple, like below: (repository, name, version) :param name: `class`:`str`, name :return: (repository, name, version)
"parse the image name into three element tuple, like below:\r\n (repository, name, version)\r\n :param name: `class`:`str`, name\r\n :return: (repository, name, version)"
73
false
by46/simplekit
parse_image_name
35,059
LDU_FT/nyaruka/smartmin/view_for_action
LDU_FT
[ "<BEGIN>\n## `_read_requirements`", "Parses a file for pip installation requirements.\n<END>", "<BEGIN>\n## `get_list_class`", "Returns the class to use for the passed in list. We just build something up\n from the object type for the list.\n<END>", "<BEGIN>\n## `format_datetime`", "Formats a date, co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the view_for_action API. 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 view_for_action API. 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...
Returns the appropriate view class for the passed in action
"Returns the appropriate view class for the passed in action"
118
false
nyaruka/smartmin
view_for_action
35,060
LDU_FT/Xython/Linq.py/Concat
LDU_FT
[ "<BEGIN>\n## `ChunkBy`", "[\n {\n 'self': [1, 1, 3, 3, 1, 1],\n 'f': lambda x: x%2,\n 'assert': lambda ret: ret == [[1, 1], [3, 3], [1, 1]]\n }\n ]\n<END>", "<BEGIN>\n## `GroupBy`", "[\n {\n 'self': [1, 2, 3],\n 'f': lambda x: x%2...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Concat API. 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 Concat API. 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 ...
[ { 'self': [1, 2, 3], ':args': [[4, 5, 6], [7, 8, 9]], 'assert': lambda ret: list(ret) == [1, 2, 3, 4, 5, 6, 7, 8, 9] } ]
"[\n {\n 'self': [1, 2, 3],\n ':args': [[4, 5, 6], [7, 8, 9]],\n 'assert': lambda ret: list(ret) == [1, 2, 3, 4, 5, 6, 7, 8, 9]\n }\n ]"
32
false
Xython/Linq.py
Concat
35,061
LDU_FT/samluescher/django-media-tree/get_metadata_display
LDU_FT
[ "<BEGIN>\n## `i18n_javascript`", "Displays the i18n JavaScript that the Django admin requires.", " This takes into account the USE_I18N setting. If it's set to False, the\n generated JavaScript will be leaner and faster.\n<END>", "<BEGIN>\n## `file_links`", "Turns a (optionally nested) list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_metadata_display 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_metadata_display 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 object metadata that has been selected to be displayed to users, compiled as a string.
"Returns object metadata that has been selected to be displayed to\n users, compiled as a string."
96
false
samluescher/django-media-tree
get_metadata_display
35,062
LDU_FT/salesking/salesking_python_sdk/validate_filter
LDU_FT
[ "<BEGIN>\n## `get_model_class`", "Generates the Model Class based on the klass \n loads automatically the corresponding json schema file form schemes folder\n :param klass: json schema filename\n :param use_request_api: if True autoinitializes request class if api is None\n :param api: the transportat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_filter API. 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 validate_filter API. 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...
validate the filter key and value against the collection schema :param key: property name :param filter_value: value of the filter :returns True if all is ok otherwise False
"validate the filter key and value against the collection schema\n \n :param key: property name\n :param filter_value: value of the filter\n :returns True if all is ok otherwise False"
69
false
salesking/salesking_python_sdk
validate_filter
35,063
LDU_FT/mwouts/jupytext/metadata_filter_as_string
LDU_FT
[ "<BEGIN>\n## `is_magic`", "Is the current line a (possibly escaped) Jupyter magic, and should it be commented?\n<END>", "<BEGIN>\n## `metadata_filter_as_dict`", "Return the metadata filter represented as either None (no filter),\n or a dictionary with at most two keys: 'additional' and 'excluded',\n whi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metadata_filter_as_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metadata_filter_as_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Convert a filter, represented as a dictionary with 'additional' and 'excluded' entries, to a string
"Convert a filter, represented as a dictionary with 'additional' and 'excluded' entries, to a string"
229
false
mwouts/jupytext
metadata_filter_as_string
35,064
LDU_FT/inveniosoftware/invenio-previewer/preview
LDU_FT
[ "<BEGIN>\n## `render`", "Pretty print the XML file for rendering.\n<END>", "<BEGIN>\n## `preview`", "Render appropiate template with embed flag.\n<END>", "<BEGIN>\n## `uri`", "Get file download link.", " .. note::", " The URI generation assumes that you can download the file using t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preview API. 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 preview API. 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...
Preview file for given record. Plug this method into your ``RECORDS_UI_ENDPOINTS`` configuration: .. code-block:: python RECORDS_UI_ENDPOINTS = dict( recid=dict( # ... route='/records/<pid_value/preview/<path:filename>', view_imp='invenio_pr...
"Preview file for given record.\n\n Plug this method into your ``RECORDS_UI_ENDPOINTS`` configuration:\n\n .. code-block:: python\n\n RECORDS_UI_ENDPOINTS = dict(\n recid=dict(\n # ...\n route='/records/<pid_value/preview/<path:filename>',\n view_imp=...
29
false
inveniosoftware/invenio-previewer
preview
35,065
LDU_FT/dswah/pyGAM/validate_callback
LDU_FT
[ "<BEGIN>\n## `validate_callback_data`", "wraps a callback's method to pull the desired arguments from the vars dict\n also checks to ensure the method's arguments are in the vars dict", " Parameters\n ----------\n method : callable", " Returns\n -------\n validated callable\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
validates a callback's on_loop_start and on_loop_end methods Parameters ---------- callback : Callback object Returns ------- validated callback
"validates a callback's on_loop_start and on_loop_end methods\n\n Parameters\n ----------\n callback : Callback object\n\n Returns\n -------\n validated callback"
770
false
dswah/pyGAM
validate_callback
35,066
LDU_FT/IzunaDevs/SnekChek/flatten
LDU_FT
[ "<BEGIN>\n## `flatten`", "Flattens a list, ignore all the lambdas.\n<END>", "<BEGIN>\n## `exit`", "Raise SystemExit with correct status code and output logs.\n<END>", "<BEGIN>\n## `run_main`", "Runs the checks and exits.", " To extend this tool, use this function and set do_exit to False\n to get ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API. 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 flatten API. 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...
Flattens a list, ignore all the lambdas.
"Flattens a list, ignore all the lambdas."
13
false
IzunaDevs/SnekChek
flatten
35,067
LDU_FT/PMEAL/porespy/polydisperse_spheres
LDU_FT
[ "<BEGIN>\n## `show_mesh`", "r\"\"\"\n Visualizes the mesh of a region as obtained by ``get_mesh`` function in\n the ``metrics`` submodule.", " Parameters\n ----------\n mesh : tuple\n A mesh returned by ``skimage.measure.marching_cubes``", " Returns\n -------\n fig : Matplotlib ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polydisperse_spheres 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 polydisperse_spheres API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
r""" Create an image of randomly place, overlapping spheres with a distribution of radii. Parameters ---------- shape : list The size of the image to generate in [Nx, Ny, Nz] where Ni is the number of voxels in each direction. If shape is only 2D, then an image of polydispe...
"r\"\"\"\n Create an image of randomly place, overlapping spheres with a distribution\n of radii.\n\n Parameters\n ----------\n shape : list\n The size of the image to generate in [Nx, Ny, Nz] where Ni is the\n number of voxels in each direction. If shape is only 2D, then an\n image...
688
false
PMEAL/porespy
polydisperse_spheres
35,068
LDU_FT/jgorset/fandjango/permissions
LDU_FT
[ "<BEGIN>\n## `facebook_authorization_required`", "Require the user to authorize the application.", " :param redirect_uri: A string describing an URL to redirect to after authorization is complete.\n If ``None``, redirects to the current URL in the Facebook canvas\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the permissions API. 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 permissions API. 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...
A list of strings describing `permissions`_ the user has granted your application. .. _permissions: http://developers.facebook.com/docs/reference/api/permissions/
"A list of strings describing `permissions`_ the user has granted your application.\n\n .. _permissions: http://developers.facebook.com/docs/reference/api/permissions/"
34
false
jgorset/fandjango
permissions
35,069
LDU_FT/fred49/argtoolbox/_query_yes_no
LDU_FT
[ "<BEGIN>\n## `query_yes_no`", "Just prompt the user for a yes/no question\n<END>", "<BEGIN>\n## `_query_yes_no`", "Ask a yes/no question via raw_input() and return their answer.", " \"question\" is a string that is presented to the user.\n \"default\" is the presumed answer if the user just hits <Ente...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _query_yes_no API. 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 _query_yes_no API. 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...
Ask a yes/no question via raw_input() and return their answer. "question" is a string that is presented to the user. "default" is the presumed answer if the user just hits <Enter>. It must be "yes" (the default), "no" or None (meaning an answer is required of the user). The "answer" return...
"Ask a yes/no question via raw_input() and return their answer.\n\n \"question\" is a string that is presented to the user.\n \"default\" is the presumed answer if the user just hits <Enter>.\n It must be \"yes\" (the default), \"no\" or None (meaning\n an answer is required of the user).\n\n The...
46
false
fred49/argtoolbox
_query_yes_no
35,070
LDU_FT/quasipedia/swaggery/parse_return_annotation
LDU_FT
[ "<BEGIN>\n## `operations`", "Decorator for marking Resource methods as HTTP operations.", " This decorator does a number of different things:\n - It transfer onto itself docstring and annotations from the decorated\n method, so as to be \"transparent\" with regards to introspection.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_return_annotation 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_return_annotation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Parses the annotation return tuples. Ruturn a dictinary {code: info}.
"Parses the annotation return tuples. Ruturn a dictinary {code: info}."
67
false
quasipedia/swaggery
parse_return_annotation
35,071
LDU_FT/alantygel/ckanext-semantictags/by_id
LDU_FT
[ "<BEGIN>\n## `by_id`", "Return the semantic tag with the given id, or None.", "\t\t:param semantictag_id: the id of the semantic tag to return\n\t\t:type semantictag_id: string", "\t\t:returns: the semantic tag with the given id, or None if there is no tag with\n\t\t\tthat id\n\t\t:rtype: ckan.model.semantict...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_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 extracted d...
Return the predicate with the given id, or None. :param predicate_id: the id of the predicate to return :type predicate_id: string :returns: the predicate with the given id, or None if there is no predicate with that id :rtype: ckan.model.semantictag.Predicate
"Return the predicate with the given id, or None.\n\n\t\t:param predicate_id: the id of the predicate to return\n\t\t:type predicate_id: string\n\n\t\t:returns: the predicate with the given id, or None if there is no predicate with\n\t\t\tthat id\n\t\t:rtype: ckan.model.semantictag.Predicate"
39
false
alantygel/ckanext-semantictags
by_id
35,072