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/lawlesst/vivo-rdflib-sparqlstore/bulk_update
LDU_FT
[ "<BEGIN>\n## `setQuery`", "Set the SPARQL query text and set the VIVO custom\n authentication parameters.", " Set here because this is called immediately before\n any query is sent to the triple store.\n<END>", "<BEGIN>\n## `make_batch`", "Split graphs into n sized chunks.\n See:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bulk_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bulk_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 extra...
Bulk adds or deletes. Triples are chunked into n size groups before sending to API. This prevents the API endpoint from timing out.
"Bulk adds or deletes. Triples are chunked into n size groups before\n sending to API. This prevents the API endpoint from timing out."
16
false
lawlesst/vivo-rdflib-sparqlstore
bulk_update
7,273
LDU_FT/JensRantil/rewind/from_config
LDU_FT
[ "<BEGIN>\n## `_zmq_socket_context`", "A ZeroMQ socket context that both constructs a socket and closes it.\n<END>", "<BEGIN>\n## `_get_with_fallback`", "Get a configuration value, using fallback for missing values.", " Parameters:\n config -- the configparser to try to extract the option value from....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Instantiate an `RotatedEventStore` from config. Parameters: _config -- the configuration file options read from file(s). **options -- various options given to the specific event store. Shall not be used with this event store. Warning will be logged f...
"Instantiate an `RotatedEventStore` from config.\n\n Parameters:\n _config -- the configuration file options read from file(s).\n **options -- various options given to the specific event store. Shall\n not be used with this event store. Warning will be logged\n ...
112
false
JensRantil/rewind
from_config
7,274
LDU_FT/cloudbase/python-hnvclient/process_raw_data
LDU_FT
[ "<BEGIN>\n## `register`", "Register the current options to the global ConfigOpts object.\n<END>", "<BEGIN>\n## `get_options`", "Collect all the options info from the other modules.\n<END>", "<BEGIN>\n## `run_once`", "A memoization decorator, whose purpose is to cache calls.\n<END>", "<BEGIN>\n## `get_cl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_raw_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_raw_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 ...
Create a new model using raw API response.
"Create a new model using raw API response."
89
false
cloudbase/python-hnvclient
process_raw_data
7,275
LDU_FT/lambdamusic/Ontospy/_printInstances
LDU_FT
[ "<BEGIN>\n## `main_cli`", "Ontospy allows to extract and visualise ontology information included in RDF data. Use one of the commands listed below to find out more, or visit http://lambdamusic.github.io/ontospy\n<END>", "<BEGIN>\n## `scan`", "SCAN: get ontology data from RDF source and print out a report.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _printInstances API. 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 _printInstances API. 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...
print(more informative stats about the object)
"print(more informative stats about the object)"
360
false
lambdamusic/Ontospy
_printInstances
7,276
LDU_FT/hzdg/django-ecstatic/get_hashed_filename
LDU_FT
[ "<BEGIN>\n## `rename_file`", "Renames a file and updates the model field to point to the new file.\n Returns True if a change has been made; otherwise False\n<END>", "<BEGIN>\n## `post_process`", "Overridden to work around https://code.djangoproject.com/ticket/19111\n<END>", "<BEGIN>\n## `post_proces...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hashed_filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hashed_filename 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...
Gets a new filename for the provided file of the form "oldfilename.hash.ext". If the old filename looks like it already contains a hash, it will be replaced (so you don't end up with names like "pic.hash.hash.ext")
"Gets a new filename for the provided file of the form\n \"oldfilename.hash.ext\". If the old filename looks like it already contains a\n hash, it will be replaced (so you don't end up with names like\n \"pic.hash.hash.ext\")"
15
false
hzdg/django-ecstatic
get_hashed_filename
7,277
LDU_FT/mozilla/socorrolib/_limited_iterator
LDU_FT
[ "<BEGIN>\n## `klass_to_pypath`", "when a class is defined within the module that is being executed as\n main, the module name will be specified as '__main__' even though the\n module actually had its own real name. This ends up being very confusing\n to Configman as it tries to refer to a class by its p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _limited_iterator API. 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 _limited_iterator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
this is the iterator for the case when "number_of_submissions" is set to an integer. It goes through the innermost iterator exactly the number of times specified by "number_of_submissions" To do that, it might run the innermost iterator to exhaustion. If that happens, that innermost i...
"this is the iterator for the case when \"number_of_submissions\" is\n set to an integer. It goes through the innermost iterator exactly the\n number of times specified by \"number_of_submissions\" To do that, it\n might run the innermost iterator to exhaustion. If that happens, that\n in...
155
false
mozilla/socorrolib
_limited_iterator
7,278
LDU_FT/gwpy/gwpy/from_ligolw_tables
LDU_FT
[ "<BEGIN>\n## `canonical_name`", "Find the canonical name for the given window in scipy.signal", " Parameters\n ----------\n name : `str`\n the name of the window you want", " Returns\n -------\n realname : `str`\n the name of the window as implemented in `scipy.signal.window`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_ligolw_tables 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 from_ligolw_tables 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...
Build a `DataQualityDict` from a set of LIGO_LW segment tables Parameters ---------- segmentdeftable : :class:`~ligo.lw.lsctables.SegmentDefTable` the ``segment_definer`` table to read segmentsumtable : :class:`~ligo.lw.lsctables.SegmentSumTable` the ``segment_s...
"Build a `DataQualityDict` from a set of LIGO_LW segment tables\n\n Parameters\n ----------\n segmentdeftable : :class:`~ligo.lw.lsctables.SegmentDefTable`\n the ``segment_definer`` table to read\n\n segmentsumtable : :class:`~ligo.lw.lsctables.SegmentSumTable`\n the ``...
2,764
true
gwpy/gwpy
from_ligolw_tables
7,279
LDU_FT/dshean/demcoreg/find_first_peak
LDU_FT
[ "<BEGIN>\n## `get_nlcd_fn`", "Calls external shell script `get_nlcd.sh` to fetch:", " 2011 Land Use Land Cover (nlcd) grids, 30 m", " http://www.mrlc.gov/nlcd11_leg.php\n<END>", "<BEGIN>\n## `get_bareground_fn`", "Calls external shell script `get_bareground.sh` to fetch:", " ~2010 global bare g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_first_peak API. 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 find_first_peak API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Find row and column indices of the first correlation peak. Parameters ---------- corr : np.ndarray the correlation map Returns ------- i : int the row index of the correlation peak j : int the column index of the correlation peak co...
"Find row and column indices of the first correlation peak.\n \n Parameters\n ----------\n corr : np.ndarray\n the correlation map\n \n Returns\n -------\n i : int\n the row index of the correlation peak\n \n j : int\n the column index of the correlation peak ...
63
false
dshean/demcoreg
find_first_peak
7,280
LDU_FT/angvp/django-klingon/clean_translation
LDU_FT
[ "<BEGIN>\n## `clean_translation`", "Do not allow translations longer than the max_lenght of the field to\n be translated.\n<END>", "<BEGIN>\n## `translate`", "Create all translations objects for this Translatable instance.", " @rtype: list of Translation objects\n @return: Returns a lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_translation API. 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 clean_translation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Do not allow translations longer than the max_lenght of the field to be translated.
"Do not allow translations longer than the max_lenght of the field to\n be translated."
31
false
angvp/django-klingon
clean_translation
7,281
LDU_FT/JinnLynn/genpac/updatePSL
LDU_FT
[ "<BEGIN>\n## `set_default_proxy`", "set_default_proxy(proxy_type, addr[, port[, rdns[, username, password]]])", " Sets a default proxy which all further socksocket objects will use,\n unless explicitly changed. All parameters are as for socket.set_proxy().\n<END>", "<BEGIN>\n## `create_connection`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updatePSL API. 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 updatePSL API. 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...
Updates a local copy of PSL file :param psl_file: path for the file to store the list. Default: PSLFILE
"Updates a local copy of PSL file\n\n :param psl_file: path for the file to store the list. Default: PSLFILE"
41
false
JinnLynn/genpac
updatePSL
7,282
LDU_FT/campbellr/smashrun-client/fetch_token
LDU_FT
[ "<BEGIN>\n## `to_timestamp`", "Convert a datetime object to a unix timestamp.", " Note that unlike a typical unix timestamp, this is seconds since 1970\n *local time*, not UTC.", " If the passed in object is already a timestamp, then that value is\n simply returned unmodified.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_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 extra...
Fetch a new token using the supplied code. :param str code: A previously obtained auth code.
"Fetch a new token using the supplied code.\n\n :param str code: A previously obtained auth code."
41
false
campbellr/smashrun-client
fetch_token
7,283
LDU_FT/nyaruka/smartmin/get_form_kwargs
LDU_FT
[ "<BEGIN>\n## `_read_requirements`", "Parses a file for pip installation requirements.\n<END>", "<BEGIN>\n## `get_list_class`", "Returns the class to use for the passed in list. We just build something up\n from the object type for the list.\n<END>", "<BEGIN>\n## `format_datetime`", "Formats a date, co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
We override this, using only those fields specified if they are specified. Otherwise we include all fields in a standard ModelForm.
"We override this, using only those fields specified if they are specified.\n\n Otherwise we include all fields in a standard ModelForm."
118
false
nyaruka/smartmin
get_form_kwargs
7,284
LDU_FT/idlesign/django-sitecats/get_child_ids
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_child_ids API. 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_child_ids API. 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 child IDs of the given parent category :param str parent_alias: Parent category alias :rtype: list :return: a list of child IDs
"Returns child IDs of the given parent category\n\n :param str parent_alias: Parent category alias\n :rtype: list\n :return: a list of child IDs"
73
false
idlesign/django-sitecats
get_child_ids
7,285
LDU_FT/robgolding/django-radius/authenticate
LDU_FT
[ "<BEGIN>\n## `_get_auth_packet`", "Get the pyrad authentication packet for the username/password and the\n given pyrad client.\n<END>", "<BEGIN>\n## `_get_client`", "Get the pyrad client for a given server. RADIUS server is described by\n a 3-tuple: (<hostname>, <port>, <secret>).\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate API. 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 authenticate API. 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...
Check credentials against the RADIUS server identified by `realm` and return a User object or None. If no argument is supplied, Django will skip this backend and try the next one (as a TypeError will be raised and caught).
"Check credentials against the RADIUS server identified by `realm` and\n return a User object or None. If no argument is supplied, Django will\n skip this backend and try the next one (as a TypeError will be raised\n and caught)."
14
false
robgolding/django-radius
authenticate
7,286
LDU_FT/ND-CSE-30151/tock/only_path
LDU_FT
[ "<BEGIN>\n## `match`", "Returns true iff self (as a pattern) matches other (as a\n configuration). Note that this is asymmetric: other is allowed\n to have symbols that aren't found in self.\n<END>", "<BEGIN>\n## `has_cell`", "Tests whether store `s` is a cell, that is, it uses exactly one\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the only_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the only_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Finds the only path from the start node. If there is more than one, raises ValueError.
"Finds the only path from the start node. If there is more than one,\n raises ValueError."
38
false
ND-CSE-30151/tock
only_path
7,287
LDU_FT/danilobellini/audiolazy/lpc
LDU_FT
[ "<BEGIN>\n## `deprecate`", "A deprecation warning emmiter as a decorator.\n<END>", "<BEGIN>\n## `get_module_names`", "All names in the package directory that matches the given glob, without\n their extension. Repeated names should appear only once.\n<END>", "<BEGIN>\n## `get_modules`", "List of module ob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lpc API. 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 lpc API. 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...
Find the Linear Predictive Coding (LPC) coefficients as a ZFilter object, the analysis whitening filter. This implementation uses the autocorrelation method, using numpy.linalg.pinv as a linear system solver. Parameters ---------- blk : An iterable with well-defined length. Don't use this function with S...
"Find the Linear Predictive Coding (LPC) coefficients as a ZFilter object,\n the analysis whitening filter. This implementation uses the autocorrelation\n method, using numpy.linalg.pinv as a linear system solver.\n\n Parameters\n ----------\n blk :\n An iterable with well-defined length. Don't use this functio...
578
false
danilobellini/audiolazy
lpc
7,288
LDU_FT/ARMmbed/icetea/assertDutTraceDoesNotContain
LDU_FT
[ "<BEGIN>\n## `init_process_dut`", "Initialize process type Dut as DutProcess or DutConsole.\n<END>", "<BEGIN>\n## `allocate`", "Allocates resources from available local devices.", " :param dut_configuration_list: List of ResourceRequirements objects\n :param args: Not used\n :return: Al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assertDutTraceDoesNotContain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assertDutTraceDoesNotContain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Raise TestStepFail if bench.verify_trace does not find message from dut traces. :param dut: Dut object. :param message: Message to look for. :param: Bench, must contain verify_trace method. :raises: AttributeError if bench does not contain verify_trace method. TestStepFail if verify_trace returns T...
"Raise TestStepFail if bench.verify_trace does not find message from dut traces.\n\n :param dut: Dut object.\n :param message: Message to look for.\n :param: Bench, must contain verify_trace method.\n :raises: AttributeError if bench does not contain verify_trace method.\n TestStepFail if verify_trace re...
663
false
ARMmbed/icetea
assertDutTraceDoesNotContain
7,289
LDU_FT/KujiraProject/Flask-PAM/auth_required
LDU_FT
[ "<BEGIN>\n## `authenticate`", "Performs authentication using simplepam", " This function calls simplepam's authenticate function and returns\n status of authentication using PAM and token object (of type\n self.token_type)", " :param username: username in Linux", " :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_required API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_required API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Decorator which checks if user is authenticated Decorator for Flask's view which blocks not authenticated requests :param view: Flask's view function
"Decorator which checks if user is authenticated\n \n Decorator for Flask's view which blocks not authenticated requests\n\n :param view: Flask's view function"
25
false
KujiraProject/Flask-PAM
auth_required
7,290
LDU_FT/dstanek/snake-guice/install
LDU_FT
[ "<BEGIN>\n## `create_child`", "Create a new injector that inherits the state from this injector.", " All bindings are inherited. In the future this may become closer to\n child injectors on google-guice.\n<END>", "<BEGIN>\n## `_validate_func_args`", "Validate decorator args when used to decora...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install API. 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 install API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Add another module's bindings to a binder.
"Add another module's bindings to a binder."
11
false
dstanek/snake-guice
install
7,291
LDU_FT/globus/globus-cli/create_command
LDU_FT
[ "<BEGIN>\n## `role_show`", "Executor for `globus endpoint role show`\n<END>", "<BEGIN>\n## `outformat_is_json`", "Only safe to call within a click context.\n<END>", "<BEGIN>\n## `outformat_is_unix`", "Only safe to call within a click context.\n<END>", "<BEGIN>\n## `outformat_is_text`", "Only safe to c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Executor for `globus endpoint permission create`
"Executor for `globus endpoint permission create`"
186
false
globus/globus-cli
create_command
7,292
LDU_FT/willkg/everett/parse_env_file
LDU_FT
[ "<BEGIN>\n## `parse_yaml_file`", "Parse yaml file at ``path`` and return a dict.\n<END>", "<BEGIN>\n## `import_class`", "Given a clspath, returns the class.", " Note: This is a really simplistic implementation.\n<END>", "<BEGIN>\n## `upper_lower_none`", "Validate arg value as \"upper\", \"lower\", or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_env_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_env_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 ex...
Parse the content of an iterable of lines as ``.env``. Return a dict of config variables. >>> parse_env_file(['DUDE=Abides']) {'DUDE': 'Abides'}
"Parse the content of an iterable of lines as ``.env``.\n\n Return a dict of config variables.\n\n >>> parse_env_file(['DUDE=Abides'])\n {'DUDE': 'Abides'}"
63
false
willkg/everett
parse_env_file
7,293
LDU_FT/anomaly/prestans/body_template
LDU_FT
[ "<BEGIN>\n## `_setup_serializers`", "Auto set the return serializer based on Accept headers\n http://docs.webob.org/en/latest/reference.html#header-getters", " Intersection of requested types and supported types tells us if we\n can in fact respond in one of the request formats\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the body_template API. 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 body_template API. 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...
Must be an instance of a prestans.types.DataCollection subclass; this is generally set during the RequestHandler lifecycle. Setting this spwans the parsing process of the body. If the HTTP verb is GET an AssertionError is thrown. Use with extreme caution.
"Must be an instance of a prestans.types.DataCollection subclass; this is\n generally set during the RequestHandler lifecycle. Setting this spwans the\n parsing process of the body. If the HTTP verb is GET an AssertionError is\n thrown. Use with extreme caution."
99
false
anomaly/prestans
body_template
7,294
LDU_FT/rfosterslo/wagtailplus/post
LDU_FT
[ "<BEGIN>\n## `add_panel_to_edit_handler`", "Adds specified panel class to model class.", " :param model: the model class.\n :param panel_cls: the panel class.\n :param heading: the panel heading.\n :param index: the index position to insert at.\n<END>", "<BEGIN>\n## `get_context_data`", "Returns...
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...
Returns POST response. :param request: the request instance. :rtype: django.http.HttpResponse.
"Returns POST response.\n\n :param request: the request instance.\n :rtype: django.http.HttpResponse."
128
false
rfosterslo/wagtailplus
post
7,295
LDU_FT/michaelaye/pyciss/get_between_times
LDU_FT
[ "<BEGIN>\n## `get_config`", "Read the configfile and return config dict.", " Returns\n -------\n dict\n Dictionary with the content of the configpath file.\n<END>", "<BEGIN>\n## `set_database_path`", "Use to write the database path into the config.", " Parameters\n ----------\n db...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_between_times API. 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_between_times API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Query for OPUS data between times t1 and t2. Parameters ---------- t1, t2 : datetime.datetime, strings Start and end time for the query. If type is datetime, will be converted to isoformat string. If type is string already, it needs to be in an accepted inter...
"Query for OPUS data between times t1 and t2.\n\n Parameters\n ----------\n t1, t2 : datetime.datetime, strings\n Start and end time for the query. If type is datetime, will be\n converted to isoformat string. If type is string already, it needs\n to be in an accept...
83
false
michaelaye/pyciss
get_between_times
7,296
LDU_FT/adafruit/Adafruit_Blinka/iteritems
LDU_FT
[ "<BEGIN>\n## `scan`", "Try to read a byte from each address, if you get an OSError it means the device isnt there\n<END>", "<BEGIN>\n## `final`", "In case the program is cancelled or quit, we need to clean up the PulseIn\n helper process and also the message queue, this is called at exit to do so\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iteritems API. 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 iteritems API. 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...
Inspects attributes of the class for instances of the class and returns as key,value pairs mirroring dict#iteritems
"Inspects attributes of the class for instances of the class\n and returns as key,value pairs mirroring dict#iteritems"
14
false
adafruit/Adafruit_Blinka
iteritems
7,297
LDU_FT/XuShaohua/bcloud/update_share_image
LDU_FT
[ "<BEGIN>\n## `display_files`", "重新格式化一下文件列表, 去除不需要的信息", " 这一操作主要是为了便于接下来的查找工作.\n 文件的path都被提取出来, 然后放到了一个list中.\n<END>", "<BEGIN>\n## `init_db`", "这个任务数据库只在程序开始时读入, 在程序关闭时导出.", " 因为Gtk没有像在Qt中那么方便的使用SQLite, 而必须将所有数据读入一个\n liststore中才行.\n<END>", "<BEGIN>\n## `get_task_db`", "从数...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_share_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_share_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
下载文件缩略图, 并将它显示到liststore里. 需要同时更新两列里的图片, 用不同的缩放尺寸. pcs_files - 里面包含了几个必要的字段. dir_name - 缓存目录, 下载到的图片会保存这个目录里.
"下载文件缩略图, 并将它显示到liststore里.\n\n 需要同时更新两列里的图片, 用不同的缩放尺寸.\n pcs_files - 里面包含了几个必要的字段.\n dir_name - 缓存目录, 下载到的图片会保存这个目录里."
199
false
XuShaohua/bcloud
update_share_image
7,298
LDU_FT/jldantas/libmft/get_file_size
LDU_FT
[ "<BEGIN>\n## `apply_fixup_array`", "This function reads the fixup array and apply the correct values\n to the underlying binary stream. This function changes the bin_view\n in memory.", " Args:\n bin_view (memoryview of bytearray) - The binary stream\n fx_offset (int) - Offset to the fixu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_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 ext...
Returns the size, in bytes, of a file. Expects an object that supports seek and tell methods. Args: file_object (file_object) - The object that represents the file Returns: (int): size of the file, in bytes
"Returns the size, in bytes, of a file. Expects an object that supports\n seek and tell methods.\n\n Args:\n file_object (file_object) - The object that represents the file\n\n Returns:\n (int): size of the file, in bytes"
107
false
jldantas/libmft
get_file_size
7,299
LDU_FT/helium/helium-python/create
LDU_FT
[ "<BEGIN>\n## `error_for`", "Return the appropriate initialized exception class for a response.\n<END>", "<BEGIN>\n## `device_configuration`", "Get a specific device configuration.", " A device can have at most one loaded and one pending device\n configuration. This returns that device_configur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create a resource of the resource. This should only be called from sub-classes Args: session(Session): The session to create the resource in. attributes(dict): Any attributes that are valid for the given resource type. relationships(dict): Any relationshi...
"Create a resource of the resource.\n\n This should only be called from sub-classes\n\n Args:\n\n session(Session): The session to create the resource in.\n\n attributes(dict): Any attributes that are valid for the\n given resource type.\n\n relationships(dict): Any...
223
false
helium/helium-python
create
7,300
LDU_FT/polysquare/polysquare-generic-file-linter/create
LDU_FT
[ "<BEGIN>\n## `create`", "Create a Dictionary at spellchecker_cache_path with technical words.\n<END>", "<BEGIN>\n## `_comment_type_from_line`", "Return the \"comment header\" (' * ', '# ', 'rem ', '// ', '/* ').", " This header goes before the content of a start of the\n line in a replacement.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create a Dictionary at spellchecker_cache_path with technical words.
"Create a Dictionary at spellchecker_cache_path with technical words."
143
false
polysquare/polysquare-generic-file-linter
create
7,301
LDU_FT/ziwenxie/netease-dl/download_person_playlists
LDU_FT
[ "<BEGIN>\n## `download_song_by_search`", "Download a song by its name.", " :params song_name: song name.\n<END>", "<BEGIN>\n## `download_song_by_id`", "Download a song by id and save it to disk.", " :params song_id: song id.\n :params song_name: song name.\n :params folder: sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_person_playlists 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 download_person_playlists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Download person playlist including private playlist. note: login required.
"Download person playlist including private playlist.\n\n note: login required."
99
false
ziwenxie/netease-dl
download_person_playlists
7,302
LDU_FT/cnelson/python-fleet/set_unit_desired_state
LDU_FT
[ "<BEGIN>\n## `_set_options_from_file`", "Parses a unit file and updates self._data['options']", " Args:\n file_handle (file): a file-like object (supporting read()) containing a unit", " Returns:\n True: The file was successfuly parsed and options were updated", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_unit_desired_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_unit_desired_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Update the desired state of a unit running in the cluster Args: unit (str, Unit): The Unit, or name of the unit to update desired_state: State the user wishes the Unit to be in ("inactive", "loaded", or "launched") Returns: Unit: The unit t...
"Update the desired state of a unit running in the cluster\n\n Args:\n unit (str, Unit): The Unit, or name of the unit to update\n\n desired_state: State the user wishes the Unit to be in\n (\"inactive\", \"loaded\", or \"launched\")\n Returns:\n U...
89
false
cnelson/python-fleet
set_unit_desired_state
7,303
LDU_FT/census-instrumentation/opencensus-python/get_span_datas
LDU_FT
[ "<BEGIN>\n## `get_node`", "Generates Node message from params and system information.\n<END>", "<BEGIN>\n## `proto_ts_from_datetime_str`", "Converts string datetime in ISO format to protobuf timestamp.\n :type dt: str\n :param dt: string with datetime in ISO format\n :rtype: :class:`~google.protobuf....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_span_datas API. 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_span_datas API. 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...
Extracts a list of SpanData tuples from a span :rtype: list of opencensus.trace.span_data.SpanData :return list of SpanData tuples
"Extracts a list of SpanData tuples from a span\n\n :rtype: list of opencensus.trace.span_data.SpanData\n :return list of SpanData tuples"
528
false
census-instrumentation/opencensus-python
get_span_datas
7,304
LDU_FT/barrust/mediawiki/timeout
LDU_FT
[ "<BEGIN>\n## `timeout`", "Set request timeout in seconds (or fractions of a second)\n<END>", "<BEGIN>\n## `language`", "Set the language to use; attempts to change the API URL\n<END>", "<BEGIN>\n## `login`", "Login as specified user", " Args:\n username (str): The username to l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeout API. 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 timeout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Set request timeout in seconds (or fractions of a second)
"Set request timeout in seconds (or fractions of a second)"
107
false
barrust/mediawiki
timeout
7,305
LDU_FT/celery/cell/cast
LDU_FT
[ "<BEGIN>\n## `main`", "Implement the actor main loop by waiting forever for messages.\n<END>", "<BEGIN>\n## `send`", "Call method on agent listening to ``routing_key``.", " See :meth:`call_or_cast` for a full list of supported\n arguments.", " If the keyword argument `nowait` is false...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cast API. 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 cast API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Send message to actor. Discarding replies.
"Send message to actor. Discarding replies."
82
false
celery/cell
cast
7,306
LDU_FT/budacom/trading-bots/fetch_withdrawals_since
LDU_FT
[ "<BEGIN>\n## `fetch_deposits`", "Fetch latest deposits, must provide a limit.\n<END>", "<BEGIN>\n## `fetch_deposits_since`", "Fetch all deposits since the given timestamp.\n<END>", "<BEGIN>\n## `fetch_withdrawals`", "Fetch latest withdrawals, must provide a limit.\n<END>", "<BEGIN>\n## `fetch_withdrawal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_withdrawals_since 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 fetch_withdrawals_since API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Fetch all withdrawals since the given timestamp.
"Fetch all withdrawals since the given timestamp."
62
false
budacom/trading-bots
fetch_withdrawals_since
7,307
LDU_FT/hammerlab/stanity/sumlogs
LDU_FT
[ "<BEGIN>\n## `psisloo`", "r\"\"\"PSIS leave-one-out log predictive densities.", " Computes the log predictive densities given posterior samples of the log\n likelihood terms :math:`p(y_i|\\theta^s)` in input parameter `log_lik`.\n Returns a sum of the leave-one-out log predictive densities `loo`,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sumlogs API. 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 sumlogs API. 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...
Sum of vector where numbers are represented by their logarithms. Calculates ``np.log(np.sum(np.exp(x), axis=axis))`` in such a fashion that it works even when elements have large magnitude.
"Sum of vector where numbers are represented by their logarithms.\n\n Calculates ``np.log(np.sum(np.exp(x), axis=axis))`` in such a fashion that\n it works even when elements have large magnitude."
46
false
hammerlab/stanity
sumlogs
7,308
LDU_FT/workhorsy/py-cpuinfo/_get_cpu_info_from_ibm_pa_features
LDU_FT
[ "<BEGIN>\n## `_actual_get_cpu_info_from_cpuid`", "Warning! This function has the potential to crash the Python runtime.\n\tDo not call it directly. Use the _get_cpu_info_from_cpuid function instead.\n\tIt will safely call this function in another process.\n<END>", "<BEGIN>\n## `_get_cpu_info_from_cpuid`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cpu_info_from_ibm_pa_features 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 _get_cpu_info_from_ibm_pa_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Returns the CPU info gathered from lsprop /proc/device-tree/cpus/*/ibm,pa-features Returns {} if lsprop is not found or ibm,pa-features does not have the desired info.
"Returns the CPU info gathered from lsprop /proc/device-tree/cpus/*/ibm,pa-features\n\tReturns {} if lsprop is not found or ibm,pa-features does not have the desired info."
34
false
workhorsy/py-cpuinfo
_get_cpu_info_from_ibm_pa_features
7,309
LDU_FT/mickybart/python-atlasbroker/getApi
LDU_FT
[ "<BEGIN>\n## `provision`", "Provision the new instance", " see openbrokerapi documentation", " Returns:\n ProvisionedServiceSpec\n<END>", "<BEGIN>\n## `unbind`", "Unbinding the instance", " see openbrokerapi documentation", " Raises:\n ErrBindingDoesNo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getApi API. 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 getApi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Get Api for /health Returns: Blueprint: section for healt check
"Get Api for /health\n \n Returns:\n Blueprint: section for healt check"
93
false
mickybart/python-atlasbroker
getApi
7,310
LDU_FT/hsolbrig/PyShEx/matchesCardinality
LDU_FT
[ "<BEGIN>\n## `conforms`", "`5.6.1 Schema Validation Requirement <http://shex.io/shex-semantics/#validation-requirement>`_", " A graph G is said to conform with a schema S with a ShapeMap m when:", " Every, SemAct in the startActs of S has a successful evaluation of semActsSatisfied.\n Every node n in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the matchesCardinality 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 matchesCardinality 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...
Evaluate cardinality expression expr has a cardinality of min and/or max not equal to 1, where a max of -1 is treated as unbounded, and T can be partitioned into k subsets T1, T2,…Tk such that min ≤ k ≤ max and for each Tn, matches(Tn, expr, m) by the remaining rules in this list.
"Evaluate cardinality expression\n\n expr has a cardinality of min and/or max not equal to 1, where a max of -1 is treated as unbounded, and\n T can be partitioned into k subsets T1, T2,…Tk such that min ≤ k ≤ max and for each Tn,\n matches(Tn, expr, m) by the remaining rules in this list."
234
false
hsolbrig/PyShEx
matchesCardinality
7,311
LDU_FT/pikepdf/pikepdf/_extract_to_stream
LDU_FT
[ "<BEGIN>\n## `encode_pdf_date`", "Encode Python datetime object as PDF date string", " From Adobe pdfmark manual:\n (D:YYYYMMDDHHmmSSOHH'mm')\n D: is an optional prefix. YYYY is the year. All fields after the year are\n optional. MM is the month (01-12), DD is the day (01-31), HH is the\n hour (0...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_to_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_to_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. Th...
Attempt to extract the image directly to a usable image file If possible, the compressed data is extracted and inserted into a compressed image file format without transcoding the compressed content. If this is not possible, the data will be decompressed and extracted to an appropriate ...
"Attempt to extract the image directly to a usable image file\n\n If possible, the compressed data is extracted and inserted into\n a compressed image file format without transcoding the compressed\n content. If this is not possible, the data will be decompressed\n and extracted to an approp...
104
false
pikepdf/pikepdf
_extract_to_stream
7,312
LDU_FT/goerz/clusterjob/run_epilogue
LDU_FT
[ "<BEGIN>\n## `resource_headers`", "Given a :class:`~clusterjob.JobScript` instance, return a list of\n lines that encode the resource requirements, to be added at the top of\n the rendered job script\n<END>", "<BEGIN>\n## `replace_body_vars`", "Given a multiline string that is the body of the jo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_epilogue API. 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 run_epilogue API. 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...
Run the epilogue script in the current working directory. raises: subprocess.CalledProcessError: if the script does not finish with exit code zero.
"Run the epilogue script in the current working directory.\n\n raises:\n subprocess.CalledProcessError: if the script does not finish with\n exit code zero."
69
false
goerz/clusterjob
run_epilogue
7,313
LDU_FT/Nekroze/partpy/set_string
LDU_FT
[ "<BEGIN>\n## `pretty_print`", "Print the previous and current line with line numbers and\n a carret under the current character position.", " Will also print a message if one is given to this exception.\n<END>", "<BEGIN>\n## `parse`", "Run the parser over the entire sourestring and return the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_string API. 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 set_string API. 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 the working string and its length then reset positions.
"Set the working string and its length then reset positions."
80
false
Nekroze/partpy
set_string
7,314
LDU_FT/mmcauliffe/Conch-sounds/generate_distance_matrix
LDU_FT
[ "<BEGIN>\n## `lpc_ref`", "Compute the Linear Prediction Coefficients.", " Return the order + 1 LPC coefficients for the signal. c = lpc(x, k) will\n find the k+1 coefficients of a k order linear filter:", " xp[n] = -c[1] * x[n-2] - ... - c[k-1] * x[n-k-1]", " Such as the sum of the squared-err...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_distance_matrix 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 generate_distance_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Generates a local distance matrix for use in dynamic time warping. Parameters ---------- source : 2D array Source matrix with features in the second dimension. target : 2D array Target matrix with features in the second dimension. Returns ------- 2D array Local dist...
"Generates a local distance matrix for use in dynamic time warping.\n\n Parameters\n ----------\n source : 2D array\n Source matrix with features in the second dimension.\n target : 2D array\n Target matrix with features in the second dimension.\n\n Returns\n -------\n 2D array\n ...
63
false
mmcauliffe/Conch-sounds
generate_distance_matrix
7,315
LDU_FT/digidotcom/python-wvalib/get_subscriptions
LDU_FT
[ "<BEGIN>\n## `emit_event`", "Emit the specified event (notify listeners)\n<END>", "<BEGIN>\n## `enable`", "Enable the stream thread", " This operation will ensure that the thread that is responsible\n for connecting to the WVA and triggering event callbacks is started.\n This thread wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subscriptions API. 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_subscriptions API. 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 a list of subscriptions currently active for this WVA device :raises WVAError: if there is a problem getting the subscription list from the WVA :returns: A list of :class:`WVASubscription` instances
"Return a list of subscriptions currently active for this WVA device\n\n :raises WVAError: if there is a problem getting the subscription list from the WVA\n :returns: A list of :class:`WVASubscription` instances"
103
false
digidotcom/python-wvalib
get_subscriptions
7,316
LDU_FT/bitesofcode/projexui/accept
LDU_FT
[ "<BEGIN>\n## `addEntry`", "Creates a new entry item for this widget.\r", " :param key | <str>\r\n value | <variant>\n<END>", "<BEGIN>\n## `dictionary`", "Returns a dictionary of the key/value pairing for the items in\r\n this widget.\r", " :return {<s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accept API. 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 accept API. 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 ...
Prompts the user for the filepath to save and then saves the image.
"Prompts the user for the filepath to save and then saves the image."
4,917
true
bitesofcode/projexui
accept
7,317
LDU_FT/coagulant/cleanweb/request
LDU_FT
[ "<BEGIN>\n## `request`", "Error handling in requests\n http://api.yandex.ru/cleanweb/doc/dg/concepts/error-codes.xml\n<END>", "<BEGIN>\n## `check_spam`", "http://api.yandex.ru/cleanweb/doc/dg/concepts/check-spam.xml\n subject_type = plain|html|bbcode\n body_type = plain|html|b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Error handling in requests http://api.yandex.ru/cleanweb/doc/dg/concepts/error-codes.xml
"Error handling in requests\n http://api.yandex.ru/cleanweb/doc/dg/concepts/error-codes.xml"
10
false
coagulant/cleanweb
request
7,318
LDU_FT/MechanicalSoup/MechanicalSoup/submit_selected
LDU_FT
[ "<BEGIN>\n## `new_control`", "Call :func:`Form.new_control` on the currently selected form.\n<END>", "<BEGIN>\n## `open`", "Open the URL and store the Browser's state in this object.\n All arguments are forwarded to :func:`Browser.get`.", " :return: Forwarded from :func:`Browser.get`.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit_selected API. 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 submit_selected API. 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...
Submit the form that was selected with :func:`select_form`. :return: Forwarded from :func:`Browser.submit`. If there are multiple submit input/button elements, passes ``btnName`` to :func:`Form.choose_submit` on the current form to choose between them. If `update_state` is False, form ...
"Submit the form that was selected with :func:`select_form`.\n\n :return: Forwarded from :func:`Browser.submit`.\n\n If there are multiple submit input/button elements, passes ``btnName``\n to :func:`Form.choose_submit` on the current form to choose between\n them. If `update_state` is False...
119
false
MechanicalSoup/MechanicalSoup
submit_selected
7,319
LDU_FT/cloudsmith-io/cloudsmith-cli/get_query_kwargs
LDU_FT
[ "<BEGIN>\n## `convert`", "Take a path with $HOME variables and resolve it to full path.\n<END>", "<BEGIN>\n## `make_user_agent`", "Get a suitable user agent for identifying the CLI process.\n<END>", "<BEGIN>\n## `pretty_print_list_info`", "Pretty print list info, with pagination, for user display.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_query_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_query_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Construct page and page size kwargs (if present).
"Construct page and page size kwargs (if present)."
214
false
cloudsmith-io/cloudsmith-cli
get_query_kwargs
7,320
LDU_FT/annayqho/TheCannon/_find_cont_fitfunc_regions
LDU_FT
[ "<BEGIN>\n## `gen_cannon_grad_spec`", "Generate Cannon gradient spectra", " Parameters\n ----------\n labels: default values for [teff, logg, feh, cfe, nfe, afe, ak]\n choose: val of cfe or nfe, whatever you're varying\n low: lowest val of cfe or nfe, whatever you're varying\n high: highest va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_cont_fitfunc_regions 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 _find_cont_fitfunc_regions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Run fit_cont, dealing with spectrum in regions or chunks This is useful if a spectrum has gaps. Parameters ---------- fluxes: ndarray of shape (nstars, npixels) training set or test set pixel intensities ivars: numpy ndarray of shape (nstars, npixels) inverse variances, parallel t...
"Run fit_cont, dealing with spectrum in regions or chunks\n\n This is useful if a spectrum has gaps.\n\n Parameters\n ----------\n fluxes: ndarray of shape (nstars, npixels)\n training set or test set pixel intensities\n\n ivars: numpy ndarray of shape (nstars, npixels)\n inverse variances,...
188
false
annayqho/TheCannon
_find_cont_fitfunc_regions
7,321
LDU_FT/benhoff/vexbot/to_address
LDU_FT
[ "<BEGIN>\n## `main`", "`kwargs`:", " `configuration_filepath`: filepath for the `ini` configuration\n<END>", "<BEGIN>\n## `get_addresses`", "parses a raw list from zmq to get back the components that are the address\n messages are broken by the addresses in the beginning and then the\n message,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
transforms the ports into addresses. Will fall through if the port looks like an address
"transforms the ports into addresses.\n Will fall through if the port looks like an address"
68
false
benhoff/vexbot
to_address
7,322
LDU_FT/raghakot/keras-vis/overlay
LDU_FT
[ "<BEGIN>\n## `visualize_activation_with_losses`", "Generates the `input_tensor` that minimizes the weighted `losses`. This function is intended for advanced\n use cases where a custom loss is desired.", " Args:\n input_tensor: An input tensor of shape: `(samples, channels, image_dims...)` if `image...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overlay API. 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 overlay API. 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...
Overlays `array1` onto `array2` with `alpha` blending. Args: array1: The first numpy array. array2: The second numpy array. alpha: The alpha value of `array1` as overlayed onto `array2`. This value needs to be between [0, 1], with 0 being `array2` only to 1 being `array1` only (...
"Overlays `array1` onto `array2` with `alpha` blending.\n\n Args:\n array1: The first numpy array.\n array2: The second numpy array.\n alpha: The alpha value of `array1` as overlayed onto `array2`. This value needs to be between [0, 1],\n with 0 being `array2` only to 1 being `array1`...
138
false
raghakot/keras-vis
overlay
7,323
LDU_FT/LasLabs/python-helpscout/create
LDU_FT
[ "<BEGIN>\n## `create`", "Create an object on HelpScout.", " Args:\n session (requests.sessions.Session): Authenticated session.\n record (helpscout.BaseModel): The record to be created.\n endpoint_override (str, optional): Override the default\n endpoint us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create a web hook. Note that creating a new web hook will overwrite the web hook that is already configured for this company. There is also no way to programmatically determine if a web hook already exists for the company. This is a limitation of the HelpScout API and cannot be ...
"Create a web hook.\n\n Note that creating a new web hook will overwrite the web hook that is\n already configured for this company. There is also no way to\n programmatically determine if a web hook already exists for the\n company. This is a limitation of the HelpScout API and cannot be\n ...
178
false
LasLabs/python-helpscout
create
7,324
LDU_FT/BYU-Hydroinformatics/HydroErr/maape
LDU_FT
[ "<BEGIN>\n## `me`", "Compute the mean error of the simulated and observed data.", " .. image:: /pictures/ME.png", " **Range:** -inf < MAE < inf, data units, closer to zero is better, indicates bias.", " **Notes:** The mean error (ME) measures the difference between the simulated data and the\n o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maape API. 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 maape API. 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...
Compute the the Mean Arctangent Absolute Percentage Error (MAAPE). .. image:: /pictures/MAAPE.png **Range:** 0 ≤ MAAPE < π/2, does not indicate bias, smaller is better. **Notes:** Represents the mean absolute error as a percentage of the observed values. Handles 0s in the observed data. This metric i...
"Compute the the Mean Arctangent Absolute Percentage Error (MAAPE).\n\n .. image:: /pictures/MAAPE.png\n\n **Range:** 0 ≤ MAAPE < π/2, does not indicate bias, smaller is better.\n\n **Notes:** Represents the mean absolute error as a percentage of the observed values. Handles\n 0s in the observed data. This ...
343
false
BYU-Hydroinformatics/HydroErr
maape
7,325
LDU_FT/LCAV/pylocus/get_lateration_parameters
LDU_FT
[ "<BEGIN>\n## `optspace`", "Complete and denoise EDM using OptSpace algorithm.", " Uses OptSpace algorithm to complete and denoise EDM. The problem being solved is\n X,S,Y = argmin_(X,S,Y) || W ° (D - XSY') ||_F^2", " :param edm_missing: EDM with 0 where no measurement was taken.\n :param rank: exp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lateration_parameters 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 get_lateration_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Get parameters relevant for lateration from full all_points, edm and W.
"Get parameters relevant for lateration from full all_points, edm and W."
130
false
LCAV/pylocus
get_lateration_parameters
7,326
LDU_FT/riga/tfdeploy/ExpandDims
LDU_FT
[ "<BEGIN>\n## `setup`", "Sets up global variables (currently only the tensorflow version) to adapt to peculiarities of\n different tensorflow versions. This function should only be called before :py:class:`Model`\n creation, not for evaluation. Therefore, the tensorflow module *tf* must be passed:", " ....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ExpandDims API. 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 ExpandDims API. 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...
Expand dim op, i.e. add singular axis at dim.
"Expand dim op, i.e. add singular axis at dim."
43
false
riga/tfdeploy
ExpandDims
7,327
LDU_FT/cloudtools/troposphere/depends_on_helper
LDU_FT
[ "<BEGIN>\n## `main`", "Create a ElastiCache Redis Node and EC2 Instance\n<END>", "<BEGIN>\n## `validate_backup_window`", "Validate PreferredBackupWindow for DBInstance\n<END>", "<BEGIN>\n## `validate_maintenance_window`", "Validate PreferredMaintenanceWindow for DBInstance\n<END>", "<BEGIN>\n## `validat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the depends_on_helper API. 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 depends_on_helper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Handles using .title if the given object is a troposphere resource. If the given object is a troposphere resource, use the `.title` attribute of that resource. If it's a string, just use the string. This should allow more pythonic use of DependsOn.
"Handles using .title if the given object is a troposphere resource.\n\n If the given object is a troposphere resource, use the `.title` attribute\n of that resource. If it's a string, just use the string. This should allow\n more pythonic use of DependsOn."
74
false
cloudtools/troposphere
depends_on_helper
7,328
LDU_FT/ewiger/mlab/unescape
LDU_FT
[ "<BEGIN>\n## `saveVarsInMat`", "Hacky convinience function to dump a couple of python variables in a\n .mat file. See `awmstools.saveVars`.\n<END>", "<BEGIN>\n## `_make_proxy`", "Creates a proxy for a variable.", " XXX create and cache nested proxies also here.\n<END>", "<BEGIN>\n## `_do`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unescape API. 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 unescape API. 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...
r"""Inverse of `escape`. >>> unescape(r'\x41\n\x42\n\x43') 'A\nB\nC' >>> unescape(r'\u86c7') u'\u86c7' >>> unescape(u'ah') u'ah'
"r\"\"\"Inverse of `escape`.\n >>> unescape(r'\\x41\\n\\x42\\n\\x43')\n 'A\\nB\\nC'\n >>> unescape(r'\\u86c7')\n u'\\u86c7'\n >>> unescape(u'ah')\n u'ah'"
247
false
ewiger/mlab
unescape
7,329
LDU_FT/tuomas2/automate/change_digital
LDU_FT
[ "<BEGIN>\n## `call_eval`", "Value might be either name registered in System namespace, or object, either\n StatusObject or Callable. If Callable, evaluate :meth:`.call` method. If StatusObject,\n return status.\n<END>", "<BEGIN>\n## `setup_callable_system`", "This function basically sets...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_digital API. 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 change_digital API. 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...
Change digital Pin value (boolean). Also PWM supported(float)
"Change digital Pin value (boolean). Also PWM supported(float)"
91
false
tuomas2/automate
change_digital
7,330
LDU_FT/blockstack/pybitcoin/make_op_return_tx
LDU_FT
[ "<BEGIN>\n## `random_passphrase_from_wordlist`", "An extremely entropy efficient passphrase generator.", " This function:\n -Pulls entropy from the safer alternative to /dev/urandom: /dev/random\n -Doesn't rely on random.seed (words are selected right from the entropy)\n -Only requir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_op_return_tx API. 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 make_op_return_tx API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Builds and signs an OP_RETURN transaction.
"Builds and signs an OP_RETURN transaction."
79
false
blockstack/pybitcoin
make_op_return_tx
7,331
LDU_FT/classam/silly/lastname
LDU_FT
[ "<BEGIN>\n## `_slugify`", "This is not as good as a proper slugification function, but the input space is limited", " >>> _slugify(\"beets\")\n 'beets'\n >>> _slugify(\"Toaster Strudel\")\n 'toaster-strudel'", " Here's why: It handles very little. It doesn't handle esoteric whitespace or symbol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lastname API. 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 lastname API. 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 a first name! >>> mock_random.seed(0) >>> lastname(random=mock_random) 'chimp' >>> mock_random.seed(1) >>> lastname(random=mock_random, capitalize=True) 'Wonderful' >>> mock_random.seed(2) >>> lastname(random=mock_random, slugify=True) 'poopbritches' >>> [lastname(random...
"Return a first name!\n\n >>> mock_random.seed(0)\n >>> lastname(random=mock_random)\n 'chimp'\n >>> mock_random.seed(1)\n >>> lastname(random=mock_random, capitalize=True)\n 'Wonderful'\n >>> mock_random.seed(2)\n >>> lastname(random=mock_random, slugify=True)\n 'poopbritches'\n\n >>> [la...
80
false
classam/silly
lastname
7,332
LDU_FT/projecthamster/hamster/update
LDU_FT
[ "<BEGIN>\n## `set_start_time`", "set the start time. when start time is set, drop down list\n will start from start time and duration will be displayed in\n brackets\n<END>", "<BEGIN>\n## `parse_fact`", "tries to extract fact fields from the string\n the optional arguments in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update tween with the time since the last frame
"Update tween with the time since the last frame"
249
false
projecthamster/hamster
update
7,333
LDU_FT/ranaroussi/pywallet/public_key
LDU_FT
[ "<BEGIN>\n## `create_new_address_for_user`", "Create a new bitcoin address to accept payments for a User.", " This is a convenience wrapper around `get_child` that helps you do\n the right thing. This method always creates a public, non-prime\n address that can be generated from a BIP32 pub...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the public_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the public_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 extrac...
Returns the public key associated with this private key. Returns: PublicKey: The PublicKey object that corresponds to this private key.
"Returns the public key associated with this private key.\n\n Returns:\n PublicKey:\n The PublicKey object that corresponds to this\n private key."
186
false
ranaroussi/pywallet
public_key
7,334
LDU_FT/pyout/pyout/_compose
LDU_FT
[ "<BEGIN>\n## `validate`", "Check `style` against pyout.styling.schema.", " Parameters\n ----------\n style : dict\n Style object to validate.", " Raises\n ------\n StyleValidationError if `style` is not valid.\n<END>", "<BEGIN>\n## `value_type`", "Classify `value` of bold, color, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compose API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compose API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Construct a style taking `attributes` from the column styles. Parameters ---------- name : str Name of main style (e.g., "header_"). attributes : set of str Adopt these elements from the column styles. Returns ------- The composite style ...
"Construct a style taking `attributes` from the column styles.\n\n Parameters\n ----------\n name : str\n Name of main style (e.g., \"header_\").\n attributes : set of str\n Adopt these elements from the column styles.\n\n Returns\n -------\n The co...
92
false
pyout/pyout
_compose
7,335
LDU_FT/MagicStack/asyncpg/copy_from_table
LDU_FT
[ "<BEGIN>\n## `fetch`", "r\"\"\"Return the next *n* rows as a list of :class:`Record` objects.", " :param float timeout: Optional timeout value in seconds.", " :return: A list of :class:`Record` instances.\n<END>", "<BEGIN>\n## `fetchrow`", "r\"\"\"Return the next row.", " :param flo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_from_table API. 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 copy_from_table API. 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...
Copy table contents to a file or file-like object. :param str table_name: The name of the table to copy data from. :param output: A :term:`path-like object <python:path-like object>`, or a :term:`file-like object <python:file-like object>`, or a :term:`c...
"Copy table contents to a file or file-like object.\n\n :param str table_name:\n The name of the table to copy data from.\n\n :param output:\n A :term:`path-like object <python:path-like object>`,\n or a :term:`file-like object <python:file-like object>`, or\n a...
284
false
MagicStack/asyncpg
copy_from_table
7,336
LDU_FT/CEA-COSMIC/ModOpt/_update
LDU_FT
[ "<BEGIN>\n## `add_args_kwargs`", "Add Args and Kwargs", " This wrapper adds support for additional arguments and keyword arguments to\n any callable function", " Parameters\n ----------\n func : function\n Callable function", " Returns\n -------\n function wrapper\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
r"""Update This method updates the current reconstruction Notes ----- Implements algorithm 10.7 (or 10.5) from [B2011]_
"r\"\"\"Update\n\n This method updates the current reconstruction\n\n Notes\n -----\n Implements algorithm 10.7 (or 10.5) from [B2011]_"
565
false
CEA-COSMIC/ModOpt
_update
7,337
LDU_FT/cdumay/kser/execute
LDU_FT
[ "<BEGIN>\n## `check_required_params`", "Check if all required parameters are set\n<END>", "<BEGIN>\n## `_onsuccess`", "To execute on execution success", " :param kser.result.Result result: Execution result\n :return: Execution result\n :rtype: kser.result.Result\n<END>", "<BEGIN>\n## ...
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...
Execution 'wrapper' to make sure that it return a result :return: Execution result :rtype: kser.result.Result
"Execution 'wrapper' to make sure that it return a result\n\n :return: Execution result\n :rtype: kser.result.Result"
94
false
cdumay/kser
execute
7,338
LDU_FT/maas/python-libmaas/login
LDU_FT
[ "<BEGIN>\n## `calculate_dict_diff`", "Return the parameters based on the difference.", " If a parameter exists in `old_params` but not in `new_params` then\n parameter will be set to an empty string.\n<END>", "<BEGIN>\n## `datum_to_value`", "Convert a given MAAS-side datum to a Python-side value.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. 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 login API. 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...
Log-in to a remote MAAS instance. Returns a new :class:`Profile` which has NOT been saved. To log-in AND save a new profile:: profile = login(url, username="alice", password="wonderland") profile = profile.replace(name="mad-hatter") with profiles.ProfileStore.open() as config: ...
"Log-in to a remote MAAS instance.\n\n Returns a new :class:`Profile` which has NOT been saved. To log-in AND\n save a new profile::\n\n profile = login(url, username=\"alice\", password=\"wonderland\")\n profile = profile.replace(name=\"mad-hatter\")\n\n with profiles.ProfileStore.open() as ...
452
false
maas/python-libmaas
login
7,339
LDU_FT/StackStorm/pybind/_set_show_support_save_status
LDU_FT
[ "<BEGIN>\n## `_set_virtual_mac`", "Setter method for virtual_mac, mapped from YANG variable /rbridge_id/interface/ve/ipv6/vrrpv3e/virtual_mac (container)\n If this variable is read-only (config: false) in the\n source YANG file, then _set_virtual_mac is considered as a private\n method. Backends looking ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_show_support_save_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_show_support_save_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Setter method for show_support_save_status, mapped from YANG variable /brocade_ras_ext_rpc/show_support_save_status (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_support_save_status is considered as a private method. Backends looking to populate this variable sh...
"Setter method for show_support_save_status, mapped from YANG variable /brocade_ras_ext_rpc/show_support_save_status (rpc)\n If this variable is read-only (config: false) in the\n source YANG file, then _set_show_support_save_status is considered as a private\n method. Backends looking to populate this variabl...
3,057
true
StackStorm/pybind
_set_show_support_save_status
7,340
LDU_FT/hovren/crisp/rate
LDU_FT
[ "<BEGIN>\n## `sync_camera_gyro`", "Get time offset that aligns image timestamps with gyro timestamps.", " Given an image sequence, and gyroscope data, with their respective timestamps,\n calculate the offset that aligns the image data with the gyro data.\n The timestamps must only differ by an offset, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rate API. 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 rate API. 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...
Get the sample rate in Hz. Returns --------- rate : float The sample rate, in Hz, calculated from the timestamps
"Get the sample rate in Hz.\n \n Returns\n ---------\n rate : float\n The sample rate, in Hz, calculated from the timestamps"
252
false
hovren/crisp
rate
7,341
LDU_FT/ayust/kitnirc/_parse_created
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_created API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_created API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Parse CREATED and update the Host object.
"Parse CREATED and update the Host object."
151
false
ayust/kitnirc
_parse_created
7,342
LDU_FT/box/genty/genty
LDU_FT
[ "<BEGIN>\n## `genty_repeat`", "To use in conjunction with a TestClass wrapped with @genty.", " Runs the wrapped test 'count' times:\n @genty_repeat(count)\n def test_some_function(self)\n ...", " Can also wrap a test already decorated with @genty_dataset\n @genty_repeat(3...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the genty API. 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 genty API. 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 decorator takes the information provided by @genty_dataset, @genty_dataprovider, and @genty_repeat and generates the corresponding test methods. :param target_cls: Test class whose test methods have been decorated. :type target_cls: `class`
"This decorator takes the information provided by @genty_dataset,\n @genty_dataprovider, and @genty_repeat and generates the corresponding\n test methods.\n\n :param target_cls:\n Test class whose test methods have been decorated.\n :type target_cls:\n `class`"
69
false
box/genty
genty
7,343
LDU_FT/matheuscas/pyIE/start
LDU_FT
[ "<BEGIN>\n## `start`", "Checks the number valiaty for the Rondônia state\n<END>", "<BEGIN>\n## `start`", "Checks the number valiaty for the São Paulo state\n<END>", "<BEGIN>\n## `start`", "Checks the number valiaty for the Pernanbuco state\n<END>", "<BEGIN>\n## `start`", "Checks the number valiaty for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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...
Checks the number valiaty for the Acre state
"Checks the number valiaty for the Acre state"
30
false
matheuscas/pyIE
start
7,344
LDU_FT/asaskevich/binario/write_bool
LDU_FT
[ "<BEGIN>\n## `write`", "Writes a byte buffer to the underlying output file.\n Raise exception when file is already closed.\n<END>", "<BEGIN>\n## `write_bool`", "Writes a boolean to the underlying output file as a 1-byte value.\n<END>", "<BEGIN>\n## `write_short`", "Writes a short integer to the und...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_bool API. 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_bool API. 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 boolean to the underlying output file as a 1-byte value.
"Writes a boolean to the underlying output file as a 1-byte value."
23
false
asaskevich/binario
write_bool
7,345
LDU_FT/markokr/rarfile/custom_popen
LDU_FT
[ "<BEGIN>\n## `xprint`", "Print string to stdout.", " Format unicode safely.\n<END>", "<BEGIN>\n## `rar3_decompress`", "Decompress blob of compressed data.", " Used for data with non-standard header - eg. comments.\n<END>", "<BEGIN>\n## `to_datetime`", "Convert 6-part time tuple into datetime obj...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the custom_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the custom_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 extr...
Disconnect cmd from parent fds, read only from stdout.
"Disconnect cmd from parent fds, read only from stdout."
47
false
markokr/rarfile
custom_popen
7,346
LDU_FT/agusmakmun/djipsum/randomUUIDField
LDU_FT
[ "<BEGIN>\n## `randomCharField`", "Checking if `field_name` has choices.\n Then, returning random value from it.\n Result of: `available_choices`\n [\n ('project', 'I wanna to talk about project'),\n ('feedback', 'I want to report a bugs or give feedback'),\n ('hello...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the randomUUIDField API. 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 randomUUIDField API. 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 unique uuid from uuid1, uuid3, uuid4, or uuid5.
"Return the unique uuid from uuid1, uuid3, uuid4, or uuid5."
30
false
agusmakmun/djipsum
randomUUIDField
7,347
LDU_FT/Apitax/Apitax/get_driver_api_catalog
LDU_FT
[ "<BEGIN>\n## `get_driver_blacklist`", "Retrieve the blacklist in the driver", " Retrieve the blacklist in the driver # noqa: E501", " :param driver: The driver to use for the request. ie. github\n :type driver: str", " :rtype: Response\n<END>", "<BEGIN>\n## `get_driver_config`", "Retrieve th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_driver_api_catalog API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_driver_api_catalog API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Retrieve the api catalog Retrieve the api catalog # noqa: E501 :param driver: The driver to use for the request. ie. github :type driver: str :rtype: Response
"Retrieve the api catalog\n\n Retrieve the api catalog # noqa: E501\n\n :param driver: The driver to use for the request. ie. github\n :type driver: str\n\n :rtype: Response"
137
false
Apitax/Apitax
get_driver_api_catalog
7,348
LDU_FT/frmdstryr/enamlx/mouseMoveEvent
LDU_FT
[ "<BEGIN>\n## `_prefetch_items`", "When the current_row in the model changes (whether from scrolling) or\n set by the application. Make sure the results are loaded!\n<END>", "<BEGIN>\n## `refresh_items`", "Refresh the items of the pattern.", " This method destroys the old items and creates and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mouseMoveEvent API. 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 mouseMoveEvent API. 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...
Handle the mouse move event for a drag operation.
"Handle the mouse move event for a drag operation."
133
false
frmdstryr/enamlx
mouseMoveEvent
7,349
LDU_FT/alvarogzp/telegram-bot-framework/set_callbacks
LDU_FT
[ "<BEGIN>\n## `default_format`", "Returns full name (first and last) if name is available.\n If not, returns username if available.\n If not available too, returns the user id as a string.\n<END>", "<BEGIN>\n## `full_name`", "Returns the first and last name of the user separated by a space.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_callbacks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_callbacks API. 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...
:param are_async: True if the callbacks execute asynchronously, posting any heavy work to another thread.
":param are_async: True if the callbacks execute asynchronously, posting any heavy work to another thread."
36
false
alvarogzp/telegram-bot-framework
set_callbacks
7,350
LDU_FT/Metatab/metatab/new_term
LDU_FT
[ "<BEGIN>\n## `split_term`", "Split a term in to parent and record term components\n :param term: combined term text\n :return: Tuple of parent and record term\n<END>", "<BEGIN>\n## `split_term_lower`", "Like split_term, but also lowercases both parent and record term\n :param term: combin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_term API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_term API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Create a new root-level term in this section
"Create a new root-level term in this section"
102
false
Metatab/metatab
new_term
7,351
LDU_FT/emichael/PyREM/run
LDU_FT
[ "<BEGIN>\n## `synchronized`", "Function decorator to make function synchronized on ``self._lock``.", " If the first argument to the function (hopefully self) does not have a _lock\n attribute, then this decorator does nothing.\n<END>", "<BEGIN>\n## `cleanup`", "Stop all started tasks on system exit.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run a command on the remote host. This is just a wrapper around ``RemoteTask(self.hostname, ...)``
"Run a command on the remote host.\n\n This is just a wrapper around ``RemoteTask(self.hostname, ...)``"
41
false
emichael/PyREM
run
7,352
LDU_FT/pytroll/python-geotiepoints/modis5kmto1km
LDU_FT
[ "<BEGIN>\n## `_interp`", "The interpolation method implemented here is a kind of a billinear\n interpolation. The input *data* field is first interpolated along the \n rows and subsequently along its columns.", " The final size of the interpolated *data* field is determined by the \n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modis5kmto1km API. 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 modis5kmto1km API. 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...
Getting 1km geolocation for modis from 5km tiepoints. http://www.icare.univ-lille1.fr/tutorials/MODIS_geolocation
"Getting 1km geolocation for modis from 5km tiepoints.\n\n http://www.icare.univ-lille1.fr/tutorials/MODIS_geolocation"
43
false
pytroll/python-geotiepoints
modis5kmto1km
7,353
LDU_FT/dellis23/ansible-toolkit/get_files
LDU_FT
[ "<BEGIN>\n## `split_path`", "\"/tmp/test\"", " Becomes:", " (\"/\", \"tmp\", \"test\")\n<END>", "<BEGIN>\n## `get_files`", "Returns a recursive list of all non-hidden files in and below the current\n directory.\n<END>", "<BEGIN>\n## `backup`", "Replaces the contents of a file with its dec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extract...
Returns a recursive list of all non-hidden files in and below the current directory.
"Returns a recursive list of all non-hidden files in and below the current\n directory."
23
false
dellis23/ansible-toolkit
get_files
7,354
LDU_FT/aio-libs/aiodocker/_query_chunked_post
LDU_FT
[ "<BEGIN>\n## `inspect`", "Return low-level information about an image", " Args:\n name: name of the image\n<END>", "<BEGIN>\n## `pull`", "Similar to `docker pull`, pull an image locally", " Args:\n fromImage: name of the image to pull\n repo: repository name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _query_chunked_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _query_chunked_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. T...
A shorthand for uploading data by chunks
"A shorthand for uploading data by chunks"
108
false
aio-libs/aiodocker
_query_chunked_post
7,355
LDU_FT/qweeze/wex-api-client/ticker
LDU_FT
[ "<BEGIN>\n## `ticker`", "This method provides all the information about currently active pairs, such as: the maximum price,\n the minimum price, average price, trade volume, trade volume in currency, the last trade, Buy and Sell price.\n All information is provided over the past 24 hours.\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ticker API. 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 ticker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This method provides all the information about currently active pairs, such as: the maximum price, the minimum price, average price, trade volume, trade volume in currency, the last trade, Buy and Sell price. All information is provided over the past 24 hours. :param str or iterable pair: pair (...
"This method provides all the information about currently active pairs, such as: the maximum price,\n the minimum price, average price, trade volume, trade volume in currency, the last trade, Buy and Sell price.\n All information is provided over the past 24 hours.\n :param str or iterable pair: pa...
23
false
qweeze/wex-api-client
ticker
7,356
LDU_FT/interedition/collatex/striter
LDU_FT
[ "<BEGIN>\n## `collate`", ":type graph: VariantGraph\n :type collation: Collation\n<END>", "<BEGIN>\n## `align`", "Every step we have 3 choices:\n 1) Move pointer witness a --> omission\n 2) Move pointer witness b --> addition\n 3) Move pointer of both witness a/b --> match\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the striter API. 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 striter API. 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...
Iterate over each (optionally padded) string element in RangeSet.
"Iterate over each (optionally padded) string element in RangeSet."
138
false
interedition/collatex
striter
7,357
LDU_FT/zikzakmedia/python-mediawiki/extractTagsAndParams
LDU_FT
[ "<BEGIN>\n## `to_unicode`", "Convert a `str` object to an `unicode` object.", "\tIf `charset` is given, we simply assume that encoding for the text,\n\tbut we'll use the \"replace\" mode so that the decoding will always\n\tsucceed.\n\tIf `charset` is ''not'' specified, we'll make some guesses, first\n\ttrying t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extractTagsAndParams 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 extractTagsAndParams API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Replaces all occurrences of HTML-style comments and the given tags in the text with a random marker and returns teh next text. The output parameter $matches will be an associative array filled with data in the form: 'UNIQ-xxxxx' => array( 'element', 'tag content', array( 'param' => 'x' ), '<el...
"Replaces all occurrences of HTML-style comments and the given tags\n\t\tin the text with a random marker and returns teh next text. The output\n\t\tparameter $matches will be an associative array filled with data in\n\t\tthe form:\n\t\t 'UNIQ-xxxxx' => array(\n\t\t 'element',\n\t\t 'tag content',\n\t\t array( 'par...
19
false
zikzakmedia/python-mediawiki
extractTagsAndParams
7,358
LDU_FT/CleanCut/green/run
LDU_FT
[ "<BEGIN>\n## `toParallelTargets`", "Produce a list of targets which should be tested in parallel.", " For the most part this will be a list of test modules. The exception is\n when a dotted name representing something more granular than a module\n was input (like an individal test case or test method)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run the given test case or test suite with the specified arguments. Any args.stream passed in will be wrapped in a GreenStream
"Run the given test case or test suite with the specified arguments.\n\n Any args.stream passed in will be wrapped in a GreenStream"
33
false
CleanCut/green
run
7,359
LDU_FT/ttsteiger/cryptocompy/get_day_average_price
LDU_FT
[ "<BEGIN>\n## `get_current_price`", "Get latest trading price or full trading information in display or raw \r\n\tformat for the specified FROM/TO currency pairs.\r", "\tArgs:\r\n\t\tfsyms: Single string or list of FROM symbols.\r\n\t\ttsyms: Single string or list of TO symbols.\r\n\t\te: Default returns average...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_day_average_price API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_day_average_price API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get the current days average price of a currency pair. Args: fsym: FROM symbol. tsym: TO symbol. e: Default returns average price across all exchanges. Can be set to the name of a single exchange. try_conversion: If the crypto does not trade directly into the toSymbol requested, BTC will be use...
"Get the current days average price of a currency pair.\r\n\r\n\tArgs:\r\n\t\tfsym: FROM symbol.\r\n\t\ttsym: TO symbol.\r\n\t\te: Default returns average price across all exchanges. Can be set to the\r\n\t\t\tname of a single exchange.\r\n\t\ttry_conversion: If the crypto does not trade directly into the toSymbol \r\n...
76
false
ttsteiger/cryptocompy
get_day_average_price
7,360
LDU_FT/calmjs/calmjs.parse/p_assignment_expr_noin
LDU_FT
[ "<BEGIN>\n## `optimize_structure_handler`", "Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>", "<BEGIN>\n## `optimize_layout_handler`", "Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_assignment_expr_noin 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 p_assignment_expr_noin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
assignment_expr_noin \ : conditional_expr_noin | left_hand_side_expr assignment_operator assignment_expr_noin
"assignment_expr_noin \\\n : conditional_expr_noin\n | left_hand_side_expr assignment_operator assignment_expr_noin"
253
false
calmjs/calmjs.parse
p_assignment_expr_noin
7,361
LDU_FT/SuperCowPowers/chains/flow_tuple
LDU_FT
[ "<BEGIN>\n## `packet_meta_data`", "Pull out the metadata about each packet from the input_stream\n Args:\n None\n Returns:\n generator (dictionary): a generator that contains packet meta data in the form of a dictionary\n<END>", "<BEGIN>\n## `pull`", "Print out ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flow_tuple API. 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 flow_tuple API. 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...
Tuple for flow (src, dst, sport, dport, proto)
"Tuple for flow (src, dst, sport, dport, proto)"
41
false
SuperCowPowers/chains
flow_tuple
7,362
LDU_FT/samirelanduk/quickplots/y_grid
LDU_FT
[ "<BEGIN>\n## `color`", "Returns or sets (if a value is provided) the series' colour.", " :param str color: If given, the series' colour will be set to this.\n :rtype: ``str``\n<END>", "<BEGIN>\n## `name`", "Returns or sets (if a value is provided) the series' name.", " :param str name...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the y_grid API. 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 y_grid API. 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 ...
The vertical lines that run accross the chart from the y-ticks. If a boolean value is given, these gridlines will be turned on or off. Otherwise, the method will return their current state. :param bool grid: Turns the gridlines on or off. :rtype: ``bool``
"The vertical lines that run accross the chart from the y-ticks.\n\n If a boolean value is given, these gridlines will be turned on or off.\n Otherwise, the method will return their current state.\n\n :param bool grid: Turns the gridlines on or off.\n :rtype: ``bool``"
112
false
samirelanduk/quickplots
y_grid
7,363
LDU_FT/letuananh/chirptext/write_file
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 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...
Write content to a file. If the path ends with .gz, gzip will be used.
"Write content to a file. If the path ends with .gz, gzip will be used."
80
false
letuananh/chirptext
write_file
7,364
LDU_FT/beetbox/audioread/available
LDU_FT
[ "<BEGIN>\n## `_notify_caps`", "The callback for the sinkpad's \"notify::caps\" signal.\n<END>", "<BEGIN>\n## `_pad_added`", "The callback for GstElement's \"pad-added\" signal.\n<END>", "<BEGIN>\n## `_no_more_pads`", "The callback for GstElement's \"no-more-pads\" signal.\n<END>", "<BEGIN>\n## `_new_sam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the available API. 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 available API. 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...
Detect if the FFmpeg backend can be used on this system.
"Detect if the FFmpeg backend can be used on this system."
58
false
beetbox/audioread
available
7,365
LDU_FT/hydraplatform/hydra-base/get_unit_by_abbreviation
LDU_FT
[ "<BEGIN>\n## `check_perm`", "Checks whether a user has permission to perform an action.\n The permission_code parameter should be a permission contained in tPerm.", " If the user does not have permission to perfom an action, a permission\n error is thrown.\n<END>", "<BEGIN>\n## `required_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unit_by_abbreviation 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_unit_by_abbreviation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns a single unit by abbreviation. Used as utility function to resolve string to id
"Returns a single unit by abbreviation. Used as utility function to resolve string to id"
576
false
hydraplatform/hydra-base
get_unit_by_abbreviation
7,366
LDU_FT/RPi-Distro/python-gpiozero/all_values
LDU_FT
[ "<BEGIN>\n## `toggle`", "Toggle all the output devices. For each device, if it's on, turn it\n off; if it's off, turn it on.\n<END>", "<BEGIN>\n## `on`", "If no arguments are specified, turn all the LEDs on. If arguments are\n specified, they must be the indexes of the LEDs you wish to turn on.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_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 extrac...
Returns the `logical conjunction`_ of all supplied values (the result is only :data:`True` if and only if all input values are simultaneously :data:`True`). One or more *values* can be specified. For example, to light an :class:`~gpiozero.LED` only when *both* buttons are pressed:: from gpiozero im...
"Returns the `logical conjunction`_ of all supplied values (the result is\n only :data:`True` if and only if all input values are simultaneously\n :data:`True`). One or more *values* can be specified. For example, to light\n an :class:`~gpiozero.LED` only when *both* buttons are pressed::\n\n from gpioz...
291
false
RPi-Distro/python-gpiozero
all_values
7,367
LDU_FT/micahhausler/container-transform/convert
LDU_FT
[ "<BEGIN>\n## `_read_stream`", "We override the return signature of\n ``super(BaseTransformer, self)._read_stream()`` to return extra volume\n data. This is intentional.", " :param stream: A file like object\n :returns: Return the family name, containers, and volumes. If there are\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. 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 convert API. 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...
:rtype: tuple :returns: Output containers, messages
":rtype: tuple\n :returns: Output containers, messages"
61
false
micahhausler/container-transform
convert
7,368
LDU_FT/gwpy/gwpy/_get_flag_group
LDU_FT
[ "<BEGIN>\n## `canonical_name`", "Find the canonical name for the given window in scipy.signal", " Parameters\n ----------\n name : `str`\n the name of the window you want", " Returns\n -------\n realname : `str`\n the name of the window as implemented in `scipy.signal.window`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_flag_group API. 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_flag_group API. 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...
Determine the group to use in order to read a flag
"Determine the group to use in order to read a flag"
2,764
true
gwpy/gwpy
_get_flag_group
7,369
LDU_FT/markchil/gptools/random_draw
LDU_FT
[ "<BEGIN>\n## `matern_function`", "r\"\"\"Matern covariance function of arbitrary dimension, for use with :py:class:`ArbitraryKernel`.", " The Matern kernel has the following hyperparameters, always referenced in\n the order listed:", " = ===== ====================================\n 0 sigma prefact...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_draw API. 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 random_draw API. 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...
Draw random samples of the hyperparameters. Parameters ---------- size : None, int or array-like, optional The number/shape of samples to draw. If None, only one sample is returned. Default is None.
"Draw random samples of the hyperparameters.\n \n Parameters\n ----------\n size : None, int or array-like, optional\n The number/shape of samples to draw. If None, only one sample is\n returned. Default is None."
496
false
markchil/gptools
random_draw
7,370
LDU_FT/PMEAL/porespy/_get_Voronoi_edges
LDU_FT
[ "<BEGIN>\n## `show_mesh`", "r\"\"\"\n Visualizes the mesh of a region as obtained by ``get_mesh`` function in\n the ``metrics`` submodule.", " Parameters\n ----------\n mesh : tuple\n A mesh returned by ``skimage.measure.marching_cubes``", " Returns\n -------\n fig : Matplotlib ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_Voronoi_edges API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_Voronoi_edges 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...
r""" Given a Voronoi object as produced by the scipy.spatial.Voronoi class, this function calculates the start and end points of eeach edge in the Voronoi diagram, in terms of the vertex indices used by the received Voronoi object. Parameters ---------- vor : scipy.spatial.Voronoi object ...
"r\"\"\"\n Given a Voronoi object as produced by the scipy.spatial.Voronoi class,\n this function calculates the start and end points of eeach edge in the\n Voronoi diagram, in terms of the vertex indices used by the received\n Voronoi object.\n\n Parameters\n ----------\n vor : scipy.spatial.Voron...
688
false
PMEAL/porespy
_get_Voronoi_edges
7,371
LDU_FT/mdeous/fatbotslim/_handle
LDU_FT
[ "<BEGIN>\n## `create_logger`", "Creates a new ready-to-use logger.", " :param name: new logger's name\n :type name: str\n :param level: default logging level.\n :type level: :class:`str` or :class:`int`\n :return: new logger.\n :rtype: :class:`logging.Logger`\n<END>", "<BEGIN>\n## `format`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle API. 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 _handle API. 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...
Pass a received message to the registered handlers. :param msg: received message :type msg: :class:`fatbotslim.irc.Message`
"Pass a received message to the registered handlers.\n\n :param msg: received message\n :type msg: :class:`fatbotslim.irc.Message`"
83
false
mdeous/fatbotslim
_handle
7,372