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/openstack/swauth/handle_get_reseller
LDU_FT
[ "<BEGIN>\n## `filter_factory`", "Returns a WSGI filter app for use with paste.deploy.\n<END>", "<BEGIN>\n## `make_pre_authed_request`", "Nearly the same as swift.common.wsgi.make_pre_authed_request\n except that this also always sets the 'swift.source' and user\n agent.", " Newer Swift ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_get_reseller 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 handle_get_reseller 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...
Handles the GET v2 call for getting general reseller information (currently just a list of accounts). Can only be called by a .reseller_admin. On success, a JSON dictionary will be returned with a single `accounts` key whose value is list of dicts. Each dict represents an account and ...
"Handles the GET v2 call for getting general reseller information\n (currently just a list of accounts). Can only be called by a\n .reseller_admin.\n\n On success, a JSON dictionary will be returned with a single `accounts`\n key whose value is list of dicts. Each dict represents an account ...
133
false
openstack/swauth
handle_get_reseller
141,873
LDU_FT/cvxopt/chompack/symb_to_block
LDU_FT
[ "<BEGIN>\n## `symb_to_block`", "Maps a symbolic factorization to a block-diagonal structure with\n coupling constraints.", " :param symb: :py:class:`symbolic`\n :param coupling: optional \n :return dims: list of block dimensions\n :return sparse_to_block: di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symb_to_block API. 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 symb_to_block API. 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...
Maps a symbolic factorization to a block-diagonal structure with coupling constraints. :param symb: :py:class:`symbolic` :param coupling: optional :return dims: list of block dimensions :return sparse_to_block: dictionary :return constraints: list o...
"Maps a symbolic factorization to a block-diagonal structure with\n coupling constraints.\n\n :param symb: :py:class:`symbolic`\n :param coupling: optional \n :return dims: list of block dimensions\n :return sparse_to_block: dictionary\n :return constraints: ...
215
false
cvxopt/chompack
symb_to_block
141,874
LDU_FT/jeffh/describe/and_raises
LDU_FT
[ "<BEGIN>\n## `execute`", "Does all the work of running an example.", " This includes:\n - building up the context.\n - capturing stdout & stderr\n - execute before functions\n - run example, catching any exceptions\n - execute after functions\n - record the resul...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the and_raises API. 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 and_raises API. 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...
Expects an error or more to be raised from the given expectation.
"Expects an error or more to be raised from the given expectation."
50
false
jeffh/describe
and_raises
141,875
LDU_FT/adamheins/r12/parse_help_text
LDU_FT
[ "<BEGIN>\n## `search_for_port`", "Find the serial port the arm is connected to.\n<END>", "<BEGIN>\n## `read`", "Read data from the arm. Data is returned as a latin_1 encoded\n string, or raw bytes if 'raw' is True.\n<END>", "<BEGIN>\n## `dump`", "Dump all output currently in the arm's output qu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_help_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. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_help_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. The e...
Load of list of commands and descriptions from a file.
"Load of list of commands and descriptions from a file."
22
false
adamheins/r12
parse_help_text
141,876
LDU_FT/kieferk/dfply/spread
LDU_FT
[ "<BEGIN>\n## `select_if`", "Selects columns where fun(ction) is true\n Args:\n fun: a function that will be applied to columns\n<END>", "<BEGIN>\n## `drop_if`", "Drops columns where fun(ction) is true\n Args:\n fun: a function that will be applied to columns\n<END>", "<BEGIN>\n## `mean`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spread API. 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 spread API. 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 ...
Transforms a "long" DataFrame into a "wide" format using a key and value column. If you have a mixed datatype column in your long-format DataFrame then the default behavior is for the spread columns to be of type `object`, or string. If you want to try to convert dtypes when spreading, you can set ...
"Transforms a \"long\" DataFrame into a \"wide\" format using a key and value\n column.\n\n If you have a mixed datatype column in your long-format DataFrame then the\n default behavior is for the spread columns to be of type `object`, or\n string. If you want to try to convert dtypes when spreading, you ca...
149
false
kieferk/dfply
spread
141,877
LDU_FT/iamteem/redisco/key
LDU_FT
[ "<BEGIN>\n## `_initialize_referenced`", "Adds a property to the target of a reference field that\n returns the list of associated objects.\n<END>", "<BEGIN>\n## `_initialize_lists`", "Stores the list fields descriptors of a model.\n<END>", "<BEGIN>\n## `_initialize_references`", "Stores the list of ref...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns the Redis key where the values are stored.
"Returns the Redis key where the values are stored."
70
false
iamteem/redisco
key
141,878
LDU_FT/INM-6/hybridLFPy/read_gdf
LDU_FT
[ "<BEGIN>\n## `plot_signal_sum`", "on axes plot the signal contributions", " args:\n ::\n ax : matplotlib.axes.AxesSubplot object\n z : np.ndarray\n T : list, [tstart, tstop], which timeinterval\n ylims : list, set range of yaxis to scale with other plots\n fancy : bool, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_gdf API. 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 read_gdf API. 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...
Fast line-by-line gdf-file reader. Parameters ---------- fname : str Path to gdf-file. Returns ------- numpy.ndarray ([gid, val0, val1, **]), dtype=object) mixed datatype array
"Fast line-by-line gdf-file reader.\n \n \n Parameters\n ----------\n fname : str \n Path to gdf-file.\n \n \n Returns\n -------\n numpy.ndarray\n ([gid, val0, val1, **]), dtype=object) mixed datatype array"
412
false
INM-6/hybridLFPy
read_gdf
141,879
LDU_FT/ploneintranet/ploneintranet.workspace/user_deleted_from_site_event
LDU_FT
[ "<BEGIN>\n## `get_storage`", "helper function to get annotation storage on the portal", " :param clear: If true is passed in, annotations will be cleared\n :returns: portal annotations\n :rtype: IAnnotations\n<END>", "<BEGIN>\n## `send_email`", "helper function to send an email with the sender pres...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_deleted_from_site_event 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 user_deleted_from_site_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Remove deleted user from all the workspaces where he is a member
"Remove deleted user from all the workspaces where he\n is a member"
53
false
ploneintranet/ploneintranet.workspace
user_deleted_from_site_event
141,880
LDU_FT/CamDavidsonPilon/lifetimes/plot_probability_alive_matrix
LDU_FT
[ "<BEGIN>\n## `fit`", "Pareto/NBD model fitter.", " Parameters\n ----------\n frequency: array_like\n the frequency vector of customers' purchases\n (denoted x in literature).\n recency: array_like\n the recency vector of customers' purchases\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_probability_alive_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_probability_alive_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Plot probability alive matrix as heatmap. Plot a figure of the probability a customer is alive based on their frequency and recency. Parameters ---------- model: lifetimes model A fitted lifetimes model. max_frequency: int, optional The maximum frequency to plot. Default is max...
"Plot probability alive matrix as heatmap.\n\n Plot a figure of the probability a customer is alive based on their\n frequency and recency.\n\n Parameters\n ----------\n model: lifetimes model\n A fitted lifetimes model.\n max_frequency: int, optional\n The maximum frequency to plot. Def...
232
false
CamDavidsonPilon/lifetimes
plot_probability_alive_matrix
141,881
LDU_FT/tgbugs/pyontutils/merge
LDU_FT
[ "<BEGIN>\n## `build_transgenic_lines`", "init class | \"transgenic_line_source_name\":\"stock_number\" a Class\n add superClass | rdfs:subClassOf ilxtr:transgenicLine\n add *order* | ilxtr:useObjectProperty ilxtr:<order>\n add name | rdfs:label \"name\"\n add def ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. 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 merge API. 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...
synonyms and existing_ids are part of an object bug that can create duplicates if in the same batch
"synonyms and existing_ids are part of an object bug that can create duplicates if in the same batch"
301
false
tgbugs/pyontutils
merge
141,882
LDU_FT/carta/ldap_tools/by_user
LDU_FT
[ "<BEGIN>\n## `create`", "Create an LDAP Group.", " Raises:\n ldap3.core.exceptions.LDAPNoSuchObjectResult:\n an object involved with the request is missing", " ldap3.core.exceptions.LDAPEntryAlreadyExistsResult:\n the entity being created already exis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Display LDAP group membership sorted by user.
"Display LDAP group membership sorted by user."
65
false
carta/ldap_tools
by_user
141,883
LDU_FT/inveniosoftware/invenio-pages/validate_template_name
LDU_FT
[ "<BEGIN>\n## `validate_template_name`", "Validate template name.", " :param key: The template path.\n :param value: The template name.\n :raises ValueError: If template name is wrong.\n<END>", "<BEGIN>\n## `template_exists`", "Form validation: check that selected template exists.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_template_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_template_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....
Validate template name. :param key: The template path. :param value: The template name. :raises ValueError: If template name is wrong.
"Validate template name.\n\n :param key: The template path.\n :param value: The template name.\n :raises ValueError: If template name is wrong."
23
false
inveniosoftware/invenio-pages
validate_template_name
141,884
LDU_FT/KieranWynn/pyquaternion/_normalise
LDU_FT
[ "<BEGIN>\n## `_validate_number_sequence`", "Validate a sequence to be of a certain length and ensure it's a numpy array of floats.", " Raises:\n ValueError: Invalid length or non-numeric value\n<END>", "<BEGIN>\n## `_from_matrix`", "Initialise from matrix representation", " Create...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalise API. 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 _normalise API. 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...
Object is guaranteed to be a unit quaternion after calling this operation UNLESS the object is equivalent to Quaternion(0)
"Object is guaranteed to be a unit quaternion after calling this\n operation UNLESS the object is equivalent to Quaternion(0)"
129
false
KieranWynn/pyquaternion
_normalise
141,885
LDU_FT/EdwinvO/pyutillib/offset
LDU_FT
[ "<BEGIN>\n## `previous_weekday`", "Returns the last weekday before date", " Args:\n date (datetime or datetime.date)\n Returns:\n (datetime or datetime.date)\n Raises:\n -\n<END>", "<BEGIN>\n## `next_weekday`", "Return the first weekday after date", " Args:\n date (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the offset API. 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 offset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the date n_days after (or before if n_days < 0) <date> note: not calender days, but self days!
"Return the date n_days after (or before if n_days < 0) <date>\n note: not calender days, but self days!"
49
false
EdwinvO/pyutillib
offset
141,886
LDU_FT/Telefonica/toolium/save_jira_conf
LDU_FT
[ "<BEGIN>\n## `create_driver`", "Create a selenium driver using specified config properties", " :returns: a new selenium driver\n :rtype: selenium.webdriver.remote.webdriver.WebDriver\n<END>", "<BEGIN>\n## `_create_remote_driver`", "Create a driver in a remote server\n View valid capabil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_jira_conf API. 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 save_jira_conf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Read Jira configuration from properties file and save it
"Read Jira configuration from properties file and save it"
381
false
Telefonica/toolium
save_jira_conf
141,887
LDU_FT/census-instrumentation/opencensus-python/send
LDU_FT
[ "<BEGIN>\n## `get_node`", "Generates Node message from params and system information.\n<END>", "<BEGIN>\n## `proto_ts_from_datetime_str`", "Converts string datetime in ISO format to protobuf timestamp.\n :type dt: str\n :param dt: string with datetime in ISO format\n :rtype: :class:`~google.protobuf....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Dispatches incoming request on rpc. Initializes rpc if necessary and dispatches incoming request. If a rpc error is thrown, this function will attempt to recreate the stream and retry sending given request once. :type request: class: `~.metrics_service_pb2.ExportMetricsServi...
"Dispatches incoming request on rpc.\n\n Initializes rpc if necessary and dispatches incoming request. If a rpc\n error is thrown, this function will attempt to recreate the stream and\n retry sending given request once.\n\n :type request: class:\n `~.metrics_service_pb2.ExportMetr...
528
false
census-instrumentation/opencensus-python
send
141,888
LDU_FT/amaas-fintech/amaas-core-sdk-python/investment_term
LDU_FT
[ "<BEGIN>\n## `deactivate`", "Is is only possible to deactivate an asset manager if your client_id is also the client_id that was used\n to originally create the asset manager.", " :param asset_manager_id:\n :return:\n<END>", "<BEGIN>\n## `quote_datetime`", "Force the quote_datetime to a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the investment_term API. 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 investment_term API. 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...
This investment term is in months. This might change to a relative delta.
"This investment term is in months. This might change to a relative delta."
109
false
amaas-fintech/amaas-core-sdk-python
investment_term
141,889
LDU_FT/tomturner/django-tenants/dirs
LDU_FT
[ "<BEGIN>\n## `get_table_list`", "Returns a list of table names in the current database and schema.\n<END>", "<BEGIN>\n## `get_table_description`", "Returns a description of the table, with the DB-API cursor.description interface.\n<END>", "<BEGIN>\n## `delete`", "Deletes this row. Drops the tenant's schem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dirs API. 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 dirs API. 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...
Lazy retrieval of list of template directories based on current tenant schema. :return: The list of template file dirs that have been configured for this tenant.
"Lazy retrieval of list of template directories based on current tenant schema.\n :return: The list of template file dirs that have been configured for this tenant."
50
false
tomturner/django-tenants
dirs
141,890
LDU_FT/synw/dataswim/relation
LDU_FT
[ "<BEGIN>\n## `ndlayout_`", "Create a Holoview NdLayout from a dictionnary of chart objects\n<END>", "<BEGIN>\n## `layout_`", "Returns a Holoview Layout from chart objects\n<END>", "<BEGIN>\n## `_hline_bokeh_`", "Returns an horizontal line from a column mean value\n<END>", "<BEGIN>\n## `_sline_bokeh`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the relation API. 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 relation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add a column to the main dataframe from a relation foreign key
"Add a column to the main dataframe from a relation foreign key"
393
false
synw/dataswim
relation
141,891
LDU_FT/nok/sklearn-porter/_get_intercepts
LDU_FT
[ "<BEGIN>\n## `export`", "Port a trained estimator to the syntax of a chosen programming language.", " Parameters\n ----------\n :param class_name : string\n The name of the class in the returned result.\n :param method_name : string\n The name of the method in t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_intercepts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_intercepts API. 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...
Concatenate all intercepts of the classifier.
"Concatenate all intercepts of the classifier."
197
false
nok/sklearn-porter
_get_intercepts
141,892
LDU_FT/divio/python-mautic/delete_trigger_events
LDU_FT
[ "<BEGIN>\n## `send`", "Send email to the assigned lists", " :param obj_id: int\n :return: dict|str\n<END>", "<BEGIN>\n## `send_to_contact`", "Send email to a specific contact", " :param obj_id: int\n :param contact_id: int\n :return: dict|str\n<END>", "<BEGIN>\n## `get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_trigger_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_trigger_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. ...
Remove events from a point trigger :param trigger_id: int :param event_ids: list|tuple :return: dict|str
"Remove events from a point trigger\n\n :param trigger_id: int\n :param event_ids: list|tuple\n :return: dict|str"
61
false
divio/python-mautic
delete_trigger_events
141,893
LDU_FT/sastrarobotics/pyHerkulex/get_servo_status_detail
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to the Herkulex bus", " Connect to serial port to which Herkulex Servos are attatched", " Args:\n portname (str): The serial port name\n baudrate (int): The serial port baudrate\n Raises:\n SerialException: Error occured while opening serial port...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_servo_status_detail 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_servo_status_detail 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 detailed error status of servo This function gets the detailed error status (if any) of the servo Args: none Returns: int: an integer corresponding to the servo status * refer datasheet
"Get the detailed error status of servo\n\n This function gets the detailed error status (if any) of the servo\n\n Args:\n none\n\n Returns:\n int: an integer corresponding to the servo status\n * refer datasheet"
102
false
sastrarobotics/pyHerkulex
get_servo_status_detail
141,894
LDU_FT/klahnakoski/pyLibrary/obrientransform
LDU_FT
[ "<BEGIN>\n## `groupby`", ":param data:\n :param keys:\n :param size:\n :param min_size:\n :param max_size:\n :param contiguous: MAINTAIN THE ORDER OF THE DATA, STARTING THE NEW GROUP WHEN THE SELECTOR CHANGES\n :return: return list of (keys, values) PAIRS, WHERE\n keys IS IN LEAF...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obrientransform API. 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 obrientransform API. 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...
Computes a transform on input data (any number of columns). Used to test for homogeneity of variance prior to running one-way stats. From Maxwell and Delaney, p.112. Usage: lobrientransform(*args) Returns: transformed data for use in an ANOVA
"Computes a transform on input data (any number of columns). Used to\ntest for homogeneity of variance prior to running one-way stats. From\nMaxwell and Delaney, p.112.\n\nUsage: lobrientransform(*args)\nReturns: transformed data for use in an ANOVA"
574
false
klahnakoski/pyLibrary
obrientransform
141,895
LDU_FT/alpha-xone/xone/saturate_kwargs
LDU_FT
[ "<BEGIN>\n## `trade_day`", "Latest trading day w.r.t given dt", " Args:\n dt: date of reference\n cal: trading calendar", " Returns:\n pd.Timestamp: last trading day", " Examples:\n >>> trade_day('2018-12-25').strftime('%Y-%m-%d')\n '2018-12-24'\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the saturate_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the saturate_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Saturate all combinations of kwargs Args: keys: keys in kwargs that want to use process **kwargs: kwargs for func
"Saturate all combinations of kwargs\n\n Args:\n keys: keys in kwargs that want to use process\n **kwargs: kwargs for func"
89
false
alpha-xone/xone
saturate_kwargs
141,896
LDU_FT/hfaran/piazza-api/create_instructor_answer
LDU_FT
[ "<BEGIN>\n## `user_login`", "Login with email, password and get back a session cookie", " :type email: str\n :param email: The email used for authentication\n :type password: str\n :param password: The password used for authentication\n<END>", "<BEGIN>\n## `demo_login`", "Authe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_instructor_answer 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 create_instructor_answer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Create an instructor's answer to a post `post`. It seems like if the post has `<p>` tags, then it's treated as HTML, but is treated as text otherwise. You'll want to provide `content` accordingly. :type post: dict|str|int :param post: Either the post dict returned by another A...
"Create an instructor's answer to a post `post`.\n\n It seems like if the post has `<p>` tags, then it's treated as HTML,\n but is treated as text otherwise. You'll want to provide `content`\n accordingly.\n\n :type post: dict|str|int\n :param post: Either the post dict returned by a...
100
false
hfaran/piazza-api
create_instructor_answer
141,897
LDU_FT/spencerahill/aospy/_replace_pressure
LDU_FT
[ "<BEGIN>\n## `_preprocess_and_rename_grid_attrs`", "Call a custom preprocessing method first then rename grid attrs.", " This wrapper is needed to generate a single function to pass to the\n ``preprocesss`` of xr.open_mfdataset. It makes sure that the\n user-specified preprocess function is called on ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _replace_pressure API. 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 _replace_pressure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Replace p and dp Vars with appropriate Var objects specific to the dtype_in_vert.
"Replace p and dp Vars with appropriate Var objects specific to\n the dtype_in_vert."
323
false
spencerahill/aospy
_replace_pressure
141,898
LDU_FT/pytest-dev/pytest-xdist/_pending_of
LDU_FT
[ "<BEGIN>\n## `has_pending`", "Return True if there are pending test items.", " This indicates that collection has finished and nodes are still\n processing test items, so this can be thought of as\n \"the scheduler is active\".\n<END>", "<BEGIN>\n## `add_node`", "Add a new node to the s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pending_of API. 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 _pending_of API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the number of pending tests in a workload.
"Return the number of pending tests in a workload."
92
false
pytest-dev/pytest-xdist
_pending_of
141,899
LDU_FT/paydunya/paydunya-python/add_item
LDU_FT
[ "<BEGIN>\n## `_process`", "Processes the current transaction", " Sends an HTTP request to the PAYDUNYA API server\n<END>", "<BEGIN>\n## `add_header`", "Add a custom HTTP header to the client's request headers\n<END>", "<BEGIN>\n## `create`", "Adds the items to the invoice", " Format of '...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Updates the list of items in the current transaction
"Updates the list of items in the current transaction"
26
false
paydunya/paydunya-python
add_item
141,900
LDU_FT/oceanprotocol/oceandb-bigchaindb-driver/_list
LDU_FT
[ "<BEGIN>\n## `ed25519_generate_key_pair_from_secret`", "Generate a new key pair.\n Args:\n secret (:class:`string`): A secret that serves as a seed\n Returns:\n A tuple of (private_key, public_key) encoded in base58.\n<END>", "<BEGIN>\n## `generate_key_pair`", "Generates a cryptographic ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
List all the objects saved in the namespace. :param search_from: TBI :param search_to: TBI :param offset: TBI :param limit: max number of values to be shows. :return: list with transactions.
"List all the objects saved in the namespace.\n\n :param search_from: TBI\n :param search_to: TBI\n :param offset: TBI\n :param limit: max number of values to be shows.\n :return: list with transactions."
28
false
oceanprotocol/oceandb-bigchaindb-driver
_list
141,901
LDU_FT/trentm/cmdln/do_diff
LDU_FT
[ "<BEGIN>\n## `mkmanpage`", "Return man page content for the given `cmdln.Cmdln` subclass name.\n<END>", "<BEGIN>\n## `do_crush`", "${cmd_name}: crush your enemies!", " ${cmd_usage}\n ${cmd_option_list}\n C.f. Conan the Barbarian.\n<END>", "<BEGIN>\n## `do_add`", "Put files and direc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 extracted...
Display the differences between two paths. usage: 1. diff [-r N[:M]] [TARGET[@REV]...] 2. diff [-r N[:M]] --old=OLD-TGT[@OLDREV] [--new=NEW-TGT[@NEWREV]] \ [PATH...] 3. diff OLD-URL[@OLDREV] NEW-URL[@NEWREV] 1. Display the changes made to...
"Display the differences between two paths.\n\n usage:\n 1. diff [-r N[:M]] [TARGET[@REV]...]\n 2. diff [-r N[:M]] --old=OLD-TGT[@OLDREV] [--new=NEW-TGT[@NEWREV]] \\\n [PATH...]\n 3. diff OLD-URL[@OLDREV] NEW-URL[@NEWREV]\n \n 1. Display the chang...
207
false
trentm/cmdln
do_diff
141,902
LDU_FT/knaperek/djangosaml2/assertion_consumer_service
LDU_FT
[ "<BEGIN>\n## `get_idp_sso_supported_bindings`", "Returns the list of bindings supported by an IDP\n This is not clear in the pysaml2 code, so wrapping it in a util\n<END>", "<BEGIN>\n## `fail_acs_response`", "Serves as a common mechanism for ending ACS in case of any SAML related failure.\n Handling can...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assertion_consumer_service 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 assertion_consumer_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
SAML Authorization Response endpoint The IdP will send its response to this view, which will process it with pysaml2 help and log the user in using the custom Authorization backend djangosaml2.backends.Saml2Backend that should be enabled in the settings.py
"SAML Authorization Response endpoint\n\n The IdP will send its response to this view, which\n will process it with pysaml2 help and log the user\n in using the custom Authorization backend\n djangosaml2.backends.Saml2Backend that should be\n enabled in the settings.py"
34
false
knaperek/djangosaml2
assertion_consumer_service
141,903
LDU_FT/XuShaohua/bcloud/cloud_query_sinfo
LDU_FT
[ "<BEGIN>\n## `display_files`", "重新格式化一下文件列表, 去除不需要的信息", " 这一操作主要是为了便于接下来的查找工作.\n 文件的path都被提取出来, 然后放到了一个list中.\n<END>", "<BEGIN>\n## `init_db`", "这个任务数据库只在程序开始时读入, 在程序关闭时导出.", " 因为Gtk没有像在Qt中那么方便的使用SQLite, 而必须将所有数据读入一个\n liststore中才行.\n<END>", "<BEGIN>\n## `get_task_db`", "从数...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cloud_query_sinfo API. 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 cloud_query_sinfo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
获取网盘中种子的信息, 比如里面的文件名, 文件大小等. source_path - BT种子的绝对路径.
"获取网盘中种子的信息, 比如里面的文件名, 文件大小等.\n\n source_path - BT种子的绝对路径."
199
false
XuShaohua/bcloud
cloud_query_sinfo
141,904
LDU_FT/gazpachoking/jsonref/replace_refs
LDU_FT
[ "<BEGIN>\n## `_no_proxy`", "Returns a wrapped version of `method`, such that proxying is turned off\n during the method call.\n<END>", "<BEGIN>\n## `_should_proxy`", "Determines whether `attr` should be looked up on the proxied object, or\n the proxy itself.\n<END>", "<BEGIN>\n## `add_proxy_me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_refs API. 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 replace_refs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns a deep copy of `obj` with all contained JSON reference objects replaced with :class:`JsonRef` instances. :param obj: If this is a JSON reference object, a :class:`JsonRef` instance will be created. If `obj` is not a JSON reference object, a deep copy of it will be create...
"Returns a deep copy of `obj` with all contained JSON reference objects\n replaced with :class:`JsonRef` instances.\n\n :param obj: If this is a JSON reference object, a :class:`JsonRef`\n instance will be created. If `obj` is not a JSON reference object,\n a deep copy of it will be ...
25
false
gazpachoking/jsonref
replace_refs
141,905
LDU_FT/craft-ai/craft-ai-client-python/get_decision_tree
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Returns the Time instance as a usable dictionary for craftai\n<END>", "<BEGIN>\n## `create_agent`", "Create an agent.", " :param dict configuration: Form given by the craftai documentation.\n :param str agent_id: Optional. The id of the agent to create. It\n must be an str...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_decision_tree API. 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_decision_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get decision tree. :param str agent_id: the id of the agent to get the tree. It must be an str containing only characters in "a-zA-Z0-9_-" and must be between 1 and 36 characters. :param int timestamp: Optional. The decision tree is comptuted at this timestamp. :default timestamp: None, means t...
"Get decision tree.\n\n :param str agent_id: the id of the agent to get the tree. It\n must be an str containing only characters in \"a-zA-Z0-9_-\" and\n must be between 1 and 36 characters.\n :param int timestamp: Optional. The decision tree is comptuted\n at this timestamp.\n :default timestamp: Non...
80
false
craft-ai/craft-ai-client-python
get_decision_tree
141,906
LDU_FT/erdc/RAPIDpy/CreateMuskingumKFile
LDU_FT
[ "<BEGIN>\n## `generate_single_return_period`", "This function calculates a single return period for a single reach\n<END>", "<BEGIN>\n## `generate_return_periods`", "Generate return period from RAPID Qout file\n<END>", "<BEGIN>\n## `get_poly_area_geo`", "Calculates the area in meters squared of the indivi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CreateMuskingumKFile 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 CreateMuskingumKFile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Creates muskingum k file from kfac file. Parameters ---------- lambda_k: float The value for lambda given from RAPID after the calibration process. If no calibration has been performed, 0.35 is reasonable. in_kfac_file: str The path to the input kfac file. out_k_file: str ...
"Creates muskingum k file from kfac file.\n\n Parameters\n ----------\n lambda_k: float\n The value for lambda given from RAPID after the calibration process.\n If no calibration has been performed, 0.35 is reasonable.\n in_kfac_file: str\n The path to the input kfac file.\n out_k_fi...
502
false
erdc/RAPIDpy
CreateMuskingumKFile
141,907
LDU_FT/secure-systems-lab/securesystemslib/generate_ed25519_key
LDU_FT
[ "<BEGIN>\n## `get_password`", "<Purpose>\n Return the password entered by the user. If 'confirm' is True, the user is\n asked to enter the previously entered password once again. If they match,\n the password is returned to the caller.", " <Arguments>\n prompt:\n The text of the password pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_ed25519_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_ed25519_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
<Purpose> Generate public and private ED25519 keys, both of length 32-bytes, although they are hexlified to 64 bytes. In addition, a keyid identifier generated for the returned ED25519 object. The object returned conforms to 'securesystemslib.formats.ED25519KEY_SCHEMA' and has the form: {'keytype...
"<Purpose>\n Generate public and private ED25519 keys, both of length 32-bytes, although\n they are hexlified to 64 bytes. In addition, a keyid identifier generated\n for the returned ED25519 object. The object returned conforms to\n 'securesystemslib.formats.ED25519KEY_SCHEMA' and has the form:\n\n {'...
663
false
secure-systems-lab/securesystemslib
generate_ed25519_key
141,908
LDU_FT/kmedian/korr/corr_vs_pval
LDU_FT
[ "<BEGIN>\n## `kendall`", "Kendall' tau (Rank) Correlation Matrix (for ordinal data)", " Parameters\n ----------\n x : ndarray\n data set", " axis : int, optional\n Variables as columns is the default (axis=0). If variables are\n in the rows use axis=1", " Returns\n ---...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the corr_vs_pval API. 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 corr_vs_pval API. 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...
Histogram for correlation coefficients and its p-values (colored) Parameters: ----------- r : np.ndarray Correlation coefficient matrix. The upper triangular elements are extracted if a NxN is provided. Otherwise provide a plain vector. pval : np.ndarray NxN matrix with...
"Histogram for correlation coefficients and its p-values (colored)\n\n Parameters:\n -----------\n r : np.ndarray\n Correlation coefficient matrix.\n The upper triangular elements are extracted if a NxN is provided.\n Otherwise provide a plain vector.\n\n pval : np.ndarray\n NxN ...
69
false
kmedian/korr
corr_vs_pval
141,909
LDU_FT/agoragames/kairos/step_size
LDU_FT
[ "<BEGIN>\n## `_resolve_time`", "Resolve the time in seconds of a configuration value.\n<END>", "<BEGIN>\n## `step_size`", "Return the time in seconds of a step. If a begin and end timestamp,\n return the time in seconds between them after adjusting for what buckets\n they alias to. If t1 and t0 resolve ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_size API. 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 step_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the time in seconds for each step. Requires that we know a time relative to which we should calculate to account for variable length intervals (e.g. February)
"Return the time in seconds for each step. Requires that we know a time\n relative to which we should calculate to account for variable length\n intervals (e.g. February)"
74
false
agoragames/kairos
step_size
141,910
LDU_FT/kbr/fritzconnection/get_actions
LDU_FT
[ "<BEGIN>\n## `set_fraction`", "Set the meter indicator. Value should be between 0 and 1.\n<END>", "<BEGIN>\n## `update_status`", "Update status informations in tkinter window.\n<END>", "<BEGIN>\n## `format_num`", "Returns a human readable string of a byte-value.\n If 'num' is bits, set unit='bits'.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_actions API. 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 get_actions API. 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 list of FritzAction instances.
"Returns a list of FritzAction instances."
38
false
kbr/fritzconnection
get_actions
141,911
LDU_FT/napalm-automation/napalm-base/mac
LDU_FT
[ "<BEGIN>\n## `load_template`", "Will load a templated configuration on the device.", " :param cls: Instance of the driver class.\n :param template_name: Identifies the template name.\n :param template_source (optional): Custom config template rendered and loaded on device\n :param te...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mac API. 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 mac API. 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...
Converts a raw string to a standardised MAC Address EUI Format. :param raw: the raw string containing the value of the MAC Address :return: a string with the MAC Address in EUI format Example: .. code-block:: python >>> mac('0123.4567.89ab') u'01:23:45:67:89:AB' Some vendors lik...
"Converts a raw string to a standardised MAC Address EUI Format.\n\n :param raw: the raw string containing the value of the MAC Address\n :return: a string with the MAC Address in EUI format\n\n Example:\n\n .. code-block:: python\n\n >>> mac('0123.4567.89ab')\n u'01:23:45:67:89:AB'\n\n Som...
47
false
napalm-automation/napalm-base
mac
141,912
LDU_FT/ikalnytskyi/dooku/dst
LDU_FT
[ "<BEGIN>\n## `to_iso8601`", "Returns an ISO-8601 representation of a given datetime instance.", " >>> to_iso8601(datetime.datetime.now())\n '2014-10-01T23:21:33.718508Z'", " :param dt: a :class:`~datetime.datetime` instance\n :param tz: a :class:`~datetime.tzinfo` to use; if None - use a d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dst API. 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 dst API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns a difference in seconds between standard offset and dst offset.
"Returns a difference in seconds between standard offset and\n dst offset."
36
false
ikalnytskyi/dooku
dst
141,913
LDU_FT/yunojuno-archive/django-inbound-email/parse
LDU_FT
[ "<BEGIN>\n## `_decode_POST_value`", "Helper to decode a request field into unicode based on charsets encoding.", " Args:\n request: the HttpRequest object.\n field_name: the field expected in the request.POST", " Kwargs:\n default: if passed in then field is optional and default is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse incoming request and return an email instance. Args: request: an HttpRequest object, containing a list of forwarded emails, as per Mandrill specification for inbound emails. Returns: a list of EmailMultiAlternatives instances
"Parse incoming request and return an email instance.\n\n Args:\n request: an HttpRequest object, containing a list of forwarded emails, as\n per Mandrill specification for inbound emails.\n\n Returns:\n a list of EmailMultiAlternatives instances"
29
false
yunojuno-archive/django-inbound-email
parse
141,914
LDU_FT/bennyrowland/suspect/from_scanner
LDU_FT
[ "<BEGIN>\n## `write_all_files`", "Creates an LCModel control file for processing the supplied MRSData, and\n optional water reference data, updating the default parameters with any\n values supplied through params.", " :param filename: the location where the control file should be saved.\n :param da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_scanner API. 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 from_scanner API. 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...
Converts a 3d position in the scanner reference frame to the MRSData space :param x: :param y: :param z: :return:
"Converts a 3d position in the scanner reference frame to the MRSData space\n\n :param x:\n :param y:\n :param z:\n :return:"
71
false
bennyrowland/suspect
from_scanner
141,915
LDU_FT/Ceasar/twosheds/eval
LDU_FT
[ "<BEGIN>\n## `eval`", "Respond to text entered by the user.", " :param text: the user's input\n<END>", "<BEGIN>\n## `interact`", "Get a command from the user and respond to it.\n<END>", "<BEGIN>\n## `serve_forever`", "Handle one interaction at a time until shutdown.", " :param banner: (o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval API. 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 eval API. 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...
Respond to text entered by the user. :param text: the user's input
"Respond to text entered by the user.\n\n :param text: the user's input"
49
false
Ceasar/twosheds
eval
141,916
LDU_FT/datacamp/protowhat/_from_func
LDU_FT
[ "<BEGIN>\n## `_from_func`", "Creates a function chain starting with the specified SCT (f), and its arguments.\n<END>", "<BEGIN>\n## `check_file`", "Test whether file exists, and make its contents the student code.", " Note: this SCT fails if the file is a directory.\n<END>", "<BEGIN>\n## `dump`", "Co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _from_func API. 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_func API. 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...
Creates a function chain starting with the specified SCT (f), and its arguments.
"Creates a function chain starting with the specified SCT (f), and its arguments."
94
false
datacamp/protowhat
_from_func
141,917
LDU_FT/Cito/DBUtils/begin
LDU_FT
[ "<BEGIN>\n## `connection`", "Get a steady, cached DB-API 2 connection from the pool.", " If shareable is set and the underlying DB-API 2 allows it,\n then the connection may be shared with other threads.\n<END>", "<BEGIN>\n## `unshare`", "Decrease the share of a connection in the shared cache....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Indicate the beginning of a transaction. During a transaction, connections won't be transparently replaced, and all errors will be raised to the application. If the underlying driver supports this method, it will be called with the given parameters (e.g. for distributed transactions).
"Indicate the beginning of a transaction.\n\n During a transaction, connections won't be transparently\n replaced, and all errors will be raised to the application.\n\n If the underlying driver supports this method, it will be called\n with the given parameters (e.g. for distributed transact...
80
false
Cito/DBUtils
begin
141,918
LDU_FT/TylerTemp/docpie/fix_argument_only
LDU_FT
[ "<BEGIN>\n## `docpie`", "match the argv for each usages, return dict.", " if argv is None, it will use sys.argv instead.\n if argv is str, it will call argv.split() first.\n this function will check the options in self.extra and handle it first.\n Which means it may not try to match ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_argument_only API. 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 fix_argument_only API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
fix_argument_only() -> Either or Unit(Argument) `<arg> | ARG | <arg3>` -> `Required(Argument('<arg>', 'ARG', '<arg3>'))` `[<arg>] | [ARG] | [<arg3>]` -> `Optional(Argument('<arg>', 'ARG', '<arg3>'))` `(<arg>) | [ARG]` -> not change, return self `-a | --bette...
"fix_argument_only() -> Either or Unit(Argument)\r\n `<arg> | ARG | <arg3>` ->\r\n `Required(Argument('<arg>', 'ARG', '<arg3>'))`\r\n `[<arg>] | [ARG] | [<arg3>]` ->\r\n `Optional(Argument('<arg>', 'ARG', '<arg3>'))`\r\n `(<arg>) | [ARG]` -> not change, return self\r\n ...
51
false
TylerTemp/docpie
fix_argument_only
141,919
LDU_FT/tech-pi/doufo/fmap
LDU_FT
[ "<BEGIN>\n## `_nargs`", "number of positional arguments values. Dynamically computed from the arguments attribute.\n<END>", "<BEGIN>\n## `_ndefs`", "number of any default values for positional or keyword parameters\n<END>", "<BEGIN>\n## `func`", "decorates normal function to Function with (optional) numbe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fmap API. 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 fmap API. 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...
doufo.maybe.fmap: map a `Maybe` object with a function Args: `self` f (`Callable[[T], B]`): a function Returns: return (`Maybe[B]`): returned `Maybe` objects from function `f` Raises:
"doufo.maybe.fmap: map a `Maybe` object with a function \n Args: \n `self` \n f (`Callable[[T], B]`): a function \n Returns: \n return (`Maybe[B]`): returned `Maybe` objects from function `f` \n Raises:"
48
false
tech-pi/doufo
fmap
141,920
LDU_FT/edeposit/edeposit.amqp.antivirus/create_config
LDU_FT
[ "<BEGIN>\n## `_parse_result`", "Parse ``clamscan`` output into same dictionary structured used by\n ``pyclamd``.", " Input example::\n /home/bystrousak/Plocha/prace/test/eicar.com: Eicar-Test-Signature FOUND", " Output dict::\n {\n \"/home/bystrousak/Plocha/prace/test/eicar.c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Creates configuration file and the directory where it should be stored and set correct permissions. Args: cnf_file (str): Path to the configuration file. uid (int): User ID - will be used for chown. overwrite (bool): Overwrite the configuration with :attr:`CLEAN_CONFIG`.
"Creates configuration file and the directory where it should be stored and\n set correct permissions.\n\n Args:\n cnf_file (str): Path to the configuration file.\n uid (int): User ID - will be used for chown.\n overwrite (bool): Overwrite the configuration with :attr:`CLEAN_CONFIG`."
41
false
edeposit/edeposit.amqp.antivirus
create_config
141,921
LDU_FT/dasevilla/rovi-python/_cosmoid_request
LDU_FT
[ "<BEGIN>\n## `make_request`", "Performs the API request. Most methods are a wrapper around this one.\n<END>", "<BEGIN>\n## `music_search`", "Search the music database", " Where ``entitiy_type`` is a comma separated list of:", " ``song``\n songs", " ``album``\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cosmoid_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cosmoid_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 ...
Maps to the Generic API method for requests who's only parameter is ``cosmoid``
"Maps to the Generic API method for requests who's only parameter is ``cosmoid``"
35
false
dasevilla/rovi-python
_cosmoid_request
141,922
LDU_FT/netmarkjp/pybacklog/project_activities
LDU_FT
[ "<BEGIN>\n## `do`", "- Method: method\n - URL: url.format(**url_params)\n - Parameter: query_params & apiKey=api_key\n - Request Body(data): request_params\n<END>", "<BEGIN>\n## `project_activities`", "client = BacklogClient(\"your_space_name\", \"your_api_key\")\n client.project_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the project_activities 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 project_activities 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...
client = BacklogClient("your_space_name", "your_api_key") client.project_activities("YOUR_PROJECT") client.project_activities("YOUR_PROJECT", {"activityTypeId[]": [1, 2],})
"client = BacklogClient(\"your_space_name\", \"your_api_key\")\n client.project_activities(\"YOUR_PROJECT\")\n client.project_activities(\"YOUR_PROJECT\", {\"activityTypeId[]\": [1, 2],})"
25
false
netmarkjp/pybacklog
project_activities
141,923
LDU_FT/globality-corp/microcosm-postgres/clone
LDU_FT
[ "<BEGIN>\n## `create_temporary_table`", "Create a new temporary table from another table.\n<END>", "<BEGIN>\n## `get_current_head`", "Get the current database head revision, if any.\n<END>", "<BEGIN>\n## `flushing`", "Flush the current session, handling common errors.\n<END>", "<BEGIN>\n## `retrieve`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clone API. 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 clone API. 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...
Clone an instance of `Model` that uses `IdentityMixin`. :param instance: the instance to clonse :param substitutions: a dictionary of substitutions :param ignore: a tuple of column names to ignore
"Clone an instance of `Model` that uses `IdentityMixin`.\n\n :param instance: the instance to clonse\n :param substitutions: a dictionary of substitutions\n :param ignore: a tuple of column names to ignore"
110
false
globality-corp/microcosm-postgres
clone
141,924
LDU_FT/dpgaspar/Flask-AppBuilder/_handle_order_args
LDU_FT
[ "<BEGIN>\n## `dict_to_json`", "Converts a list of dicts from datamodel query results\n to google chart json data.", " :param xcol:\n The name of a string column to be used has X axis on chart\n :param ycols:\n A list with the names of series cols, that can be used as n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_order_args 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 _handle_order_args 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...
Help function to handle rison order arguments :param rison_args: :return:
"Help function to handle rison order\n arguments\n\n :param rison_args:\n :return:"
393
false
dpgaspar/Flask-AppBuilder
_handle_order_args
141,925
LDU_FT/developersociety/django-glitter/process_action
LDU_FT
[ "<BEGIN>\n## `get_templates`", "Return a list of templates usable by a model.\n<END>", "<BEGIN>\n## `attach`", "Registers the given layout(s) classes\n admin site:", " @pages.register(Page)\n class Default(PageLayout):\n pass\n<END>", "<BEGIN>\n## `get_formset`", "Default user to the cur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_action API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_action API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Process the action and update the related object, returns a boolean if a change is made.
"Process the action and update the related object, returns a boolean if a change is made."
80
false
developersociety/django-glitter
process_action
141,926
LDU_FT/kragniz/python-etcd3/lock
LDU_FT
[ "<BEGIN>\n## `new_event`", "Wrap a raw gRPC event in a friendlier containing class.", " This picks the appropriate class from one of PutEvent or DeleteEvent and\n returns a new instance.\n<END>", "<BEGIN>\n## `acquire`", "Acquire the lock.", " :params timeout: Maximum time to wait before retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lock API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lock API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Create a new lock. :param name: name of the lock :type name: string or bytes :param ttl: length of time for the lock to live for in seconds. The lock will be released after this time elapses, unless refreshed :type ttl: int :returns: new l...
"Create a new lock.\n\n :param name: name of the lock\n :type name: string or bytes\n :param ttl: length of time for the lock to live for in seconds. The\n lock will be released after this time elapses, unless\n refreshed\n :type ttl: int\n :retur...
113
false
kragniz/python-etcd3
lock
141,927
LDU_FT/onelogin/python-saml/get_issuer
LDU_FT
[ "<BEGIN>\n## `is_valid`", "Validates the response object.", " :param request_data: Request Data\n :type request_data: dict", " :param request_id: Optional argument. The ID of the AuthNRequest sent by this SP to the IdP\n :type request_id: string", " :param raise_exceptions...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_issuer API. 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_issuer API. 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...
Gets the Issuer of the Logout Request Message :param request: Logout Request Message :type request: string|DOMDocument :return: The Issuer :rtype: string
"Gets the Issuer of the Logout Request Message\n :param request: Logout Request Message\n :type request: string|DOMDocument\n :return: The Issuer\n :rtype: string"
229
false
onelogin/python-saml
get_issuer
141,928
LDU_FT/seleniumbase/SeleniumBase/search_for_subject
LDU_FT
[ "<BEGIN>\n## `generate_application_string`", "Generate an application string based on some of the given information\n that can be pulled from the test object: app_env, start_time.\n<END>", "<BEGIN>\n## `_filter_xpath_grouping`", "This method removes the outer parentheses for xpath grouping.\n Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_for_subject 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 search_for_subject API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get content of emails, sent to a specific email address. @Params email - the recipient email address to search for timeout - seconds to try beore timing out content_type - type of email string to return @Returns Content of the matched email in the given content type
"Get content of emails, sent to a specific email address.\n @Params\n email - the recipient email address to search for\n timeout - seconds to try beore timing out\n content_type - type of email string to return\n @Returns\n Content of the matched email in the given content typ...
362
false
seleniumbase/SeleniumBase
search_for_subject
141,929
LDU_FT/TUT-ARG/sed_eval/result_report_overall
LDU_FT
[ "<BEGIN>\n## `result_report_overall`", "Report overall results", " Returns\n -------\n str\n result report in string format\n<END>", "<BEGIN>\n## `result_report_class_wise_average`", "Report class-wise averages", " Returns\n -------\n str\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result_report_overall 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 result_report_overall API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Report overall results Returns ------- str result report in string format
"Report overall results\n\n Returns\n -------\n str\n result report in string format"
268
false
TUT-ARG/sed_eval
result_report_overall
141,930
LDU_FT/asascience-open/paegan-transport/intersect
LDU_FT
[ "<BEGIN>\n## `export`", "Export particle data to CF trajectory convention\n netcdf file\n<END>", "<BEGIN>\n## `export`", "Export particle and datetime data to Pickled objects.\n This can be used to debug or to generate different output\n in the future.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersect API. 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 intersect API. 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...
Intersect Point and Bathymetry returns bool
"Intersect Point and Bathymetry\n returns bool"
98
false
asascience-open/paegan-transport
intersect
141,931
LDU_FT/google/apitools/ServiceAccountCredentialsFromFile
LDU_FT
[ "<BEGIN>\n## `_urljoin`", "Custom urljoin replacement supporting : before / in url.\n<END>", "<BEGIN>\n## `_SetCredentials`", "Fetch credentials, and set them for this client.", " Note that we can't simply return credentials, since creating them\n may involve side-effecting self.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ServiceAccountCredentialsFromFile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ServiceAccountCredentialsFromFile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Use the credentials in filename to create a token for scopes.
"Use the credentials in filename to create a token for scopes."
629
false
google/apitools
ServiceAccountCredentialsFromFile
141,932
LDU_FT/ewiger/mlab/reduceR
LDU_FT
[ "<BEGIN>\n## `saveVarsInMat`", "Hacky convinience function to dump a couple of python variables in a\n .mat file. See `awmstools.saveVars`.\n<END>", "<BEGIN>\n## `_make_proxy`", "Creates a proxy for a variable.", " XXX create and cache nested proxies also here.\n<END>", "<BEGIN>\n## `_do`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reduceR API. 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 reduceR API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
*R*ight reduce. >>> reduceR(lambda x,y:x/y, [1.,2.,3.,4]) == 1./(2./(3./4.)) == (1./2.)*(3./4.) True >>> reduceR(lambda x,y:x-y, iter([1,2,3]),4) == 1-(2-(3-4)) == (1-2)+(3-4) True
"*R*ight reduce.\n >>> reduceR(lambda x,y:x/y, [1.,2.,3.,4]) == 1./(2./(3./4.)) == (1./2.)*(3./4.)\n True\n >>> reduceR(lambda x,y:x-y, iter([1,2,3]),4) == 1-(2-(3-4)) == (1-2)+(3-4)\n True"
247
false
ewiger/mlab
reduceR
141,933
LDU_FT/ets-labs/python-dependency-injector/main
LDU_FT
[ "<BEGIN>\n## `import_cls`", "Import class by its fully qualified name.", " In terms of current example it is just a small helper function. Please,\n don't use it in production approaches.\n<END>", "<BEGIN>\n## `find_all`", "Return all found movies.", " :rtype: list[movies.models.Movie]\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. 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 main API. 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...
Run application. This program prints info about all movies that were directed by different persons and then prints all movies that were released in 2015. :param movie_lister: Movie lister instance :type movie_lister: movies.listers.MovieLister
"Run application.\n\n This program prints info about all movies that were directed by different\n persons and then prints all movies that were released in 2015.\n\n :param movie_lister: Movie lister instance\n :type movie_lister: movies.listers.MovieLister"
38
false
ets-labs/python-dependency-injector
main
141,934
LDU_FT/toomore/grs/bias_ratio
LDU_FT
[ "<BEGIN>\n## `real`", "Real time data", " :rtype: dict\n :returns:", " :name: 股票名稱 Unicode\n :no: 股票代碼\n :range: 漲跌價\n :ranges: 漲跌判斷 True, False\n :time: 取得時間\n :max: 漲停價\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bias_ratio API. 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 bias_ratio API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
判斷乖離 :param bool positive_or_negative: 正乖離 為 True,負乖離 為 False
"判斷乖離\n\n :param bool positive_or_negative: 正乖離 為 True,負乖離 為 False"
88
false
toomore/grs
bias_ratio
141,935
LDU_FT/ahopkins/sanic-jwt/__add_class_views
LDU_FT
[ "<BEGIN>\n## `_verify`", "If there is a \"permakey\", then we will verify the token by checking the\n database. Otherwise, just do the normal verification.", " Typically, any method that begins with an underscore in sanic-jwt should\n not be touched. In this case, we are trying to break the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __add_class_views API. 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 __add_class_views API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Include any custom class views on the Sanic JWT Blueprint
"Include any custom class views on the Sanic JWT Blueprint"
47
false
ahopkins/sanic-jwt
__add_class_views
141,936
LDU_FT/doconix/django-mako-plus/get_template_loader
LDU_FT
[ "<BEGIN>\n## `run_command`", "Runs a command, piping all output to the DMP log.\n The args should be separate arguments so paths and subcommands can have spaces in them:", " ret = run_command('ls', '-l', '/Users/me/My Documents')\n print(ret.code)\n print(ret.stdout)\n print(ret.s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_template_loader 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_template_loader 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...
App-specific function to get the current app's template loader
"App-specific function to get the current app's template loader"
207
false
doconix/django-mako-plus
get_template_loader
141,937
LDU_FT/thespacedoctor/qubits/determine_if_sne_are_discoverable
LDU_FT
[ "<BEGIN>\n## `setup`", "*setup the workspace in the requested location*", " **Return:**\n - ``None``\n<END>", "<BEGIN>\n## `random_redshift_array`", "*Generate a NumPy array of random distances given a sample number and distance limit*", " **Key Arguments:**\n - ``log`` -- logg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_if_sne_are_discoverable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_if_sne_are_discoverable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
*Given the observe frame lightcurve, determine if the SNe are discoverable by the survey or not.* **Key Arguments:** - ``log`` -- logger - ``redshiftArray`` -- the array of random redshifts - ``observedFrameLightCurveInfo`` -- the observed franme lightcurve info (dictionary) - ``pat...
"*Given the observe frame lightcurve, determine if the SNe are discoverable by the survey or not.*\n\n **Key Arguments:**\n - ``log`` -- logger\n - ``redshiftArray`` -- the array of random redshifts\n - ``observedFrameLightCurveInfo`` -- the observed franme lightcurve info (dictionary)\n ...
152
false
thespacedoctor/qubits
determine_if_sne_are_discoverable
141,938
LDU_FT/EventRegistry/event-registry-python/initWithComplexQuery
LDU_FT
[ "<BEGIN>\n## `compute`", "compute the list of most similar events for the given text\n<END>", "<BEGIN>\n## `getUpdates`", "Get the latest new or updated events from Event Registry\n NOTE: call this method exactly once per minute - calling it more frequently will return the same results multiple times,\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initWithComplexQuery 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 initWithComplexQuery API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
create a query using a complex event query
"create a query using a complex event query"
89
false
EventRegistry/event-registry-python
initWithComplexQuery
141,939
LDU_FT/mfitzp/padua/_pca_scores
LDU_FT
[ "<BEGIN>\n## `remove_rows_matching`", "Return a ``DataFrame`` with rows where `column` values match `match` are removed.", " The selected `column` series of values from the supplied Pandas ``DataFrame`` is compared\n to `match`, and those rows that match are removed from the DataFrame.", " :param df:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pca_scores API. 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 _pca_scores API. 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...
Plot a scores plot for two principal components as AxB scatter plot. Returns the plotted axis. :param scores: DataFrame containing scores :param pc1: Column indexer into scores for PC1 :param pc2: Column indexer into scores for PC2 :param fcol: Face (fill) color definition :param ecol: Edge co...
"Plot a scores plot for two principal components as AxB scatter plot.\n\n Returns the plotted axis.\n\n :param scores: DataFrame containing scores\n :param pc1: Column indexer into scores for PC1\n :param pc2: Column indexer into scores for PC2\n :param fcol: Face (fill) color definition\n :param ecol...
266
false
mfitzp/padua
_pca_scores
141,940
LDU_FT/laginha/django-mobileesp/detectWapWml
LDU_FT
[ "<BEGIN>\n## `detectIphone`", "Return detection of an iPhone", " Detects if the current device is an iPhone.\n<END>", "<BEGIN>\n## `detectIphoneOrIpod`", "Return detection of an iPhone or iPod Touch", " Detects if the current device is an iPhone or iPod Touch.\n<END>", "<BEGIN>\n## `detect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detectWapWml API. 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 detectWapWml API. 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 detection of a WAP- or WML-capable device Detects whether the device supports WAP or WML.
"Return detection of a WAP- or WML-capable device\n\n Detects whether the device supports WAP or WML."
111
false
laginha/django-mobileesp
detectWapWml
141,941
LDU_FT/tdegeus/GooseMPL/plot_powerlaw
LDU_FT
[ "<BEGIN>\n## `find_latex_font_serif`", "r'''\nFind an available font to mimic LaTeX, and return its name.\n<END>", "<BEGIN>\n## `copy_style`", "r'''\nWrite all goose-styles to the relevant matplotlib configuration directory.\n<END>", "<BEGIN>\n## `set_decade_lims`", "r'''\nSet limits the the floor/ceil va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_powerlaw API. 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 plot_powerlaw API. 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...
r''' Plot a power-law. :arguments: **exp** (``float``) The power-law exponent. **startx, starty** (``float``) Start coordinates. :options: **width, height, endx, endy** (``float``) Definition of the end coordinate (only on of these options is needed). **units** ([``'relative'``] | ``'absolute'...
"r'''\nPlot a power-law.\n\n:arguments:\n\n **exp** (``float``)\n The power-law exponent.\n\n **startx, starty** (``float``)\n Start coordinates.\n\n:options:\n\n **width, height, endx, endy** (``float``)\n Definition of the end coordinate (only on of these options is needed).\n\n **units** ([``'relative'`...
159
false
tdegeus/GooseMPL
plot_powerlaw
141,942
LDU_FT/Tivix/django-common/get_prep_value
LDU_FT
[ "<BEGIN>\n## `ssl_required`", "Views decorated with this will always get redirected to https\n except when allow_non_ssl is set to true.\n<END>", "<BEGIN>\n## `anonymous_required`", "Only allow if user is NOT authenticated.\n<END>", "<BEGIN>\n## `generic_var`", "Stores generic variables in the session ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prep_value API. 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_prep_value API. 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...
Convert our JSON object to a string before we save
"Convert our JSON object to a string before we save"
28
false
Tivix/django-common
get_prep_value
141,943
LDU_FT/mixmastamyk/console/_find_basic_palette
LDU_FT
[ "<BEGIN>\n## `clear_line`", "Clear the current line.", " Arguments:", " mode: | 0 | 'forward' | 'right' - Clear cursor to end of line.\n | 1 | 'backward' | 'left' - Clear cursor to beginning of line.\n | 2 | 'full' - Clear entire line.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_basic_palette 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 _find_basic_palette 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...
Find the platform-dependent 16-color basic palette. This is used for "downgrading to the nearest color" support.
"Find the platform-dependent 16-color basic palette.\n\n This is used for \"downgrading to the nearest color\" support."
158
false
mixmastamyk/console
_find_basic_palette
141,944
LDU_FT/base4sistemas/pyescpos/scan_ports
LDU_FT
[ "<BEGIN>\n## `ean8`", "Render given ``data`` as **JAN-8/EAN-8** barcode symbology.\n<END>", "<BEGIN>\n## `ean13`", "Render given ``data`` as **JAN-13/EAN-13** barcode symbology.\n<END>", "<BEGIN>\n## `code128`", "Renders given ``data`` as **Code 128** barcode symbology.", " :param str codeset: Op...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_ports API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_ports API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Scan for known serial ports available in the underling system. Returns a tuple of tuples where each inner tuple contains the port number and port name. For example: .. sourcecode:: python scan_ports() ((0, '/dev/ttyS0'), (1, '/dev/ttyS1'), ...)
"Scan for known serial ports available in the underling system.\n Returns a tuple of tuples where each inner tuple contains the port\n number and port name. For example:\n\n .. sourcecode:: python\n\n scan_ports()\n ((0, '/dev/ttyS0'), (1, '/dev/ttyS1'), ...)"
83
false
base4sistemas/pyescpos
scan_ports
141,945
LDU_FT/django-danceschool/django-danceschool/create_from_item
LDU_FT
[ "<BEGIN>\n## `get_context_data`", "Add the list of registrations for the given series\n<END>", "<BEGIN>\n## `get_context_data`", "The URL to redirect to can be explicitly specified, or it can come\n from the site session history, or it can be the default admin success page\n as specified in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Creates an Invoice as well as a single associated InvoiceItem with the passed description (for things like gift certificates)
"Creates an Invoice as well as a single associated InvoiceItem\n with the passed description (for things like gift certificates)"
337
false
django-danceschool/django-danceschool
create_from_item
141,946
LDU_FT/vmalloc/dessert/_read_pyc
LDU_FT
[ "<BEGIN>\n## `_read_pyc`", "Possibly read a pytest pyc containing rewritten code.", " Return rewritten code if successful or None if not.\n<END>", "<BEGIN>\n## `_saferepr`", "Get a safe repr of an object for assertion error messages.", " The assertion formatting (util.format_explanation()) requires\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_pyc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_pyc API. 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...
Possibly read a pytest pyc containing rewritten code. Return rewritten code if successful or None if not.
"Possibly read a pytest pyc containing rewritten code.\n\n Return rewritten code if successful or None if not."
41
false
vmalloc/dessert
_read_pyc
141,947
LDU_FT/aiidateam/aiida-codtools/primitive_structure_from_cif
LDU_FT
[ "<BEGIN>\n## `run_filter_calculation`", "Run the CifFilterCalculation on the CifData input node.\n<END>", "<BEGIN>\n## `inspect_filter_calculation`", "Inspect the result of the CifFilterCalculation, verifying that it produced a CifData output node.\n<END>", "<BEGIN>\n## `run_select_calculation`", "Run the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the primitive_structure_from_cif 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 primitive_structure_from_cif API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
This calcfunction will take a CifData node, attempt to create a StructureData object from it using the 'parse_engine' and pass it through SeeKpath to try and get the primitive cell. Finally, it will store several keys from the SeeKpath output parameters dictionary directly on the structure data as attributes, ...
"This calcfunction will take a CifData node, attempt to create a StructureData object from it\n using the 'parse_engine' and pass it through SeeKpath to try and get the primitive cell. Finally, it will\n store several keys from the SeeKpath output parameters dictionary directly on the structure data as attributes...
73
false
aiidateam/aiida-codtools
primitive_structure_from_cif
141,948
LDU_FT/NASA-AMMOS/AIT-Core/clean_up
LDU_FT
[ "<BEGIN>\n## `crc32File`", "Computes the CRC-32 of the contents of filename, optionally\n skipping a certain number of bytes at the beginning of the file.\n<END>", "<BEGIN>\n## `endianSwapU16`", "Swaps pairs of bytes (16-bit words) in the given bytearray.\n<END>", "<BEGIN>\n## `setDictDefaults`", "Sets...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_up API. 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 clean_up API. 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...
Clean up the socket and log file handles.
"Clean up the socket and log file handles."
688
false
NASA-AMMOS/AIT-Core
clean_up
141,949
LDU_FT/pyroscope/pyrobase/require_json
LDU_FT
[ "<BEGIN>\n## `bwrite`", "Encode a given object to a file or stream.\n<END>", "<BEGIN>\n## `decode`", "Decode data in C{self.data} and return deserialized object.", " @param check_trailer: Raise error if trailing junk is found in data?\n @raise BencodeError: Invalid data.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the require_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the require_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 extr...
Load the best available json library on demand.
"Load the best available json library on demand."
57
false
pyroscope/pyrobase
require_json
141,950
LDU_FT/cykl/infoqscraper/get_content
LDU_FT
[ "<BEGIN>\n## `get_content`", "Returns the content of a cached resource.", " Args:\n url: The url of the resource", " Returns:\n The content of the cached resource or None if not in the cache\n<END>", "<BEGIN>\n## `get_path`", "Returns the path of a cached resource.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
Returns the content of a cached resource. Args: url: The url of the resource Returns: The content of the cached resource or None if not in the cache
"Returns the content of a cached resource.\n\n Args:\n url: The url of the resource\n\n Returns:\n The content of the cached resource or None if not in the cache"
53
false
cykl/infoqscraper
get_content
141,951
LDU_FT/yt-project/unyt/to_value
LDU_FT
[ "<BEGIN>\n## `uconcatenate`", "Concatenate a sequence of arrays.", " This wrapper around numpy.concatenate preserves units. All input arrays\n must have the same units. See the documentation of numpy.concatenate for\n full details.", " Examples\n --------\n >>> from unyt import cm\n >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_value API. 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 to_value API. 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...
Creates a copy of this array with the data in the supplied units, and returns it without units. Output is therefore a bare NumPy array. Optionally, an equivalence can be specified to convert to an equivalent quantity which is not in the same dimensions. .. note:: A...
"Creates a copy of this array with the data in the supplied\n units, and returns it without units. Output is therefore a\n bare NumPy array.\n\n Optionally, an equivalence can be specified to convert to an\n equivalent quantity which is not in the same dimensions.\n\n .. note::\n\n ...
236
false
yt-project/unyt
to_value
141,952
LDU_FT/dcos/shakedown/delete_persistent_data
LDU_FT
[ "<BEGIN>\n## `get_tasks`", "Get a list of tasks, optionally filtered by task id.\n The task_id can be the abbrevated. Example: If a task named 'sleep' is\n scaled to 3 in marathon, there will be be 3 tasks starting with 'sleep.'", " :param task_id: task ID\n :type task_id: str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_persistent_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_persistent_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Deletes any persistent data associated with the specified role, and zk node. :param role: the mesos role to delete, or None to omit this :type role: str :param zk_node: the zookeeper node to be deleted, or None to skip this deletion :type zk_node: str
"Deletes any persistent data associated with the specified role, and zk node.\n\n :param role: the mesos role to delete, or None to omit this\n :type role: str\n :param zk_node: the zookeeper node to be deleted, or None to skip this deletion\n :type zk_node: str"
288
false
dcos/shakedown
delete_persistent_data
141,953
LDU_FT/jhermann/rudiments/merge_adjacent
LDU_FT
[ "<BEGIN>\n## `auth_pair`", "Return username/password tuple, possibly prompting the user for them.\n<END>", "<BEGIN>\n## `_get_auth`", "Try to get login auth from known sources.\n<END>", "<BEGIN>\n## `_get_auth_from_keyring`", "Try to get credentials using `keyring <https://github.com/jaraco/keyring>`_.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_adjacent API. 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 merge_adjacent API. 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...
Merge adjacent numbers in an iterable of numbers. Parameters: numbers (list): List of integers or numeric strings. indicator (str): Delimiter to indicate generated ranges. base (int): Passed to the `int()` conversion when comparing numbers. Return: list ...
"Merge adjacent numbers in an iterable of numbers.\n\n Parameters:\n numbers (list): List of integers or numeric strings.\n indicator (str): Delimiter to indicate generated ranges.\n base (int): Passed to the `int()` conversion when comparing numbers.\n\n Return:\n ...
59
false
jhermann/rudiments
merge_adjacent
141,954
LDU_FT/mediaburst/clockwork-python/get_balance
LDU_FT
[ "<BEGIN>\n## `request`", "Make a http request to clockwork, using the XML provided\n Sets sensible headers for the request.", " If there is a problem with the http connection a clockwork_exceptions.HttpException is raised\n<END>", "<BEGIN>\n## `get_balance`", "Check the balance fot this account....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_balance API. 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 get_balance API. 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 balance fot this account. Returns a dictionary containing: account_type: The account type balance: The balance remaining on the account currency: The currency used for the account balance. Assume GBP in not set
"Check the balance fot this account.\n Returns a dictionary containing:\n account_type: The account type\n balance: The balance remaining on the account\n currency: The currency used for the account balance. Assume GBP in not set"
11
false
mediaburst/clockwork-python
get_balance
141,955
LDU_FT/mnmelo/lazy_import/lazy_callable
LDU_FT
[ "<BEGIN>\n## `lazy_module`", "Function allowing lazy importing of a module into the namespace.", " A lazy module object is created, registered in `sys.modules`, and\n returned. This is a hollow module; actual loading, and `ImportErrors` if\n not found, are delayed until an attempt is made to access att...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lazy_callable API. 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 lazy_callable API. 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...
Performs lazy importing of one or more callables. :func:`lazy_callable` creates functions that are thin wrappers that pass any and all arguments straight to the target module's callables. These can be functions or classes. The full loading of that module is only actually triggered when the returned laz...
"Performs lazy importing of one or more callables.\n\n :func:`lazy_callable` creates functions that are thin wrappers that pass\n any and all arguments straight to the target module's callables. These can\n be functions or classes. The full loading of that module is only actually\n triggered when the return...
37
false
mnmelo/lazy_import
lazy_callable
141,956
LDU_FT/inonit/drf-haystack/merge_dict
LDU_FT
[ "<BEGIN>\n## `download_setuptools`", "Download distribute from a specified location and return its filename", " `version` should be a valid distribute version number that is available\n as an egg for download under the `download_base` URL (which should end\n with a '/'). `to_dir` is the directory where...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Recursively merges and returns dict a with dict b. Any list values will be combined and returned sorted. :param a: dictionary object :param b: dictionary object :return: merged dictionary object
"Recursively merges and returns dict a with dict b.\n Any list values will be combined and returned sorted.\n\n :param a: dictionary object\n :param b: dictionary object\n :return: merged dictionary object"
77
false
inonit/drf-haystack
merge_dict
141,957
LDU_FT/eddieantonio/perfection/add_edge
LDU_FT
[ "<BEGIN>\n## `add_edge`", "Add edge (u, v) to the graph. Raises InvariantError if adding the edge\n would form a cycle.\n<END>", "<BEGIN>\n## `edges`", "Edges of this graph, in canonical order.\n<END>", "<BEGIN>\n## `ordered_deduplicate`", "Returns the sequence as a tuple with the duplicates remove...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_edge API. 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 add_edge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add edge (u, v) to the graph. Raises InvariantError if adding the edge would form a cycle.
"Add edge (u, v) to the graph. Raises InvariantError if adding the edge\n would form a cycle."
64
false
eddieantonio/perfection
add_edge
141,958
LDU_FT/jay-johnson/antinex-client/prepare_new_dataset
LDU_FT
[ "<BEGIN>\n## `generate_ai_request`", "generate_ai_request", " :param predict_rows: list of predict rows to build into the request\n :param req_dict: request dictionary to update - for long-running clients\n :param req_file: file holding a request dict to update - one-off tests\n :param features: fea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_new_dataset 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_new_dataset 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...
prepare_new_dataset Prepare a new ``MLPrepare`` record and dataset files on disk.
"prepare_new_dataset\n\n Prepare a new ``MLPrepare`` record and dataset files on disk."
46
false
jay-johnson/antinex-client
prepare_new_dataset
141,959
LDU_FT/treycucco/bidon/parse_time
LDU_FT
[ "<BEGIN>\n## `_normalize_name`", "Returns a normalized element tag or attribute name. A tag name or attribute name can be given\n either as a string, or as a 2-tuple. If a 2-tuple, it is interpreted as (namespace, name) and is\n returned joined by a colon \":\"", " :name: a string or a 2-tuple of strings\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns a time object parsed from :val:. :param val: a string to be parsed as a time :param fmt: a format string, a tuple of format strings, or None. If None a built in list of format strings will be used to try to parse the time.
"Returns a time object parsed from :val:.\n\n :param val: a string to be parsed as a time\n :param fmt: a format string, a tuple of format strings, or None. If None a built in list of format\n strings will be used to try to parse the time."
436
false
treycucco/bidon
parse_time
141,960
LDU_FT/Genida/django-meerkat/url_is
LDU_FT
[ "<BEGIN>\n## `ip_geoloc`", "Get IP geolocation.", " Args:\n ip (str): IP address to use if no data provided.\n hit_api (bool): whether to hit api if info not found.", " Returns:\n str: latitude and longitude, comma-separated.\n<END>", "<BEGIN>\n## `google_maps_geoloc_link`", "Ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_is API. 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 url_is API. 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 ...
Function generator. Args: white_list (dict): dict with PREFIXES and CONSTANTS keys (list values). Returns: func: a function to check if a URL is...
"Function generator.\n\n Args:\n white_list (dict): dict with PREFIXES and CONSTANTS keys (list values).\n\n Returns:\n func: a function to check if a URL is..."
71
false
Genida/django-meerkat
url_is
141,961
LDU_FT/obriencj/python-javatools/close
LDU_FT
[ "<BEGIN>\n## `compare`", "yields EVENT,ENTRY pairs describing the differences between left\n and right, which are filenames for a pair of zip files\n<END>", "<BEGIN>\n## `compare_zips`", "yields EVENT,ENTRY pairs describing the differences between left\n and right ZipFile instances\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. 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 close API. 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...
if this was a zip'd distribution, any introspection may have resulted in opening or creating temporary files. Call close in order to clean up.
"if this was a zip'd distribution, any introspection\n may have resulted in opening or creating temporary files.\n Call close in order to clean up."
357
false
obriencj/python-javatools
close
141,962
LDU_FT/apache/incubator-mxnet/update_metric
LDU_FT
[ "<BEGIN>\n## `dynamic_unroll`", "Unrolls an RNN cell across time steps.", " Currently, 'TNC' is a preferred layout. unroll on the input of this layout\n runs much faster.", " Parameters\n ----------\n cell : an object whose base class is RNNCell.\n The RNN cell to run on the input sequen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_metric API. 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 update_metric API. 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...
Evaluates and accumulates evaluation metric on outputs of the last forward computation. Parameters ---------- eval_metric : EvalMetric labels : list of NDArray Typically ``data_batch.label``.
"Evaluates and accumulates evaluation metric on outputs of the last forward computation.\n\n Parameters\n ----------\n eval_metric : EvalMetric\n labels : list of NDArray\n Typically ``data_batch.label``."
3,672
true
apache/incubator-mxnet
update_metric
141,963
LDU_FT/CGATOxford/UMI-tools/filterCellBarcode
LDU_FT
[ "<BEGIN>\n## `remove_umis`", "removes the specified nodes from the cluster and returns\n the remaining nodes\n<END>", "<BEGIN>\n## `get_substr_slices`", "Create slices to split a UMI into approximately equal size substrings\n Returns a list of tuples that can be passed to slice function\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filterCellBarcode API. 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 filterCellBarcode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Filter out cell barcodes not in the whitelist, with optional cell barcode error correction
"Filter out cell barcodes not in the whitelist, with\n optional cell barcode error correction"
165
false
CGATOxford/UMI-tools
filterCellBarcode
141,964
LDU_FT/Komnomnomnom/swigibpy/tickPrice
LDU_FT
[ "<BEGIN>\n## `placeOrder`", "placeOrder(EClient self, OrderId id, Contract contract, Order order)\n<END>", "<BEGIN>\n## `reqMktDepth`", "reqMktDepth(EClient self, TickerId id, Contract contract, int numRows, TagValueListSPtr const & mktDepthOptions)\n<END>", "<BEGIN>\n## `exerciseOptions`", "exerciseOptio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tickPrice API. 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 tickPrice API. 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...
tickPrice(EWrapper self, TickerId tickerId, TickType field, double price, int canAutoExecute)
"tickPrice(EWrapper self, TickerId tickerId, TickType field, double price, int canAutoExecute)"
81
false
Komnomnomnom/swigibpy
tickPrice
141,965
LDU_FT/fr33jc/bang/server_to_dict
LDU_FT
[ "<BEGIN>\n## `set_ssh_creds`", "Set ssh credentials into config.", " Note that these values might also be set in ~/.bangrc. If they are\n specified both in ~/.bangrc and as command-line arguments to ``bang``, then\n the command-line arguments win.\n<END>", "<BEGIN>\n## `run_bang`", "Runs bang with...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the server_to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the server_to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns the :class:`dict` representation of a server object. The returned :class:`dict` is meant to be consumed by :class:`~bang.deployers.cloud.ServerDeployer` objects.
"Returns the :class:`dict` representation of a server object.\n\n The returned :class:`dict` is meant to be consumed by\n :class:`~bang.deployers.cloud.ServerDeployer` objects."
336
false
fr33jc/bang
server_to_dict
141,966
LDU_FT/limpyd/redis-limpyd/get_all_storage_keys
LDU_FT
[ "<BEGIN>\n## `_make_command_method`", "Return a function which call _call_command for the given name.\n Used to bind redis commands to our own calls\n<END>", "<BEGIN>\n## `_call_command`", "Check if the command to be executed is a modifier, to connect the object.\n Then call _traverse_command.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_storage_keys 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_all_storage_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns the keys to be removed by `clear` in aggressive mode For the parameters, see BaseIndex.get_all_storage_keys
"Returns the keys to be removed by `clear` in aggressive mode\n\n For the parameters, see BaseIndex.get_all_storage_keys"
408
false
limpyd/redis-limpyd
get_all_storage_keys
141,967
LDU_FT/brean/python-pathfinding/find_path
LDU_FT
[ "<BEGIN>\n## `backtrace`", "Backtrace according to the parent records and return the path.\n (including both start and end nodes)\n<END>", "<BEGIN>\n## `bi_backtrace`", "Backtrace from start and end node, returns the path for bi-directional A*\n (including both start and end nodes)\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
find a path from start to end node on grid using the A* algorithm :param start: start node :param end: end node :param grid: grid that stores all possible steps/tiles as 2D-list :return:
"find a path from start to end node on grid using the A* algorithm\n :param start: start node\n :param end: end node\n :param grid: grid that stores all possible steps/tiles as 2D-list\n :return:"
37
false
brean/python-pathfinding
find_path
141,968
LDU_FT/StanfordVL/robosuite/merge_asset
LDU_FT
[ "<BEGIN>\n## `clear_objects`", "Clears objects with name @obj out of the task space. This is useful\n for supporting task modes with single types of objects, as in\n @self.single_object_mode without changing the model definition.\n<END>", "<BEGIN>\n## `staged_rewards`", "Returns staged rewards b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_asset API. 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 merge_asset API. 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...
Useful for merging other files in a custom logic.
"Useful for merging other files in a custom logic."
354
false
StanfordVL/robosuite
merge_asset
141,969
LDU_FT/fedora-python/pyp2rpm/run
LDU_FT
[ "<BEGIN>\n## `cut_to_length`", "Shorten given text on first delimiter after given number\n of characters.\n<END>", "<BEGIN>\n## `get_interpreter_path`", "Return the executable of a specified or current version.\n<END>", "<BEGIN>\n## `license_from_trove`", "Finds out license from list of trove classifie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Executes the code of the specified module.
"Executes the code of the specified module."
140
false
fedora-python/pyp2rpm
run
141,970
LDU_FT/django-fluent/django-fluent-utils/similar_objects
LDU_FT
[ "<BEGIN>\n## `import_settings_class`", "Return the class pointed to be an app setting variable.\n<END>", "<BEGIN>\n## `import_apps_submodule`", "Look for a submodule is a series of packages, e.g. \".pagetype_plugins\" in all INSTALLED_APPS.\n<END>", "<BEGIN>\n## `import_module_or_none`", "Imports the modu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the similar_objects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the similar_objects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Find similar objects using related tags.
"Find similar objects using related tags."
13
false
django-fluent/django-fluent-utils
similar_objects
141,971
LDU_FT/marrow/WebCore/iiscgi
LDU_FT
[ "<BEGIN>\n## `_promote`", "Create a new subclass of Context which incorporates instance attributes and new descriptors.", "\t\tThis promotes an instance and its instance attributes up to being a class with class attributes, then\n\t\treturns an instance of that class.\n<END>", "<BEGIN>\n## `register`", "Reg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iiscgi API. 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 iiscgi API. 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 ...
A specialized version of the reference WSGI-CGI server to adapt to Microsoft IIS quirks. This is not a production quality interface and will behave badly under load.
"A specialized version of the reference WSGI-CGI server to adapt to Microsoft IIS quirks.\n\t\n\tThis is not a production quality interface and will behave badly under load."
90
false
marrow/WebCore
iiscgi
141,972