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/bjodah/pyodesys/_integrate_scipy
LDU_FT
[ "<BEGIN>\n## `_is_autonomous`", "Whether the expressions for the dependent variables are autonomous.", " Note that the system may still behave as an autonomous system on the interface\n of :meth:`integrate` due to use of pre-/post-processors.\n<END>", "<BEGIN>\n## `symmetricsys`", "A factory function ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _integrate_scipy API. 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 _integrate_scipy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Do not use directly (use ``integrate('scipy', ...)``). Uses `scipy.integrate.ode <http://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.ode.html>`_ Parameters ---------- \*args : See :meth:`integrate`. name : str (default: 'lsoda'/'dopri5' when jacobia...
"Do not use directly (use ``integrate('scipy', ...)``).\n\n Uses `scipy.integrate.ode <http://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.ode.html>`_\n\n Parameters\n ----------\n \\*args :\n See :meth:`integrate`.\n name : str (default: 'lsoda'/'dopri5' wh...
113
false
bjodah/pyodesys
_integrate_scipy
11,973
LDU_FT/facundobatista/yaswfp/_get_struct_bevelfilter
LDU_FT
[ "<BEGIN>\n## `_str`", "Show nicely the generic object received.\n<END>", "<BEGIN>\n## `_repr`", "Show the received object as precise as possible.\n<END>", "<BEGIN>\n## `parsefile`", "Parse a SWF.", " If you have a file object already, just use SWFParser directly.", " read_twips: True - return v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_struct_bevelfilter 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_struct_bevelfilter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Get the values for the BEVELFILTER record.
"Get the values for the BEVELFILTER record."
56
false
facundobatista/yaswfp
_get_struct_bevelfilter
11,974
LDU_FT/yunojuno-archive/django-package-monitor/version_diff
LDU_FT
[ "<BEGIN>\n## `create_package_version`", "Create a new PackageVersion from a requirement. Handles errors.\n<END>", "<BEGIN>\n## `update_from_pypi`", "Call get_latest_version and then save the object.\n<END>", "<BEGIN>\n## `parse_python`", "Parse out the versions of python supported a/c classifiers.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version_diff API. 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 version_diff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return string representing the diff between package versions. We're interested in whether this is a major, minor, patch or 'other' update. This method will compare the two versions and return None if they are the same, else it will return a string value indicating the type of diff - 'major', 'minor', '...
"Return string representing the diff between package versions.\n\n We're interested in whether this is a major, minor, patch or 'other'\n update. This method will compare the two versions and return None if\n they are the same, else it will return a string value indicating the\n type of diff - 'major', 'min...
21
false
yunojuno-archive/django-package-monitor
version_diff
11,975
LDU_FT/datastax/python-driver/start_fetching_next_page
LDU_FT
[ "<BEGIN>\n## `check_applied`", "Raises LWTException if it looks like a failed LWT request. A LWTException\n won't be raised in the special case in which there are several failed LWT\n in a :class:`~cqlengine.query.BatchQuery`.\n<END>", "<BEGIN>\n## `add_callback`", "Add a function and arguments to be p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_fetching_next_page 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 start_fetching_next_page API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
If there are more pages left in the query result, this asynchronously starts fetching the next page. If there are no pages left, :exc:`.QueryExhausted` is raised. Also see :attr:`.has_more_pages`. This should only be called after the first page has been returned. .. versionadded:: 2....
"If there are more pages left in the query result, this asynchronously\n starts fetching the next page. If there are no pages left, :exc:`.QueryExhausted`\n is raised. Also see :attr:`.has_more_pages`.\n\n This should only be called after the first page has been returned.\n\n .. versionadd...
603
false
datastax/python-driver
start_fetching_next_page
11,976
LDU_FT/arneb/django-messages/trash_for
LDU_FT
[ "<BEGIN>\n## `save_model`", "Saves the message for the recipient and looks in the form instance\n for other possible recipients. Prevents duplication by excludin the\n original recipient from the list of optional recipients.", " When changing an existing message and choosing optional recipi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trash_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trash_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns all messages that were either received or sent by the given user and are marked as deleted.
"Returns all messages that were either received or sent by the given\n user and are marked as deleted."
35
false
arneb/django-messages
trash_for
11,977
LDU_FT/alimanfoo/vcfnp/_get_cache
LDU_FT
[ "<BEGIN>\n## `eff_default_transformer`", "Return a simple transformer function for parsing EFF annotations. N.B.,\n ignores all but the first effect.\n<END>", "<BEGIN>\n## `ann_default_transformer`", "Return a simple transformer function for parsing ANN annotations. N.B.,\n ignores all but the first eff...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extrac...
Utility function to obtain a cache file name and determine whether or not a fresh cache file is available.
"Utility function to obtain a cache file name and determine whether or\n not a fresh cache file is available."
67
false
alimanfoo/vcfnp
_get_cache
11,978
LDU_FT/gamechanger/mongothon/apply
LDU_FT
[ "<BEGIN>\n## `register`", "Registers the given function as a handler to be applied\n in response to the the given event.\n<END>", "<BEGIN>\n## `apply`", "Applies all middleware functions registered against the given\n event in order to the given document.\n<END>", "<BEGIN>\n## `deregister`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Applies all middleware functions registered against the given event in order to the given document.
"Applies all middleware functions registered against the given\n event in order to the given document."
59
false
gamechanger/mongothon
apply
11,979
LDU_FT/Hrabal/TemPy/_find_content
LDU_FT
[ "<BEGIN>\n## `render_attrs`", "Renders the tag's attributes using the formats and performing special attributes name substitution.\n<END>", "<BEGIN>\n## `toggle_class`", "Same as jQuery's toggleClass function. It toggles the css class on this element.\n<END>", "<BEGIN>\n## `remove_class`", "Removes the gi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Search for a content_name in the content data, if not found the parent is searched.
"Search for a content_name in the content data, if not found the parent is searched."
80
false
Hrabal/TemPy
_find_content
11,980
LDU_FT/bradmontgomery/django-redis-metrics/_date_range
LDU_FT
[ "<BEGIN>\n## `categorize_metrics`", "Called only on a valid form, this method will place the chosen\n metrics in the given catgory.\n<END>", "<BEGIN>\n## `dedupe`", "Remove duplicates from a sequence (of hashable items) while maintaining\n order. NOTE: This only works if items in the list are hashab...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _date_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _date_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a generator that yields ``datetime.datetime`` objects from the ``since`` date until ``to`` (default: *now*). * ``granularity`` -- The granularity at which the generated datetime objects should be created: seconds, minutes, hourly, daily, weekly, monthly, or yearly * ...
"Returns a generator that yields ``datetime.datetime`` objects from\n the ``since`` date until ``to`` (default: *now*).\n\n * ``granularity`` -- The granularity at which the generated datetime\n objects should be created: seconds, minutes, hourly, daily, weekly,\n monthly, or yearly\n ...
122
false
bradmontgomery/django-redis-metrics
_date_range
11,981
LDU_FT/CitrineInformatics/pypif-sdk/calculate_ideal_atomic_percent
LDU_FT
[ "<BEGIN>\n## `replace_by_key`", "Replace values that match a key", " Deeply traverses the pif object, looking for `key` and\n replacing values in accordance with `subs`. If `new_key`\n is set, the replaced values are assigned to that key. If\n `remove` is `True`, the old `key` pairs are removed.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_ideal_atomic_percent 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 calculate_ideal_atomic_percent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Calculates ideal atomic percents from a chemical formula string from a pif. Returns an appended pif with composition elements modified or added. :param pif: a ChemicalSystem pif :return: modified pif object
"Calculates ideal atomic percents from a chemical formula string from a pif. Returns an appended pif with composition elements modified or added.\n\n :param pif: a ChemicalSystem pif\n :return: modified pif object"
61
false
CitrineInformatics/pypif-sdk
calculate_ideal_atomic_percent
11,982
LDU_FT/Duke-GCB/lando-messaging/add_command_by_method_name
LDU_FT
[ "<BEGIN>\n## `raise_on_major_version_mismatch`", "Raises error if major version is different. Other wise logs the difference.\n :param work_request: WorkRequest: request that had a different version\n :param local_version: str: our version string that does not match message.version\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_command_by_method_name 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 add_command_by_method_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Lookup method named command in obj and call that method when the command is received. Raises ValueError if obj doesn't have a method named command :param command: str: name of the comand to wait for :param obj: object: must have a member function with the exact name of the command
"Lookup method named command in obj and call that method when the command is received.\n Raises ValueError if obj doesn't have a method named command\n :param command: str: name of the comand to wait for\n :param obj: object: must have a member function with the exact name of the command"
50
false
Duke-GCB/lando-messaging
add_command_by_method_name
11,983
LDU_FT/oscarlazoarjona/fast/zeeman_energies
LDU_FT
[ "<BEGIN>\n## `fit_lorentizan`", "Fits a lorentzian curve using p0=[x0,A,gamma] as an initial guess.\r\n\tIt returns a curve with N_points.\n<END>", "<BEGIN>\n## `electric_field_amplitude_gaussian`", "Return the amplitude of the electric field for a Gaussian beam.\r", " This the amplitude at the center of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zeeman_energies API. 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 zeeman_energies API. 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...
r"""Return Zeeman effect energies for a given fine state and\ magnetic field. >>> ground_state = State("Rb", 87, 5, 0, 1/Integer(2)) >>> Bz = 200.0 >>> Bz = Bz/10000 >>> for f_group in zeeman_energies(ground_state, Bz): ... print(f_group) [-2.73736448508248e-24 -2.83044285506388...
"r\"\"\"Return Zeeman effect energies for a given fine state and\\\r\n magnetic field.\r\n\r\n >>> ground_state = State(\"Rb\", 87, 5, 0, 1/Integer(2))\r\n >>> Bz = 200.0\r\n >>> Bz = Bz/10000\r\n >>> for f_group in zeeman_energies(ground_state, Bz):\r\n ... print(f_group)\r\n [-2.7373644850824...
668
false
oscarlazoarjona/fast
zeeman_energies
11,984
LDU_FT/kyuupichan/aiorpcX/send_request
LDU_FT
[ "<BEGIN>\n## `timeout_after`", "Execute the specified coroutine and return its result. However,\n issue a cancellation request to the calling task after seconds\n have elapsed. When this happens, a TaskTimeout exception is\n raised. If coro is None, the result of this function serves\n as an asynchr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Send a Request. Return a (message, event) pair. The message is an unframed message to send over the network. Wait on the event for the response; which will be in the "result" attribute. Raises: ProtocolError if the request violates the protocol in some way..
"Send a Request. Return a (message, event) pair.\n\n The message is an unframed message to send over the network.\n Wait on the event for the response; which will be in the\n \"result\" attribute.\n\n Raises: ProtocolError if the request violates the protocol\n in some way.."
118
false
kyuupichan/aiorpcX
send_request
11,985
LDU_FT/senseobservationsystems/commonsense-python-lib/ServicesDelete
LDU_FT
[ "<BEGIN>\n## `MD5Hash`", "Returns md5 hash of a string.\r", " @param password (string) - String to be hashed.\r", " @return (string) - Md5 hash of password.\n<END>", "<BEGIN>\n## `setVerbosity`", "Set verbosity of the SenseApi object.\r", " @param verbose (boolean) - True of Fal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ServicesDelete API. 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 ServicesDelete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Delete a service from CommonSense. @param sensor_id (int) - Sensor id of the sensor the service is connected to. @param service_id (int) - Sensor id of the service to delete. @return (bool) - Boolean indicating whether ServicesDelete was successful.
"Delete a service from CommonSense.\r\n \r\n @param sensor_id (int) - Sensor id of the sensor the service is connected to.\r\n @param service_id (int) - Sensor id of the service to delete.\r\n \r\n @return (bool) - Boolean indicating whether ServicesDelete was succ...
243
false
senseobservationsystems/commonsense-python-lib
ServicesDelete
11,986
LDU_FT/sjwood/pydvdid/update
LDU_FT
[ "<BEGIN>\n## `update`", "Enumerates the bytes of the supplied bytearray and updates the CRC-64.\n No return value.\n<END>", "<BEGIN>\n## `_construct_lookup_table`", "Precomputes a CRC-64 lookup table seeded from the supplied polynomial.\n No return value.\n<END>", "<BEGIN>\n## `compute`"...
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 ...
Enumerates the bytes of the supplied bytearray and updates the CRC-64. No return value.
"Enumerates the bytes of the supplied bytearray and updates the CRC-64.\n No return value."
19
false
sjwood/pydvdid
update
11,987
LDU_FT/unfoldingWord-dev/python-gogs-client/create_token
LDU_FT
[ "<BEGIN>\n## `json_get`", "Retrieves the key from a parsed_json dictionary, or raises an exception if the\n key is not present\n<END>", "<BEGIN>\n## `append_url`", "Append path to base_url in a sensible way.\n<END>", "<BEGIN>\n## `authenticated_user`", "Returns the user authenticated by ``auth``", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Creates a new token with the specified name for the specified user. If no user is specified, uses user authenticated by ``auth``. :param auth.Authentication auth: authentication for user to retrieve. Must be a username-password authentication, ...
"Creates a new token with the specified name for the specified user.\n If no user is specified, uses user authenticated by ``auth``.\n\n :param auth.Authentication auth: authentication for user to retrieve.\n Must be a username-password authentication,\n ...
123
false
unfoldingWord-dev/python-gogs-client
create_token
11,988
LDU_FT/log2timeline/dfvfs/Read
LDU_FT
[ "<BEGIN>\n## `comparable`", "str: comparable representation of the path specification.\n<END>", "<BEGIN>\n## `GetFormatSpecification`", "Retrieves the format specification.", " Returns:\n FormatSpecification: format specification or None if the format cannot\n be defined by a specification ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Read API. 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 Read API. 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...
Reads the next uncompressed data from the gzip stream. Args: file_object (FileIO): file object that contains the compressed stream. Returns: bytes: next uncompressed data from the compressed stream.
"Reads the next uncompressed data from the gzip stream.\n\n Args:\n file_object (FileIO): file object that contains the compressed stream.\n\n Returns:\n bytes: next uncompressed data from the compressed stream."
1,933
true
log2timeline/dfvfs
Read
11,989
LDU_FT/HazyResearch/pdftotree/bound_elems
LDU_FT
[ "<BEGIN>\n## `_retain_centroids`", "Only keep one number for each cluster within thres of each other\n<END>", "<BEGIN>\n## `_split_vlines_hlines`", "Separates lines into horizontal and vertical ones\n<END>", "<BEGIN>\n## `_mark_grid_bounds`", "Assume all lines define a complete grid over the region_bbox.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bound_elems API. 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 bound_elems API. 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...
Finds the minimal bbox that contains all given elems
"Finds the minimal bbox that contains all given elems"
113
false
HazyResearch/pdftotree
bound_elems
11,990
LDU_FT/pyhys/minimalmodbus/_createBitpattern
LDU_FT
[ "<BEGIN>\n## `_checkSetpointValue`", "Check that the given setpointvalue is valid.", " Args:\n * setpointvalue (numerical): The setpoint value to be checked. Must be positive.\n * maxvalue (numerical): Upper limit for setpoint value. Must be positive.", " Raises:\n TypeError, ValueE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _createBitpattern API. 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 _createBitpattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create the bit pattern that is used for writing single bits. This is basically a storage of numerical constants. Args: * functioncode (int): can be 5 or 15 * value (int): can be 0 or 1 Returns: The bit pattern (string). Raises: TypeError, ValueError
"Create the bit pattern that is used for writing single bits.\n\n This is basically a storage of numerical constants.\n\n Args:\n * functioncode (int): can be 5 or 15\n * value (int): can be 0 or 1\n\n Returns:\n The bit pattern (string).\n\n Raises:\n TypeError, ValueError"
357
false
pyhys/minimalmodbus
_createBitpattern
11,991
LDU_FT/eng-tools/sfsimodels/all_descriptions
LDU_FT
[ "<BEGIN>\n## `set_beam_prop`", "Specify the properties of the beams", " :param values:\n :param repeat: if 'up' then duplicate up the structure\n :return:\n<END>", "<BEGIN>\n## `set_column_prop`", "Specify the properties of the columns", " :param values:\n :param repeat:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_descriptions API. 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 all_descriptions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generates a list of descriptions of all the models :return:
"Generates a list of descriptions of all the models\n\n :return:"
126
false
eng-tools/sfsimodels
all_descriptions
11,992
LDU_FT/pydsigner/taskit/callback
LDU_FT
[ "<BEGIN>\n## `_wait`", "Based upon an extract from threading.Condition().wait(). Immediately \n tries to acquire the lock, and then sleeps for a period of time (going \n 1/2ms..1ms..2ms..4ms...50ms..50ms), repeating until the lock is \n acquired or the timeout limit is reached.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Threads the task, then runs a callback on success or an error callback on fail. cb -- The function to be called with a successful result. error_cb -- The function to be called when an error occurs. For information on `task`, *args, and **kw, see work().
"Threads the task, then runs a callback on success or an error callback\n on fail.\n \n cb -- The function to be called with a successful result.\n error_cb -- The function to be called when an error occurs.\n \n For information on `task`, *args, and **kw, see work()."
59
false
pydsigner/taskit
callback
11,993
LDU_FT/edx/edx-django-utils/get_cached_response
LDU_FT
[ "<BEGIN>\n## `accumulate_metric`", "Accumulate a custom metric (name and value) in the metrics cache.\n<END>", "<BEGIN>\n## `_batch_report`", "Report the collected custom metrics to New Relic.\n<END>", "<BEGIN>\n## `process_response`", "Logs memory data after processing response.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Retrieves a CachedResponse for the provided key. Args: key (string) Returns: A CachedResponse with is_found status and value.
"Retrieves a CachedResponse for the provided key.\n\n Args:\n key (string)\n\n Returns:\n A CachedResponse with is_found status and value."
55
false
edx/edx-django-utils
get_cached_response
11,994
LDU_FT/nilp0inter/cpe/cpe_disjoint
LDU_FT
[ "<BEGIN>\n## `_trim`", "Remove trailing colons from the URI back to the first non-colon.", " :param string s: input URI string\n :returns: URI string with trailing colons removed\n :rtype: string", " TEST: trailing colons necessary", " >>> s = '1:2::::'\n >>> CPE._t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cpe_disjoint API. 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 cpe_disjoint API. 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...
Compares two WFNs and returns True if the set-theoretic relation between the names is DISJOINT. :param CPE2_3_WFN source: first WFN CPE Name :param CPE2_3_WFN target: seconds WFN CPE Name :returns: True if the set relation between source and target is DISJOINT, otherwise Fal...
"Compares two WFNs and returns True if the set-theoretic relation\n between the names is DISJOINT.\n\n :param CPE2_3_WFN source: first WFN CPE Name\n :param CPE2_3_WFN target: seconds WFN CPE Name\n :returns: True if the set relation between source and target\n is DISJOINT, otherw...
206
false
nilp0inter/cpe
cpe_disjoint
11,995
LDU_FT/jbeluch/xbmcswift2/initial_update
LDU_FT
[ "<BEGIN>\n## `display_listitems`", "Displays a list of items along with the index to enable a user\n to select an item.\n<END>", "<BEGIN>\n## `display_video`", "Prints a message for a playing video and displays the parent\n listitem.\n<END>", "<BEGIN>\n## `get_user_choice`", "Returns the selected it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initial_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initial_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 ex...
Initially fills the underlying dictionary with keys, values and timestamps.
"Initially fills the underlying dictionary with keys, values and\n timestamps."
164
false
jbeluch/xbmcswift2
initial_update
11,996
LDU_FT/carpedm20/fbchat/setTypingStatus
LDU_FT
[ "<BEGIN>\n## `_generatePayload`", "Adds the following defaults to the payload:\n __rev, __user, __a, ttstamp, fb_dtsg, __req\n<END>", "<BEGIN>\n## `_fix_fb_errors`", "This fixes \"Please try closing and re-opening your browser window\" errors (1357004)\n This error usually happens after 1-2 da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setTypingStatus API. 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 setTypingStatus API. 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...
Sets users typing status in a thread :param status: Specify the typing status :param thread_id: User/Group ID to change status in. See :ref:`intro_threads` :param thread_type: See :ref:`intro_threads` :type status: models.TypingStatus :type thread_type: models.ThreadType ...
"Sets users typing status in a thread\n\n :param status: Specify the typing status\n :param thread_id: User/Group ID to change status in. See :ref:`intro_threads`\n :param thread_type: See :ref:`intro_threads`\n :type status: models.TypingStatus\n :type thread_type: models.ThreadType\...
337
false
carpedm20/fbchat
setTypingStatus
11,997
LDU_FT/scikit-hep/root_numpy/evaluate_reader
LDU_FT
[ "<BEGIN>\n## `matrix`", "Convert a ROOT TMatrix into a NumPy matrix.", " Parameters\n ----------\n mat : ROOT TMatrixT\n A ROOT TMatrixD or TMatrixF", " Returns\n -------\n mat : numpy.matrix\n A NumPy matrix", " Examples\n --------\n >>> from root_numpy import matri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate_reader API. 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 evaluate_reader API. 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...
Evaluate a TMVA::Reader over a NumPy array. Parameters ---------- reader : TMVA::Reader A TMVA::Factory instance with variables booked in exactly the same order as the columns in ``events``. name : string The method name. events : numpy array of shape [n_events, n_variables]...
"Evaluate a TMVA::Reader over a NumPy array.\n\n Parameters\n ----------\n reader : TMVA::Reader\n A TMVA::Factory instance with variables booked in exactly the same\n order as the columns in ``events``.\n name : string\n The method name.\n events : numpy array of shape [n_events, n_...
180
false
scikit-hep/root_numpy
evaluate_reader
11,998
LDU_FT/django-fluent/django-fluent-contents/parse
LDU_FT
[ "<BEGIN>\n## `type_id`", "Shortcut to retrieving the ContentType id of the model.\n<END>", "<BEGIN>\n## `get_output_cache_key`", ".. versionadded:: 0.9\n Return the default cache key which is used to store a rendered item.\n By default, this function generates the cache key using :func:`ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse the node syntax: .. code-block:: html+django {% page_placeholder parentobj slotname title="test" role="m" %}
"Parse the node syntax:\n\n .. code-block:: html+django\n\n {% page_placeholder parentobj slotname title=\"test\" role=\"m\" %}"
227
false
django-fluent/django-fluent-contents
parse
11,999
LDU_FT/zetaops/zengine/load_or_create_workflow
LDU_FT
[ "<BEGIN>\n## `list_catalogs`", "Lists existing catalogs respect to ui view template format\n<END>", "<BEGIN>\n## `get_catalog`", "Get existing catalog and fill the form with the model data.\n If given key not found as catalog, it generates an empty catalog data form.\n<END>", "<BEGIN>\n## `save_catal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_or_create_workflow 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 load_or_create_workflow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Tries to load the previously serialized (and saved) workflow Creates a new one if it can't
"Tries to load the previously serialized (and saved) workflow\n Creates a new one if it can't"
655
false
zetaops/zengine
load_or_create_workflow
12,000
LDU_FT/Salamek/cron-descriptor/parse_cron_line
LDU_FT
[ "<BEGIN>\n## `parse_cron_line`", "Parses crontab line and returns only starting time string", " Args:\n line: crontab line\n Returns:\n Time part of cron line\n<END>", "<BEGIN>\n## `parse`", "Parses the cron expression string\n Returns:\n A 7 part string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_cron_line API. 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 parse_cron_line API. 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...
Parses crontab line and returns only starting time string Args: line: crontab line Returns: Time part of cron line
"Parses crontab line and returns only starting time string\n\n Args:\n line: crontab line\n Returns:\n Time part of cron line"
52
false
Salamek/cron-descriptor
parse_cron_line
12,001
LDU_FT/mkoura/dump2polarion/get_xunit_transform_cfme
LDU_FT
[ "<BEGIN>\n## `only_passed_and_wait`", "Returns PASS and WAIT results only, skips everything else.\n<END>", "<BEGIN>\n## `insert_source_info`", "Adds info about source of test result if available.\n<END>", "<BEGIN>\n## `setup_parametrization`", "Modifies result's data according to the parametrization setti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_xunit_transform_cfme 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 get_xunit_transform_cfme 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 result transformation function for CFME.
"Return result transformation function for CFME."
107
false
mkoura/dump2polarion
get_xunit_transform_cfme
12,002
LDU_FT/transceptor-technology/trender/_compile
LDU_FT
[ "<BEGIN>\n## `_reset_plain`", "Create a BlockText from the captured lines and clear _text.\n<END>", "<BEGIN>\n## `render`", "Render #for loop with given namespace.", " Note: we copy the namespace so the parsed variable is only\n available in nested objects within this #for loop.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compile API. 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 _compile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return macro or block name from the current line.
"Return macro or block name from the current line."
21
false
transceptor-technology/trender
_compile
12,003
LDU_FT/nabetama/slacky/open
LDU_FT
[ "<BEGIN>\n## `create`", "https://api.slack.com/methods/channels.create\n<END>", "<BEGIN>\n## `history`", "https://api.slack.com/methods/channels.history\n<END>", "<BEGIN>\n## `info`", "https://api.slack.com/methods/channels.info\n<END>", "<BEGIN>\n## `invite`", "https://api.slack.com/methods/channels....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
https://api.slack.com/methods/im.history
"https://api.slack.com/methods/im.history"
60
false
nabetama/slacky
open
12,004
LDU_FT/thespacedoctor/sloancone/_build_sql_query
LDU_FT
[ "<BEGIN>\n## `get`", "*get the results from the the sdss square search*", " **Return:**\n - ``sdss_square_search``", " .. todo::\n<END>", "<BEGIN>\n## `_calculate_search_limits`", "*calculate search limits for the square search*", " **Key Arguments:**\n # -", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_sql_query API. 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 _build_sql_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
*build sql query for the sdss square search* **Key Arguments:** # - **Return:** - None .. todo::
"*build sql query for the sdss square search*\n\n **Key Arguments:**\n # -\n\n **Return:**\n - None\n\n .. todo::"
39
false
thespacedoctor/sloancone
_build_sql_query
12,005
LDU_FT/mikekatz04/BOWIE/set_ylim
LDU_FT
[ "<BEGIN>\n## `read_noise_curve`", "Simple auxillary function that can read noise curves in.", " This function can read in noise curves from a provided file or those that are preinstalled\n with this installation. All pre-installed noise curves are in the form of\n an amplitude spectral density. Informa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_ylim API. 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 set_ylim API. 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...
Set y limits for plot. This will set the limits for the y axis for the specific plot. Args: ylims (len-2 list of floats): The limits for the axis. dy (float): Amount to increment by between the limits. yscale (str): Scale of the axis. Either `log` or `lin`. ...
"Set y limits for plot.\n\n This will set the limits for the y axis\n for the specific plot.\n\n Args:\n ylims (len-2 list of floats): The limits for the axis.\n dy (float): Amount to increment by between the limits.\n yscale (str): Scale of the axis. Either `log` o...
264
false
mikekatz04/BOWIE
set_ylim
12,006
LDU_FT/pyblish/pyblish-qml/_loadUi
LDU_FT
[ "<BEGIN>\n## `process`", "Given JSON objects from client, perform actual processing", " Arguments:\n plugin (dict): JSON representation of plug-in to process\n instance (dict, optional): JSON representation of Instance to\n be processed.\n action (str, opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _loadUi API. 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 _loadUi API. 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...
Dynamically load a user interface from the given `uifile` This function calls `uic.loadUi` if using PyQt bindings, else it implements a comparable binding for PySide. Documentation: http://pyqt.sourceforge.net/Docs/PyQt5/designer.html#PyQt5.uic.loadUi Arguments: uifile (str): Absolute...
"Dynamically load a user interface from the given `uifile`\n\n This function calls `uic.loadUi` if using PyQt bindings,\n else it implements a comparable binding for PySide.\n\n Documentation:\n http://pyqt.sourceforge.net/Docs/PyQt5/designer.html#PyQt5.uic.loadUi\n\n Arguments:\n uifile (str)...
272
false
pyblish/pyblish-qml
_loadUi
12,007
LDU_FT/IdentityPython/pyop/get_collection
LDU_FT
[ "<BEGIN>\n## `parse_authentication_request`", "Parses and verifies an authentication request.", " :param request_body: urlencoded authentication request\n :param http_headers: http headers\n<END>", "<BEGIN>\n## `authorize`", "Creates an Authentication Response for the specified authentication ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_collection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_collection API. 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 a pymongo collection handle. :param collection: Name of collection :param database_name: (optional) Name of database :param username: (optional) Username to login with :param password: (optional) Password to login with :return: Pymongo collection object
"Get a pymongo collection handle.\n\n :param collection: Name of collection\n :param database_name: (optional) Name of database\n :param username: (optional) Username to login with\n :param password: (optional) Password to login with\n :return: Pymongo collection object"
79
false
IdentityPython/pyop
get_collection
12,008
LDU_FT/zyga/json-schema-validator/to_json
LDU_FT
[ "<BEGIN>\n## `type`", "Type of a valid object.", " Type may be a JSON type name or a list of such names. Valid JSON type\n names are ``string``, ``number``, ``integer``, ``boolean``, ``object``,\n ``array``, ``any`` (default).\n<END>", "<BEGIN>\n## `properties`", "Schema for particular ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Serialize wrapped datetime.timedelta instance to a string the with the following format: [DAYS]d [SECONDS]s [MICROSECONDS]us
"Serialize wrapped datetime.timedelta instance to a string the\n with the following format:\n [DAYS]d [SECONDS]s [MICROSECONDS]us"
48
false
zyga/json-schema-validator
to_json
12,009
LDU_FT/brycepg/mand/nonpresent_module_filename
LDU_FT
[ "<BEGIN>\n## `main`", "Execute each module in the same interpreter.", " Args:\n argv: Each item of argv will be treated as a separate\n module with potential arguments\n each item may be a string or a sequence of strings.\n If a given argument is a string, then treat s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nonpresent_module_filename 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 nonpresent_module_filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Return module name that doesn't already exist
"Return module name that doesn't already exist"
14
false
brycepg/mand
nonpresent_module_filename
12,010
LDU_FT/tropo/tropo-webapi-python/transfer
LDU_FT
[ "<BEGIN>\n## `HelloWorld`", "This is the traditional \"Hello, World\" function. The idiom is used throughout the API. We construct a Tropo object, and then flesh out that object by calling \"action\" functions (in this case, tropo.say). Then call tropo.Render, which translates the Tropo object into JSON format. F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transfer API. 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 transfer API. 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...
Transfers an already answered call to another destination / phone number. Argument: to is a string Argument: **options is a set of optional keyword arguments. See https://www.tropo.com/docs/webapi/transfer
"Transfers an already answered call to another destination / phone number.\n Argument: to is a string\n Argument: **options is a set of optional keyword arguments.\n See https://www.tropo.com/docs/webapi/transfer"
42
false
tropo/tropo-webapi-python
transfer
12,011
LDU_FT/NatLibFi/Skosify/setup_top_concepts
LDU_FT
[ "<BEGIN>\n## `read_rdf`", "Read a list of RDF files and/or RDF graphs. May raise an Exception.\n<END>", "<BEGIN>\n## `mapping_get`", "Look up the URI in the given mapping and return the result.", " Throws KeyError if no matching mapping was found.\n<END>", "<BEGIN>\n## `mapping_match`", "Determine wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_top_concepts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_top_concepts 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...
Determine the top concepts of each concept scheme and mark them using hasTopConcept/topConceptOf.
"Determine the top concepts of each concept scheme and mark them using\n hasTopConcept/topConceptOf."
109
false
NatLibFi/Skosify
setup_top_concepts
12,012
LDU_FT/awslabs/sockeye/print_attention_text
LDU_FT
[ "<BEGIN>\n## `check_arg_compatibility`", "Check if some arguments are incompatible with each other.", " :param args: Arguments as returned by argparse.\n<END>", "<BEGIN>\n## `check_resume`", "Check if we should resume a broken training run.", " :param args: Arguments as returned by argparse.\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_attention_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_attention_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Prints the attention matrix to standard out. :param attention_matrix: The attention matrix. :param source_tokens: A list of source tokens. :param target_tokens: A list of target tokens. :param threshold: The threshold for including an alignment link in the result.
"Prints the attention matrix to standard out.\n\n :param attention_matrix: The attention matrix.\n :param source_tokens: A list of source tokens.\n :param target_tokens: A list of target tokens.\n :param threshold: The threshold for including an alignment link in the result."
1,056
true
awslabs/sockeye
print_attention_text
12,013
LDU_FT/MoseleyBioinformaticsLab/nmrstarlib/_to_autoassign
LDU_FT
[ "<BEGIN>\n## `csview`", "View chemical shift values organized by amino acid residue.", " :param view: Open in default image viewer or save file in current working directory quietly.\n :type view: :py:obj:`True` or :py:obj:`False`\n :return: None\n :rtype: :py:obj:`None`\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_autoassign API. 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 _to_autoassign API. 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...
Save :class:`~nmrstarlib.plsimulator.PeakList` into AutoAssign-formatted string. :return: Peak list representation in AutoAssign format. :rtype: :py:class:`str`
"Save :class:`~nmrstarlib.plsimulator.PeakList` into AutoAssign-formatted string.\n\n :return: Peak list representation in AutoAssign format.\n :rtype: :py:class:`str`"
117
false
MoseleyBioinformaticsLab/nmrstarlib
_to_autoassign
12,014
LDU_FT/elastic/elasticsearch-dsl-py/filter
LDU_FT
[ "<BEGIN>\n## `scan_aggs`", "Helper function used to iterate over all possible bucket combinations of\n ``source_aggs``, returning results of ``inner_aggs`` for each. Uses the\n ``composite`` aggregation under the hood to perform this.\n<END>", "<BEGIN>\n## `clean`", "Automatically construct the suggesti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Add a ``post_filter`` to the search request narrowing the results based on the facet filters.
"Add a ``post_filter`` to the search request narrowing the results based\n on the facet filters."
257
false
elastic/elasticsearch-dsl-py
filter
12,015
LDU_FT/zyga/python-glibc/get_epoll_events
LDU_FT
[ "<BEGIN>\n## `_get_fd`", "Get a descriptor out of a file object.", " :param fileobj:\n An integer (existing descriptor) or any object having the `fileno()`\n method.\n :raises ValueError:\n if the descriptor cannot be obtained or if the descriptor is invalid\n :returns:\n fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_epoll_events API. 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_epoll_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Create a bit mask using ``EPOLL*`` family of constants.
"Create a bit mask using ``EPOLL*`` family of constants."
106
false
zyga/python-glibc
get_epoll_events
12,016
LDU_FT/hyperledger/indy-crypto/verify_multi_sig
LDU_FT
[ "<BEGIN>\n## `from_bytes`", "Creates and Bls entity from bytes representation.\n :param xbytes: Bytes representation of Bls entity\n :return: BLS entity intance\n<END>", "<BEGIN>\n## `as_bytes`", "Returns BLS entity bytes representation.\n :return: BLS entity bytes representation\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_multi_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_multi_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 ...
Verifies the message multi signature and returns true - if signature valid or false otherwise. :param: multi_sig - Multi signature to verify :param: message - Message to verify :param: ver_keys - List of verification keys :param: gen - Generator point :return: true if multi sign...
"Verifies the message multi signature and returns true - if signature valid or false otherwise.\n\n :param: multi_sig - Multi signature to verify\n :param: message - Message to verify\n :param: ver_keys - List of verification keys\n :param: gen - Generator point\n :return: true if mul...
26
false
hyperledger/indy-crypto
verify_multi_sig
12,017
LDU_FT/UncleRus/regnupg/encrypt
LDU_FT
[ "<BEGIN>\n## `recv_keys`", "Import the keys with the given key IDs from a HKP keyserver.", " :param keyserver: Keyserver name. The format of the name is a URI: ``scheme:[//]keyservername[:port]``.\n The scheme is the type of keyserver:\"hkp\" for the HTTP (or compatible) keyservers, \"ldap\" f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt API. 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 encrypt API. 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...
Sign/Encrypt :param data: Data to encrypt :param recipients: Single key ID or list of mutiple IDs. Will be ignored if symmetric :param sign_key: Key for signing data before encryption. No sign will be made when not given :param passphrase: Password for key or symmetric cipher :p...
"Sign/Encrypt\n\n :param data: Data to encrypt\n :param recipients: Single key ID or list of mutiple IDs. Will be ignored if symmetric\n :param sign_key: Key for signing data before encryption. No sign will be made when not given\n :param passphrase: Password for key or symmetric cipher\n ...
39
false
UncleRus/regnupg
encrypt
12,018
LDU_FT/eventbrite/eventbrite-sdk-python/get_tracking_beacon
LDU_FT
[ "<BEGIN>\n## `objectify`", "Converts the returned value from a models.Payload to\n a models.EventbriteObject. Used by the access methods\n of the client.Eventbrite object\n<END>", "<BEGIN>\n## `get_category`", "GET /categories/:id/\n Gets a :format:`category` by ID as ``category``.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tracking_beacon 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 get_tracking_beacon 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...
GET /tracking_beacons/:tracking_beacons_id/ Returns the :format:`tracking_beacon` with the specified :tracking_beacons_id.
"GET /tracking_beacons/:tracking_beacons_id/\n Returns the :format:`tracking_beacon` with the specified :tracking_beacons_id."
194
false
eventbrite/eventbrite-sdk-python
get_tracking_beacon
12,019
LDU_FT/OCA/openupgradelib/set_message_last_post
LDU_FT
[ "<BEGIN>\n## `_adjust_merged_values_orm`", "This method deals with the values on the records to be merged +\n the target record, performing operations that makes sense on the meaning\n of the model.", " :param field_spec: Dictionary with field names as keys and forced operation\n to perform as val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_message_last_post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_message_last_post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Given a list of models, set their 'message_last_post' fields to an estimated last post datetime. To be called in post-migration scripts :param cr: database cursor :param uid: user id, assumed to be openerp.SUPERUSER_ID :param pool: orm pool, assumed to be openerp.pooler.get_pool(cr.dbname) :par...
"Given a list of models, set their 'message_last_post' fields to an\n estimated last post datetime.\n To be called in post-migration scripts\n\n :param cr: database cursor\n :param uid: user id, assumed to be openerp.SUPERUSER_ID\n :param pool: orm pool, assumed to be openerp.pooler.get_pool(cr.dbname)\n...
190
false
OCA/openupgradelib
set_message_last_post
12,020
LDU_FT/HPCC-Cloud-Computing/CAL/attach_vpngw
LDU_FT
[ "<BEGIN>\n## `delete`", "This is bad delete function\n because one vpc can have more than one subnet.\n It is Ok if user only use CAL for manage cloud resource\n We will update ASAP.\n<END>", "<BEGIN>\n## `create_container`", "Create container", " :param container(string): contai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach_vpngw API. 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 attach_vpngw API. 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...
Attach network to VPN gateway :Param req :Type object Request
"Attach network to VPN gateway\n :Param req\n :Type object Request"
68
false
HPCC-Cloud-Computing/CAL
attach_vpngw
12,021
LDU_FT/matplotlib/cmocean/read
LDU_FT
[ "<BEGIN>\n## `read`", "Read in dataset for variable var", " :param varin: Variable for which to read in data.\n<END>", "<BEGIN>\n## `show`", "Show a colormap for a chosen input variable var side by side with\n black and white and jet colormaps.", " :param cmap: Colormap instance\n :param var: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. 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 read API. 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...
Read in dataset for variable var :param varin: Variable for which to read in data.
"Read in dataset for variable var\n\n :param varin: Variable for which to read in data."
43
false
matplotlib/cmocean
read
12,022
LDU_FT/bintoro/overloading.py/update_docstring
LDU_FT
[ "<BEGIN>\n## `overload`", "May be used as a shortcut for ``overloaded`` and ``overloads(f)``\n when the overloaded function `f` can be automatically identified.\n<END>", "<BEGIN>\n## `overloaded`", "Introduces a new overloaded function and registers its first implementation.\n<END>", "<BEGIN>\n## `regist...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_docstring API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_docstring API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Inserts a call signature at the beginning of the docstring on `dispatcher`. The signature is taken from `func` if provided; otherwise `(...)` is used.
"Inserts a call signature at the beginning of the docstring on `dispatcher`.\n The signature is taken from `func` if provided; otherwise `(...)` is used."
29
false
bintoro/overloading.py
update_docstring
12,023
LDU_FT/jsommers/switchyard/from_bytes
LDU_FT
[ "<BEGIN>\n## `router_main`", "Main method for router; we stay in a loop in this method, receiving\n packets until the end of time.\n<END>", "<BEGIN>\n## `from_bytes`", "Takes a byte string as a parameter and returns a list of\n IPOption objects.\n<END>", "<BEGIN>\n## `to_bytes`", "Takes a li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_bytes API. 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 from_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Takes a byte string as a parameter and returns a list of IPOption objects.
"Takes a byte string as a parameter and returns a list of\n IPOption objects."
192
false
jsommers/switchyard
from_bytes
12,024
LDU_FT/pyoceans/python-ctd/from_edf
LDU_FT
[ "<BEGIN>\n## `from_bl`", "Read Seabird bottle-trip (bl) file", " Example\n -------\n >>> from pathlib import Path\n >>> import ctd\n >>> data_path = Path(__file__).parents[1].joinpath(\"tests\", \"data\")\n >>> df = ctd.from_bl(str(data_path.joinpath('bl', 'bottletest.bl')))\n >>> df._metad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_edf API. 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 from_edf API. 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...
DataFrame constructor to open XBT EDF ASCII format. Examples -------- >>> from pathlib import Path >>> import ctd >>> data_path = Path(__file__).parents[1].joinpath("tests", "data") >>> cast = ctd.from_edf(data_path.joinpath('XBT.EDF.gz')) >>> ax = cast['temperature'].plot_cast()
"DataFrame constructor to open XBT EDF ASCII format.\n\n Examples\n --------\n >>> from pathlib import Path\n >>> import ctd\n >>> data_path = Path(__file__).parents[1].joinpath(\"tests\", \"data\")\n >>> cast = ctd.from_edf(data_path.joinpath('XBT.EDF.gz'))\n >>> ax = cast['temperature'].plot_cast...
55
false
pyoceans/python-ctd
from_edf
12,025
LDU_FT/chaoss/grimoirelab-manuscripts/__get_metrics
LDU_FT
[ "<BEGIN>\n## `overview`", "Compute metrics in the overview section for enriched github issues\n indexes.\n Returns a dictionary. Each key in the dictionary is the name of\n a metric, the value is the value of that metric. Value can be\n a complex object (eg, a time series).", " :param index: inde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_metrics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_metrics API. 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...
Each metric must have its own filters copy to modify it freely
"Each metric must have its own filters copy to modify it freely"
271
false
chaoss/grimoirelab-manuscripts
__get_metrics
12,026
LDU_FT/tasdikrahman/vocabulary/usage_example
LDU_FT
[ "<BEGIN>\n## `__return_json`", "Returns JSON data which is returned by querying the API service\n Called by\n - meaning()\n - synonym()", " :param url: the complete formatted url which is then queried using requests\n :returns: json content being fed by the API\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the usage_example API. 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 usage_example API. 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...
Takes the source phrase and queries it to the urbandictionary API :params phrase: word for which usage_example is to be found :param format: response structure type. Defaults to: "json" :returns: returns a json object as str, False if invalid phrase
"Takes the source phrase and queries it to the urbandictionary API\n\n :params phrase: word for which usage_example is to be found\n :param format: response structure type. Defaults to: \"json\"\n :returns: returns a json object as str, False if invalid phrase"
38
false
tasdikrahman/vocabulary
usage_example
12,027
LDU_FT/Bogdanp/anom-py/prepare_to_store
LDU_FT
[ "<BEGIN>\n## `_transactions`", "list[Transaction]: The current stack of Transactions.\n<END>", "<BEGIN>\n## `transactional`", "Decorates functions so that all of their operations (except for\n queries) run inside a Datastore transaction.", " Parameters:\n adapter(Adapter, optional): The Adapter t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_to_store API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_to_store API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Prepare `value` for storage. Called by the Model for each Property, value pair it contains before handing the data off to an adapter. Parameters: entity(Model): The entity to which the value belongs. value: The value being stored. Raises: RuntimeError: If...
"Prepare `value` for storage. Called by the Model for each\n Property, value pair it contains before handing the data off\n to an adapter.\n\n Parameters:\n entity(Model): The entity to which the value belongs.\n value: The value being stored.\n\n Raises:\n Runtim...
91
false
Bogdanp/anom-py
prepare_to_store
12,028
LDU_FT/wkentaro/pytorch-fcn/load_image
LDU_FT
[ "<BEGIN>\n## `setup`", "Setup data layer according to parameters:", " - nyud_dir: path to NYUDv2 dir\n - split: train / val / test\n - tops: list of tops to output from {color, depth, hha, label}\n - randomize: load in random order (default: True)\n - seed: seed for randomizat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_image API. 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 load_image API. 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...
Load input image and preprocess for Caffe: - cast to float - switch channels RGB -> BGR - subtract mean - transpose to channel x height x width order
"Load input image and preprocess for Caffe:\n - cast to float\n - switch channels RGB -> BGR\n - subtract mean\n - transpose to channel x height x width order"
47
false
wkentaro/pytorch-fcn
load_image
12,029
LDU_FT/Yinzo/reprint/lines_of_content
LDU_FT
[ "<BEGIN>\n## `width_cal_preprocess`", "此函数同时删除 ANSI escape code,避免影响行宽计算\n This function also remove ANSI escape code to avoid the influence on line width calculation\n<END>", "<BEGIN>\n## `preprocess`", "对输出内容进行预处理,转为str类型 (py3),并替换行内\\r\\t\\n等字符为空格\n do pre-process to the content, turn it into str (fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lines_of_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lines_of_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
计算内容在特定输出宽度下实际显示的行数 calculate the actual rows with specific terminal width
"计算内容在特定输出宽度下实际显示的行数\n calculate the actual rows with specific terminal width"
10
false
Yinzo/reprint
lines_of_content
12,030
LDU_FT/Kozea/pygal/_compute
LDU_FT
[ "<BEGIN>\n## `erfinv`", "Approximation of the inverse error function\n https://en.wikipedia.org/wiki/Error_function\n #Approximation_with_elementary_functions\n<END>", "<BEGIN>\n## `confidence_interval_continuous`", "Continuous confidence interval from sample size and standard error\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute API. 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 _compute API. 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...
Compute x/y min and max and x/y scale and set labels
"Compute x/y min and max and x/y scale and set labels"
147
false
Kozea/pygal
_compute
12,031
LDU_FT/chaoss/grimoirelab-cereslib/eventize
LDU_FT
[ "<BEGIN>\n## `filter_`", "This method filter some of the rows where the 'value'\n is found in each of the 'columns'.", " :param column: list of strings\n :param value: any type", " :returns: filtered dataframe\n :rtype: pandas.DataFrame\n<END>", "<BEGIN>\n## `eventize`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eventize API. 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 eventize API. 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...
This splits the JSON information found at self.events into the several events. For this there are three different levels of time consuming actions: 1-soft, 2-medium and 3-hard. Level 1 provides events about open and closed issues. Level 2 provides events about the rest of the status upd...
"This splits the JSON information found at self.events into the\n several events. For this there are three different levels of time\n consuming actions: 1-soft, 2-medium and 3-hard.\n\n Level 1 provides events about open and closed issues.\n Level 2 provides events about the rest of the stat...
107
false
chaoss/grimoirelab-cereslib
eventize
12,032
LDU_FT/fedora-infra/fedmsg_meta_fedora_infrastructure/relative_playbook
LDU_FT
[ "<BEGIN>\n## `relative_playbook`", "Returns a tuple (controlled, playbook).", " - controlled is a boolean indicating whether or not we think that the\n playbook being run was checked in to our ansible git repo.\n - playbook is the relative file path of the playbook.\n<END>", "<BEGIN>\n## `_casual_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the relative_playbook API. 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 relative_playbook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns a tuple (controlled, playbook). - controlled is a boolean indicating whether or not we think that the playbook being run was checked in to our ansible git repo. - playbook is the relative file path of the playbook.
"Returns a tuple (controlled, playbook).\n\n - controlled is a boolean indicating whether or not we think that the\n playbook being run was checked in to our ansible git repo.\n - playbook is the relative file path of the playbook."
24
false
fedora-infra/fedmsg_meta_fedora_infrastructure
relative_playbook
12,033
LDU_FT/ganguli-lab/proxalgs/sparse
LDU_FT
[ "<BEGIN>\n## `add_regularizer`", "Add a regularizer from the operators module to the list of objectives", " Parameters\n ----------\n proxfun : string or function\n If a string, then it must be the name of a corresponding function in the `operators` module.\n If a func...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sparse API. 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 sparse API. 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 ...
Proximal operator for the l1 norm (induces sparsity) Parameters ---------- x0 : array_like The starting or initial point used in the proximal update step rho : float Momentum parameter for the proximal step (larger value -> stays closer to x0) gamma : float A constant that...
"Proximal operator for the l1 norm (induces sparsity)\n\n Parameters\n ----------\n x0 : array_like\n The starting or initial point used in the proximal update step\n\n rho : float\n Momentum parameter for the proximal step (larger value -> stays closer to x0)\n\n gamma : float\n A c...
90
false
ganguli-lab/proxalgs
sparse
12,034
LDU_FT/CodyKochmann/generators/asserts
LDU_FT
[ "<BEGIN>\n## `first`", "first is essentially the next() function except it's second argument\n determines how many of the first items you want. If items is more than\n 1 the output is an islice of the generator. If items is 1, the first\n item is returned\n<END>", "<BEGIN>\n## `timed_pipe`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asserts API. 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 asserts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
this function allows you to write asserts in generators since there are moments where you actually want the program to halt when certain values are seen.
"this function allows you to write asserts in generators since there are\n moments where you actually want the program to halt when certain values\n are seen."
71
false
CodyKochmann/generators
asserts
12,035
LDU_FT/matthew-sochor/transfer/configure_server
LDU_FT
[ "<BEGIN>\n## `int_input`", "Ask a user for a int input between two values", " args:\n message (str): Prompt for user\n low (int): Low value, user entered value must be > this value to be accepted\n high (int): High value, user entered value must be < this value to be accepted\n sh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_server API. 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 configure_server API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Configure the transfer environment and store
"Configure the transfer environment and store"
29
false
matthew-sochor/transfer
configure_server
12,036
LDU_FT/FulcrumTechnologies/pyconfluence/rest
LDU_FT
[ "<BEGIN>\n## `load_variables`", "Load variables from environment variables.\n<END>", "<BEGIN>\n## `rest`", "Main function to be called from this module.", " send a request using method 'req' and to the url. the _rest() function\n will add the base_url to this, so 'url' should be something like '/ips'....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rest API. 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 rest API. 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...
Main function to be called from this module. send a request using method 'req' and to the url. the _rest() function will add the base_url to this, so 'url' should be something like '/ips'.
"Main function to be called from this module.\n\n send a request using method 'req' and to the url. the _rest() function\n will add the base_url to this, so 'url' should be something like '/ips'."
19
false
FulcrumTechnologies/pyconfluence
rest
12,037
LDU_FT/PlaidWeb/Pushl/get_target
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 get_target API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_target API. 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...
Given a URL, get the webmention endpoint
"Given a URL, get the webmention endpoint"
38
false
PlaidWeb/Pushl
get_target
12,038
LDU_FT/eagleflo/mpyq/_decrypt
LDU_FT
[ "<BEGIN>\n## `read_table`", "Read either the hash or block table of a MPQ archive.\n<END>", "<BEGIN>\n## `get_hash_table_entry`", "Get the hash table entry corresponding to a given filename.\n<END>", "<BEGIN>\n## `extract`", "Extract all the files inside the MPQ archive in memory.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decrypt API. 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 _decrypt API. 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...
Decrypt hash or block table or a sector.
"Decrypt hash or block table or a sector."
16
false
eagleflo/mpyq
_decrypt
12,039
LDU_FT/unfoldingWord-dev/tx-shared-tools/get_url
LDU_FT
[ "<BEGIN>\n## `print_with_header`", "Use one of the functions below for printing, not this one.\n<END>", "<BEGIN>\n## `get_url`", ":param str|unicode url: URL to open\n :param bool catch_exception: If <True> catches all exceptions and returns <False>\n<END>", "<BEGIN>\n## `join_url_parts`", "Joins a lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url API. 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...
:param str|unicode url: URL to open :param bool catch_exception: If <True> catches all exceptions and returns <False>
":param str|unicode url: URL to open\n :param bool catch_exception: If <True> catches all exceptions and returns <False>"
20
false
unfoldingWord-dev/tx-shared-tools
get_url
12,040
LDU_FT/bibanon/BASC-py4chan/thumbs
LDU_FT
[ "<BEGIN>\n## `clean_comment_body`", "Returns given comment HTML as plaintext.", " Converts all HTML tags and entities within 4chan comments\n into human-readable text equivalents.\n<END>", "<BEGIN>\n## `get_boards`", "Given a list of boards, return :class:`basc_py4chan.Board` objects.", " Args:\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the thumbs API. 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 thumbs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns the URLs of all thumbnails in the thread.
"Returns the URLs of all thumbnails in the thread."
54
false
bibanon/BASC-py4chan
thumbs
12,041
LDU_FT/pyroscope/pyrocore/add_options
LDU_FT
[ "<BEGIN>\n## `resolve_slashed`", "Resolve symlinked directories if they end in a '/',\n remove trailing '/' otherwise.\n<END>", "<BEGIN>\n## `guarded`", "Catch exceptions thrown by filesystem calls, and don't really\n execute them in dry-run mode.\n<END>", "<BEGIN>\n## `_make_it_so`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_options API. 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...
Add program options, must be called in script's addOptions().
"Add program options, must be called in script's addOptions()."
247
false
pyroscope/pyrocore
add_options
12,042
LDU_FT/vsergeev/python-periphery/write
LDU_FT
[ "<BEGIN>\n## `read`", "Read the brightness of the LED.", " Returns:\n int: Current brightness.", " Raises:\n LEDError: if an I/O or OS error occurs.\n<END>", "<BEGIN>\n## `write`", "Set the brightness of the LED to `brightness`.", " `brightness` can be a boolea...
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...
Set the state of the GPIO to `value`. Args: value (bool): ``True`` for high state, ``False`` for low state. Raises: GPIOError: if an I/O or OS error occurs. TypeError: if `value` type is not bool.
"Set the state of the GPIO to `value`.\n\n Args:\n value (bool): ``True`` for high state, ``False`` for low state.\n\n Raises:\n GPIOError: if an I/O or OS error occurs.\n TypeError: if `value` type is not bool."
86
false
vsergeev/python-periphery
write
12,043
LDU_FT/keras-rl/keras-rl/on_action_begin
LDU_FT
[ "<BEGIN>\n## `fit`", "Trains the agent on the given environment.", " # Arguments\n env: (`Env` instance): Environment that the agent interacts with. See [Env](#env) for details.\n nb_steps (integer): Number of training steps to be performed.\n action_repetition (integer):...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_action_begin API. 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 on_action_begin API. 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...
Called at beginning of each action for each callback in callbackList
"Called at beginning of each action for each callback in callbackList"
113
false
keras-rl/keras-rl
on_action_begin
12,044
LDU_FT/oasiswork/zimsoap/property
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Given a dict in python-zimbra format or XML, generate\n a Python object.\n<END>", "<BEGIN>\n## `property`", "Returns a property value", " :param: default will return that value if the property is not found,\n else, will raise a KeyError.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns a property value :param: default will return that value if the property is not found, else, will raise a KeyError.
"Returns a property value\n\n :param: default will return that value if the property is not found,\n else, will raise a KeyError."
242
false
oasiswork/zimsoap
property
12,045
LDU_FT/theacodes/cmarkgfm/find_syntax_extension
LDU_FT
[ "<BEGIN>\n## `_compiler_type`", "Gets the compiler type from distutils. On Windows with MSVC it will be\r\n \"msvc\". On macOS and linux it is \"unix\".\r", " Borrowed from https://github.com/pyca/cryptography/blob\\\r\n /05b34433fccdc2fec0bb014c3668068169d769fd/src/_cffi_src/utils.py#L78\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_syntax_extension API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_syntax_extension API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Direct wrapper over cmark_find_syntax_extension.
"Direct wrapper over cmark_find_syntax_extension."
25
false
theacodes/cmarkgfm
find_syntax_extension
12,046
LDU_FT/google/neuroglancer/isolate_element
LDU_FT
[ "<BEGIN>\n## `stop`", "Stop the server, invalidating any viewer URLs.", " This allows any previously-referenced data arrays to be garbage collected if there are no other\n references to them.\n<END>", "<BEGIN>\n## `defer_callback`", "Register `callback` to run in the server event loop thread.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isolate_element API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isolate_element API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Isolates `x` from its equivalence class.
"Isolates `x` from its equivalence class."
46
false
google/neuroglancer
isolate_element
12,047
LDU_FT/Iotic-Labs/py-IoticAgent/register_callback_renamed
LDU_FT
[ "<BEGIN>\n## `_notify_thing_lid_change`", "Used by Thing instances to indicate that a rename operation has happened\n<END>", "<BEGIN>\n## `register_catchall_feeddata`", "Registers a callback that is called for all feeddata your Thing receives", " `Example`", " #!python\n def f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_callback_renamed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_callback_renamed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Register a callback function to receive QAPI Unsolicited (resource) RENAMED. The callback receives a single argument - the inner message. If `serialised` is not set, the callbacks might arrive out-of-order.
"Register a callback function to receive QAPI Unsolicited (resource) RENAMED. The\n callback receives a single argument - the inner message. If `serialised` is not set,\n the callbacks might arrive out-of-order."
643
false
Iotic-Labs/py-IoticAgent
register_callback_renamed
12,048
LDU_FT/loli/medpy/__prepare_histogram
LDU_FT
[ "<BEGIN>\n## `sls`", "r\"\"\"\n Computes the signed local similarity between two images.", " Compares a patch around each voxel of the minuend array to a number of patches\n centered at the points of a search neighbourhood in the subtrahend. Thus, creates\n a multi-dimensional measure of patch simil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __prepare_histogram API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __prepare_histogram API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Convert the histograms to scipy.ndarrays if required.
"Convert the histograms to scipy.ndarrays if required."
1,313
true
loli/medpy
__prepare_histogram
12,049
LDU_FT/korfuri/django-prometheus/ExportModelOperationsMixin
LDU_FT
[ "<BEGIN>\n## `ExportMigrations`", "Exports counts of unapplied migrations.", " This is meant to be called during app startup, ideally by\n django_prometheus.apps.AppConfig.\n<END>", "<BEGIN>\n## `ExportingCursorWrapper`", "Returns a CursorWrapper class that knows its database's alias and\n vendor n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ExportModelOperationsMixin 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 ExportModelOperationsMixin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Returns a mixin for models to export counters for lifecycle operations. Usage: class User(ExportModelOperationsMixin('user'), Model): ...
"Returns a mixin for models to export counters for lifecycle operations.\n\n Usage:\n class User(ExportModelOperationsMixin('user'), Model):\n ..."
25
false
korfuri/django-prometheus
ExportModelOperationsMixin
12,050
LDU_FT/Gawen/pytun/mode_name
LDU_FT
[ "<BEGIN>\n## `mode_name`", "Returns the tunnel mode's name, for printing purpose.\n<END>", "<BEGIN>\n## `open`", "Create the tunnel.\n If the tunnel is already opened, the function will\n raised an AlreadyOpened exception.\n<END>", "<BEGIN>\n## `close`", "Close the tunnel.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mode_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mode_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns the tunnel mode's name, for printing purpose.
"Returns the tunnel mode's name, for printing purpose."
12
false
Gawen/pytun
mode_name
12,051
LDU_FT/mrstephenneal/pdfconduit/add_suffix
LDU_FT
[ "<BEGIN>\n## `security`", "Print security object information for a pdf document\n<END>", "<BEGIN>\n## `draw`", "Draw watermark PDF file.", " Create watermark using either a reportlabs canvas or a PIL image.", " :param text1: str\n Text line 1\n :param text2: str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_suffix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_suffix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Adds suffix to a file name seperated by an underscore and returns file path.
"Adds suffix to a file name seperated by an underscore and returns file path."
63
false
mrstephenneal/pdfconduit
add_suffix
12,052
LDU_FT/Yipit/eventlib/import_event_modules
LDU_FT
[ "<BEGIN>\n## `listen_for_events`", "Pubsub event listener", " Listen for events in the pubsub bus and calls the process function\n when somebody comes to play.\n<END>", "<BEGIN>\n## `get_ip`", "Return the IP address inside the HTTP_X_FORWARDED_FOR var inside\n the `request` object.", " The ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_event_modules 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 import_event_modules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Import all events declared for all currently installed apps This function walks through the list of installed apps and tries to import a module named `EVENTS_MODULE_NAME`.
"Import all events declared for all currently installed apps\n\n This function walks through the list of installed apps and tries to\n import a module named `EVENTS_MODULE_NAME`."
57
false
Yipit/eventlib
import_event_modules
12,053
LDU_FT/hishnash/djangochannelsrestframework/pre_change_receiver
LDU_FT
[ "<BEGIN>\n## `pre_change_receiver`", "Entry point for triggering the old_binding from save signals.\n<END>", "<BEGIN>\n## `post_change_receiver`", "Triggers the old_binding to possibly send to its group.\n<END>", "<BEGIN>\n## `get_queryset`", "Get the list of items for this view.\n This must be an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pre_change_receiver 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 pre_change_receiver 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...
Entry point for triggering the old_binding from save signals.
"Entry point for triggering the old_binding from save signals."
24
false
hishnash/djangochannelsrestframework
pre_change_receiver
12,054
LDU_FT/pallets/flask-sqlalchemy/next
LDU_FT
[ "<BEGIN>\n## `should_set_tablename`", "Determine whether ``__tablename__`` should be automatically generated\n for a model.", " * If no class in the MRO sets a name, one should be generated.\n * If a declared attr is found, it should be used instead.\n * If a name is found, it should be used if the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API. 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 next API. 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...
Returns a :class:`Pagination` object for the next page.
"Returns a :class:`Pagination` object for the next page."
73
false
pallets/flask-sqlalchemy
next
12,055
LDU_FT/af/turrentine/save
LDU_FT
[ "<BEGIN>\n## `create`", "Allow an 'author' kwarg to automatically fill in the created_by and last_modified_by fields.\n<END>", "<BEGIN>\n## `get_template_options`", "Returns a list of all templates that can be used for CMS pages.\n The paths that are returned are relative to TURRENTINE_TEMPLATE_ROOT.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Save the created_by and last_modified_by fields based on the current admin user.
"Save the created_by and last_modified_by fields based on the current admin user."
19
false
af/turrentine
save
12,056
LDU_FT/sileht/python-jsonpath-rw-ext/p_jsonpath_operator_jsonpath
LDU_FT
[ "<BEGIN>\n## `find`", "Return sorted value of This if list or dict.\n<END>", "<BEGIN>\n## `match`", "Returns all matched values of pattern in data\n<END>", "<BEGIN>\n## `match1`", "Returns first matched value of pattern in data or None if no matches\n<END>", "<BEGIN>\n## `p_jsonpath_operator_jsonpath`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_jsonpath_operator_jsonpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_jsonpath_operator_jsonpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
jsonpath : NUMBER operator NUMBER | FLOAT operator FLOAT | ID operator ID | NUMBER operator jsonpath | FLOAT operator jsonpath | jsonpath operator NUMBER | jsonpath operator FLOAT ...
"jsonpath : NUMBER operator NUMBER\n | FLOAT operator FLOAT\n | ID operator ID\n | NUMBER operator jsonpath\n | FLOAT operator jsonpath\n | jsonpath operator NUMBER\n | jsonpath operator FLOAT\n ...
10
false
sileht/python-jsonpath-rw-ext
p_jsonpath_operator_jsonpath
12,057
LDU_FT/NoviceLive/intellicoder/winapi
LDU_FT
[ "<BEGIN>\n## `format`", "Format the record using the corresponding formatter.\n<END>", "<BEGIN>\n## `make_c_header`", "Build a C header from the front and body.\n<END>", "<BEGIN>\n## `reloc_var`", "Build C source code to relocate a variable.\n<END>", "<BEGIN>\n## `make_c_args`", "Build a C argument li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the winapi API. 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 winapi API. 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 ...
Query Win32 API declarations. Windows database must be prepared before using this.
"Query Win32 API declarations.\n\n Windows database must be prepared before using this."
117
false
NoviceLive/intellicoder
winapi
12,058
LDU_FT/dvdotsenko/jsonrpc.py/register_class
LDU_FT
[ "<BEGIN>\n## `clean_dict_keys`", "Convert all keys of the dict 'd' to (ascii-)strings.", " :Raises: UnicodeEncodeError\n<END>", "<BEGIN>\n## `json_dumps`", "A rewrap of json.dumps done for one reason - to inject a custom `cls` kwarg", " :param obj:\n :param kwargs:\n :return:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_class API. 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 register_class API. 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...
Add all functions of a class-instance to the RPC-services. All entries of the instance which do not begin with '_' are added. :Parameters: - myinst: class-instance containing the functions - name: | hierarchical prefix. | If omitted, the functions are ad...
"Add all functions of a class-instance to the RPC-services.\n\n All entries of the instance which do not begin with '_' are added.\n\n :Parameters:\n - myinst: class-instance containing the functions\n - name: | hierarchical prefix.\n | If omitted, the function...
58
false
dvdotsenko/jsonrpc.py
register_class
12,059
LDU_FT/CentOS/python-cicoclient/_ssid_inventory
LDU_FT
[ "<BEGIN>\n## `full_inventory`", "Returns a full inventory\n Some additional work required to provide consistent and consumable\n output.\n Inventory output only contains values, no keys - Add the keys to\n the output so that it can be consumed more easily.\n<END>", "<BEGIN>\n## `self...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ssid_inventory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ssid_inventory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Filters an inventory to only return servers matching ssid
"Filters an inventory to only return servers matching ssid"
19
false
CentOS/python-cicoclient
_ssid_inventory
12,060
LDU_FT/jmoiron/humanize/abs_timedelta
LDU_FT
[ "<BEGIN>\n## `abs_timedelta`", "Returns an \"absolute\" value for a timedelta, always representing a\n time distance.\n<END>", "<BEGIN>\n## `date_and_delta`", "Turn a value into a date and a timedelta which represents how long ago\n it was. If that's not possible, return (None, value).\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the abs_timedelta API. 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 abs_timedelta API. 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...
Returns an "absolute" value for a timedelta, always representing a time distance.
"Returns an \"absolute\" value for a timedelta, always representing a\n time distance."
28
false
jmoiron/humanize
abs_timedelta
12,061
LDU_FT/jrspruitt/ubi_reader/extract_blocks
LDU_FT
[ "<BEGIN>\n## `read_block`", "Read complete PEB data from file.", " Argument:\n Obj:block -- Block data is desired for.\n<END>", "<BEGIN>\n## `read_block_data`", "Read LEB data from file", " Argument:\n Obj:block -- Block data is desired for.\n<END>", "<BEGIN>\n## `extract_blo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_blocks API. 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 extract_blocks API. 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 a list of UBI block objects from file Arguments:. Obj:ubi -- UBI object. Returns: Dict -- Of block objects keyed by PEB number.
"Get a list of UBI block objects from file\n\n Arguments:.\n Obj:ubi -- UBI object.\n \n Returns:\n Dict -- Of block objects keyed by PEB number."
67
false
jrspruitt/ubi_reader
extract_blocks
12,062
LDU_FT/area4lib/area4/get_raw_file
LDU_FT
[ "<BEGIN>\n## `get_raw_file`", "Get the raw divider file in a string array.", " :return: the array\n :rtype: str\n<END>", "<BEGIN>\n## `reduce_to_unit`", "Reduce a repeating divider to the smallest repeating unit possible.", " Note: this function is used by make-div\n :param divider: the divide...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_raw_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_raw_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get the raw divider file in a string array. :return: the array :rtype: str
"Get the raw divider file in a string array.\n\n :return: the array\n :rtype: str"
17
false
area4lib/area4
get_raw_file
12,063
LDU_FT/hotzenklotz/pybeerxml/nodes_to_object
LDU_FT
[ "<BEGIN>\n## `nodes_to_object`", "Map all child nodes to one object's attributes\n<END>", "<BEGIN>\n## `node_to_object`", "Map a single node to one object's attributes\n<END>", "<BEGIN>\n## `parse`", "Get a list of parsed recipes from BeerXML input\n<END>", "<BEGIN>\n## `to_lower`", "Helper function t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nodes_to_object API. 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 nodes_to_object API. 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...
Map all child nodes to one object's attributes
"Map all child nodes to one object's attributes"
10
false
hotzenklotz/pybeerxml
nodes_to_object
12,064
LDU_FT/DMSC-Instrument-Data/lewis/set_set_point
LDU_FT
[ "<BEGIN>\n## `get_submodules`", "This function imports all sub-modules of the supplied module and returns a dictionary\n with module names as keys and the sub-module objects as values. If the supplied parameter\n is not a module object, a RuntimeError is raised.", " :param module: Module object from wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_set_point API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_set_point API. 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...
Sets the target temperature. :param param: The new temperature in C. Must be positive. :return: Empty string.
"Sets the target temperature.\n\n :param param: The new temperature in C. Must be positive.\n :return: Empty string."
198
false
DMSC-Instrument-Data/lewis
set_set_point
12,065
LDU_FT/pyviz/geoviews/sort_coords
LDU_FT
[ "<BEGIN>\n## `coord_to_dimension`", "Converts an iris coordinate to a HoloViews dimension.\n<END>", "<BEGIN>\n## `sort_coords`", "Sorts a list of DimCoords trying to ensure that\n dates and pressure levels appear first and the\n longitude and latitude appear last in the correct\n order.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_coords API. 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 sort_coords API. 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...
Sorts a list of DimCoords trying to ensure that dates and pressure levels appear first and the longitude and latitude appear last in the correct order.
"Sorts a list of DimCoords trying to ensure that\n dates and pressure levels appear first and the\n longitude and latitude appear last in the correct\n order."
106
false
pyviz/geoviews
sort_coords
12,066
LDU_FT/duguyue100/minesweeper/check_board
LDU_FT
[ "<BEGIN>\n## `ms_game_main`", "Main function for Mine Sweeper Game.", " Parameters\n ----------\n board_width : int\n the width of the board (> 0)\n board_height : int\n the height of the board (> 0)\n num_mines : int\n the number of mines, cannot be larger than\n (boa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_board API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_board API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Check the board status and give feedback.
"Check the board status and give feedback."
34
false
duguyue100/minesweeper
check_board
12,067
LDU_FT/unitedstack/steth/setup_link
LDU_FT
[ "<BEGIN>\n## `get_interface`", "Support Centos standard physical interface,\n such as eth0.\n<END>", "<BEGIN>\n## `check_ports_on_br`", "Check ports exist on bridge.", " ovs-vsctl list-ports bridge\n<END>", "<BEGIN>\n## `ping`", "Ping host or broadcast.", " ping host -c 2 -W 2\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_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 extrac...
Setup a link. ip addr add dev interface ip link set dev interface up
"Setup a link.\n\n ip addr add dev interface\n ip link set dev interface up"
17
false
unitedstack/steth
setup_link
12,068
LDU_FT/arneb/django-messages/delete
LDU_FT
[ "<BEGIN>\n## `save_model`", "Saves the message for the recipient and looks in the form instance\n for other possible recipients. Prevents duplication by excludin the\n original recipient from the list of optional recipients.", " When changing an existing message and choosing optional recipi...
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 ...
Marks a message as deleted by sender or recipient. The message is not really removed from the database, because two users must delete a message before it's save to remove it completely. A cron-job should prune the database and remove old messages which are deleted by both users. As a side effect, th...
"Marks a message as deleted by sender or recipient. The message is not\n really removed from the database, because two users must delete a message\n before it's save to remove it completely.\n A cron-job should prune the database and remove old messages which are\n deleted by both users.\n As a side effe...
35
false
arneb/django-messages
delete
12,069
LDU_FT/beerfactory/hbmqtt/ping
LDU_FT
[ "<BEGIN>\n## `mqtt_subscribe`", ":param topics: array of topics [{'filter':'/a/b', 'qos': 0x00}, ...]\n :return:\n<END>", "<BEGIN>\n## `start`", "Start the broker to serve with the given configuration", " Start method opens network sockets and will start listening for incoming connections....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ping API. 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 ping API. 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...
Ping the broker. Send a MQTT `PINGREQ <http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718081>`_ message for response. This method is a *coroutine*.
"Ping the broker.\n\n Send a MQTT `PINGREQ <http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718081>`_ message for response.\n\n This method is a *coroutine*."
110
false
beerfactory/hbmqtt
ping
12,070
LDU_FT/yamcs/yamcs-python/list_events
LDU_FT
[ "<BEGIN>\n## `verification_events`", "Events related to command verification.", " :type: List[:class:`.CommandHistoryEvent`]\n<END>", "<BEGIN>\n## `events`", "All events.", " :type: List[:class:`.CommandHistoryEvent`]\n<END>", "<BEGIN>\n## `generation_time`", "The generation time as set ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_events API. 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 list_events API. 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...
Reads events between the specified start and stop time. Events are sorted by generation time, source, then sequence number. :param str source: The source of the returned events. :param str severity: The minimum severity level of the returned events. One of ``INFO``...
"Reads events between the specified start and stop time.\n\n Events are sorted by generation time, source, then sequence number.\n\n :param str source: The source of the returned events.\n :param str severity: The minimum severity level of the returned events.\n One of `...
402
false
yamcs/yamcs-python
list_events
12,071
LDU_FT/cuducos/getgist/get
LDU_FT
[ "<BEGIN>\n## `run_getgist`", "Passes user inputs to GetGist() and calls get()\n<END>", "<BEGIN>\n## `run_getmy`", "Shortcut for run_getgist() reading username from env var\n<END>", "<BEGIN>\n## `run_putgist`", "Passes user inputs to GetGist() and calls put()\n<END>", "<BEGIN>\n## `get`", "Reads the re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Encapsulte requests.get to use this class instance header
"Encapsulte requests.get to use this class instance header"
44
false
cuducos/getgist
get
12,072