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/bhmm/bhmm/sample
LDU_FT
[ "<BEGIN>\n## `_forward_backward`", "Estimation step: Runs the forward-back algorithm on trajectory with index itraj", " Parameters\n ----------\n itraj : int\n index of the observation trajectory to process", " Results\n -------\n logprob : float\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample API. 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 sample API. 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 ...
Sample a new set of distribution parameters given a sample of observations from the given state. Both the internal parameters and the attached HMM model are updated. Parameters ---------- observations : [ numpy.array with shape (N_k,) ] with `nstates` elements observations...
"Sample a new set of distribution parameters given a sample of observations from the given state.\n\n Both the internal parameters and the attached HMM model are updated.\n\n Parameters\n ----------\n observations : [ numpy.array with shape (N_k,) ] with `nstates` elements\n obse...
497
false
bhmm/bhmm
sample
15,073
LDU_FT/pokerregion/poker/_parse_date
LDU_FT
[ "<BEGIN>\n## `get_ranked_players`", "Get the list of the first 100 ranked players.\n<END>", "<BEGIN>\n## `difference`", "Tells the numerical difference between two ranks.\n<END>", "<BEGIN>\n## `range_`", "Prints the given range in a formatted table either in a plain ASCII or HTML.\n The only required a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_date API. 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 _parse_date API. 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...
Parse the date_string and return a datetime object as UTC.
"Parse the date_string and return a datetime object as UTC."
32
false
pokerregion/poker
_parse_date
15,074
LDU_FT/idlesign/django-sitecats/get_ties_stats
LDU_FT
[ "<BEGIN>\n## `get_category_lists`", "Returns a list of CategoryList objects, associated with\n this model instance.", " :param dict|None init_kwargs:\n :param list|None additional_parents_aliases:\n :rtype: list|CategoryRequestHandler\n :return:\n<END>", "<BEGIN>\n## `enable...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ties_stats API. 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_ties_stats API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns a dict with categories popularity stats. :param list categories: :param Model|None target_model: :return:
"Returns a dict with categories popularity stats.\n\n :param list categories:\n :param Model|None target_model:\n :return:"
73
false
idlesign/django-sitecats
get_ties_stats
15,075
LDU_FT/coursera-dl/coursera-dl/get_authentication_cookies
LDU_FT
[ "<BEGIN>\n## `parse_args`", "Parse the arguments/options passed to the program on the command line.\n<END>", "<BEGIN>\n## `random_string`", "Return a pseudo-random string of specified length.\n<END>", "<BEGIN>\n## `clean_filename`", "Sanitize a string to be used as a filename.", " If minimal_change i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_authentication_cookies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_authentication_cookies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Get the necessary cookies to authenticate on class.coursera.org. To access the class pages we need two cookies on class.coursera.org: csrf_token, session
"Get the necessary cookies to authenticate on class.coursera.org.\n\n To access the class pages we need two cookies on class.coursera.org:\n csrf_token, session"
246
false
coursera-dl/coursera-dl
get_authentication_cookies
15,076
LDU_FT/metapensiero/metapensiero.signal/get_subscribers
LDU_FT
[ "<BEGIN>\n## `get_subscribers`", "Get per-instance subscribers from the signal.\n<END>", "<BEGIN>\n## `notify_prepared`", "Like notify allows to pass more options to the underlying\n `Signal.prepare_notification()` method.", " The allowed options are:", " notify_external : bool\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subscribers API. 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_subscribers API. 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...
Get per-instance subscribers from the signal.
"Get per-instance subscribers from the signal."
47
false
metapensiero/metapensiero.signal
get_subscribers
15,077
LDU_FT/scizzorz/bumpy/match
LDU_FT
[ "<BEGIN>\n## `_opts_to_dict`", "Convert a tuple of options returned from getopt into a dictionary.\n<END>", "<BEGIN>\n## `_highlight`", "Return a string highlighted for a terminal.\n<END>", "<BEGIN>\n## `task`", "Register a function as a task, as well as applying any attributes.\n<END>", "<BEGIN>\n## `v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Compare an argument string to the task name.
"Compare an argument string to the task name."
22
false
scizzorz/bumpy
match
15,078
LDU_FT/kontron/python-ipmi/_run_ipmitool
LDU_FT
[ "<BEGIN>\n## `sel_entries`", "Generator which returns all SEL entries.\n<END>", "<BEGIN>\n## `initiate_upgrade_action`", "Initiate Upgrade Action\n components:\n action:\n ACTION_BACKUP_COMPONENT = 0x00\n ACTION_PREPARE_COMPONENT = 0x01\n ACTION_UPLOAD_FOR_UPGRAD...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_ipmitool API. 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 _run_ipmitool API. 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...
Legacy call of ipmitool (will be removed in future).
"Legacy call of ipmitool (will be removed in future)."
87
false
kontron/python-ipmi
_run_ipmitool
15,079
LDU_FT/corpusops/pdbclone/get_actual_bp
LDU_FT
[ "<BEGIN>\n## `parse_gdb_version`", "r\"\"\"Parse the gdb version from the gdb header.", " From GNU coding standards: the version starts after the last space of the\n first line.", " >>> DOCTEST_GDB_VERSIONS = [\n ... r'~\"GNU gdb (GDB) 7.5.1\\n\"',\n ... r'~\"GNU gdb (Sourcery CodeBench Lite 20...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_actual_bp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_actual_bp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get the actual breakpoint line number. When an exact match cannot be found in the lnotab expansion of the module code object or one of its subcodes, pick up the next valid statement line number. Return the statement line defined by the tuple (code firstlineno, statement line nu...
"Get the actual breakpoint line number.\n\n When an exact match cannot be found in the lnotab expansion of the\n module code object or one of its subcodes, pick up the next valid\n statement line number.\n\n Return the statement line defined by the tuple (code firstlineno,\n statement...
129
false
corpusops/pdbclone
get_actual_bp
15,080
LDU_FT/walkr/nanoservice/subscribe
LDU_FT
[ "<BEGIN>\n## `initialize`", "Bind or connect the nanomsg socket to some address\n<END>", "<BEGIN>\n## `_set_timeouts`", "Set socket timeouts for send and receive respectively\n<END>", "<BEGIN>\n## `send`", "Encode and sign (optional) the send through socket\n<END>", "<BEGIN>\n## `receive`", "Receive f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe API. 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 subscribe API. 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...
Subscribe to something and register a function
"Subscribe to something and register a function"
36
false
walkr/nanoservice
subscribe
15,081
LDU_FT/PMEAL/OpenPNM/setup
LDU_FT
[ "<BEGIN>\n## `ordinary_diffusion`", "r\"\"\"\n Calculate the diffusive conductance of conduits in network, where a\n conduit is ( 1/2 pore - full throat - 1/2 pore ). See the notes section.", " Parameters\n ----------\n target : OpenPNM Object\n The object which this model is associated wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. 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 setup API. 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...
r""" Set up the required parameters for the algorithm Parameters ---------- phase : OpenPNM Phase object The phase to be injected into the Network. The Phase must have the capillary entry pressure values for the system. entry_pressure : string ...
"r\"\"\"\n Set up the required parameters for the algorithm\n\n Parameters\n ----------\n phase : OpenPNM Phase object\n The phase to be injected into the Network. The Phase must have the\n capillary entry pressure values for the system.\n\n entry_pressure : str...
1,872
true
PMEAL/OpenPNM
setup
15,082
LDU_FT/coursera/courseraoauth2client/_make_handler
LDU_FT
[ "<BEGIN>\n## `add_logging_parser`", "Build an argparse argument parser to parse the command line.\n<END>", "<BEGIN>\n## `set_logging_level`", "Computes and sets the logging level from the parsed arguments.\n<END>", "<BEGIN>\n## `authorize`", "Authorizes Coursera's OAuth2 client for using coursera.org API ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_handler API. 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 _make_handler API. 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...
Makes a a handler class to use inside the basic python HTTP server. state_token is the expected state token. done_function is a function that is called, with the code passed to it.
"Makes a a handler class to use inside the basic python HTTP server.\n\n state_token is the expected state token.\n done_function is a function that is called, with the code passed to it."
31
false
coursera/courseraoauth2client
_make_handler
15,083
LDU_FT/kalefranz/auxlib/make_env_key
LDU_FT
[ "<BEGIN>\n## `import_and_wrap_deprecated`", "Usage:\n import_and_wrap_deprecated('conda.common.connection', locals())\n # looks for conda.common.connection.__all__\n<END>", "<BEGIN>\n## `deprecate_module_with_proxy`", "Usage:\n deprecate_module_with_proxy(__name__, locals()) # at bottom ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_env_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_env_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 extr...
Creates an environment key-equivalent for the given key
"Creates an environment key-equivalent for the given key"
107
false
kalefranz/auxlib
make_env_key
15,084
LDU_FT/AoiKuiyuyou/AoikLiveReload/_normalize_items
LDU_FT
[ "<BEGIN>\n## `main`", "Main function.", " :return:\n None.\n<END>", "<BEGIN>\n## `start_watcher_thread`", "Start watcher thread.", " :return:\n Watcher thread object.\n<END>", "<BEGIN>\n## `run_watcher`", "Watcher thread's function.", " :return:\n None.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize_items API. 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 _normalize_items API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Normalize given items. Do several things: - Ignore None. - Flatten list. - Unwrap wrapped item in `_ItemWrapper`. :param ctx: BuildContext object. :param items: Items list to normalize. :param str_to_node: Convert string to node. :param node_to_str: Convert node to absol...
"Normalize given items.\n\n Do several things:\n - Ignore None.\n - Flatten list.\n - Unwrap wrapped item in `_ItemWrapper`.\n\n :param ctx: BuildContext object.\n\n :param items: Items list to normalize.\n\n :param str_to_node: Convert string to node.\n\n :param node_to_str: Convert...
216
false
AoiKuiyuyou/AoikLiveReload
_normalize_items
15,085
LDU_FT/singnet/snet-cli/create_default_config
LDU_FT
[ "<BEGIN>\n## `list_my`", "Find organization that has the current identity as the owner or as the member\n<END>", "<BEGIN>\n## `is_group_name_exists`", "check if group with given name is already exists\n<END>", "<BEGIN>\n## `get_group_by_group_id`", "return group with given group_id (return None if doesn't...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_default_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_default_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. ...
Create default configuration if config file does not exist
"Create default configuration if config file does not exist"
65
false
singnet/snet-cli
create_default_config
15,086
LDU_FT/letuananh/chirptext/add_sent
LDU_FT
[ "<BEGIN>\n## `download`", "Download a file at $url and save it to $path\n<END>", "<BEGIN>\n## `parse`", "Use mecab-python3 by default to parse JP text. Fall back to mecab binary app if needed\n<END>", "<BEGIN>\n## `flex_update_obj`", "Pull data from source to target.\n Target's __dict__ (object data) w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_sent API. 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_sent API. 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 ttl.Sentence object to this document
"Add a ttl.Sentence object to this document"
80
false
letuananh/chirptext
add_sent
15,087
LDU_FT/ucsb-cs-education/hairball/script_start_type
LDU_FT
[ "<BEGIN>\n## `main`", "The entrypoint for the hairball command installed via setup.py.\n<END>", "<BEGIN>\n## `path_to_key`", "Return the sha1sum (key) belonging to the file at filepath.\n<END>", "<BEGIN>\n## `key_to_path`", "Return the fullpath to the file with sha1sum key.\n<END>", "<BEGIN>\n## `load`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the script_start_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the script_start_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return the type of block the script begins with.
"Return the type of block the script begins with."
90
false
ucsb-cs-education/hairball
script_start_type
15,088
LDU_FT/CitrineInformatics/pypif/to_snake_case
LDU_FT
[ "<BEGIN>\n## `to_camel_case`", "Convert a string from snake case to camel case. For example, \"some_var\" would become \"someVar\".", " :param snake_case_string: Snake-cased string to convert to camel case.\n :returns: Camel-cased version of snake_case_string.\n<END>", "<BEGIN>\n## `to_capitalized_camel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_snake_case API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_snake_case API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Convert a string from camel case to snake case. From example, "someVar" would become "some_var". :param camel_case_string: Camel-cased string to convert to snake case. :return: Snake-cased version of camel_case_string.
"Convert a string from camel case to snake case. From example, \"someVar\" would become \"some_var\".\n\n :param camel_case_string: Camel-cased string to convert to snake case.\n :return: Snake-cased version of camel_case_string."
46
false
CitrineInformatics/pypif
to_snake_case
15,089
LDU_FT/larryng/narwal/overview
LDU_FT
[ "<BEGIN>\n## `get`", "Sends a GET request to a reddit path determined by ``args``. Basically ``.get('foo', 'bar', 'baz')`` will GET http://www.reddit.com/foo/bar/baz/.json. ``kwargs`` supplied will be passed to :meth:`requests.get` after having ``user_agent`` and ``cookies`` injected. Injection only occurs if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overview API. 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 overview API. 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...
GETs overview of user's activities. Calls :meth:`narwal.Reddit.user_overview`. :param limit: max number of items to get
"GETs overview of user's activities. Calls :meth:`narwal.Reddit.user_overview`.\n \n :param limit: max number of items to get"
147
false
larryng/narwal
overview
15,090
LDU_FT/lark-parser/lark/match_examples
LDU_FT
[ "<BEGIN>\n## `dedup_list`", "Given a list (l) will removing duplicates from the list,\n preserving the original order of the list. Assumes that\n the list entrie are hashable.\n<END>", "<BEGIN>\n## `_parse`", "Parses sentence 's' using CNF grammar 'g'.\n<END>", "<BEGIN>\n## `get_any_nt_unit_rule...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_examples API. 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 match_examples API. 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...
Given a parser instance and a dictionary mapping some label with some malformed syntax examples, it'll return the label for the example that bests matches the current error.
"Given a parser instance and a dictionary mapping some label with\n some malformed syntax examples, it'll return the label for the\n example that bests matches the current error."
55
false
lark-parser/lark
match_examples
15,091
LDU_FT/oemof/oemof.db/tz_from_geom
LDU_FT
[ "<BEGIN>\n## `get_polygon_from_nuts`", "r\"\"\"A one-line summary that does not use variable names or the\n function name.", " Several sentences providing an extended description. Refer to\n variables using back-ticks, e.g. `var`.", " Parameters\n ----------\n var1 : array_like\n Arra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tz_from_geom API. 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 tz_from_geom API. 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...
r"""Finding the timezone of a given point or polygon geometry, assuming that the polygon is not crossing a border of a timezone. For a given point or polygon geometry not located within the timezone dataset (e.g. sea) the nearest timezone based on the bounding boxes of the geometries is returned. Param...
"r\"\"\"Finding the timezone of a given point or polygon geometry, assuming\n that the polygon is not crossing a border of a timezone. For a given point\n or polygon geometry not located within the timezone dataset (e.g. sea) the\n nearest timezone based on the bounding boxes of the geometries is returned.\n\n...
82
false
oemof/oemof.db
tz_from_geom
15,092
LDU_FT/KelSolaar/Foundations/stream
LDU_FT
[ "<BEGIN>\n## `list_attributes`", "Returns the Node attributes names.", " Usage::", " >>>\tnode_a = AbstractNode(\"MyNodeA\", attributeA=Attribute(), attributeB=Attribute())\n >>> node_a.list_attributes()\n ['attributeB', 'attributeA']", " :return: Attributes na...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream API. 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 stream API. 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 ...
Setter for **self.__stream** attribute. :param value: Attribute value. :type value: list
"Setter for **self.__stream** attribute.\n\n :param value: Attribute value.\n :type value: list"
629
false
KelSolaar/Foundations
stream
15,093
LDU_FT/F5Networks/f5-icontrol-rest-python/decorate_HTTP_verb_method
LDU_FT
[ "<BEGIN>\n## `get_auth_providers`", "BIG-IQ specific query for auth providers", " BIG-IP doesn't really need this because BIG-IP's multiple auth providers\n seem to handle fallthrough just fine. BIG-IQ on the other hand, needs to\n have its auth provider specified if you're using one of the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decorate_HTTP_verb_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decorate_HTTP_verb_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Prepare and Post-Process HTTP VERB method for BigIP-RESTServer request. This function decorates all of the HTTP VERB methods in the iControlRESTSession class. It provides the core logic for this module. If necessary it validates and assembles a uri from parts with a call to `generate_bigip_uri`. ...
"Prepare and Post-Process HTTP VERB method for BigIP-RESTServer request.\n\n This function decorates all of the HTTP VERB methods in the\n iControlRESTSession class. It provides the core logic for this module.\n If necessary it validates and assembles a uri from parts with a call to\n `generate_bigip_uri`....
38
false
F5Networks/f5-icontrol-rest-python
decorate_HTTP_verb_method
15,094
LDU_FT/MAVENSDC/cdflib/_num_values
LDU_FT
[ "<BEGIN>\n## `encode`", "Encodes the epoch(s) into UTC string(s).", " For CDF_EPOCH:\n The input should be either a float or list of floats\n (in numpy, a np.float64 or a np.ndarray of np.float64)\n Each epoch is encoded, by default to a ISO 8601 form:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _num_values API. 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 _num_values API. 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 number of values in a record, using a given VDR dictionary. Multiplies the dimension sizes of each dimension, if it is varying.
"Returns the number of values in a record, using a given VDR\n dictionary. Multiplies the dimension sizes of each dimension,\n if it is varying."
229
false
MAVENSDC/cdflib
_num_values
15,095
LDU_FT/linkedin/pyexchange/update
LDU_FT
[ "<BEGIN>\n## `add_attendees`", "Adds new attendees to the event.", " *attendees* can be a list of email addresses or :class:`ExchangeEventAttendee` objects.\n<END>", "<BEGIN>\n## `remove_attendees`", "Removes attendees from the event.", " *attendees* can be a list of email addresses or :class:`Excha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Updates an event in Exchange. :: event = service.calendar().get_event(id='KEY HERE') event.location = u'New location' event.update() If no changes to the event have been made, this method does nothing. Notification of the change event is sent to all users. If you wish to just notify ...
"Updates an event in Exchange. ::\n\n event = service.calendar().get_event(id='KEY HERE')\n event.location = u'New location'\n event.update()\n\n If no changes to the event have been made, this method does nothing.\n\n Notification of the change event is sent to all users. If you wish to jus...
102
false
linkedin/pyexchange
update
15,096
LDU_FT/arve0/leicascanningtemplate/well
LDU_FT
[ "<BEGIN>\n## `well_fields`", "All ScanFieldData elements of given well.", " Parameters\n ----------\n well_x : int\n well_y : int", " Returns\n -------\n list of lxml.objectify.ObjectifiedElement\n All ScanFieldData elements of given well.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the well API. 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 well API. 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...
ScanWellData of specific well. Parameters ---------- well_x : int well_y : int Returns ------- lxml.objectify.ObjectifiedElement
"ScanWellData of specific well.\n\n Parameters\n ----------\n well_x : int\n well_y : int\n\n Returns\n -------\n lxml.objectify.ObjectifiedElement"
36
false
arve0/leicascanningtemplate
well
15,097
LDU_FT/persephone-tools/persephone/load_batch
LDU_FT
[ "<BEGIN>\n## `handle_unhandled_exception`", "Handler for unhandled exceptions that will write to the logs\n<END>", "<BEGIN>\n## `write_transcriptions`", "Write the utterance transcriptions to files in the tgt_dir. Is lazy and\n checks if the file already exists.", " Args:\n utterances: A list o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_batch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_batch API. 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...
Loads a batch with the given prefixes. The prefixes is the full path to the training example minus the extension.
"Loads a batch with the given prefixes. The prefixes is the full path to the\n training example minus the extension."
219
false
persephone-tools/persephone
load_batch
15,098
LDU_FT/ceph/ceph-deploy/get_list
LDU_FT
[ "<BEGIN>\n## `ceph_is_installed`", "A helper callback to be executed after the connection is made to ensure\n that Ceph is installed.\n<END>", "<BEGIN>\n## `_get_version_output`", "Ignoring errors, call `ceph --version` and return only the version\n portion of the output. For example, output like::"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
Assumes that the value for a given key is going to be a list separated by commas. It gets rid of trailing comments. If just one item is present it returns a list with a single item, if no key is found an empty list is returned.
"Assumes that the value for a given key is going to be a list\n separated by commas. It gets rid of trailing comments.\n If just one item is present it returns a list with a single item, if no\n key is found an empty list is returned."
236
false
ceph/ceph-deploy
get_list
15,099
LDU_FT/tommikaikkonen/prettyprinter/pretty_call
LDU_FT
[ "<BEGIN>\n## `comment`", "Annotates a value or a Doc with a comment.", " When printed by prettyprinter, the comment will be\n rendered next to the value or Doc.\n<END>", "<BEGIN>\n## `register_pretty`", "Returns a decorator that registers the decorated function\n as the pretty printer for instances...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_call API. 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 pretty_call API. 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 Doc that represents a function call to :keyword:`fn` with the remaining positional and keyword arguments. You can only use this function on Python 3.6+. On Python 3.5, the order of keyword arguments is not maintained, and you have to use :func:`~prettyprinter.pretty_call_alt`. Given an a...
"Returns a Doc that represents a function call to :keyword:`fn` with\n the remaining positional and keyword arguments.\n\n You can only use this function on Python 3.6+. On Python 3.5, the order\n of keyword arguments is not maintained, and you have to use\n :func:`~prettyprinter.pretty_call_alt`.\n\n Gi...
78
false
tommikaikkonen/prettyprinter
pretty_call
15,100
LDU_FT/LuqueDaniel/pybooru/forum_post_delete
LDU_FT
[ "<BEGIN>\n## `post_update`", "Update a specific post (Requires login).", " Parameters:\n post_id (int): The id number of the post to update.\n tag_string (str): A space delimited list of tags.\n rating (str): The rating for the post. Can be: safe, questionable,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forum_post_delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forum_post_delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Delete a specific forum post (Requires login)(Moderator+)(UNTESTED). Parameters: post_id (int): Forum post id.
"Delete a specific forum post (Requires login)(Moderator+)(UNTESTED).\n\n Parameters:\n post_id (int): Forum post id."
299
false
LuqueDaniel/pybooru
forum_post_delete
15,101
LDU_FT/PyMLGame/pymlgame/draw_line
LDU_FT
[ "<BEGIN>\n## `update`", "Update the screens contents in every loop.\n<END>", "<BEGIN>\n## `render`", "Send the current screen content to Mate Light.\n<END>", "<BEGIN>\n## `gameloop`", "A game loop that circles through the methods.\n<END>", "<BEGIN>\n## `init`", "Initialize PyMLGame. This creates a con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Draw a line with the given color on the screen. :param start: Start point of the line :param end: End point of the line :param color: Color of the line :type start: tuple :type end: tuple :type color: tuple
"Draw a line with the given color on the screen.\n\n :param start: Start point of the line\n :param end: End point of the line\n :param color: Color of the line\n :type start: tuple\n :type end: tuple\n :type color: tuple"
63
false
PyMLGame/pymlgame
draw_line
15,102
LDU_FT/r4fek/django-cassandra-engine/get_cassandra_connection
LDU_FT
[ "<BEGIN>\n## `_discover_models`", "Return a dict containing a list of cassandra.cqlengine.Model classes\n within installed App.\n<END>", "<BEGIN>\n## `django_table_names`", "Returns a list of all table names that have associated cqlengine models\n and are present in settings.INSTALLED_APPS.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cassandra_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cassandra_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
:return: cassandra connection matching alias or name or just first found.
":return: cassandra connection matching alias or name or just first found."
37
false
r4fek/django-cassandra-engine
get_cassandra_connection
15,103
LDU_FT/ayust/kitnirc/_parse_mode
LDU_FT
[ "<BEGIN>\n## `on_line`", "Default handling for incoming lines.", " This handler will automatically manage the following IRC messages:", " PING:\n Responds with a PONG.\n PRIVMSG:\n Dispatches the PRIVMSG event.\n NOTICE:\n Dispatches the NOTICE event.\n MOTDSTART:\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_mode API. 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 _parse_mode API. 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...
Parse a mode changes, update states, and dispatch MODE events.
"Parse a mode changes, update states, and dispatch MODE events."
151
false
ayust/kitnirc
_parse_mode
15,104
LDU_FT/miyuchina/mistletoe/tokenize_block
LDU_FT
[ "<BEGIN>\n## `escape`", "Replace special characters \"&\", \"<\" and \">\" to HTML-safe sequences.\n If the optional flag quote is true (the default), the quotation mark\n characters, both double quote (\") and single quote (') characters are also\n translated.\n<END>", "<BEGIN>\n## `render_math`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize_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 ex...
Returns a list of pairs (token_type, read_result). Footnotes are parsed here, but span-level parsing has not started yet.
"Returns a list of pairs (token_type, read_result).\n\n Footnotes are parsed here, but span-level parsing has not\n started yet."
29
false
miyuchina/mistletoe
tokenize_block
15,105
LDU_FT/pyviz/holoviews/validate_regular_sampling
LDU_FT
[ "<BEGIN>\n## `initialize_plot`", "Initializes a new plot object with the last available frame.\n<END>", "<BEGIN>\n## `_get_axis_dims`", "Returns the dimensions corresponding to each axis.", " Should return a list of dimensions or list of lists of\n dimensions, which will be formatted to label ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_regular_sampling API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_regular_sampling API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Validates regular sampling of a 1D array ensuring that the difference in sampling steps is at most rtol times the smallest sampling step. Returns a boolean indicating whether the sampling is regular.
"Validates regular sampling of a 1D array ensuring that the difference\n in sampling steps is at most rtol times the smallest sampling step.\n Returns a boolean indicating whether the sampling is regular."
1,961
true
pyviz/holoviews
validate_regular_sampling
15,106
LDU_FT/okeuday/erlang_py/term_to_binary
LDU_FT
[ "<BEGIN>\n## `binary_to_term`", "Decode Erlang terms within binary data into Python types\n<END>", "<BEGIN>\n## `term_to_binary`", "Encode Python types into Erlang terms in binary data\n<END>", "<BEGIN>\n## `consult`", "provide file:consult/1 functionality with python types\n<END>", "<BEGIN>\n## `send`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the term_to_binary API. 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 term_to_binary API. 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...
Encode Python types into Erlang terms in binary data
"Encode Python types into Erlang terms in binary data"
12
false
okeuday/erlang_py
term_to_binary
15,107
LDU_FT/CivicSpleen/ambry/delete_module
LDU_FT
[ "<BEGIN>\n## `_or_join`", "Joins terms using OR operator.", " Args:\n terms (list): terms to join", " Examples:\n self._or_join(['term1', 'term2']) -> 'term1 | term2'", " Returns:\n str\n<END>", "<BEGIN>\n## `search`", "Finds datasets by search phras...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_module API. 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 delete_module API. 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...
Delete a module.http://stackoverflow.com/a/1668289 :param modname: :param paranoid: :return:
"Delete a module.http://stackoverflow.com/a/1668289\n :param modname:\n :param paranoid:\n :return:"
1,165
true
CivicSpleen/ambry
delete_module
15,108
LDU_FT/kavdev/ldap-groups/_get_valididty
LDU_FT
[ "<BEGIN>\n## `_get_valididty`", "Determines whether this AD Group is valid.\r", " :returns: True and \"\" if this group is valid or False and a string description\r\n with the reason why it isn't valid otherwise.\n<END>", "<BEGIN>\n## `get_attribute`", "Gets the passed attribute of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_valididty API. 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_valididty API. 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...
Determines whether this AD Group is valid. :returns: True and "" if this group is valid or False and a string description with the reason why it isn't valid otherwise.
"Determines whether this AD Group is valid.\r\n\r\n :returns: True and \"\" if this group is valid or False and a string description\r\n with the reason why it isn't valid otherwise."
59
false
kavdev/ldap-groups
_get_valididty
15,109
LDU_FT/hannes-brt/hebel/tokenize_by_number
LDU_FT
[ "<BEGIN>\n## `parameters`", "A property that returns all of the model's parameters.\n<END>", "<BEGIN>\n## `parameters`", "Used to set all of the model's parameters to new values.", " **Parameters:**", " value : array_like\n New values for the model parameters. Must be of length\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize_by_number 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 tokenize_by_number 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...
splits a string into a list of tokens each is either a string containing no numbers or a float
"splits a string into a list of tokens\n each is either a string containing no numbers\n or a float"
372
false
hannes-brt/hebel
tokenize_by_number
15,110
LDU_FT/mitsei/dlkit/get_assets_by_genus_type
LDU_FT
[ "<BEGIN>\n## `get_osid_temporal_mdata`", "Return default mdata map for OsidTemporal\n<END>", "<BEGIN>\n## `get_osid_containable_mdata`", "Return default mdata map for OsidContainable\n<END>", "<BEGIN>\n## `get_osid_sourceable_mdata`", "Return default mdata map for OsidSourceable\n<END>", "<BEGIN>\n## `g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_assets_by_genus_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_assets_by_genus_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Gets an ``AssetList`` corresponding to the given asset genus ``Type`` which does not include assets of types derived from the specified ``Type``. In plenary mode, the returned list contains all known assets or an error results. Otherwise, the returned list may contain only those assets that are...
"Gets an ``AssetList`` corresponding to the given asset genus ``Type`` which does not include assets of types derived from the specified ``Type``.\n\n In plenary mode, the returned list contains all known assets or\n an error results. Otherwise, the returned list may contain only\n those assets tha...
6,502
true
mitsei/dlkit
get_assets_by_genus_type
15,111
LDU_FT/edx/XBlock/field_data
LDU_FT
[ "<BEGIN>\n## `default_select`", "Raise an exception when we have ambiguous entry points.\n<END>", "<BEGIN>\n## `_load_class_entry_point`", "Load `entry_point`, and set the `entry_point.name` as the\n attribute `plugin_name` on the loaded object\n<END>", "<BEGIN>\n## `load_class`", "Load a single cl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Set field_data. Deprecated in favor of a 'field-data' service.
"Set field_data.\n\n Deprecated in favor of a 'field-data' service."
295
false
edx/XBlock
field_data
15,112
LDU_FT/mastro35/flows/default_instance
LDU_FT
[ "<BEGIN>\n## `create_action_for_code`", "Factory method to create an instance of an Action from an input code\n<END>", "<BEGIN>\n## `default_instance`", "For use like a singleton, return the existing instance of the object\n or a new instance\n<END>", "<BEGIN>\n## `_set_command_line_arguments`", "S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_instance API. 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 default_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
For use like a singleton, return the existing instance of the object or a new instance
"For use like a singleton, return the existing instance of the object\n or a new instance"
22
false
mastro35/flows
default_instance
15,113
LDU_FT/amperser/proselint/extract_files
LDU_FT
[ "<BEGIN>\n## `check`", "Flag offensive words based on the GLAAD reference guide.\n<END>", "<BEGIN>\n## `score`", "Compute the linter's score on the corpus.", " Proselint's score reflects the desire to have a linter that catches many\n errors, but which takes false alarms seriously. It is better not to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_files API. 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...
Expand list of paths to include all text files matching the pattern.
"Expand list of paths to include all text files matching the pattern."
94
false
amperser/proselint
extract_files
15,114
LDU_FT/TurboGears/gearbox/cherrypy_server_runner
LDU_FT
[ "<BEGIN>\n## `live_pidfile`", "(pidfile:str) -> int | None\n Returns an int found in the named file, if there is one,\n and if there is a running process with that process id.\n Return None if no such process exists.\n<END>", "<BEGIN>\n## `_turn_sigterm_into_systemexit`", "Attempts to turn a SIGTERM ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cherrypy_server_runner 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 cherrypy_server_runner API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Entry point for CherryPy's WSGI server Serves the specified WSGI app via CherryPyWSGIServer. ``app`` The WSGI 'application callable'; multiple WSGI applications may be passed as (script_name, callable) pairs. ``host`` This is the ipaddress to bind to (or a hostname if your ...
"Entry point for CherryPy's WSGI server\n\n Serves the specified WSGI app via CherryPyWSGIServer.\n\n ``app``\n\n The WSGI 'application callable'; multiple WSGI applications\n may be passed as (script_name, callable) pairs.\n\n ``host``\n\n This is the ipaddress to bind to (or a hostname i...
66
false
TurboGears/gearbox
cherrypy_server_runner
15,115
LDU_FT/matthewdeanmartin/jiggle_version/find_dunder_version_in_file
LDU_FT
[ "<BEGIN>\n## `require_python`", "Require at least a minimum Python version.", " The version number is expressed in terms of `sys.hexversion`. E.g. to\n require a minimum of Python 2.6, use::", " >>> require_python(0x206000f0)", " :param minimum: Minimum Python version supported.\n :type mini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_dunder_version_in_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_dunder_version_in_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Find __version__ in a source file :param full_path: :return:
"Find __version__ in a source file\n :param full_path:\n :return:"
124
false
matthewdeanmartin/jiggle_version
find_dunder_version_in_file
15,116
LDU_FT/bgreenlee/pygtail/read
LDU_FT
[ "<BEGIN>\n## `next`", "Return the next line in the file, updating the offset.\n<END>", "<BEGIN>\n## `read`", "Read in all unread lines and return them as a single string.\n<END>", "<BEGIN>\n## `_filehandle`", "Return a filehandle to the file being tailed, with the position set\n to the current offs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Read in all unread lines and return them as a single string.
"Read in all unread lines and return them as a single string."
12
false
bgreenlee/pygtail
read
15,117
LDU_FT/klen/pylama/reset
LDU_FT
[ "<BEGIN>\n## `run`", "MCCabe code checking.", " :return list: List of errors.\n<END>", "<BEGIN>\n## `split_csp_str`", "Split comma separated string into unique values, keeping their order.", " :returns: list of splitted values\n<END>", "<BEGIN>\n## `parse_linters`", "Initialize choosen linte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. 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 reset API. 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...
Reset scanner's state. :param source: Source for parsing
"Reset scanner's state.\n\n :param source: Source for parsing"
81
false
klen/pylama
reset
15,118
LDU_FT/django-json-api/django-rest-framework-json-api/_validate_filter
LDU_FT
[ "<BEGIN>\n## `get_field_names`", "We override the parent to omit explicity defined meta fields (such\n as SerializerMethodFields) from the list of declared fields\n<END>", "<BEGIN>\n## `to_representation`", "Object instance -> Dict of primitive datatypes.\n<END>", "<BEGIN>\n## `remove_invalid_fields`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Check that all the filter[key] are valid. :param keys: list of FilterSet keys :param filterset_class: :py:class:`django_filters.rest_framework.FilterSet` :raises ValidationError: if key not in FilterSet keys or no FilterSet.
"Check that all the filter[key] are valid.\n\n :param keys: list of FilterSet keys\n :param filterset_class: :py:class:`django_filters.rest_framework.FilterSet`\n :raises ValidationError: if key not in FilterSet keys or no FilterSet."
74
false
django-json-api/django-rest-framework-json-api
_validate_filter
15,119
LDU_FT/studionow/pybrightcove/_to_dict
LDU_FT
[ "<BEGIN>\n## `has_option`", "Wrapper around ConfigParser's ``has_option`` method.\n<END>", "<BEGIN>\n## `get`", "Wrapper around ConfigParser's ``get`` method.\n<END>", "<BEGIN>\n## `item_lister`", "A generator function for listing Video and Playlist objects.\n<END>", "<BEGIN>\n## `get_manifest`", "Con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Internal method that serializes object into a dictionary.
"Internal method that serializes object into a dictionary."
67
false
studionow/pybrightcove
_to_dict
15,120
LDU_FT/theislab/scanpy/scale
LDU_FT
[ "<BEGIN>\n## `filter_cells`", "Filter cell outliers based on counts and numbers of genes expressed.", " For instance, only keep cells with at least `min_counts` counts or\n `min_genes` genes expressed. This is to filter measurement outliers,\n i.e. “unreliable” observations.", " Only provide one o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale API. 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 scale API. 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...
Scale data to unit variance and zero mean. .. note:: Variables (genes) that do not display any variation (are constant across all observations) are retained and set to 0 during this operation. In the future, they might be set to NaNs. Parameters ---------- data : :class:`~annda...
"Scale data to unit variance and zero mean.\n\n .. note::\n Variables (genes) that do not display any variation (are constant across\n all observations) are retained and set to 0 during this operation. In\n the future, they might be set to NaNs.\n\n Parameters\n ----------\n data : :cla...
1,142
true
theislab/scanpy
scale
15,121
LDU_FT/asweigart/pysimplevalidate/_validateParamsFor_validateChoice
LDU_FT
[ "<BEGIN>\n## `_errstr`", "Returns the value str, truncated to MAX_ERROR_STR_LEN characters. If\n it's truncated, the returned value will have '...' on the end.\n<END>", "<BEGIN>\n## `_getStrippedValue`", "Like the strip() string method, except the strip argument describes\n different behavior:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validateParamsFor_validateChoice 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 _validateParamsFor_validateChoice API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Raises PySimpleValidateException if the arguments are invalid. This is called by the validateChoice() function to check its arguments. This code was refactored out to a separate function so that the PyInputPlus module (or other modules) could check their parameters' arguments for inputChoice().
"Raises PySimpleValidateException if the arguments are invalid. This is called by\n the validateChoice() function to check its arguments. This code was\n refactored out to a separate function so that the PyInputPlus module (or\n other modules) could check their parameters' arguments for inputChoice()."
148
false
asweigart/pysimplevalidate
_validateParamsFor_validateChoice
15,122
LDU_FT/devassistant/devassistant/_assert_command_dict
LDU_FT
[ "<BEGIN>\n## `is_local_subsection`", "Returns True if command dict is \"local subsection\", meaning\n that it is \"if\", \"else\" or \"for\" (not a real call, but calls\n run_section recursively.\n<END>", "<BEGIN>\n## `_process_req_txt`", "Returns a processed request or raises an exception\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _assert_command_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _assert_command_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. ...
Checks whether struct is a command dict (e.g. it's a dict and has 1 key-value pair.
"Checks whether struct is a command dict (e.g. it's a dict and has 1 key-value pair."
399
false
devassistant/devassistant
_assert_command_dict
15,123
LDU_FT/gmr/tinman/start_session
LDU_FT
[ "<BEGIN>\n## `main`", "Invoked by the script installed by setuptools.\n<END>", "<BEGIN>\n## `enable_debug`", "If the cli arg for foreground is set, set the configuration option\n for debug.\n<END>", "<BEGIN>\n## `insert_paths`", "Inserts a base path into the sys.path list if one is specified in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_session API. 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 start_session API. 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...
Start the session. Invoke in your @gen.coroutine wrapped prepare method like:: result = yield gen.Task(self.start_session) :rtype: bool
"Start the session. Invoke in your @gen.coroutine wrapped prepare\n method like::\n\n result = yield gen.Task(self.start_session)\n\n :rtype: bool"
270
false
gmr/tinman
start_session
15,124
LDU_FT/benedictpaten/sonLib/popen
LDU_FT
[ "<BEGIN>\n## `linOriginRegression`", "computes a linear regression starting at zero\n<END>", "<BEGIN>\n## `close`", "check two float values are within a bound of one another\n<END>", "<BEGIN>\n## `filterOverlappingAlignments`", "Filter alignments to be non-overlapping.\n<END>", "<BEGIN>\n## `binaryTree_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the popen API. 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 popen API. 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...
Runs a command and captures standard out in the given temp file.
"Runs a command and captures standard out in the given temp file."
80
false
benedictpaten/sonLib
popen
15,125
LDU_FT/cstatz/maui/int_global_to_local_start
LDU_FT
[ "<BEGIN>\n## `slice_local_to_global`", "Calculate start and stop index for mapping sliced index", " :param index_slice: sliced index?\n :param axis: current axis to calculate\n :return: slice object as calculated\n<END>", "<BEGIN>\n## `local_to_global`", "Calculate local index from glob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the int_global_to_local_start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the int_global_to_local_start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Calculate local index from global index from start_index :param index: global index as integer :param axis: current axis to process :return:
"Calculate local index from global index from start_index\n\n :param index: global index as integer\n :param axis: current axis to process\n :return:"
54
false
cstatz/maui
int_global_to_local_start
15,126
LDU_FT/dtmilano/AndroidViewClient/serviceResponse
LDU_FT
[ "<BEGIN>\n## `takeScreenshotAndShowItOnWindow`", "Takes the current screenshot and shows it on the main window.\n It also:\n - sizes the window\n - create the canvas\n - set the focus\n - enable the events\n - create widgets\n - finds the targets (as explaine...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serviceResponse API. 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 serviceResponse API. 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...
Checks the response received from the I{ViewServer}. @return: C{True} if the response received matches L{PARCEL_TRUE}, C{False} otherwise
"Checks the response received from the I{ViewServer}.\n\n @return: C{True} if the response received matches L{PARCEL_TRUE}, C{False} otherwise"
197
false
dtmilano/AndroidViewClient
serviceResponse
15,127
LDU_FT/mozilla/treeherder/convert_unicode_character_to_ascii_repr
LDU_FT
[ "<BEGIN>\n## `dict_to_op`", "Create a bulk-indexing operation from the given dictionary.\n<END>", "<BEGIN>\n## `to_dict`", "Create a filtered dict from the given object.", " Note: This function is currently specific to the FailureLine model.\n<END>", "<BEGIN>\n## `build_removals`", "active_jobs - all...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_unicode_character_to_ascii_repr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_unicode_character_to_ascii_repr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate...
Converts a matched pattern from a unicode character to an ASCII representation For example the emoji 🍆 would get converted to the literal <U+01F346>
"Converts a matched pattern from a unicode character to an ASCII representation\n\n For example the emoji 🍆 would get converted to the literal <U+01F346>"
386
false
mozilla/treeherder
convert_unicode_character_to_ascii_repr
15,128
LDU_FT/confirm/ansibleci/add_module
LDU_FT
[ "<BEGIN>\n## `add_module`", "Adds configuration parameters from a Python module.\n<END>", "<BEGIN>\n## `get_absolute_path`", "Returns the absolute path of the ``path`` argument.", " If ``path`` is already absolute, nothing changes. If the ``path`` is\n relative, then the BASEDIR will be prepen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_module API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_module API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Adds configuration parameters from a Python module.
"Adds configuration parameters from a Python module."
26
false
confirm/ansibleci
add_module
15,129
LDU_FT/jpscaletti/pyceo/get_doc
LDU_FT
[ "<BEGIN>\n## `run`", "Parse the command line arguments.", " default:\n Name of default command to run if no arguments are passed.\n<END>", "<BEGIN>\n## `command`", "Decorator for adding a command to this manager.\n<END>", "<BEGIN>\n## `get_doc`", "Extract and dedent the __doc__ of a fu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_doc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_doc API. 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...
Extract and dedent the __doc__ of a function. Unlike `textwrap.dedent()` it also works when the first line is not indented.
"Extract and dedent the __doc__ of a function.\n\n Unlike `textwrap.dedent()` it also works when the first line\n is not indented."
19
false
jpscaletti/pyceo
get_doc
15,130
LDU_FT/MacHu-GWU/crawlib-project/repr_data_size
LDU_FT
[ "<BEGIN>\n## `create_cache`", "Create a html cache. Html string will be automatically compressed.", " :param directory: path for the cache directory.\n :param compress_level: 0 ~ 9, 9 is slowest and smallest.\n :param kwargs: other arguments.\n :return: a `diskcache.Cache()`\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repr_data_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repr_data_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 ex...
Return human readable string represent of a file size. Doesn"t support size greater than 1EB. For example: - 100 bytes => 100 B - 100,000 bytes => 97.66 KB - 100,000,000 bytes => 95.37 MB - 100,000,000,000 bytes => 93.13 GB - 100,000,000,000,000 bytes => 90.95 TB - 100,000,000,000,000,...
"Return human readable string represent of a file size. Doesn\"t support\n size greater than 1EB.\n\n For example:\n\n - 100 bytes => 100 B\n - 100,000 bytes => 97.66 KB\n - 100,000,000 bytes => 95.37 MB\n - 100,000,000,000 bytes => 93.13 GB\n - 100,000,000,000,000 bytes => 90.95 TB\n - 100,000,...
77
false
MacHu-GWU/crawlib-project
repr_data_size
15,131
LDU_FT/postmanlabs/httpbin/hidden_basic_auth
LDU_FT
[ "<BEGIN>\n## `json_safe`", "Returns JSON-safe version of `string`.", " If `string` is a Unicode string or a valid UTF-8, it is returned unmodified,\n as it can safely be encoded to JSON string.", " If `string` contains raw/binary data, it is Base64-encoded, formatted and\n returned according to \"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hidden_basic_auth API. 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 hidden_basic_auth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Prompts the user for authorization using HTTP Basic Auth. --- tags: - Auth parameters: - in: path name: user type: string - in: path name: passwd type: string produces: - application/json responses: 200: description: Sucessful aut...
"Prompts the user for authorization using HTTP Basic Auth.\n ---\n tags:\n - Auth\n parameters:\n - in: path\n name: user\n type: string\n - in: path\n name: passwd\n type: string\n produces:\n - application/json\n responses:\n 200:\n descriptio...
86
false
postmanlabs/httpbin
hidden_basic_auth
15,132
LDU_FT/nickmckay/LiPD-utilities/get_download_path
LDU_FT
[ "<BEGIN>\n## `update_dois`", "Get DOI publication info for a batch of DOIs. This is LiPD-independent and only requires a CSV file with all DOIs\n listed in a single column. The output is LiPD-formatted publication data for each entry.", " :param str csv_source: Local path to CSV file\n :param bool writ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_download_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_download_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...
Determine the OS and the associated download folder. :return str Download path:
"Determine the OS and the associated download folder.\n :return str Download path:"
796
false
nickmckay/LiPD-utilities
get_download_path
15,133
LDU_FT/carlthome/python-audio-effects/equalizer
LDU_FT
[ "<BEGIN>\n## `equalizer`", "equalizer takes three parameters: filter center frequency in Hz, \"q\"\n or band-width (default=1.0), and a signed number for gain or\n attenuation in dB.", " Beware of clipping when using positive gain.\n<END>", "<BEGIN>\n## `bandpass`", "bandpass takes 2 pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the equalizer API. 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 equalizer API. 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...
equalizer takes three parameters: filter center frequency in Hz, "q" or band-width (default=1.0), and a signed number for gain or attenuation in dB. Beware of clipping when using positive gain.
"equalizer takes three parameters: filter center frequency in Hz, \"q\"\n or band-width (default=1.0), and a signed number for gain or\n attenuation in dB.\n\n Beware of clipping when using positive gain."
53
false
carlthome/python-audio-effects
equalizer
15,134
LDU_FT/PMBio/limix-backup/fit_iSet
LDU_FT
[ "<BEGIN>\n## `PCA`", "run PCA, retrieving the first (components) principle components\n\treturn [s0, eig, w0]\n\ts0: factors\n\tw0: weights\n<END>", "<BEGIN>\n## `PC_varExplained`", "Run PCA and calculate the cumulative fraction of variance\n Args:\n Y: phenotype values\n standardize: if True...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_iSet API. 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 fit_iSet API. 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...
Args: Y: [N, P] phenotype matrix S_R: N vector of eigenvalues of R U_R: [N, N] eigenvector matrix of R covs: [N, K] matrix for K covariates Xr: [N, S] genotype data of the set component n_perms: number of permutations to consider ...
"Args:\n Y: [N, P] phenotype matrix\n S_R: N vector of eigenvalues of R\n U_R: [N, N] eigenvector matrix of R\n covs: [N, K] matrix for K covariates\n Xr: [N, S] genotype data of the set component\n n_perms: number of permutations to cons...
428
false
PMBio/limix-backup
fit_iSet
15,135
LDU_FT/Iotic-Labs/py-IoticAgent/__request_except
LDU_FT
[ "<BEGIN>\n## `_notify_thing_lid_change`", "Used by Thing instances to indicate that a rename operation has happened\n<END>", "<BEGIN>\n## `register_catchall_feeddata`", "Registers a callback that is called for all feeddata your Thing receives", " `Example`", " #!python\n def f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __request_except API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __request_except API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Set exception (if not None) for the given request and (optionally) remove from internal cache & setting its event
"Set exception (if not None) for the given request and (optionally) remove from internal cache & setting its\n event"
643
false
Iotic-Labs/py-IoticAgent
__request_except
15,136
LDU_FT/gmr/infoblox/post
LDU_FT
[ "<BEGIN>\n## `delete_old_host`", "Remove all records for the host.", " :param str hostname: Hostname to remove\n :rtype: bool\n<END>", "<BEGIN>\n## `add_new_host`", "Add or update a host in the infoblox, overwriting any IP address\n entries.", " :param str hostname: Hostname to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Call the Infoblox device to post the obj for the data passed in :param str obj: The object type :param dict data: The data for the post :rtype: requests.Response
"Call the Infoblox device to post the obj for the data passed in\n\n :param str obj: The object type\n :param dict data: The data for the post\n :rtype: requests.Response"
42
false
gmr/infoblox
post
15,137
LDU_FT/spyder-ide/spyder/highlight_spaces
LDU_FT
[ "<BEGIN>\n## `set_bracket_matcher_color_scheme`", "Set color scheme for matched parentheses.\n<END>", "<BEGIN>\n## `long_banner`", "Banner for IPython widgets with pylab message\n<END>", "<BEGIN>\n## `reset_namespace`", "Reset the namespace by removing all names defined by the user.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the highlight_spaces API. 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 highlight_spaces API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Make blank space less apparent by setting the foreground alpha. This only has an effect when 'Show blank space' is turned on. Derived classes could call this function at the end of highlightBlock().
"Make blank space less apparent by setting the foreground alpha.\r\n This only has an effect when 'Show blank space' is turned on.\r\n Derived classes could call this function at the end of\r\n highlightBlock()."
2,144
true
spyder-ide/spyder
highlight_spaces
15,138
LDU_FT/Varkal/chuda/print_live_output
LDU_FT
[ "<BEGIN>\n## `enrich_app`", "Add a new property to the app (with setattr)", " Args:\n name (str): the name of the new property\n value (any): the value of the new property\n<END>", "<BEGIN>\n## `autorun`", "Call the run method of the decorated class if the current file is the ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_live_output API. 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 print_live_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Block and print the output of the command Raises: TypeError: If command is blocking
"Block and print the output of the command\n\n Raises:\n TypeError: If command is blocking"
44
false
Varkal/chuda
print_live_output
15,139
LDU_FT/xolox/python-vcs-repo-mgr/known_remotes
LDU_FT
[ "<BEGIN>\n## `get_install_requires`", "Add conditional dependencies (when creating source distributions).\n<END>", "<BEGIN>\n## `main`", "The command line interface of the ``vcs-tool`` program.\n<END>", "<BEGIN>\n## `contains_repository`", "Check whether the given directory contains a local repository.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the known_remotes API. 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 known_remotes API. 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...
The names of the configured remote repositories (a list of :class:`.Remote` objects).
"The names of the configured remote repositories (a list of :class:`.Remote` objects)."
261
false
xolox/python-vcs-repo-mgr
known_remotes
15,140
LDU_FT/foremast/foremast/format_cert_name
LDU_FT
[ "<BEGIN>\n## `create_elb_dns`", "Create dns entries in route53.", " Args:\n regionspecific (bool): The DNS entry should have region on it\n Returns:\n str: Auto-generated DNS name for the Elastic Load Balancer.\n<END>", "<BEGIN>\n## `create_failover_dns`", "Create dns ent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_cert_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_cert_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Format the SSL certificate name into ARN for ELB. Args: env (str): Account environment name account (str): Account number for ARN region (str): AWS Region. certificate (str): Name of SSL certificate Returns: str: Fully qualified ARN for SSL certificate None: Cer...
"Format the SSL certificate name into ARN for ELB.\n\n Args:\n env (str): Account environment name\n account (str): Account number for ARN\n region (str): AWS Region.\n certificate (str): Name of SSL certificate\n\n Returns:\n str: Fully qualified ARN for SSL certificate\n ...
585
false
foremast/foremast
format_cert_name
15,141
LDU_FT/timothydmorton/orbitutils/RV_1
LDU_FT
[ "<BEGIN>\n## `RV_1`", "Instantaneous RV of star 1 with respect to system center-of-mass\n<END>", "<BEGIN>\n## `RV_2`", "Instantaneous RV of star 2 with respect to system center-of-mass\n<END>", "<BEGIN>\n## `RV_3`", "Instantaneous RV of star 3 with respect to system center-of-mass\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the RV_1 API. 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 RV_1 API. 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...
Instantaneous RV of star 1 with respect to system center-of-mass
"Instantaneous RV of star 1 with respect to system center-of-mass"
38
false
timothydmorton/orbitutils
RV_1
15,142
LDU_FT/mattimck/python-exist/refresh_token
LDU_FT
[ "<BEGIN>\n## `arquire_attributes`", "Claims a list of attributes for the current client.\n Can also disable attributes. Returns update response object.\n<END>", "<BEGIN>\n## `release_attributes`", "Releases named attributes from this service. Returns update response object.\n<END>", "<BEGIN>\n## `own...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get a new token, using the provided refresh token. Returns the new access_token.
"Get a new token, using the provided refresh token. Returns the new\n access_token."
28
false
mattimck/python-exist
refresh_token
15,143
LDU_FT/dls-controls/pymalcolm/sever_sink_ports
LDU_FT
[ "<BEGIN>\n## `camel_to_title`", "Takes a camelCaseFieldName and returns an Title Case Field Name", " Args:\n name (str): E.g. camelCaseFieldName", " Returns:\n str: Title Case converted name. E.g. Camel Case Field Name\n<END>", "<BEGIN>\n## `snake_to_camel`", "Takes a snake_field_name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sever_sink_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sever_sink_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 ...
Conditionally sever Sink Ports of the child. If connected_to is then None then sever all, otherwise restrict to connected_to's Source Ports Args: context (Context): The context to use ports (dict): {part_name: [PortInfo]} connected_to (str): Restrict severing...
"Conditionally sever Sink Ports of the child. If connected_to\n is then None then sever all, otherwise restrict to connected_to's\n Source Ports\n\n Args:\n context (Context): The context to use\n ports (dict): {part_name: [PortInfo]}\n connected_to (str): Restrict ...
332
false
dls-controls/pymalcolm
sever_sink_ports
15,144
LDU_FT/pytorch/text/pad
LDU_FT
[ "<BEGIN>\n## `load_vectors`", "Arguments:\n vectors: one of or a list containing instantiations of the\n GloVe, CharNGram, or Vectors classes. Alternatively, one\n of or a list of available pretrained vectors:\n charngram.100d\n fasttext.en.30...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pad API. 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 pad API. 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...
Pad a batch of examples using this field. Pads to self.fix_length if provided, otherwise pads to the length of the longest example in the batch. Prepends self.init_token and appends self.eos_token if those attributes are not None. Returns a tuple of the padded list and a list containing...
"Pad a batch of examples using this field.\n\n Pads to self.fix_length if provided, otherwise pads to the length of\n the longest example in the batch. Prepends self.init_token and appends\n self.eos_token if those attributes are not None. Returns a tuple of the\n padded list and a list cont...
131
false
pytorch/text
pad
15,145
LDU_FT/Nixiware/viper/_getConfiguration
LDU_FT
[ "<BEGIN>\n## `send`", "Sends an email using the SMTP connection.", " :param recipient: <tuple> recipient's email address as the first element and their name as an optional second\n element\n :param subject: <str> mail subject\n :param message: <str> mail content (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getConfiguration API. 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 _getConfiguration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Load application configuration files. :return: <dict>
"Load application configuration files.\n\n :return: <dict>"
72
false
Nixiware/viper
_getConfiguration
15,146
LDU_FT/kmarekspartz/props/dict_of
LDU_FT
[ "<BEGIN>\n## `for_all`", "Takes a list of generators and returns a closure which takes a property,\n then tests the property against arbitrary instances of the generators.\n<END>", "<BEGIN>\n## `maybe_a`", "Generates either an arbitrary value of the specified generator or None.\n This is a class factory...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_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 extracted...
Generates a homogeneous dict of the specified generators using kwargs. You can generate non-homogeneous dicts using `dict`. This is a class factory, it makes a class which is a closure around the specified keys and generators.
"Generates a homogeneous dict of the specified generators using kwargs.\n You can generate non-homogeneous dicts using `dict`.\n This is a class factory, it makes a class which is a closure around the\n specified keys and generators."
14
false
kmarekspartz/props
dict_of
15,147
LDU_FT/mgedmin/check-manifest/get_one_file_in
LDU_FT
[ "<BEGIN>\n## `run`", "Run a command [cmd, arg1, arg2, ...].", " Returns the output (stdout + stderr).", " Raises CommandFailed in cases of error.\n<END>", "<BEGIN>\n## `cd`", "Change the current working directory, temporarily.", " Use as a context manager: with cd(d): ...\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_one_file_in API. 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_one_file_in API. 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...
Return the pathname of the one file in a directory. Raises if the directory has no files or more than one file.
"Return the pathname of the one file in a directory.\n\n Raises if the directory has no files or more than one file."
85
false
mgedmin/check-manifest
get_one_file_in
15,148
LDU_FT/mfcloud/python-zvm-sdk/execute
LDU_FT
[ "<BEGIN>\n## `getConsole`", "Get the virtual machine's console output.", " Input:\n Request Handle with the following properties:\n function - 'CMDVM'\n subfunction - 'CMD'\n userid - userid of the virtual machine", " Output:\n Request Handle updated with t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
execute command, return rc and output string. The cmd argument can be a string or a list composed of the command name and each of its argument. eg, ['/usr/bin/cp', '-r', 'src', 'dst']
"execute command, return rc and output string.\n The cmd argument can be a string or a list composed of\n the command name and each of its argument.\n eg, ['/usr/bin/cp', '-r', 'src', 'dst']"
643
false
mfcloud/python-zvm-sdk
execute
15,149
LDU_FT/fp12/achallonge/attach_file
LDU_FT
[ "<BEGIN>\n## `report_winner`", "report scores and give a winner", " |methcoro|", " Args:\n winner: :class:Participant instance\n scores_csv: Comma separated set/game scores with player 1 score first (e.g. \"1-3,3-0,3-2\")", " Raises:\n ValueError: scores...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
add a file as an attachment |methcoro| Warning: |unstable| Args: file_path: path to the file you want to add description: *optional* description for your attachment Returns: Attachment: Raises: ValueError: file_path...
"add a file as an attachment\n\n |methcoro|\n\n Warning:\n |unstable|\n\n Args:\n file_path: path to the file you want to add\n description: *optional* description for your attachment\n\n Returns:\n Attachment:\n\n Raises:\n Value...
173
false
fp12/achallonge
attach_file
15,150
LDU_FT/Parquery/sphinx-icontract/process_docstring
LDU_FT
[ "<BEGIN>\n## `_negate_compare_text`", "Generate the text representing the negation of the comparison node.", " :param atok:\n parsing obtained with ``asttokens`` so that we can access the last tokens of a node.", " The standard ``ast`` module provides only the first token of an AST node. In l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_docstring API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_docstring API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
React to a docstring event and append contracts to it.
"React to a docstring event and append contracts to it."
29
false
Parquery/sphinx-icontract
process_docstring
15,151
LDU_FT/recurly/recurly-client-python/enter_offline_payment
LDU_FT
[ "<BEGIN>\n## `error_class_for_http_status`", "Return the appropriate `ResponseError` subclass for the given\n HTTP status code.\n<END>", "<BEGIN>\n## `response_doc`", "The XML document received from the service.\n<END>", "<BEGIN>\n## `transaction_error_code`", "The machine-readable error code for a tra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enter_offline_payment 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 enter_offline_payment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Records an offline (external) payment on the invoice. Pass in a Transaction object to set the details of the created transaction. The attributes available to set are (payment_method, collected_at, amount_in_cents, description) Returns: Transaction: The created transaction
"Records an offline (external) payment on the invoice.\n Pass in a Transaction object to set the details of the created\n transaction. The attributes available to set are\n (payment_method, collected_at, amount_in_cents, description)\n\n Returns:\n Transaction: The created transac...
103
false
recurly/recurly-client-python
enter_offline_payment
15,152
LDU_FT/shazow/unstdlib.py/to_timezone
LDU_FT
[ "<BEGIN>\n## `convert_exception`", "Decorator: Catch exception ``from_exception`` and instead raise ``to_exception(*to_args, **to_kw)``.", " Useful when modules you're using in a method throw their own errors that you want to\n convert to your own exceptions that you handle higher in the stack.", " E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_timezone API. 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 to_timezone API. 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 an aware datetime which is ``dt`` converted to ``timezone``. If ``dt`` is naive, it is assumed to be UTC. For example, if ``dt`` is "06:00 UTC+0000" and ``timezone`` is "EDT-0400", then the result will be "02:00 EDT-0400". This method follows the guidelines in http://pytz.sourceforge.net/
"Return an aware datetime which is ``dt`` converted to ``timezone``.\n\n If ``dt`` is naive, it is assumed to be UTC.\n\n For example, if ``dt`` is \"06:00 UTC+0000\" and ``timezone`` is \"EDT-0400\",\n then the result will be \"02:00 EDT-0400\".\n\n This method follows the guidelines in http://pytz.sourcef...
187
false
shazow/unstdlib.py
to_timezone
15,153
LDU_FT/dmort27/panphon/validate_word
LDU_FT
[ "<BEGIN>\n## `fts`", "Return features corresponding to segment as list of (value,\n feature) tuples", " Args:\n segment (unicode): segment for which features are to be returned as\n Unicode string", " Returns:\n list: None if `segment` c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_word API. 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 validate_word API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns True if `word` consists exhaustively of valid IPA segments Args: word (unicode): input word as Unicode IPA string Returns: bool: True if `word` can be divided exhaustively into IPA segments that exist in the database
"Returns True if `word` consists exhaustively of valid IPA segments\n\n Args:\n word (unicode): input word as Unicode IPA string\n\n Returns:\n bool: True if `word` can be divided exhaustively into IPA segments\n that exist in the database"
112
false
dmort27/panphon
validate_word
15,154
LDU_FT/waleedka/hiddenlayer/siblings
LDU_FT
[ "<BEGIN>\n## `format_step`", "Return the step value in format suitable for display.\n<END>", "<BEGIN>\n## `log`", "Record metrics at a specific step. E.g.", " my_history.log(34, loss=2.3, accuracy=0.2)", " Okay to call multiple times for the same step. New values overwrite\n older one...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the siblings API. 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 siblings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns all nodes that share the same parent (incoming node) with the given node, including the node itself.
"Returns all nodes that share the same parent (incoming node) with\n the given node, including the node itself."
50
false
waleedka/hiddenlayer
siblings
15,155
LDU_FT/gsi-upm/soil/run_trial
LDU_FT
[ "<BEGIN>\n## `save_record`", "Save a collection of records to the database.\n Database writes are cached.\n<END>", "<BEGIN>\n## `convert`", "Get the serialized value for a given key.\n<END>", "<BEGIN>\n## `recover`", "Get the deserialized value for a given key, and the serialized version.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_trial API. 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 run_trial API. 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...
Run a single trial of the simulation Parameters ---------- trial_id : int
"Run a single trial of the simulation\n\n Parameters\n ----------\n trial_id : int"
63
false
gsi-upm/soil
run_trial
15,156
LDU_FT/se-esss-litterbox/Pynac/dynacRepresentation
LDU_FT
[ "<BEGIN>\n## `from_dynacRepr`", "Construct a ``Quad`` instance from the Pynac lattice element\n<END>", "<BEGIN>\n## `scaleField`", "Adjust the field of the magnet by the value of ``scalingFactor``. The adjustment\n is multiplicative, so a value of ``scalingFactor = 1.0`` will result in no change\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dynacRepresentation 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 dynacRepresentation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Return the Dynac representation of this cavity instance.
"Return the Dynac representation of this cavity instance."
52
false
se-esss-litterbox/Pynac
dynacRepresentation
15,157
LDU_FT/rossdylan/sham/shutdown
LDU_FT
[ "<BEGIN>\n## `get_volumes`", "Return a list of all Volumes in this Storage Pool\n<END>", "<BEGIN>\n## `create_backed_vol`", "TODO(rdelinger) think about changing _format\n This is a pretty specialized function.\n It takes an existing volume, and creates a new volume\n that is backed by th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shutdown API. 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 shutdown API. 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...
Shutdown this VM :param delete: Should we delete after shutting the VM down? :type delete: bool
"Shutdown this VM\n :param delete: Should we delete after shutting the VM down?\n :type delete: bool"
23
false
rossdylan/sham
shutdown
15,158
LDU_FT/acorg/pymds/orient_to
LDU_FT
[ "<BEGIN>\n## `get`", "Returns the current version without importing pymds.\n<END>", "<BEGIN>\n## `_gradient`", "Compute the gradient.", " Args:\n diff (`array-like`): [`m`, `m`] matrix. `D` - `d`\n d (`array-like`): [`m`, `m`] matrix.\n coords (`array-like`): [`m`, `n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the orient_to API. 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 orient_to API. 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...
Orient this Projection to another dataset. Orient this projection using reflection, rotation and translation to match another projection using procrustes superimposition. Scaling is optional. Args: other (:py:class:`pymds.Projection` or :py:class:`pandas.Dat...
"Orient this Projection to another dataset.\n\n Orient this projection using reflection, rotation and translation to\n match another projection using procrustes superimposition. Scaling is\n optional.\n\n Args:\n other\n (:py:class:`pymds.Projection` or :py:class:`p...
60
false
acorg/pymds
orient_to
15,159
LDU_FT/brentp/cruzdb/knearest
LDU_FT
[ "<BEGIN>\n## `relate`", "Produce a relationship between this mapped table and another\n one. ", " This makes usage of SQLAlchemy's :func:`sqlalchemy.orm.relationship`\n construct.\n<END>", "<BEGIN>\n## `execute`", "Execute a SQL statement.", " The statement may be a string SQL ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the knearest API. 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 knearest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
return the n nearest neighbors to the given feature f: a Feature object k: the number of features to return
"return the n nearest neighbors to the given feature\n f: a Feature object\n k: the number of features to return"
169
false
brentp/cruzdb
knearest
15,160
LDU_FT/fabiobatalha/crossrefapi/query
LDU_FT
[ "<BEGIN>\n## `version`", "This attribute retrieve the API version.", " >>> Works().version\n '1.0.0'\n<END>", "<BEGIN>\n## `count`", "This method retrieve the total of records resulting from a given query.", " This attribute can be used compounded with query, filter,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
This method retrieve an iterable object that implements the method __iter__. The arguments given will compose the parameters in the request url. This method can be used compounded and recursively with query, filter, order, sort and facet methods. args: strings (String) ...
"This method retrieve an iterable object that implements the method\n __iter__. The arguments given will compose the parameters in the\n request url.\n\n This method can be used compounded and recursively with query, filter,\n order, sort and facet methods.\n\n args: strings (String)\...
108
false
fabiobatalha/crossrefapi
query
15,161
LDU_FT/product-definition-center/pdc-client/add_create_update_args
LDU_FT
[ "<BEGIN>\n## `__get_permissions`", "This call returns current login user's permissions.\n<END>", "<BEGIN>\n## `add_parser_arguments`", "Helper method that populates parser arguments. The argument values can\n be later retrieved with `extract_arguments` method.", " The `args` argument to this method sh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_create_update_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_create_update_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....
Wrapper around ``add_parser_arguments``. If ``create`` is True, one argument group will be created for each of ``required_args`` and ``optional_args``. Each required argument will have the ``required`` parameter set to True automatically. If ``create`` is False, only one group of optional arguments wi...
"Wrapper around ``add_parser_arguments``.\n\n If ``create`` is True, one argument group will be created for each of\n ``required_args`` and ``optional_args``. Each required argument will have\n the ``required`` parameter set to True automatically.\n\n If ``create`` is False, only one group of optional argum...
35
false
product-definition-center/pdc-client
add_create_update_args
15,162
LDU_FT/timothyb0912/pylogit/check_wide_data_for_blank_choices
LDU_FT
[ "<BEGIN>\n## `get_dataframe_from_data`", "Parameters\n ----------\n data : string or pandas dataframe.\n If string, data should be an absolute or relative path to a CSV file\n containing the long format data for this choice model. Note long format\n has one row per available alternative...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_wide_data_for_blank_choices 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 check_wide_data_for_blank_choices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Checks `wide_data` for null values in the choice column, and raises a helpful ValueError if null values are found. Parameters ---------- choice_col : str. Denotes the column in `wide_data` that is used to record each observation's choice. wide_data : pandas dataframe. Contai...
"Checks `wide_data` for null values in the choice column, and raises a\n helpful ValueError if null values are found.\n\n Parameters\n ----------\n choice_col : str.\n Denotes the column in `wide_data` that is used to record each\n observation's choice.\n wide_data : pandas dataframe.\n ...
871
false
timothyb0912/pylogit
check_wide_data_for_blank_choices
15,163
LDU_FT/KrishnaswamyLab/PHATE/check_int
LDU_FT
[ "<BEGIN>\n## `_get_plot_data`", "Get plot data out of an input object", " Parameters\n ----------\n data : array-like, `phate.PHATE` or `scanpy.AnnData`\n ndim : int, optional (default: None)\n Minimum number of dimensions\n<END>", "<BEGIN>\n## `scatter`", "Create a scatter plot", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_int API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_int API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Check that parameters are integers as expected Raises ------ ValueError : unacceptable choice of parameters
"Check that parameters are integers as expected\n\n Raises\n ------\n ValueError : unacceptable choice of parameters"
162
false
KrishnaswamyLab/PHATE
check_int
15,164
LDU_FT/PMEAL/OpenPNM/ctc
LDU_FT
[ "<BEGIN>\n## `ordinary_diffusion`", "r\"\"\"\n Calculate the diffusive conductance of conduits in network, where a\n conduit is ( 1/2 pore - full throat - 1/2 pore ). See the notes section.", " Parameters\n ----------\n target : OpenPNM Object\n The object which this model is associated wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ctc API. 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 ctc API. 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...
r""" Calculate throat length assuming point-like pores, i.e. center-to-center distance between pores. Also, this models assumes that pores and throat centroids are colinear. Parameters ---------- target : OpenPNM Object The object which this model is associated with. This controls the ...
"r\"\"\"\n Calculate throat length assuming point-like pores, i.e. center-to-center\n distance between pores. Also, this models assumes that pores and throat\n centroids are colinear.\n\n Parameters\n ----------\n target : OpenPNM Object\n The object which this model is associated with. This co...
1,872
true
PMEAL/OpenPNM
ctc
15,165
LDU_FT/heitzmann/gdspy/get_labels
LDU_FT
[ "<BEGIN>\n## `_eight_byte_real`", "Convert a number into the GDSII 8 byte real format.", " Parameters\n ----------\n value : number\n The number to be converted.", " Returns\n -------\n out : string\n The GDSII binary string that represents ``value``.\n<END>", "<BEGIN>\n## `_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_labels API. 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_labels API. 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 list of labels created by this reference. Parameters ---------- depth : integer or ``None`` If not ``None``, defines from how many reference levels to retrieve labels from. Returns ------- out : list of ``Label`` List contai...
"Returns a list of labels created by this reference.\n\n Parameters\n ----------\n depth : integer or ``None``\n If not ``None``, defines from how many reference levels to\n retrieve labels from.\n\n Returns\n -------\n out : list of ``Label``\n ...
254
false
heitzmann/gdspy
get_labels
15,166
LDU_FT/honzamach/pynspect/traverse
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse given data.", " data:\n A string containing the filter definition\n filename:\n Name of the file being parsed (for meaningful\n error messages)\n debuglevel:\n Debug level to yacc\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traverse API. 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 traverse API. 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...
Implementation of mandatory interface for traversing the whole rule tree. This method will call the implementation of :py:func:`pynspect.rules.RuleTreeTraverser.binary_operation_logical` method with reference to ``self`` instance as first argument, with the result of traversing left subtree as s...
"Implementation of mandatory interface for traversing the whole rule tree.\n This method will call the implementation of :py:func:`pynspect.rules.RuleTreeTraverser.binary_operation_logical`\n method with reference to ``self`` instance as first argument, with the\n result of traversing left subtree ...
143
false
honzamach/pynspect
traverse
15,167
LDU_FT/llazzaro/analyzerdam/ticks
LDU_FT
[ "<BEGIN>\n## `getAll`", "Get all available quote data for the given ticker symbol.\r\n Returns a dictionary.\n<END>", "<BEGIN>\n## `getQuotes`", "Get historical prices for the given ticker symbol.\r\n Date format is 'YYYY-MM-DD'\r", " Returns a nested list.\n<END>", "<BEGIN>\n## `getW...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ticks API. 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 ticks API. 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...
Get tick prices for the given ticker security. @security: stock security @interval: interval in mins(google finance only support query till 1 min) @start: start date(YYYYMMDD) @end: end date(YYYYMMDD) start and end is disabled since only 15 days data will show @...
"Get tick prices for the given ticker security.\r\n @security: stock security\r\n @interval: interval in mins(google finance only support query till 1 min)\r\n @start: start date(YYYYMMDD)\r\n @end: end date(YYYYMMDD)\r\n\r\n start and end is disabled since only 15 days data will show...
22
false
llazzaro/analyzerdam
ticks
15,168
LDU_FT/sys-git/certifiable/certify_bytes
LDU_FT
[ "<BEGIN>\n## `load_value_from_schema`", "Load a value from a schema defined string.\n<END>", "<BEGIN>\n## `parse_value`", "Convert a string received on the command-line into\n a value or None.", " :param str v:\n The value to parse.\n :param parser:\n The fallback callable to load the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the certify_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the certify_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Certifier for bytestring values. Should not be used for certifying human readable strings, Please use `certify_string` instead. :param bytes|str value: The string to be certified. :param int min_length: The minimum length of the string. :param int max_length: The maximum accept...
"Certifier for bytestring values.\n\n Should not be used for certifying human readable strings, Please use `certify_string` instead.\n\n :param bytes|str value:\n The string to be certified.\n :param int min_length:\n The minimum length of the string.\n :param int max_length:\n The maxi...
100
false
sys-git/certifiable
certify_bytes
15,169
LDU_FT/rstoneback/pysatMagVect/closed_loop_edge_lengths_via_equator
LDU_FT
[ "<BEGIN>\n## `add_mag_drift_unit_vectors_ecef`", "Adds unit vectors expressing the ion drift coordinate system\n organized by the geomagnetic field. Unit vectors are expressed\n in ECEF coordinates.", " Parameters\n ----------\n inst : pysat.Instrument\n Instrument object that will get uni...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the closed_loop_edge_lengths_via_equator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the closed_loop_edge_lengths_via_equator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
Calculates the distance between apex locations mapping to the input location. Using the input location, the apex location is calculated. Also from the input location, a step along both the positive and negative vector_directions is taken, and the apex locations for those points are calculated. The...
"Calculates the distance between apex locations mapping to the input location.\n \n Using the input location, the apex location is calculated. Also from the input \n location, a step along both the positive and negative\n vector_directions is taken, and the apex locations for those points are calculated.\n ...
108
false
rstoneback/pysatMagVect
closed_loop_edge_lengths_via_equator
15,170
LDU_FT/ansible/molecule/write_file
LDU_FT
[ "<BEGIN>\n## `bake`", "Bake an ``ansible-playbook`` command so it's ready to execute and\n returns ``None``.", " :return: None\n<END>", "<BEGIN>\n## `execute`", "Executes ``ansible-playbook`` and returns a string.", " :return: str\n<END>", "<BEGIN>\n## `execute`", "Execute the act...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Writes a file with the given filename and content and returns None. :param filename: A string containing the target filename. :param content: A string containing the data to be written. :return: None
"Writes a file with the given filename and content and returns None.\n\n :param filename: A string containing the target filename.\n :param content: A string containing the data to be written.\n :return: None"
234
false
ansible/molecule
write_file
15,171
LDU_FT/mathiasertl/xmpp-backends/gzip_encode
LDU_FT
[ "<BEGIN>\n## `rpc`", "Generic helper function to call an RPC method.\n<END>", "<BEGIN>\n## `message_user`", "Currently use send_message_chat and discard subject, because headline messages are not\n stored by mod_offline.\n<END>", "<BEGIN>\n## `module`", "The module specified by the ``library`` attr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gzip_encode API. 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 gzip_encode API. 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...
data -> gzip encoded data Encode data using the gzip content encoding as described in RFC 1952
"data -> gzip encoded data\n\n Encode data using the gzip content encoding as described in RFC 1952"
63
false
mathiasertl/xmpp-backends
gzip_encode
15,172