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/spulec/moto/receive_messages
LDU_FT
[ "<BEGIN>\n## `get_parameters_by_path`", "Implement the get-parameters-by-path-API in the backend.\n<END>", "<BEGIN>\n## `_match_filters`", "Return True if the given parameter matches all the filters\n<END>", "<BEGIN>\n## `list_commands`", "https://docs.aws.amazon.com/systems-manager/latest/APIReference/AP...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive_messages API. 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 receive_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Attempt to retrieve visible messages from a queue. If a message was read by client and not deleted it is considered to be "inflight" and cannot be read. We make attempts to obtain ``count`` messages but we may return less if messages are in-flight or there are simple not enough messages...
"Attempt to retrieve visible messages from a queue.\n\n If a message was read by client and not deleted it is considered to be\n \"inflight\" and cannot be read. We make attempts to obtain ``count``\n messages but we may return less if messages are in-flight or there\n are simple not enough ...
217
false
spulec/moto
receive_messages
21,273
LDU_FT/pedrotgn/pyactor/interval_host
LDU_FT
[ "<BEGIN>\n## `set_context`", "This function initializes the context of execution deciding which\n type of threads are being used: classic python threads or green\n threads, provided by Gevent.", " This should be called first of all in every execution, otherwise,\n the library would not work.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interval_host API. 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 interval_host API. 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...
Creates an Event attached to the *host* that will execute the *f* function every *time* seconds. See example in :ref:`sample_inter` :param Proxy host: proxy of the host. Can be obtained from inside a class with ``self.host``. :param int time: seconds for the intervals. :param func f: funct...
"Creates an Event attached to the *host* that will execute the *f*\n function every *time* seconds.\n\n See example in :ref:`sample_inter`\n\n :param Proxy host: proxy of the host. Can be obtained from inside a\n class with ``self.host``.\n :param int time: seconds for the intervals.\n :param func...
102
false
pedrotgn/pyactor
interval_host
21,274
LDU_FT/jmurty/xml4h/find_first
LDU_FT
[ "<BEGIN>\n## `ignore_whitespace_text_nodes`", "Find and delete any text nodes containing nothing but whitespace in\n in the given node and its descendents.", " This is useful for cleaning up excess low-value text nodes in a\n document DOM after parsing a pretty-printed XML document.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_first API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_first API. 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...
Find the first :class:`Element` node descendant of this node that matches any optional constraints, or None if there are no matching elements. Delegates to :meth:`find` with ``first_only=True``.
"Find the first :class:`Element` node descendant of this node that\n matches any optional constraints, or None if there are no matching\n elements.\n\n Delegates to :meth:`find` with ``first_only=True``."
155
false
jmurty/xml4h
find_first
21,275
LDU_FT/tomer8007/kik-bot-api-unofficial/change_password
LDU_FT
[ "<BEGIN>\n## `_connect`", "Runs the kik connection thread, which creates an encrypted (SSL based) TCP connection\n to the kik servers.\n<END>", "<BEGIN>\n## `_on_connection_made`", "Gets called when the TCP connection to kik's servers is done and we are connected.\n Now we might initiate a login...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_password API. 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 change_password API. 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...
Changes the login password :param new_password: The new login password to set for the account :param email: The current email of the account
"Changes the login password\n\n :param new_password: The new login password to set for the account\n :param email: The current email of the account"
96
false
tomer8007/kik-bot-api-unofficial
change_password
21,276
LDU_FT/bunq/sdk_python/create
LDU_FT
[ "<BEGIN>\n## `post`", ":type uri_relative: str\n :type request_bytes: bytes\n :type custom_headers: dict[str, str]", " :return: BunqResponseRaw\n<END>", "<BEGIN>\n## `_request`", ":type method: str\n :type uri_relative: str\n :type request_bytes: bytes\n :type param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
:type user_id: int :type monetary_account_id: int :param statement_format: The format type of statement. Allowed values: MT940, CSV, PDF. :type statement_format: str :param date_start: The start date for making statements. :type date_start: str :param date_end: Th...
":type user_id: int\n :type monetary_account_id: int\n :param statement_format: The format type of statement. Allowed values:\n MT940, CSV, PDF.\n :type statement_format: str\n :param date_start: The start date for making statements.\n :type date_start: str\n :param date...
458
false
bunq/sdk_python
create
21,277
LDU_FT/KelSolaar/Foundations/exit
LDU_FT
[ "<BEGIN>\n## `list_attributes`", "Returns the Node attributes names.", " Usage::", " >>>\tnode_a = AbstractNode(\"MyNodeA\", attributeA=Attribute(), attributeB=Attribute())\n >>> node_a.list_attributes()\n ['attributeB', 'attributeA']", " :return: Attributes na...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exit API. 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 exit API. 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...
Shuts down current process logging, associated handlers and then exits to system. :param exit_code: System exit code. :type exit_code: Integer or String or Object :note: **exit_code** argument is passed to Python :func:`sys.exit` definition.
"Shuts down current process logging, associated handlers and then exits to system.\n\n :param exit_code: System exit code.\n :type exit_code: Integer or String or Object\n\n :note: **exit_code** argument is passed to Python :func:`sys.exit` definition."
629
false
KelSolaar/Foundations
exit
21,278
LDU_FT/uber/doubles/_find_matching_allowance
LDU_FT
[ "<BEGIN>\n## `set_value`", "Set the value of the target.", " :param obj value: The value to set.\n<END>", "<BEGIN>\n## `patch_class`", "Create a new class based on the input_class.", " :param class input_class: The class to patch.\n :rtype class:\n<END>", "<BEGIN>\n## `clear`", "Clears a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_matching_allowance 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 _find_matching_allowance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Return a matching allowance. Returns the first allowance that matches the ones declared. Tries one with specific arguments first, then falls back to an allowance that allows arbitrary arguments. :return: The matching ``Allowance``, if one was found. :rtype: Allowance, None
"Return a matching allowance.\n\n Returns the first allowance that matches the ones declared. Tries one with specific\n arguments first, then falls back to an allowance that allows arbitrary arguments.\n\n :return: The matching ``Allowance``, if one was found.\n :rtype: Allowance, None"
171
false
uber/doubles
_find_matching_allowance
21,279
LDU_FT/pinax/django-user-accounts/login_required
LDU_FT
[ "<BEGIN>\n## `user_post_save`", "After User.save is called we check to see if it was a created user. If so,\n we check if the User object wants account creation. If all passes we\n create an Account object.", " We only run on user creation to avoid having to check for existence on\n each call to Use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login_required API. 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 login_required API. 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...
Decorator for views that checks that the user is logged in, redirecting to the log in page if necessary.
"Decorator for views that checks that the user is logged in, redirecting\n to the log in page if necessary."
16
false
pinax/django-user-accounts
login_required
21,280
LDU_FT/aerkalov/ebooklib/set_cover
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 set_cover API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cover API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Set cover and create cover document if needed. :Args: - file_name: file name of the cover page - content: Content for the cover image - create_page: Should cover page be defined. Defined as bool value (optional). Default value is True.
"Set cover and create cover document if needed.\n\n :Args:\n - file_name: file name of the cover page\n - content: Content for the cover image\n - create_page: Should cover page be defined. Defined as bool value (optional). Default value is True."
66
false
aerkalov/ebooklib
set_cover
21,281
LDU_FT/huffpostdata/python-pollster/sanitize_for_serialization
LDU_FT
[ "<BEGIN>\n## `charts_get`", "Charts\n Returns a list of Charts, ordered by creation date (newest first). A Chart is chosen by Pollster editors. One example is \\\"Obama job approval - Democrats\\\". It is always based upon a single Question. Users should strongly consider basing their analysis on Questio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanitize_for_serialization 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 sanitize_for_serialization API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Builds a JSON POST object. If obj is None, return None. If obj is str, int, long, float, bool, return directly. If obj is datetime.datetime, datetime.date convert to string in iso8601 format. If obj is list, sanitize each element in the list. If obj is dict, return t...
"Builds a JSON POST object.\n\n If obj is None, return None.\n If obj is str, int, long, float, bool, return directly.\n If obj is datetime.datetime, datetime.date\n convert to string in iso8601 format.\n If obj is list, sanitize each element in the list.\n If obj is dict, ...
58
false
huffpostdata/python-pollster
sanitize_for_serialization
21,282
LDU_FT/LordDarkula/chess_py/loc_adjacent_to_opponent_king
LDU_FT
[ "<BEGIN>\n## `_get_piece`", "Returns Piece subclass given index of piece.", " :type: index: int\n :type: loc Location", " :raise: KeyError\n<END>", "<BEGIN>\n## `incomplete_alg`", "Converts a string written in short algebraic form into an incomplete move.\n These incomplete moves do not have t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loc_adjacent_to_opponent_king API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loc_adjacent_to_opponent_king API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Finds if 2 kings are touching given the position of one of the kings. :type: location: Location :type: position: Board :rtype: bool
"Finds if 2 kings are touching given the position of one of the kings.\n\n :type: location: Location\n :type: position: Board\n :rtype: bool"
173
false
LordDarkula/chess_py
loc_adjacent_to_opponent_king
21,283
LDU_FT/seznam/shelter/run
LDU_FT
[ "<BEGIN>\n## `exitcode`", "Process exit code. :const:`0` when process exited successfully,\n positive number when exception was occurred, negative number when\n process was signaled and :data:`None` when process has not exited\n yet.\n<END>", "<BEGIN>\n## `run`", "Tornado worker which han...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Tornado worker which handles HTTP requests.
"Tornado worker which handles HTTP requests."
61
false
seznam/shelter
run
21,284
LDU_FT/Vital-Fernandez/dazer/round_sig
LDU_FT
[ "<BEGIN>\n## `linfit`", "Least squares linear fit.", " Fit a straight line `f(x_true) = a + bx` to points `(x_true, y)`. Returns\n coefficients `a` and `b` that minimize the squared error.", " Parameters\n ----------\n x_true : array_like\n one dimensional array of `x_true` data with `n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the round_sig API. 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 round_sig API. 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...
round floating point x to n significant figures
"round floating point x to n significant figures"
228
false
Vital-Fernandez/dazer
round_sig
21,285
LDU_FT/ivanprjcts/sdklib/encode_params
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse the given XML input and convert it into a dictionary.", " `xml_input` can either be a `string` or a file-like object.", " If `xml_attribs` is `True`, element attributes are put in the dictionary\n among regular child elements, using `@` as a prefix to avoid collisions. I...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Build the body for a text/plain request. Will successfully encode parameters when passed as a dict or a list of 2-tuples. Order is retained if data is a list of 2-tuples but arbitrary if parameters are supplied as a dict.
"Build the body for a text/plain request.\n Will successfully encode parameters when passed as a dict or a list of\n 2-tuples. Order is retained if data is a list of 2-tuples but arbitrary\n if parameters are supplied as a dict."
125
false
ivanprjcts/sdklib
encode_params
21,286
LDU_FT/mikeboers/Flask-ACL/parse_permission_set
LDU_FT
[ "<BEGIN>\n## `parse_state`", "Convert a bool, or string, into a bool.", " The string pairs we respond to (case insensitively) are:", " - ALLOW & DENY\n - GRANT & REJECT", " :returns bool: ``True`` or ``False``.\n :raises ValueError: when not a ``bool`` or one of the above strings.", " E....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_permission_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_permission_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Lookup a permission set name in the defined permissions. Requires a Flask app context.
"Lookup a permission set name in the defined permissions.\n\n Requires a Flask app context."
44
false
mikeboers/Flask-ACL
parse_permission_set
21,287
LDU_FT/serge-sans-paille/pythran/visit_Cond
LDU_FT
[ "<BEGIN>\n## `check_specs`", "Does nothing but raising PythranSyntaxError if specs\n are incompatible with the actual code\n<END>", "<BEGIN>\n## `check_exports`", "Does nothing but raising PythranSyntaxError if specs\n references an undefined global\n<END>", "<BEGIN>\n## `visit_Import`", "Check if i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_Cond API. 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 visit_Cond API. 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...
generic expression splitting algorithm. Should work for ifexp and if using W(rap) and U(n)W(rap) to manage difference between expr and stmt The idea is to split a BinOp in three expressions: 1. a (possibly empty) non-static expr 2. an expr containing a static expr 3....
"generic expression splitting algorithm. Should work for ifexp and if\n using W(rap) and U(n)W(rap) to manage difference between expr and stmt\n\n The idea is to split a BinOp in three expressions:\n 1. a (possibly empty) non-static expr\n 2. an expr containing a static expr\n ...
547
false
serge-sans-paille/pythran
visit_Cond
21,288
LDU_FT/dfunckt/django-connections/connected_to_objects
LDU_FT
[ "<BEGIN>\n## `get_connection_distance`", "Calculates the distance between the two given objects for the given\n relationship. See `connections.models.Relationship` for more info.", " {% get_connection_distance 'relationship_name' obj1 obj2 as distance %}\n {% get_connection_distance 'relationsh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connected_to_objects 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 connected_to_objects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns a query set matching all connected objects with the given object as a destination.
"Returns a query set matching all connected objects with the given\n object as a destination."
25
false
dfunckt/django-connections
connected_to_objects
21,289
LDU_FT/NASA-AMMOS/AIT-Core/segment
LDU_FT
[ "<BEGIN>\n## `crc32File`", "Computes the CRC-32 of the contents of filename, optionally\n skipping a certain number of bytes at the beginning of the file.\n<END>", "<BEGIN>\n## `endianSwapU16`", "Swaps pairs of bytes (16-bit words) in the given bytearray.\n<END>", "<BEGIN>\n## `setDictDefaults`", "Sets...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the segment API. 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 segment API. 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...
Segment the given pcap file(s) by one or more thresholds (``nbytes``, ``npackets``, ``nseconds``). New segment filenames are determined based on the ``strftime(3)`` ``format`` string and the timestamp of the first packet in the file. :param filenames: Single filename (string) or list of filenames ...
"Segment the given pcap file(s) by one or more thresholds\n (``nbytes``, ``npackets``, ``nseconds``). New segment filenames\n are determined based on the ``strftime(3)`` ``format`` string\n and the timestamp of the first packet in the file.\n\n :param filenames: Single filename (string) or list of filename...
688
false
NASA-AMMOS/AIT-Core
segment
21,290
LDU_FT/laplacesdemon/django-social-friends-finder/get_or_create_with_social_auth
LDU_FT
[ "<BEGIN>\n## `fetch_friends`", "fetches the friends from twitter using the\n information on django-social-auth models\n user is an instance of UserSocialAuth", " Returns:\n collection of friend objects fetched from facebook\n<END>", "<BEGIN>\n## `fetch_friend_ids`", "fethces ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create_with_social_auth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create_with_social_auth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
creates and saves model instance with collection of UserSocialAuth Raise: NotImplemetedError
"creates and saves model instance with collection of UserSocialAuth\n\n Raise:\n NotImplemetedError"
35
false
laplacesdemon/django-social-friends-finder
get_or_create_with_social_auth
21,291
LDU_FT/InQuest/python-sandboxapi/report
LDU_FT
[ "<BEGIN>\n## `_request`", "Robustness wrapper. Tries up to 3 times to dance with the Sandbox API.", " :type uri: str\n :param uri: URI to append to base_url.\n :type params: dict\n :param params: Optional parameters for API.\n :type files: dict\n :param f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report API. 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 report API. 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 ...
Retrieves the specified report for the analyzed item, referenced by item_id. Available formats include: json, html. :type item_id: str :param item_id: File ID number :type report_format: str :param report_format: Return format :rtype: dict :return: D...
"Retrieves the specified report for the analyzed item, referenced by item_id.\n\n Available formats include: json, html.\n\n :type item_id: str\n :param item_id: File ID number\n :type report_format: str\n :param report_format: Return format\n\n :rtype: dict\n ...
93
false
InQuest/python-sandboxapi
report
21,292
LDU_FT/EelcoHoogendoorn/Numpy_arraysetops_EP/split_array_as_list
LDU_FT
[ "<BEGIN>\n## `group_by`", "construct a grouping object on the given keys, optionally performing the given reduction on the given values", " Parameters\n ----------\n keys : indexable object\n keys to group by\n values : array_like, optional\n sequence of values, of the same length as k...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_array_as_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_array_as_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Group values as a list of arrays, or a jagged-array Parameters ---------- values : ndarray, [keys, ...] Returns ------- list of length self.groups of ndarray, [key_count, ...]
"Group values as a list of arrays, or a jagged-array\n\n Parameters\n ----------\n values : ndarray, [keys, ...]\n\n Returns\n -------\n list of length self.groups of ndarray, [key_count, ...]"
198
false
EelcoHoogendoorn/Numpy_arraysetops_EP
split_array_as_list
21,293
LDU_FT/SiLab-Bonn/pyBAR/get_rate_normalization
LDU_FT
[ "<BEGIN>\n## `thunkify`", "Make a function immediately return a function of no args which, when called,\n waits for the result, which will start being processed in another thread.\n Taken from https://wiki.python.org/moin/PythonDecoratorLibrary.\n<END>", "<BEGIN>\n## `set_event_when_keyboard_interrupt`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rate_normalization 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_rate_normalization API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Takes different hit files (hit_files), extracts the number of events or the scan time (reference) per scan parameter (parameter) and returns an array with a normalization factor. This normalization factor has the length of the number of different parameters. If a cluster_file is specified also the number of clu...
"Takes different hit files (hit_files), extracts the number of events or the scan time (reference) per scan parameter (parameter)\n and returns an array with a normalization factor. This normalization factor has the length of the number of different parameters.\n If a cluster_file is specified also the number of ...
501
false
SiLab-Bonn/pyBAR
get_rate_normalization
21,294
LDU_FT/kivy/buildozer/cmd_init
LDU_FT
[ "<BEGIN>\n## `_sdkmanager`", "Call the sdkmanager in our Android SDK with the given arguments.\n<END>", "<BEGIN>\n## `_locate_java`", "If JAVA_HOME is in the environ, return $JAVA_HOME/bin/s. Otherwise,\n return s.\n<END>", "<BEGIN>\n## `_android_get_installed_platform_tools_version`", "Crudely par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Create a initial buildozer.spec in the current directory
"Create a initial buildozer.spec in the current directory"
54
false
kivy/buildozer
cmd_init
21,295
LDU_FT/OCA/vertical-hotel/write
LDU_FT
[ "<BEGIN>\n## `_offset_format_timestamp1`", "Convert a source timeStamp string into a destination timeStamp string,\n attempting to apply the correct offset if both the server and local\n timeZone are recognized,or no offset at all if they aren't or if\n tz_offset is false (i.e. assuming they are both in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Overrides orm write method. @param self: The object pointer @param vals: dictionary of fields value.
"Overrides orm write method.\n @param self: The object pointer\n @param vals: dictionary of fields value."
71
false
OCA/vertical-hotel
write
21,296
LDU_FT/frejanordsiek/hdf5storage/convert_to_str
LDU_FT
[ "<BEGIN>\n## `update_type_lookups`", "Update type and typestring lookup dicts.", " Must be called once the ``types`` and ``python_type_strings``\n attributes are set so that ``type_to_typestring`` and\n ``typestring_to_type`` are constructed.", " .. versionadded:: 0.2", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Decodes data to the Python 3.x str (Python 2.x unicode) type. Decodes `data` to a Python 3.x ``str`` (Python 2.x ``unicode``). If it can't be decoded, it is returned as is. Unsigned integers, Python ``bytes``, and Numpy strings (``numpy.unicode_`` and ``numpy.bytes_``). Python 3.x ``bytes``, Python 2.x...
"Decodes data to the Python 3.x str (Python 2.x unicode) type.\n\n Decodes `data` to a Python 3.x ``str`` (Python 2.x ``unicode``). If\n it can't be decoded, it is returned as is. Unsigned integers, Python\n ``bytes``, and Numpy strings (``numpy.unicode_`` and\n ``numpy.bytes_``). Python 3.x ``bytes``, Pyth...
264
false
frejanordsiek/hdf5storage
convert_to_str
21,297
LDU_FT/mozilla/funfactory/install_reqs
LDU_FT
[ "<BEGIN>\n## `clone_repo`", "Clone the Playdoh repo into a custom path.\n<END>", "<BEGIN>\n## `init_pkg`", "Initializes a custom named package module.", " This works by replacing all instances of 'project' with a custom module\n name.\n<END>", "<BEGIN>\n## `create_settings`", "Creates a local sett...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_reqs API. 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 install_reqs API. 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...
Installs all compiled requirements that can't be shipped in vendor.
"Installs all compiled requirements that can't be shipped in vendor."
52
false
mozilla/funfactory
install_reqs
21,298
LDU_FT/tomer8007/kik-bot-api-unofficial/demote_admin
LDU_FT
[ "<BEGIN>\n## `_connect`", "Runs the kik connection thread, which creates an encrypted (SSL based) TCP connection\n to the kik servers.\n<END>", "<BEGIN>\n## `_on_connection_made`", "Gets called when the TCP connection to kik's servers is done and we are connected.\n Now we might initiate a login...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the demote_admin API. 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 demote_admin API. 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...
Turns an admin of a group into a regular user with no amidships capabilities. :param group_jid: The group JID in which the rights apply :param peer_jid: The admin user to demote :return:
"Turns an admin of a group into a regular user with no amidships capabilities.\n\n :param group_jid: The group JID in which the rights apply\n :param peer_jid: The admin user to demote\n :return:"
96
false
tomer8007/kik-bot-api-unofficial
demote_admin
21,299
LDU_FT/Hackerfleet/hfos/delete
LDU_FT
[ "<BEGIN>\n## `_augment_book`", "Checks if the newly created object is a book and only has an ISBN.\n If so, tries to fetch the book data off the internet.", " :param uuid: uuid of book to augment\n :param client: requesting client\n<END>", "<BEGIN>\n## `serial_ports`", "Lists serial por...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete an existing component configuration. This will trigger the creation of its default configuration upon next restart.
"Delete an existing component configuration. This will trigger\n the creation of its default configuration upon next restart."
344
false
Hackerfleet/hfos
delete
21,300
LDU_FT/reingart/pyafipws/AgregarAjusteMonetario
LDU_FT
[ "<BEGIN>\n## `__analizar_errores`", "Comprueba y extrae errores si existen en la respuesta XML\n<END>", "<BEGIN>\n## `__analizar_controles`", "Comprueba y extrae controles si existen en la respuesta XML\n<END>", "<BEGIN>\n## `Dummy`", "Obtener el estado de los servidores de la AFIP\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AgregarAjusteMonetario 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 AgregarAjusteMonetario API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Agrega campos al detalle de item por un ajuste monetario
"Agrega campos al detalle de item por un ajuste monetario"
334
false
reingart/pyafipws
AgregarAjusteMonetario
21,301
LDU_FT/bitly/asyncmongo/cache
LDU_FT
[ "<BEGIN>\n## `_unpack_response`", "Unpack a response from the database.", " Check the response for errors and unpack, returning a dictionary\n containing the response data.", " :Parameters:\n - `response`: byte string as returned from the database\n - `cursor_id` (optional): cursor_id we se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Put a dedicated connection back into the idle cache.
"Put a dedicated connection back into the idle cache."
88
false
bitly/asyncmongo
cache
21,302
LDU_FT/jaredLunde/vital-tools/stdev
LDU_FT
[ "<BEGIN>\n## `line`", "Prints a line separator the full width of the terminal.", " @separator: the #str chars to create the line from\n @color: line color from :mod:vital.debug.colors\n @padding: adds extra lines to either the top, bottom or both\n of the line via :func:padd\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stdev API. 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 stdev API. 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...
-> #float :func:numpy.std of the timing intervals
"-> #float :func:numpy.std of the timing intervals"
396
false
jaredLunde/vital-tools
stdev
21,303
LDU_FT/sendgrid/sendgrid-python/category
LDU_FT
[ "<BEGIN>\n## `threshold`", "Threshold used to determine if your content qualifies as spam.\n On a scale from 1 to 10, with 10 being most strict, or most likely to\n be considered as spam.", " :param value: Threshold used to determine if your content qualifies as\n spam....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the category API. 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 category API. 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...
Add categories assigned to this message :rtype: list(Category)
"Add categories assigned to this message\n\n :rtype: list(Category)"
229
false
sendgrid/sendgrid-python
category
21,304
LDU_FT/jorgenschaefer/elpy/linecol_to_pos
LDU_FT
[ "<BEGIN>\n## `get_pydoc_completions`", "Get possible completions for modulename for pydoc.", " Returns a list of possible values to be passed to pydoc.\n<END>", "<BEGIN>\n## `get_modules`", "Return a list of modules and packages under modulename.", " If modulename is not given, return a list of all ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the linecol_to_pos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the linecol_to_pos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return the offset of this line and column in text. Lines are one-based, columns zero-based. This is how Jedi wants it. Don't ask me why.
"Return the offset of this line and column in text.\n\n Lines are one-based, columns zero-based.\n\n This is how Jedi wants it. Don't ask me why."
97
false
jorgenschaefer/elpy
linecol_to_pos
21,305
LDU_FT/mukulhase/WebWhatsapp-Wrapper/create_client
LDU_FT
[ "<BEGIN>\n## `run`", "Locks the main thread while the subscription in running\n<END>", "<BEGIN>\n## `save_firefox_profile`", "Function to save the firefox profile to the permanant one\n<END>", "<BEGIN>\n## `get_contacts`", "Fetches list of all contacts\n This will return chats with people from the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Create a new client driver. The driver is automatically created in before_request function.
"Create a new client driver. The driver is automatically created in \n before_request function."
108
false
mukulhase/WebWhatsapp-Wrapper
create_client
21,306
LDU_FT/mryellow/maze_explorer/do_move
LDU_FT
[ "<BEGIN>\n## `update_sensors`", "Check path for each sensor and record wall proximity\n<END>", "<BEGIN>\n## `do_move`", "Updates velocity and returns Rects for start/finish positions\n<END>", "<BEGIN>\n## `add_item`", "Add a single item in random open position\n<END>", "<BEGIN>\n## `map`", "Creates an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_move API. 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_move API. 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 velocity and returns Rects for start/finish positions
"Updates velocity and returns Rects for start/finish positions"
16
false
mryellow/maze_explorer
do_move
21,307
LDU_FT/grundic/yagocd/jobs
LDU_FT
[ "<BEGIN>\n## `urljoin`", "Joins given arguments into a url. Trailing but not leading slashes are\n stripped for each argument.\n<END>", "<BEGIN>\n## `server_version`", "Special method for getting server version.", " Because of different behaviour on different versions of\n server, we ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jobs API. 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 jobs API. 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...
Property for accessing :class:`JobManager` instance, which is used to manage feeds. :rtype: yagocd.resources.job.JobManager
"Property for accessing :class:`JobManager` instance, which is used to manage feeds.\n\n :rtype: yagocd.resources.job.JobManager"
164
false
grundic/yagocd
jobs
21,308
LDU_FT/opentok/Opentok-Python-SDK/get_archives
LDU_FT
[ "<BEGIN>\n## `get_stream_url`", "this method returns the url to get streams information\n<END>", "<BEGIN>\n## `force_disconnect_url`", "this method returns the force disconnect url endpoint\n<END>", "<BEGIN>\n## `set_archive_layout_url`", "this method returns the url to set the archive layout\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_archives API. 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 get_archives API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns an ArchiveList, which is an array of archives that are completed and in-progress, for your API key. :param int: offset Optional. The index offset of the first archive. 0 is offset of the most recently started archive. 1 is the offset of the archive that started prior to the ...
"Returns an ArchiveList, which is an array of archives that are completed and in-progress,\n for your API key.\n\n :param int: offset Optional. The index offset of the first archive. 0 is offset\n of the most recently started archive. 1 is the offset of the archive that started prior to\n ...
128
false
opentok/Opentok-Python-SDK
get_archives
21,309
LDU_FT/Aluriak/ACCC/translated
LDU_FT
[ "<BEGIN>\n## `constructSpec`", "Return a language specification based on parameters.\n<END>", "<BEGIN>\n## `translated`", "Return code associated to given structure and values, \n translate with given language specification.\n<END>", "<BEGIN>\n## `cpp_spec`", "C++ specification, provided for example, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translated API. 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 translated API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return code associated to given structure and values, translate with given language specification.
"Return code associated to given structure and values, \n translate with given language specification."
22
false
Aluriak/ACCC
translated
21,310
LDU_FT/yunojuno/elasticsearch-django/get_model_indexes
LDU_FT
[ "<BEGIN>\n## `execute_search`", "Create a new SearchQuery instance and execute a search against ES.", " Args:\n search: elasticsearch.search.Search object, that internally contains\n the connection and query; this is the query that is executed. All\n we are doing is logging the i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_indexes API. 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_model_indexes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return list of all indexes in which a model is configured. A model may be configured to appear in multiple indexes. This function will return the names of the indexes as a list of strings. This is useful if you want to know which indexes need updating when a model is saved. Args: model: a ...
"Return list of all indexes in which a model is configured.\n\n A model may be configured to appear in multiple indexes. This function\n will return the names of the indexes as a list of strings. This is\n useful if you want to know which indexes need updating when a model\n is saved.\n\n Args:\n ...
124
false
yunojuno/elasticsearch-django
get_model_indexes
21,311
LDU_FT/improbable-research/keanu/Exponential
LDU_FT
[ "<BEGIN>\n## `BooleanSlice`", "Takes the slice along a given dimension and index of a vertex", " :param input_vertex: the input vertex\n :param dimension: the dimension to extract along\n :param index: the index of extraction\n<END>", "<BEGIN>\n## `BooleanTake`", "A vertex that extracts a scalar at...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Exponential API. 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 Exponential API. 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...
One to one constructor for mapping some shape of rate to matching shaped exponential. :param rate: the rate of the Exponential with either the same shape as specified for this vertex or scalar
"One to one constructor for mapping some shape of rate to matching shaped exponential.\n \n :param rate: the rate of the Exponential with either the same shape as specified for this vertex or scalar"
185
false
improbable-research/keanu
Exponential
21,312
LDU_FT/jupyter-widgets/ipywidgets/bash
LDU_FT
[ "<BEGIN>\n## `_cells`", "Yield all cells in an nbformat-insensitive manner\n<END>", "<BEGIN>\n## `strip_output`", "strip the outputs from a notebook object\n<END>", "<BEGIN>\n## `show_inline_matplotlib_plots`", "Show matplotlib plots immediately if using the inline backend.", " With ipywidgets 6.0, m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bash API. 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 bash API. 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...
Runs a bash script in the local directory
"Runs a bash script in the local directory"
159
false
jupyter-widgets/ipywidgets
bash
21,313
LDU_FT/okpy/ok-client/wait_for_save
LDU_FT
[ "<BEGIN>\n## `load`", "Prepares a set of setup, test, and teardown code to be\n run in the console.", " PARAMETERS:\n code -- list; processed lines of code. Elements in the list are\n either strings (input) or CodeAnswer objects (output)\n setup -- str; raw ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_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 ext...
Waits for FILENAME to update, waiting up to TIMEOUT seconds. Returns True if a save was detected, and False otherwise.
"Waits for FILENAME to update, waiting up to TIMEOUT seconds.\n Returns True if a save was detected, and False otherwise."
141
false
okpy/ok-client
wait_for_save
21,314
LDU_FT/python-diamond/Diamond/_flush
LDU_FT
[ "<BEGIN>\n## `utc_to_local`", ":param utc_dt: datetime in UTC\n :return: datetime in the local timezone\n<END>", "<BEGIN>\n## `get_zones`", ":param auth_kwargs:\n :param region: region to get the availability zones for\n :return: list of availability zones\n<END>", "<BEGIN>\n## `publish_delayed_met...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _flush API. 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 _flush API. 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 ...
We skip any locking code due to the fact that this is now a single process per collector
"We skip any locking code due to the fact that this is now a single\n process per collector"
454
false
python-diamond/Diamond
_flush
21,315
LDU_FT/tethysplatform/condorpy/_update_status
LDU_FT
[ "<BEGIN>\n## `_get_all_descendants`", "traverses all descendants nodes\n :raises: CircularDependency if self is contained in descendants\n :return: a set containing all descendant nodes\n<END>", "<BEGIN>\n## `set_scheduler`", "Defines the remote scheduler", " Args:\n host (st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_status API. 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 _update_status API. 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...
Gets the job status. Return: str: The current status of the job
"Gets the job status.\n\n Return:\n str: The current status of the job"
52
false
tethysplatform/condorpy
_update_status
21,316
LDU_FT/treycucco/bidon/update
LDU_FT
[ "<BEGIN>\n## `_normalize_name`", "Returns a normalized element tag or attribute name. A tag name or attribute name can be given\n either as a string, or as a 2-tuple. If a 2-tuple, it is interpreted as (namespace, name) and is\n returned joined by a colon \":\"", " :name: a string or a 2-tuple of strings\n<E...
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 ...
Builds and executes and update statement. :param table_name: the name of the table to update :param values: can be either a dict or an enuerable of 2-tuples in the form (column, value). :param constraints: can be any construct that can be parsed by SqlWriter.parse_constraints. Howev...
"Builds and executes and update statement.\n\n :param table_name: the name of the table to update\n :param values: can be either a dict or an enuerable of 2-tuples in the form (column, value).\n :param constraints: can be any construct that can be parsed by SqlWriter.parse_constraints.\n ...
436
false
treycucco/bidon
update
21,317
LDU_FT/PlaidWeb/Pushl/_domain_differs
LDU_FT
[ "<BEGIN>\n## `get_feed`", "Get a feed", " Arguments:", " config -- the configuration\n url -- The URL of the feed", " retval -- a tuple of feed,previous_version,changed\n<END>", "<BEGIN>\n## `archive_namespace`", "Returns the known namespace of the RFC5005 extension, if any\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _domain_differs API. 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 _domain_differs API. 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...
Check that a link is not on the same domain as the source URL
"Check that a link is not on the same domain as the source URL"
38
false
PlaidWeb/Pushl
_domain_differs
21,318
LDU_FT/jrief/djangocms-cascade/_enrich_link
LDU_FT
[ "<BEGIN>\n## `_enrich_link`", "Enrich the dict glossary['link'] with an identifier onto the model\n<END>", "<BEGIN>\n## `get_form`", "Extend the form for the given plugin with the form SharableCascadeForm\n<END>", "<BEGIN>\n## `get_picture_elements`", "Create a context, used to render a <picture> together...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _enrich_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _enrich_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Enrich the dict glossary['link'] with an identifier onto the model
"Enrich the dict glossary['link'] with an identifier onto the model"
78
false
jrief/djangocms-cascade
_enrich_link
21,319
LDU_FT/leancloud/python-sdk/add_unique
LDU_FT
[ "<BEGIN>\n## `become`", "通过 session token 获取用户对象", " :param session_token: 用户的 session token\n :return: leancloud.User\n<END>", "<BEGIN>\n## `sign_up`", "创建一个新用户。新创建的 User 对象,应该使用此方法来将数据保存至服务器,而不是使用 save 方法。\n 用户对象上必须包含 username 和 password 两个字段\n<END>", "<BEGIN>\n## `login`", "登陆用户。...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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. The extrac...
在对象此字段对应的数组末尾添加指定对象,如果此对象并没有包含在字段中。 :param attr: 字段名 :param item: 要添加的对象 :return: 当前对象
"在对象此字段对应的数组末尾添加指定对象,如果此对象并没有包含在字段中。\n\n :param attr: 字段名\n :param item: 要添加的对象\n :return: 当前对象"
161
false
leancloud/python-sdk
add_unique
21,320
LDU_FT/dcaune/perseus-lib-python-common/string_to_uuid
LDU_FT
[ "<BEGIN>\n## `convert_image_to_rgb_mode`", "Convert the specified image instance to RGB mode.", " @param image: a Python Library Image (PIL) instance to convert its\n pixel format to RGB, discarding the alpha channel.", " @param fill_color: color to be used to fill transparent pixels when\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the string_to_uuid API. 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 string_to_uuid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a Universally Unique Identifier (UUID) object represented by the specified string. @param value: a string representation of a UUID. @param strict: indicate whether the specified string MUST be of a valid UUID representation. @return: a UUID object.
"Return a Universally Unique Identifier (UUID) object represented by\n the specified string.\n\n @param value: a string representation of a UUID.\n @param strict: indicate whether the specified string MUST be of a\n valid UUID representation.\n\n @return: a UUID object."
498
false
dcaune/perseus-lib-python-common
string_to_uuid
21,321
LDU_FT/jeffbuttars/upkg/create_repo
LDU_FT
[ "<BEGIN>\n## `exec`", "todo: Docstring for exec", " :param args: arg description\n :type args: type description\n :return:\n :rtype:\n<END>", "<BEGIN>\n## `exec`", "todo: Docstring for exec", " :param args: arg description\n :type args: type description\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_repo API. 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 create_repo API. 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...
todo: Docstring for create_repo :param name: arg description :type name: type description :return: :rtype:
"todo: Docstring for create_repo\n \n :param name: arg description\n :type name: type description\n :return:\n :rtype:"
76
false
jeffbuttars/upkg
create_repo
21,322
LDU_FT/bmihelac/django-cruds/crud_fields
LDU_FT
[ "<BEGIN>\n## `crud_url_name`", "Returns url name for given model and action.\n<END>", "<BEGIN>\n## `get_fields`", "Returns ordered dict in format 'field': 'verbose_name'\n<END>", "<BEGIN>\n## `crud_url`", "Shortcut function returns URL for instance or model and action.", " Example::", " crud...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crud_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crud_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 extra...
Display object fields in table rows:: <table> {% crud_fields object 'id, %} </table> * ``fields`` fields to include If fields is ``None`` all fields will be displayed. If fields is ``string`` comma separated field names will be displayed. if field is di...
"Display object fields in table rows::\n\n <table>\n {% crud_fields object 'id, %}\n </table>\n\n * ``fields`` fields to include\n\n If fields is ``None`` all fields will be displayed.\n If fields is ``string`` comma separated field names will be\n displayed.\n if...
34
false
bmihelac/django-cruds
crud_fields
21,323
LDU_FT/gbiggs/rtsprofile/parse_xml_node
LDU_FT
[ "<BEGIN>\n## `parse_xml_node`", "Parse an xml.dom Node object representing a message sending object\n into this object.\n<END>", "<BEGIN>\n## `parse_yaml`", "Parse a YAML speficication of a message sending object into this\n object.\n<END>", "<BEGIN>\n## `save_xml`", "Save this message_sendi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_xml_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_xml_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Parse an xml.dom Node object representing a participant into this object.
"Parse an xml.dom Node object representing a participant into this\n object."
166
false
gbiggs/rtsprofile
parse_xml_node
21,324
LDU_FT/pyecore/pyecoregen/filter_pyfqn
LDU_FT
[ "<BEGIN>\n## `filtered_elements`", "Return iterator based on `element_type`.\n<END>", "<BEGIN>\n## `folder_path_for_package`", "Returns path to folder holding generated artifact for given element.\n<END>", "<BEGIN>\n## `imported_classifiers_package`", "Determines which classifiers have to be imported into...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_pyfqn API. 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_pyfqn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns Python form of fully qualified name. Args: relative_to: If greater 0, the returned path is relative to the first n directories.
"Returns Python form of fully qualified name.\n\n Args:\n relative_to: If greater 0, the returned path is relative to the first n directories."
23
false
pyecore/pyecoregen
filter_pyfqn
21,325
LDU_FT/marcolagi/quantulum/clean_surface
LDU_FT
[ "<BEGIN>\n## `get_numwords`", "Convert number words to integers in a given text.\n<END>", "<BEGIN>\n## `get_dimension_permutations`", "Get all possible dimensional definitions for an entity.\n<END>", "<BEGIN>\n## `download_wiki`", "Download WikiPedia pages of ambiguous units.\n<END>", "<BEGIN>\n## `disa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_surface API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_surface API. 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...
Remove spurious characters from a quantity's surface.
"Remove spurious characters from a quantity's surface."
30
false
marcolagi/quantulum
clean_surface
21,326
LDU_FT/asottile/git-code-debt/discover
LDU_FT
[ "<BEGIN>\n## `insert_metric_changes`", "Insert into the metric_changes tables.", " :param metrics: `list` of `Metric` objects\n :param dict metric_mapping: Maps metric names to ids\n :param Commit commit:\n<END>", "<BEGIN>\n## `get_commits`", "Returns a list of Commit objects.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discover API. 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 discover API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns a set of classes in the directory matched by cls_match_func Args: path - A Python package cls_match_func - Function taking a class and returning true if the class is to be included in the output.
"Returns a set of classes in the directory matched by cls_match_func\n\n Args:\n path - A Python package\n cls_match_func - Function taking a class and returning true if the\n class is to be included in the output."
21
false
asottile/git-code-debt
discover
21,327
LDU_FT/lappis-unb/salic-ml/register
LDU_FT
[ "<BEGIN>\n## `approved_funds`", "Verifica se o valor total de um projeto é um\n outlier em relação\n aos projetos do mesmo seguimento cultural\n Dataframes: planilha_orcamentaria\n<END>", "<BEGIN>\n## `complexidade`", "Returns a value that indicates project health, currently FinancialIndicator\n i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. 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 register API. 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...
Usage: @metrics.register('finance') def approved_funds(pronac, data): return metric_from_data_and_pronac_number(data, pronac)
"Usage:\n @metrics.register('finance')\n def approved_funds(pronac, data):\n return metric_from_data_and_pronac_number(data, pronac)"
102
false
lappis-unb/salic-ml
register
21,328
LDU_FT/sunt05/SuPy/load_SUEWS_Forcing_met_df_pattern
LDU_FT
[ "<BEGIN>\n## `_path_insensitive`", "Recursive part of path_insensitive to do the work.\n<END>", "<BEGIN>\n## `url_is_alive`", "Checks that a given URL is reachable.\n :param url: A URL\n :rtype: bool\n<END>", "<BEGIN>\n## `form_option`", "generate option name based suffix for URL", " :param str...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_SUEWS_Forcing_met_df_pattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_SUEWS_Forcing_met_df_pattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Short summary. Parameters ---------- forcingfile_met_pattern : type Description of parameter `forcingfile_met_pattern`. Returns ------- type Description of returned object.
"Short summary.\n\n Parameters\n ----------\n forcingfile_met_pattern : type\n Description of parameter `forcingfile_met_pattern`.\n\n Returns\n -------\n type\n Description of returned object."
143
false
sunt05/SuPy
load_SUEWS_Forcing_met_df_pattern
21,329
LDU_FT/balloob/pychromecast/play_video
LDU_FT
[ "<BEGIN>\n## `new_connection_status`", "Handle reception of a new ConnectionStatus.\n<END>", "<BEGIN>\n## `register_listener`", "Register a listener for audio group changes of cast uuid.\n On update will call:\n listener.added_to_multizone(group_uuid)\n The cast has been a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the play_video API. 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 play_video API. 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...
Play video(video_id) now. This ignores the current play queue order. :param video_id: YouTube video id(http://youtube.com/watch?v=video_id) :param playlist_id: youtube.com/watch?v=video_id&list=playlist_id
"Play video(video_id) now. This ignores the current play queue order.\n :param video_id: YouTube video id(http://youtube.com/watch?v=video_id)\n :param playlist_id: youtube.com/watch?v=video_id&list=playlist_id"
145
false
balloob/pychromecast
play_video
21,330
LDU_FT/sashahart/cookies/from_response
LDU_FT
[ "<BEGIN>\n## `strip_spaces_and_quotes`", "Remove invalid whitespace and/or single pair of dquotes and return None\n for empty strings.", " Used to prepare cookie values, path, and domain attributes in a way which\n tolerates simple formatting mistakes and standards variations.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Construct a Cookies object from response header data.
"Construct a Cookies object from response header data."
63
false
sashahart/cookies
from_response
21,331
LDU_FT/josuebrunel/myql/_clause_formatter
LDU_FT
[ "<BEGIN>\n## `get_current_info`", "get_current_info() uses the yahoo.finance.quotes datatable to get all of the stock information presented in the main table on a typical stock page \n and a bunch of data from the key statistics page.\n<END>", "<BEGIN>\n## `get_news_feed`", "get_news_feed() uses the rs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clause_formatter API. 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 _clause_formatter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Formats conditions args is a list of ['field', 'operator', 'value']
"Formats conditions\n args is a list of ['field', 'operator', 'value']"
44
false
josuebrunel/myql
_clause_formatter
21,332
LDU_FT/Delgan/loguru/configure
LDU_FT
[ "<BEGIN>\n## `add`", "r\"\"\"Add a handler sending log messages to a sink adequately configured.", " Parameters\n ----------\n sink : |file-like object|_, |str|, |Path|, |function|_, |Handler| or |class|_\n An object in charge of receiving formatted logging messages and propagati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. 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 configure API. 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...
Configure the core logger. It should be noted that ``extra`` values set using this function are available across all modules, so this is the best way to set overall default values. Parameters ---------- handlers : |list| of |dict|, optional A list of each handler to...
"Configure the core logger.\n\n It should be noted that ``extra`` values set using this function are available across all\n modules, so this is the best way to set overall default values.\n\n Parameters\n ----------\n handlers : |list| of |dict|, optional\n A list of each h...
141
false
Delgan/loguru
configure
21,333
LDU_FT/dbrattli/OSlash/compose
LDU_FT
[ "<BEGIN>\n## `map`", "r\"\"\"Map a function over the Reader.", " Haskell:\n fmap f m = Reader $ \\r -> f (runReader m r).\n fmap f g = (\\x -> f (g x))\n<END>", "<BEGIN>\n## `bind`", "r\"\"\"Bind a monadic function to the Reader.", " Haskell:\n Reader: m >>= k = Reader ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compose API. 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 compose API. 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...
Compose multiple functions right to left. Composes zero or more functions into a functional composition. The functions are composed right to left. A composition of zero functions gives back the identity function. compose()(x) == x compose(f)(x) == f(x) compose(g, f)(x) == g(f(x)) compose(h...
"Compose multiple functions right to left.\n\n Composes zero or more functions into a functional composition. The\n functions are composed right to left. A composition of zero\n functions gives back the identity function.\n\n compose()(x) == x\n compose(f)(x) == f(x)\n compose(g, f)(x) == g(f(x))\n ...
76
false
dbrattli/OSlash
compose
21,334
LDU_FT/mgedmin/findimports/isModule
LDU_FT
[ "<BEGIN>\n## `adjust_lineno`", "Adjust the line number of an import.", " Needed because import statements can span multiple lines, and our lineno\n is always the first line number.\n<END>", "<BEGIN>\n## `find_imports`", "Find all imported names in a given file.", " Returns a list of ImportInfo ob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isModule API. 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 isModule API. 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...
Is ``dotted_name`` the name of a module?
"Is ``dotted_name`` the name of a module?"
29
false
mgedmin/findimports
isModule
21,335
LDU_FT/mmerickel/subparse/load_commands_from_entry_point
LDU_FT
[ "<BEGIN>\n## `parse_docstring`", "Parse a PEP-257 docstring.", " SHORT -> blank line -> LONG\n<END>", "<BEGIN>\n## `add_command`", "Attach a command directly to the :class:`CLI` object.\n<END>", "<BEGIN>\n## `command`", "Attach a command to the current :class:`CLI` object.", " The function s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_commands_from_entry_point API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_commands_from_entry_point API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Load commands defined within a pkg_resources entry point. Each entry will be a module that should be searched for functions decorated with the :func:`subparse.command` decorator. This operation is not recursive.
"Load commands defined within a pkg_resources entry point.\n\n Each entry will be a module that should be searched for functions\n decorated with the :func:`subparse.command` decorator. This\n operation is not recursive."
19
false
mmerickel/subparse
load_commands_from_entry_point
21,336
LDU_FT/discolabs/django-shopify-auth/add_query_parameters_to_url
LDU_FT
[ "<BEGIN>\n## `initialise_shopify_session`", "Initialise the Shopify session with the Shopify App's API credentials.\n<END>", "<BEGIN>\n## `anonymous_required`", "Decorator requiring the current user to be anonymous (not logged in).\n<END>", "<BEGIN>\n## `login_required`", "Decorator that wraps django.cont...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_query_parameters_to_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_query_parameters_to_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Merge a dictionary of query parameters into the given URL. Ensures all parameters are sorted in dictionary order when returning the URL.
"Merge a dictionary of query parameters into the given URL.\n Ensures all parameters are sorted in dictionary order when returning the URL."
11
false
discolabs/django-shopify-auth
add_query_parameters_to_url
21,337
LDU_FT/jeffknupp/sandman2/etag
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Return a dictionary representation of the exception.\n<END>", "<BEGIN>\n## `required`", "Return a list of all columns required by the database to create the\n resource.", " :param cls: The Model class to gather attributes from\n :rtype: list\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the etag API. 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 etag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return a decorator that generates proper ETag values for a response. :param func: view function
"Return a decorator that generates proper ETag values for a response.\n\n :param func: view function"
74
false
jeffknupp/sandman2
etag
21,338
LDU_FT/zhanglab/psamm/parse_limits_table_file
LDU_FT
[ "<BEGIN>\n## `_combine_transfers`", "Combine multiple pair transfers into one.\n<END>", "<BEGIN>\n## `parse_compound_file`", "Iterate over the compound entries in the given file\n<END>", "<BEGIN>\n## `parse_compound`", "Parse a compound specification.", " If no compartment is specified in the string,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_limits_table_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_limits_table_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...
Parse a space-separated file containing reaction flux limits The first column contains reaction IDs while the second column contains the lower flux limits. The third column is optional and contains the upper flux limit.
"Parse a space-separated file containing reaction flux limits\n\n The first column contains reaction IDs while the second column contains\n the lower flux limits. The third column is optional and contains the\n upper flux limit."
584
false
zhanglab/psamm
parse_limits_table_file
21,339
LDU_FT/consbio/ncdjango/execute
LDU_FT
[ "<BEGIN>\n## `p_binary_operators`", "conditional : conditional AND condition\n | conditional OR condition\n condition : condition LTE expression\n | condition GTE expression\n | condition LT expression\n | condition GT expression...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. 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 execute API. 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...
Creates and returns a masked view of the input array.
"Creates and returns a masked view of the input array."
146
false
consbio/ncdjango
execute
21,340
LDU_FT/rasbt/biopandas/distance
LDU_FT
[ "<BEGIN>\n## `docstring_to_markdown`", "Convert a Python object's docstring to markdown", " Parameters\n ----------\n docstring : str\n The docstring body.", " Returns\n ----------\n clean_lst : list\n The markdown formatted docstring as lines (str) in a Python list.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distance API. 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 distance API. 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...
Computes Euclidean distance between atoms and a 3D point. Parameters ---------- xyz : tuple, default: (0.00, 0.00, 0.00) X, Y, and Z coordinate of the reference center for the distance computation. records : iterable, default: ('ATOM', 'HETATM') Speci...
"Computes Euclidean distance between atoms and a 3D point.\n\n Parameters\n ----------\n xyz : tuple, default: (0.00, 0.00, 0.00)\n X, Y, and Z coordinate of the reference center for the distance\n computation.\n records : iterable, default: ('ATOM', 'HETATM')\n ...
110
false
rasbt/biopandas
distance
21,341
LDU_FT/tkem/uritools/getscheme
LDU_FT
[ "<BEGIN>\n## `urijoin`", "Convert a URI reference relative to a base URI to its target URI\n string.\n<END>", "<BEGIN>\n## `uridefrag`", "Remove an existing fragment component from a URI reference string.\n<END>", "<BEGIN>\n## `geturi`", "Return the recombined version of the original URI as a string.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getscheme API. 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 getscheme API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the URI scheme in canonical (lowercase) form, or `default` if the original URI reference did not contain a scheme component.
"Return the URI scheme in canonical (lowercase) form, or `default`\n if the original URI reference did not contain a scheme component."
45
false
tkem/uritools
getscheme
21,342
LDU_FT/Toilal/rebulk/toposort_rules
LDU_FT
[ "<BEGIN>\n## `formatters`", "Chain formatter functions.\n :param chained_formatters:\n :type chained_formatters:\n :return:\n :rtype:\n<END>", "<BEGIN>\n## `_default_conflict_solver`", "Default conflict solver for matches, shorter matches if they conflicts with longer ones", " :param conflict...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toposort_rules API. 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 toposort_rules API. 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...
Sort given rules using toposort with dependency parameter. :param rules: :type rules: :return: :rtype:
"Sort given rules using toposort with dependency parameter.\n :param rules:\n :type rules:\n :return:\n :rtype:"
174
false
Toilal/rebulk
toposort_rules
21,343
LDU_FT/tuomas2/automate/register_service_functions
LDU_FT
[ "<BEGIN>\n## `call_eval`", "Value might be either name registered in System namespace, or object, either\n StatusObject or Callable. If Callable, evaluate :meth:`.call` method. If StatusObject,\n return status.\n<END>", "<BEGIN>\n## `setup_callable_system`", "This function basically sets...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_service_functions 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 register_service_functions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Register function in the system namespace. Called by Services.
"Register function in the system namespace. Called by Services."
91
false
tuomas2/automate
register_service_functions
21,344
LDU_FT/ranaroussi/pywallet/get_child_for_path
LDU_FT
[ "<BEGIN>\n## `create_new_address_for_user`", "Create a new bitcoin address to accept payments for a User.", " This is a convenience wrapper around `get_child` that helps you do\n the right thing. This method always creates a public, non-prime\n address that can be generated from a BIP32 pub...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_child_for_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_child_for_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. Th...
Get a child for a given path. Rather than repeated calls to get_child, children can be found by a derivation path. Paths look like: m/0/1'/10 Which is the same as self.get_child(0).get_child(-1).get_child(10) Or, in other words, the 10th publicly derived chil...
"Get a child for a given path.\n\n Rather than repeated calls to get_child, children can be found\n by a derivation path. Paths look like:\n\n m/0/1'/10\n\n Which is the same as\n\n self.get_child(0).get_child(-1).get_child(10)\n\n Or, in other words, the 10th publicly ...
186
false
ranaroussi/pywallet
get_child_for_path
21,345
LDU_FT/atlassian-api/atlassian-python-api/project_groups
LDU_FT
[ "<BEGIN>\n## `clean_draft_pages_from_space`", "Remove draft pages from space using datetime.now\n :param confluence:\n :param space_key:\n :param count:\n :param date_now:\n :return: int counter\n<END>", "<BEGIN>\n## `clean_all_draft_pages_from_all_spaces`", "Remove all draft pages for all spac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the project_groups API. 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 project_groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get Project Groups :param key: :param limit: OPTIONAL: The limit of the number of groups to return, this may be restricted by fixed system limits. Default by built-in method: 99999 :param filter_str: OPTIONAL: group filter string :return:
"Get Project Groups\n :param key:\n :param limit: OPTIONAL: The limit of the number of groups to return, this may be restricted by\n fixed system limits. Default by built-in method: 99999\n :param filter_str: OPTIONAL: group filter string\n :return:"
414
false
atlassian-api/atlassian-python-api
project_groups
21,346
LDU_FT/pepkit/peppy/check_bam
LDU_FT
[ "<BEGIN>\n## `merge_sample`", "Use merge table (subannotation) data to augment/modify Sample.", " :param Sample sample: sample to modify via merge table data\n :param sample_subann: data with which to alter Sample\n :param Mapping data_sources: collection of named paths to data locations,\n opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_bam API. 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 check_bam API. 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...
Check reads in BAM file for read type and lengths. :param str bam: BAM file path. :param int o: Number of reads to look at for estimation.
"Check reads in BAM file for read type and lengths.\n\n :param str bam: BAM file path.\n :param int o: Number of reads to look at for estimation."
53
false
pepkit/peppy
check_bam
21,347
LDU_FT/androguard/androguard/read_null_terminated_string
LDU_FT
[ "<BEGIN>\n## `go`", "Launch the analysis.", " this will start a total of `max_fetcher` threads.\n<END>", "<BEGIN>\n## `filter_file`", "This method is called in order to filer a specific app", " :param log: an object which corresponds to a unique app\n :param bytes fileraw: the raw fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_null_terminated_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_null_terminated_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Read a null terminated string from a file-like object. :param f: file-like object :rtype: bytearray
"Read a null terminated string from a file-like object.\n\n :param f: file-like object\n :rtype: bytearray"
823
false
androguard/androguard
read_null_terminated_string
21,348
LDU_FT/yougov/vr.common/dispatch
LDU_FT
[ "<BEGIN>\n## `str_to_pool`", "Given a string containing an nginx upstream section, return the pool name\n and list of nodes.\n<END>", "<BEGIN>\n## `get_buildfile_path`", "Path to which a build tarball should be downloaded.\n<END>", "<BEGIN>\n## `_retry`", "Try to call f(*args, **kwargs) \"n\" times bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. 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 dispatch API. 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...
Patch the swarm with changes and then trigger the swarm.
"Patch the swarm with changes and then trigger the swarm."
49
false
yougov/vr.common
dispatch
21,349
LDU_FT/konstantint/matplotlib-venn/mix_colors
LDU_FT
[ "<BEGIN>\n## `point_in_circle`", "Returns true if a given point is located inside (or on the border) of a circle.", " >>> point_in_circle((0, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 1), (0, 0), 1)\n False\n<END>", "<BEGIN>\n## `circle_i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mix_colors API. 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 mix_colors API. 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...
Mixes two colors to compute a "mixed" color (for purposes of computing colors of the intersection regions based on the colors of the sets. Note that we do not simply compute averages of given colors as those seem too dark for some default configurations. Thus, we lighten the combination up a bit. I...
"Mixes two colors to compute a \"mixed\" color (for purposes of computing\n colors of the intersection regions based on the colors of the sets.\n Note that we do not simply compute averages of given colors as those seem\n too dark for some default configurations. Thus, we lighten the combination up a bit.\n ...
166
false
konstantint/matplotlib-venn
mix_colors
21,350
LDU_FT/hitchtest/hitchserve/stop
LDU_FT
[ "<BEGIN>\n## `run`", "Run subcommand.", " Args:\n shell (Optional[bool]): Run command using shell (default False)\n ignore_errors (Optional[bool]): If the command has a non-zero return code, don't raise an exception (default False)\n stdin (Optional[bool]): Plug input fro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Ask politely, first, with SIGINT and SIGQUIT.
"Ask politely, first, with SIGINT and SIGQUIT."
35
false
hitchtest/hitchserve
stop
21,351
LDU_FT/snbuback/django_services/has_delete_permission
LDU_FT
[ "<BEGIN>\n## `get_view_doc`", "Build view documentation. Return in html format.\n If you want in markdown format, use html=False\n<END>", "<BEGIN>\n## `wrap_accordion`", "Wrap text_body_list in twitter bootstrap accordion. text_body_list must be list with tuple with title and body\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_delete_permission 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 has_delete_permission 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 True if the given request has permission to change the given Django model instance, the default implementation doesn't examine the `obj` parameter. Can be overriden by the user in subclasses. In such case it should return True if the given request has permission to delete the `o...
"Returns True if the given request has permission to change the given\n Django model instance, the default implementation doesn't examine the\n `obj` parameter.\n\n Can be overriden by the user in subclasses. In such case it should\n return True if the given request has permission to delete ...
43
false
snbuback/django_services
has_delete_permission
21,352
LDU_FT/RudolfCardinal/pythonlib/wholeday
LDU_FT
[ "<BEGIN>\n## `pdb_run`", "Calls ``func(*args, **kwargs)``; if it raises an exception, break into\n the ``pdb`` debugger.\n<END>", "<BEGIN>\n## `get_class_name_from_frame`", "A frame contains information about a specific call in the Python call\n stack; see https://docs.python.org/3/library/inspect.html....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wholeday API. 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 wholeday API. 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 an :class:`Interval` covering the date given (midnight at the start of that day to midnight at the start of the next day).
"Returns an :class:`Interval` covering the date given (midnight at the\n start of that day to midnight at the start of the next day)."
2,517
true
RudolfCardinal/pythonlib
wholeday
21,353
LDU_FT/UCSBarchlab/PyRTL/get_wirevector_by_name
LDU_FT
[ "<BEGIN>\n## `_initialize`", "Sets the wire, register, and memory values to default or as specified.", " :param register_value_map: is a map of {Register: value}.\n :param memory_value_map: is a map of maps {Memory: {address: Value}}.\n :param default_value: is the value that all unspecifie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_wirevector_by_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 get_wirevector_by_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....
Return the wirevector matching name. By fallthrough, if a matching wirevector cannot be found the value None is returned. However, if the argument strict is set to True, then this will instead throw a PyrtlError when no match is found.
"Return the wirevector matching name.\n\n By fallthrough, if a matching wirevector cannot be found the value None is\n returned. However, if the argument strict is set to True, then this will\n instead throw a PyrtlError when no match is found."
416
false
UCSBarchlab/PyRTL
get_wirevector_by_name
21,354
LDU_FT/talkincode/toughlib/validip
LDU_FT
[ "<BEGIN>\n## `make_sign`", ">>> make_sign(\"123456\",[1,'2',u'中文'])\n '33C9065427EECA3490C5642C99165145'\n<END>", "<BEGIN>\n## `check_sign`", ">>> check_sign(\"123456\",dict(code=1,s='2',msg=u'中文',sign='33C9065427EECA3490C5642C99165145'))\n True\n<END>", "<BEGIN>\n## `make_message`", ">>> js...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validip API. 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 validip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns `(ip_address, port)` from string `ip_addr_port`
"Returns `(ip_address, port)` from string `ip_addr_port`"
35
false
talkincode/toughlib
validip
21,355
LDU_FT/bharadwaj-raju/libdesktop/text_editor
LDU_FT
[ "<BEGIN>\n## `get_config_dir`", "Get the configuration directory.", "\tGet the configuration directories, optionally for a specific program.", "\tArgs:\n\t\t\tprogram\t(str) : The name of the program whose configuration directories have to be found.\n\t\t\tsystem_wide (bool): Gets the system-wide configuratio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text_editor API. 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 text_editor API. 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...
Starts the default graphical text editor. Start the user's preferred graphical text editor, optionally with a file. Args: file (str) : The file to be opened with the editor. Defaults to an empty string (i.e. no file). background (bool): Runs the editor in the background, instead of waiting for completion. ...
"Starts the default graphical text editor.\n\n\tStart the user's preferred graphical text editor, optionally with a file.\n\n\tArgs:\n\t\t\tfile\t (str) : The file to be opened with the editor. Defaults to an empty string (i.e. no file).\n\t\t\tbackground (bool): Runs the editor in the background, instead of waiting ...
119
false
bharadwaj-raju/libdesktop
text_editor
21,356
LDU_FT/myusuf3/delorean/normalize
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses a datetime string and returns a `Delorean` object.", " :param datetime_str: The string to be interpreted into a `Delorean` object.\n :param timezone: Pass this parameter and the returned Delorean object will be normalized to this timezone. Any\n offsets passed as part...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API. 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 normalize API. 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...
Given a object with a timezone return a datetime object normalized to the proper timezone. This means take the give localized datetime and returns the datetime normalized to match the specificed timezone.
"Given a object with a timezone return a datetime object\n normalized to the proper timezone.\n\n This means take the give localized datetime and returns the\n datetime normalized to match the specificed timezone."
85
false
myusuf3/delorean
normalize
21,357
LDU_FT/posativ/isso/update
LDU_FT
[ "<BEGIN>\n## `anonymize`", "Anonymize IPv4 and IPv6 :param remote_addr: to /24 (zero'd)\n and /48 (zero'd).\n<END>", "<BEGIN>\n## `thread`", "Extract <h1> title from web page. The title is *probably* the text node,\n which is the nearest H1 node in context to an element with the `isso-thread` id.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update comment :param:`id` with values from :param:`data` and return updated comment.
"Update comment :param:`id` with values from :param:`data` and return\n updated comment."
61
false
posativ/isso
update
21,358
LDU_FT/theno/utlz/run_cmd
LDU_FT
[ "<BEGIN>\n## `flo`", "Return the string given by param formatted with the callers locals.\n<END>", "<BEGIN>\n## `_wrap_with`", "Color wrapper.", " Example:\n >>> blue = _wrap_with('34')\n >>> print(blue('text'))\n \\033[34mtext\\033[0m\n<END>", "<BEGIN>\n## `clean`", "Delete temp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Run command `cmd`. It's like that, and that's the way it is.
"Run command `cmd`.\n\n It's like that, and that's the way it is."
68
false
theno/utlz
run_cmd
21,359
LDU_FT/genomoncology/related/related_obj_to_dict
LDU_FT
[ "<BEGIN>\n## `init_default`", "Returns optional default if field is not required and\n default was not provided.", " :param bool required: whether the field is required in a given model.\n :param default: default provided by creator of field.\n :param optional_default: default for the data type if n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the related_obj_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the related_obj_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. T...
Covert a known related object to a dictionary.
"Covert a known related object to a dictionary."
95
false
genomoncology/related
related_obj_to_dict
21,360
LDU_FT/raamana/mrivis/checkerboard
LDU_FT
[ "<BEGIN>\n## `checkerboard`", "Checkerboard mixer.", " Parameters\n ----------\n img_spec1 : str or nibabel image-like object\n MR image (or path to one) to be visualized", " img_spec2 : str or nibabel image-like object\n MR image (or path to one) to be visualized", " patch_size...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkerboard API. 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 checkerboard API. 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...
Checkerboard mixer. Parameters ---------- img_spec1 : str or nibabel image-like object MR image (or path to one) to be visualized img_spec2 : str or nibabel image-like object MR image (or path to one) to be visualized patch_size : int or list or (int, int) or None size of ...
"Checkerboard mixer.\n\n Parameters\n ----------\n img_spec1 : str or nibabel image-like object\n MR image (or path to one) to be visualized\n\n img_spec2 : str or nibabel image-like object\n MR image (or path to one) to be visualized\n\n patch_size : int or list or (int, int) or None\n ...
216
false
raamana/mrivis
checkerboard
21,361
LDU_FT/robotpy/pyfrc/theory
LDU_FT
[ "<BEGIN>\n## `compute`", "Call this when vision processing should be enabled", " :param now: The value passed to ``update_sim``\n :param x: Returned from physics_controller.get_position\n :param y: Returned from physics_controller.get_position\n :param angle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the theory API. 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 theory API. 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 ...
r""" Use this to create the drivetrain model when you haven't measured ``kv`` and ``ka`` for your robot. :param motor_config: Specifications for your motor :param robot_mass: Mass of the robot :param gearing: Gear ratio .. so for a...
"r\"\"\"\n Use this to create the drivetrain model when you haven't measured\n ``kv`` and ``ka`` for your robot.\n \n :param motor_config: Specifications for your motor\n :param robot_mass: Mass of the robot\n :param gearing: Gear ratio ....
109
false
robotpy/pyfrc
theory
21,362
LDU_FT/pecan/pecan/is_transactional
LDU_FT
[ "<BEGIN>\n## `route`", "This function is used to define an explicit route for a path segment.", " You generally only want to use this in situations where your desired path\n segment is not a valid Python variable/function name.", " For example, if you wanted to be able to route to:", " /path/wit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_transactional API. 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 is_transactional API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Decide if a request should be wrapped in a transaction, based upon the state of the request. By default, wraps all but ``GET`` and ``HEAD`` requests in a transaction, along with respecting the ``transactional`` decorator from :mod:pecan.decorators. :param state: The Pecan state object f...
"Decide if a request should be wrapped in a transaction, based\n upon the state of the request. By default, wraps all but ``GET``\n and ``HEAD`` requests in a transaction, along with respecting\n the ``transactional`` decorator from :mod:pecan.decorators.\n\n :param state: The Pecan state ob...
157
false
pecan/pecan
is_transactional
21,363
LDU_FT/gvanderheide/discreteMarkovChain/eigenMethod
LDU_FT
[ "<BEGIN>\n## `uniqueStates`", "Returns unique states and sums up the corresponding rates.\n States should be a 2d numpy array with on each row a state, and rates a 1d numpy array with length equal to the number of rows in states. ", " This may be helpful in the transition function for summing up the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eigenMethod API. 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 eigenMethod API. 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...
Determines ``pi`` by searching for the eigenvector corresponding to the first eigenvalue, using the :func:`eigs` function. The result is stored in the class attribute ``pi``. Parameters ---------- tol : float, optional(default=1e-8) Tolerance level for the ...
"Determines ``pi`` by searching for the eigenvector corresponding to the first eigenvalue, using the :func:`eigs` function. \n The result is stored in the class attribute ``pi``. \n \n Parameters\n ----------\n tol : float, optional(default=1e-8)\n Tolerance level f...
68
false
gvanderheide/discreteMarkovChain
eigenMethod
21,364
LDU_FT/sci-bots/pygtkhelpers/append
LDU_FT
[ "<BEGIN>\n## `gcall`", "Calls a function, with the given arguments inside Gtk's main loop.\n Example::\n gcall(lbl.set_text, \"foo\")", " If this call would be made in a thread there could be problems, using\n it inside Gtk's main loop makes it thread safe.\n<END>", "<BEGIN>\n## `invoke_in_mai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append API. 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 append API. 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 ...
Add an item to the end of the list. :param item: The item to be added :param select: Whether the item should be selected after adding
"Add an item to the end of the list.\n\n :param item: The item to be added\n :param select: Whether the item should be selected after adding"
240
false
sci-bots/pygtkhelpers
append
21,365
LDU_FT/zhanglab/psamm/status
LDU_FT
[ "<BEGIN>\n## `_combine_transfers`", "Combine multiple pair transfers into one.\n<END>", "<BEGIN>\n## `parse_compound_file`", "Iterate over the compound entries in the given file\n<END>", "<BEGIN>\n## `parse_compound`", "Parse a compound specification.", " If no compartment is specified in the string,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status API. 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 status API. 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 string indicating the error encountered on failure.
"Return string indicating the error encountered on failure."
584
false
zhanglab/psamm
status
21,366
LDU_FT/adrn/gala/constantrotating_to_static
LDU_FT
[ "<BEGIN>\n## `w`", "This returns a single array containing the phase-space positions.", " Parameters\n ----------\n units : `~gala.units.UnitSystem` (optional)\n The unit system to represent the position and velocity in\n before combining into the full array.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the constantrotating_to_static 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 constantrotating_to_static API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Transform from a constantly rotating frame to a static, inertial frame. Parameters ---------- frame_i : `~gala.potential.StaticFrame` frame_r : `~gala.potential.ConstantRotatingFrame` w : `~gala.dynamics.PhaseSpacePosition`, `~gala.dynamics.Orbit` t : quantity_like (optional) Required i...
"Transform from a constantly rotating frame to a static, inertial frame.\n\n Parameters\n ----------\n frame_i : `~gala.potential.StaticFrame`\n frame_r : `~gala.potential.ConstantRotatingFrame`\n w : `~gala.dynamics.PhaseSpacePosition`, `~gala.dynamics.Orbit`\n t : quantity_like (optional)\n R...
465
false
adrn/gala
constantrotating_to_static
21,367
LDU_FT/happyleavesaoc/python-limitlessled/run
LDU_FT
[ "<BEGIN>\n## `command_set_factory`", "Create command set for controlling a specific led group.\n :param bridge: The bridge the leds are connected to.\n :param group_number: The group number.\n :param led_type: The type of the leds.\n :return: The created command set.\n<END>", "<BEGIN>\n## `rate`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run the pipeline. :param stop: Stop event
"Run the pipeline.\n\n :param stop: Stop event"
164
false
happyleavesaoc/python-limitlessled
run
21,368
LDU_FT/yangl1996/libpagure/list_projects
LDU_FT
[ "<BEGIN>\n## `_call_api`", "Method used to call the API.\n It returns the raw JSON returned by the API or raises an exception\n if something goes wrong.", " :arg url: the URL to call\n :kwarg method: the HTTP method to use when calling the specified\n URL, can be GET, POST...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_projects API. 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 list_projects API. 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...
Lisk all projects on this Pagure instance. :param tags: filters the tags of the project :param pattern: filters the projects by the pattern string :param username: filters the username of the project administrators :param owner: filters the projects by ownership :param namespace:...
"Lisk all projects on this Pagure instance.\n :param tags: filters the tags of the project\n :param pattern: filters the projects by the pattern string\n :param username: filters the username of the project administrators\n :param owner: filters the projects by ownership\n :param name...
62
false
yangl1996/libpagure
list_projects
21,369
LDU_FT/Robpol86/sphinxcontrib-imgur/event_env_merge_info
LDU_FT
[ "<BEGIN>\n## `query_api`", "Query the Imgur API.", " :raise APIError: When Imgur responds with errors or unexpected data.", " :param sphinx.application.Sphinx app: Sphinx application object.\n :param str client_id: Imgur API client ID to use. https://api.imgur.com/oauth2\n :param str imgur_id: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_env_merge_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_env_merge_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Called by Sphinx during phase 3 (resolving). * Combine child process' modified env with this one. Only changes should be new Imgur IDs since cache update is done in event_env_updated() after everything is merged and we're back to one process. :param sphinx.application.Sphinx app: Sphinx application obje...
"Called by Sphinx during phase 3 (resolving).\n\n * Combine child process' modified env with this one. Only changes should be new Imgur IDs since cache update is done\n in event_env_updated() after everything is merged and we're back to one process.\n\n :param sphinx.application.Sphinx app: Sphinx applicatio...
90
false
Robpol86/sphinxcontrib-imgur
event_env_merge_info
21,370
LDU_FT/kfdm/gntp/validate
LDU_FT
[ "<BEGIN>\n## `mini`", "Single notification function", "\tSimple notification function in one line. Has only one required parameter\n\tand attempts to use reasonable defaults for everything else\n\t:param string description: Notification message\n<END>", "<BEGIN>\n## `parse_gntp`", "Attempt to parse a messag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Validate required headers and validate notification headers
"Validate required headers and validate notification headers"
54
false
kfdm/gntp
validate
21,371
LDU_FT/kensho-technologies/grift/from_app_role
LDU_FT
[ "<BEGIN>\n## `load`", "Load a value, converting it to the proper type if validation_type exists.\n<END>", "<BEGIN>\n## `_iter_config_props`", "Iterate over all ConfigProperty attributes, yielding (attr_name, config_property)\n<END>", "<BEGIN>\n## `_update_property_keys`", "Set unspecified property_keys fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_app_role API. 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 from_app_role API. 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...
Constructor: use AppRole authentication to read secrets from a Vault path See https://www.vaultproject.io/docs/auth/approle.html Args: url: Vault url path: Vault path where secrets are stored role_id: Vault RoleID secret_id: Vault SecretID
"Constructor: use AppRole authentication to read secrets from a Vault path\n\n See https://www.vaultproject.io/docs/auth/approle.html\n\n Args:\n url: Vault url\n path: Vault path where secrets are stored\n role_id: Vault RoleID\n secret_id: Vault SecretID"
39
false
kensho-technologies/grift
from_app_role
21,372