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/ambitioninc/django-entity/m2m_changed_entity_signal_handler
LDU_FT
[ "<BEGIN>\n## `remove_duplicates`", "Remove any duplicates from the entity relationship table\n :param apps:\n :param schema_editor:\n :return:\n<END>", "<BEGIN>\n## `transaction_atomic_with_retry`", "This is a decorator that will wrap the decorated method in an atomic transaction and\n retry the t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the m2m_changed_entity_signal_handler 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 m2m_changed_entity_signal_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Defines a signal handler for a manytomany changed signal. Only listens for the post actions so that entities are synced once (rather than twice for a pre and post action).
"Defines a signal handler for a manytomany changed signal. Only listens for the\n post actions so that entities are synced once (rather than twice for a pre and post action)."
83
false
ambitioninc/django-entity
m2m_changed_entity_signal_handler
28,473
LDU_FT/mcs07/ChemDataExtractor/space_references
LDU_FT
[ "<BEGIN>\n## `train_punkt`", "Train Punkt sentence splitter using sentences in input.\n<END>", "<BEGIN>\n## `sentences`", "Read input document, and output sentences.\n<END>", "<BEGIN>\n## `_in_stoplist`", "Return True if the entity is in the stoplist.\n<END>", "<BEGIN>\n## `tag`", "Run individual chem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the space_references API. 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 space_references API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Ensure a space around reference links, so there's a gap when they are removed.
"Ensure a space around reference links, so there's a gap when they are removed."
243
false
mcs07/ChemDataExtractor
space_references
28,474
LDU_FT/avihad/twistes/create
LDU_FT
[ "<BEGIN>\n## `expand_action`", "From one document or action definition passed in by the user extract the\n action/data lines needed for elasticsearch's\n :meth:`~elasticsearch.Elasticsearch.bulk` api.\n :return es format to bulk doc\n<END>", "<BEGIN>\n## `bulk`", "Helper for the :meth:`~e...
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 ...
Adds a typed JSON document in a specific index, making it searchable. Behind the scenes this method calls index(..., op_type='create') `<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html>`_ :param index: The name of the index :param doc_type: The type of the...
"Adds a typed JSON document in a specific index, making it searchable.\n Behind the scenes this method calls index(..., op_type='create')\n `<http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html>`_\n :param index: The name of the index\n :param doc_type: The type o...
78
false
avihad/twistes
create
28,475
LDU_FT/ChrisBeaumont/smother/context
LDU_FT
[ "<BEGIN>\n## `parse_intervals`", "Parse a diff into an iterator of Intervals.\n<END>", "<BEGIN>\n## `_filldown`", "Copy current_context into `lines` down up until lineno\n<END>", "<BEGIN>\n## `_add_section`", "Register the current node as a new context block\n<END>", "<BEGIN>\n## `_module_name`", "Try...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the context API. 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 context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return the context for a given 1-offset line number.
"Return the context for a given 1-offset line number."
47
false
ChrisBeaumont/smother
context
28,476
LDU_FT/jeongyoonlee/Kaggler/netflix
LDU_FT
[ "<BEGIN>\n## `fit`", "Train a network with the quasi-Newton method.", " Args:\n X (np.array of float): feature matrix for training\n y (np.array of float): target values for training\n X_val (np.array of float): feature matrix for validation\n y_val (np.array o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the netflix API. 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 netflix API. 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...
Combine predictions with the optimal weights to minimize RMSE. Args: es (list of float): RMSEs of predictions ps (list of np.array): predictions e0 (float): RMSE of all zero prediction l (float): lambda as in the ridge regression Returns: Ensemble prediction (np.array) ...
"Combine predictions with the optimal weights to minimize RMSE.\n\n Args:\n es (list of float): RMSEs of predictions\n ps (list of np.array): predictions\n e0 (float): RMSE of all zero prediction\n l (float): lambda as in the ridge regression\n\n Returns:\n Ensemble prediction (...
114
false
jeongyoonlee/Kaggler
netflix
28,477
LDU_FT/simpleai-team/simpleai/beam
LDU_FT
[ "<BEGIN>\n## `_all_expander`", "Expander that expands all nodes on the fringe.\n<END>", "<BEGIN>\n## `beam`", "Beam search.", " beam_size is the size of the beam.\n If iterations_limit is specified, the algorithm will end after that\n number of iterations. Else, it will continue until it can't find...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the beam API. 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 beam API. 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...
Beam search. beam_size is the size of the beam. If iterations_limit is specified, the algorithm will end after that number of iterations. Else, it will continue until it can't find a better node than the current one. Requires: SearchProblem.actions, SearchProblem.result, SearchProblem.value, an...
"Beam search.\n\n beam_size is the size of the beam.\n If iterations_limit is specified, the algorithm will end after that\n number of iterations. Else, it will continue until it can't find a\n better node than the current one.\n Requires: SearchProblem.actions, SearchProblem.result, SearchProblem.value,...
130
false
simpleai-team/simpleai
beam
28,478
LDU_FT/KnuVerse/knuverse-sdk-python/events_client
LDU_FT
[ "<BEGIN>\n## `_auth`", "Makes sure the request has a valid authorization jwt before calling the wrapped function.\n It does this by checking the timestamp of the last jwt and if > 10 minutes have elapsed,\n it refreshes it's existing jwt from the server.\n Args:\n f: Function to wr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the events_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the events_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get a client's events. Uses GET to /events/clients/<client> interface. :Args: * *client*: (str) Client's ID :Returns: (list) Events
"Get a client's events. Uses GET to /events/clients/<client> interface.\n\n :Args:\n * *client*: (str) Client's ID\n\n :Returns: (list) Events"
138
false
KnuVerse/knuverse-sdk-python
events_client
28,479
LDU_FT/jhermann/rudiments/import_name
LDU_FT
[ "<BEGIN>\n## `auth_pair`", "Return username/password tuple, possibly prompting the user for them.\n<END>", "<BEGIN>\n## `_get_auth`", "Try to get login auth from known sources.\n<END>", "<BEGIN>\n## `_get_auth_from_keyring`", "Try to get credentials using `keyring <https://github.com/jaraco/keyring>`_.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Import identifier ``name`` from module ``modulename``. If ``name`` is omitted, ``modulename`` must contain the name after the module path, delimited by a colon. Parameters: modulename (str): Fully qualified module name, e.g. ``x.y.z``. name (str): Name to import from ``...
"Import identifier ``name`` from module ``modulename``.\n\n If ``name`` is omitted, ``modulename`` must contain the name after the\n module path, delimited by a colon.\n\n Parameters:\n modulename (str): Fully qualified module name, e.g. ``x.y.z``.\n name (str): Name to import...
59
false
jhermann/rudiments
import_name
28,480
LDU_FT/ECRL/ecabc/save_settings
LDU_FT
[ "<BEGIN>\n## `add_argument`", "Add an additional argument to be passed to the fitness function\n via additional arguments dictionary; this argument/value is not tuned", " Args:\n arg_name (string): name/dictionary key of argument\n arg_value (any): dictionary value of argumen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_settings API. 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 save_settings API. 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...
Save settings to a JSON file Arge: filename (string): name of the file to save to
"Save settings to a JSON file\n\n Arge:\n filename (string): name of the file to save to"
67
false
ECRL/ecabc
save_settings
28,481
LDU_FT/blockstack/pybitcoin/get_wordlist
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 get_wordlist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_wordlist API. 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...
Takes in a language and a word source and returns a matching wordlist, if it exists. Valid languages: ['english'] Valid word sources: ['bip39', 'wiktionary', 'google']
"Takes in a language and a word source and returns a matching wordlist,\n if it exists.\n Valid languages: ['english']\n Valid word sources: ['bip39', 'wiktionary', 'google']"
79
false
blockstack/pybitcoin
get_wordlist
28,482
LDU_FT/LordGaav/python-chaos/setStartAction
LDU_FT
[ "<BEGIN>\n## `registerWorker`", "Register a new Worker, under the given descriptive name.", "\t\tTrying to register multiple workers under the same name will raise an Exception.", "\t\tParameters\n\t\t----------\n\t\tname: string\n\t\t\tName to register the given worker under.\n\t\tworker: multiprocessing.Pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setStartAction API. 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 setStartAction API. 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...
Set a function to call when run() is called, before the main action is called. Parameters ---------- action: function pointer The function to call. *args Positional arguments to pass to action. **kwargs: Keyword arguments to pass to action.
"Set a function to call when run() is called, before the main action is called.\n\n\t\tParameters\n\t\t----------\n\t\taction: function pointer\n\t\t\tThe function to call.\n\t\t*args\n\t\t\tPositional arguments to pass to action.\n\t\t**kwargs:\n\t\t\tKeyword arguments to pass to action."
138
false
LordGaav/python-chaos
setStartAction
28,483
LDU_FT/edeposit/edeposit.amqp.storage/render_trees
LDU_FT
[ "<BEGIN>\n## `render_trees`", "Render list of `trees` to HTML.", " Args:\n trees (list): List of :class:`.Tree`.\n path_composer (fn reference): Function used to compose paths from UUID.\n Look at :func:`.compose_tree_path` from :mod:`.web_tools`.", " Returns:\n str: HTML...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_trees API. 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 render_trees API. 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...
Render list of `trees` to HTML. Args: trees (list): List of :class:`.Tree`. path_composer (fn reference): Function used to compose paths from UUID. Look at :func:`.compose_tree_path` from :mod:`.web_tools`. Returns: str: HTML representation of trees.
"Render list of `trees` to HTML.\n\n Args:\n trees (list): List of :class:`.Tree`.\n path_composer (fn reference): Function used to compose paths from UUID.\n Look at :func:`.compose_tree_path` from :mod:`.web_tools`.\n\n Returns:\n str: HTML representation of trees."
140
false
edeposit/edeposit.amqp.storage
render_trees
28,484
LDU_FT/rosshamish/catan-py/give
LDU_FT
[ "<BEGIN>\n## `do`", "Does the command using the undo_manager's stack\n :param command: Command\n<END>", "<BEGIN>\n## `restore`", "Restore this Game object to match the properties and state of the given Game object\n :param game: properties to restore to the current (self) Game\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the give API. 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 give API. 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...
Add a certain number of resources to the trade from giver->getter :param terrain: resource type, models.Terrain :param num: number to add, int :return: None
"Add a certain number of resources to the trade from giver->getter\n :param terrain: resource type, models.Terrain\n :param num: number to add, int\n :return: None"
52
false
rosshamish/catan-py
give
28,485
LDU_FT/scalative/haas/_setup_stdout
LDU_FT
[ "<BEGIN>\n## `run`", "Run the haas test runner.", " This will load and configure the selected plugins, set up the\n environment and begin test discovery, loading and running.", " Parameters\n ----------\n plugin_manager : haas.plugin_manager.PluginManager\n [Optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_stdout API. 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 _setup_stdout API. 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...
Hook stdout and stderr if buffering is enabled.
"Hook stdout and stderr if buffering is enabled."
66
false
scalative/haas
_setup_stdout
28,486
LDU_FT/pinterest/pymemcache/murmur3_32
LDU_FT
[ "<BEGIN>\n## `murmur3_32`", "MurmurHash3 was written by Austin Appleby, and is placed in the\n public domain. The author hereby disclaims copyright to this source\n code.\n<END>", "<BEGIN>\n## `_readline`", "Read line of text from the socket.", " Read a line of text (delimited by \"\\r\\n\") ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the murmur3_32 API. 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 murmur3_32 API. 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...
MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author hereby disclaims copyright to this source code.
"MurmurHash3 was written by Austin Appleby, and is placed in the\n public domain. The author hereby disclaims copyright to this source\n code."
89
false
pinterest/pymemcache
murmur3_32
28,487
LDU_FT/OCA/openupgradelib/deactivate_workflow_transitions
LDU_FT
[ "<BEGIN>\n## `_adjust_merged_values_orm`", "This method deals with the values on the records to be merged +\n the target record, performing operations that makes sense on the meaning\n of the model.", " :param field_spec: Dictionary with field names as keys and forced operation\n to perform as val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deactivate_workflow_transitions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deactivate_workflow_transitions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Disable workflow transitions for workflows on a given model. This can be necessary for automatic workflow transitions when writing to an object via the ORM in the post migration step. Returns a dictionary to be used on reactivate_workflow_transitions :param model: the model for which workflow transitio...
"Disable workflow transitions for workflows on a given model.\n This can be necessary for automatic workflow transitions when writing\n to an object via the ORM in the post migration step.\n Returns a dictionary to be used on reactivate_workflow_transitions\n\n :param model: the model for which workflow tra...
190
false
OCA/openupgradelib
deactivate_workflow_transitions
28,488
LDU_FT/PyCQA/astroid/visit_binop
LDU_FT
[ "<BEGIN>\n## `_handle_blacklist`", "remove files/directories in the black list", " dirnames/filenames are usually from os.walk\n<END>", "<BEGIN>\n## `load_module_from_name`", "Load a Python module from its name.", " :type dotted_name: str\n :param dotted_name: python name of a module or package",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_binop API. 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 visit_binop API. 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...
visit a BinOp node by returning a fresh instance of it
"visit a BinOp node by returning a fresh instance of it"
1,051
true
PyCQA/astroid
visit_binop
28,489
LDU_FT/jreese/aiosqlite/_execute
LDU_FT
[ "<BEGIN>\n## `connect`", "Create and return a connection proxy to the sqlite database.\n<END>", "<BEGIN>\n## `_execute`", "Execute the given function on the shared connection's thread.\n<END>", "<BEGIN>\n## `fetchmany`", "Fetch up to `cursor.arraysize` number of rows.\n<END>", "<BEGIN>\n## `run`", "Ex...
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 extracte...
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 extracte...
Execute the given function on the shared connection's thread.
"Execute the given function on the shared connection's thread."
22
false
jreese/aiosqlite
_execute
28,490
LDU_FT/ResidentMario/geoplot/cartogram
LDU_FT
[ "<BEGIN>\n## `load`", "A moderately mind-bendy meta-method which abstracts the internals of individual projections' load procedures.", " Parameters\n ----------\n proj : geoplot.crs object instance\n A disguised reference to ``self``.\n df : GeoDataFrame\n The G...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cartogram API. 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 cartogram API. 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...
Self-scaling area plot. Parameters ---------- df : GeoDataFrame The data being plotted. projection : geoplot.crs object instance, optional A geographic projection. For more information refer to `the tutorial page on projections <https://nbviewer.jupyter.org/github/ResidentMario/...
"Self-scaling area plot.\n\n Parameters\n ----------\n df : GeoDataFrame\n The data being plotted.\n projection : geoplot.crs object instance, optional\n A geographic projection. For more information refer to `the tutorial page on projections\n <https://nbviewer.jupyter.org/github/Resid...
404
false
ResidentMario/geoplot
cartogram
28,491
LDU_FT/f3at/feat/_main
LDU_FT
[ "<BEGIN>\n## `parse_incoming_query`", "Effect factory parsing the query value from params and merging in\n the static_conditions specified.", " @param factory: IQueryView\n @param static_conditions: effect to be called to build up static\n conditions of the query\n @par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse options and run checks on Python source.
"Parse options and run checks on Python source."
658
false
f3at/feat
_main
28,492
LDU_FT/pythongssapi/python-gssapi/display_as
LDU_FT
[ "<BEGIN>\n## `name`", "Get the name associated with these credentials\n<END>", "<BEGIN>\n## `acquire`", "Acquire GSSAPI credentials", " This method acquires credentials. If the `store` argument is\n used, the credentials will be acquired from the given\n credential store (if supported)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display_as API. 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 display_as API. 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...
Display this name as the given name type. This method attempts to display the current :class:`Name` using the syntax of the given :class:`NameType`, if possible. Warning: In MIT krb5 versions below 1.13.3, this method can segfault if the name was not *originally* creat...
"Display this name as the given name type.\n\n This method attempts to display the current :class:`Name`\n using the syntax of the given :class:`NameType`, if possible.\n\n Warning:\n\n In MIT krb5 versions below 1.13.3, this method can segfault if\n the name was not *original...
97
false
pythongssapi/python-gssapi
display_as
28,493
LDU_FT/kytos/python-openflow/pack
LDU_FT
[ "<BEGIN>\n## `in_port`", "Retrieve the 'in_port' that generated the PacketIn.", " This method will look for the OXM_TLV with type OFPXMT_OFB_IN_PORT on\n the `oxm_match_fields` field from `match` field and return its value,\n if the OXM exists.", " Returns:\n The integer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pack API. 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 pack API. 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...
Pack this structure updating the length and padding it.
"Pack this structure updating the length and padding it."
348
false
kytos/python-openflow
pack
28,494
LDU_FT/wasp/waspy/make_request
LDU_FT
[ "<BEGIN>\n## `make_request`", "Make a request to another service. If `context` is provided, then\n context and correlation will be pulled from the provided request\n object for you. This includes credentials, correlationid,\n and service-headers.", " :param method: GET/PUT/PATCH, etc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Method for actually making a request :param service: service to make request too :param method: HTTP method: GET/PUT/POST etc. :param path: routing path. Should support dots `foo.2.bars` or slashes `foo/2/bars` :param body: request body. Bytes-like object :param query...
"Method for actually making a request\n :param service: service to make request too\n :param method: HTTP method: GET/PUT/POST etc.\n :param path: routing path.\n Should support dots `foo.2.bars` or slashes `foo/2/bars`\n :param body: request body. Bytes-like object\n :para...
34
false
wasp/waspy
make_request
28,495
LDU_FT/quadrismegistus/prosodic/bestParses
LDU_FT
[ "<BEGIN>\n## `loadLanguage`", "This function loads up a language configuration file and returns\n\tthe configuration to be passed to the syllabify function.\n<END>", "<BEGIN>\n## `syllabify`", "Syllabifies the word, given a language configuration loaded with loadLanguage.\n\t word is either a string of phon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bestParses API. 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 bestParses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return a list of the best parse per line.
"Return a list of the best parse per line."
80
false
quadrismegistus/prosodic
bestParses
28,496
LDU_FT/jaywink/federation/pkcs7_pad
LDU_FT
[ "<BEGIN>\n## `check_sender_and_entity_handle_match`", "Ensure that sender and entity handles match.", " Basically we've already verified the sender is who they say when receiving the payload. However, the sender might\n be trying to set another author in the payload itself, since Diaspora has the sender i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pkcs7_pad API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pkcs7_pad API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Using the PKCS#7 padding scheme, pad <inp> to be a multiple of <block_size> bytes. Ruby's AES encryption pads with this scheme, but pycrypto doesn't support it. Implementation copied from pyaspora: https://github.com/mjnovice/pyaspora/blob/master/pyaspora/diaspora/protocol.py#L209
"Using the PKCS#7 padding scheme, pad <inp> to be a multiple of\n <block_size> bytes. Ruby's AES encryption pads with this scheme, but\n pycrypto doesn't support it.\n\n Implementation copied from pyaspora:\n https://github.com/mjnovice/pyaspora/blob/master/pyaspora/diaspora/protocol.py#L209"
230
false
jaywink/federation
pkcs7_pad
28,497
LDU_FT/SamLau95/nbinteract/_wait_for_save
LDU_FT
[ "<BEGIN>\n## `multiple_choice`", "Generates a multiple choice question that allows the user to select an\n answer choice and shows whether choice was correct.", " Args:\n question (str): Question text displayed above choices.", " choices (list str): Answer choices that user can select.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wait_for_save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wait_for_save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Waits for nb_name to update, waiting up to TIMEOUT seconds. Returns True if a save was detected, and False otherwise.
"Waits for nb_name to update, waiting up to TIMEOUT seconds.\n Returns True if a save was detected, and False otherwise."
159
false
SamLau95/nbinteract
_wait_for_save
28,498
LDU_FT/spencerahill/aospy/_get_aux_specs
LDU_FT
[ "<BEGIN>\n## `_preprocess_and_rename_grid_attrs`", "Call a custom preprocessing method first then rename grid attrs.", " This wrapper is needed to generate a single function to pass to the\n ``preprocesss`` of xr.open_mfdataset. It makes sure that the\n user-specified preprocess function is called on ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_aux_specs API. 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_aux_specs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get and pre-process all of the non-core specifications.
"Get and pre-process all of the non-core specifications."
323
false
spencerahill/aospy
_get_aux_specs
28,499
LDU_FT/Microsoft/LightGBM/get_parameter_infos
LDU_FT
[ "<BEGIN>\n## `check_dependicies`", "Check the dynamic symbol versions.", " Parameters\n ----------\n objdump_string : string\n The dynamic symbol table entries of the file (result of `objdump -T` command).\n<END>", "<BEGIN>\n## `_objective_function_wrapper`", "Decorate an objective function....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parameter_infos 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_parameter_infos 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...
Parse config header file. Parameters ---------- config_hpp : string Path to the config header file. Returns ------- infos : tuple Tuple with names and content of sections.
"Parse config header file.\n\n Parameters\n ----------\n config_hpp : string\n Path to the config header file.\n\n Returns\n -------\n infos : tuple\n Tuple with names and content of sections."
379
false
Microsoft/LightGBM
get_parameter_infos
28,500
LDU_FT/mryellow/maze_explorer/map
LDU_FT
[ "<BEGIN>\n## `update_sensors`", "Check path for each sensor and record wall proximity\n<END>", "<BEGIN>\n## `do_move`", "Updates velocity and returns Rects for start/finish positions\n<END>", "<BEGIN>\n## `add_item`", "Add a single item in random open position\n<END>", "<BEGIN>\n## `map`", "Creates an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API. 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 map API. 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...
Creates and returns a new randomly generated map
"Creates and returns a new randomly generated map"
16
false
mryellow/maze_explorer
map
28,501
LDU_FT/carsongee/flask-htpasswd/required
LDU_FT
[ "<BEGIN>\n## `init_app`", "Find and configure the user database from specified file\n<END>", "<BEGIN>\n## `check_basic_auth`", "This function is called to check if a username /\n password combination is valid via the htpasswd file.\n<END>", "<BEGIN>\n## `generate_token`", "assumes user exists in ht...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracte...
Decorator function with basic and token authentication handler
"Decorator function with basic and token authentication handler"
15
false
carsongee/flask-htpasswd
required
28,502
LDU_FT/lucasmaystre/choix/log_likelihood_top1
LDU_FT
[ "<BEGIN>\n## `_init_lsr`", "Initialize the LSR Markov chain and the weights.\n<END>", "<BEGIN>\n## `_ilsr`", "Iteratively refine LSR estimates until convergence.", " Raises\n ------\n RuntimeError\n If the algorithm does not converge after ``max_iter`` iterations.\n<END>", "<BEGIN>\n## `ls...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_likelihood_top1 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 log_likelihood_top1 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...
Compute the log-likelihood of model parameters.
"Compute the log-likelihood of model parameters."
211
false
lucasmaystre/choix
log_likelihood_top1
28,503
LDU_FT/sensu-plugins/sensu-plugin-python/__make_dynamic
LDU_FT
[ "<BEGIN>\n## `__make_dynamic`", "Create a method for each of the exit codes.\n<END>", "<BEGIN>\n## `__exitfunction`", "Method called by exit hook, ensures that both an exit code and\n output is supplied, also catches errors.\n<END>", "<BEGIN>\n## `run`", "Set up the event object, global settings an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __make_dynamic API. 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 __make_dynamic API. 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...
Create a method for each of the exit codes.
"Create a method for each of the exit codes."
23
false
sensu-plugins/sensu-plugin-python
__make_dynamic
28,504
LDU_FT/chaoss/grimoirelab-elk/get_p2o_params_from_url
LDU_FT
[ "<BEGIN>\n## `__related_categories`", "Get all related categories to a given one\n<END>", "<BEGIN>\n## `__show_categories_tree`", "Show the category tree: list of categories and its subcategories\n<END>", "<BEGIN>\n## `fetch_track_items`", "The file format is:", " # Upstream contributions, bitergia w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_p2o_params_from_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_p2o_params_from_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Get the p2o params given a URL for the data source
"Get the p2o params given a URL for the data source"
296
false
chaoss/grimoirelab-elk
get_p2o_params_from_url
28,505
LDU_FT/mayhewj/greenstalk/kick_job
LDU_FT
[ "<BEGIN>\n## `put`", "Inserts a job into the currently used tube and returns the job ID.", " :param body: The data representing the job.\n :param priority: An integer between 0 and 4,294,967,295 where 0 is the\n most urgent.\n :param delay: The number of seconds to d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kick_job API. 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 kick_job API. 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...
Moves a delayed or buried job into the ready queue. :param job: The job or job ID to kick.
"Moves a delayed or buried job into the ready queue.\n\n :param job: The job or job ID to kick."
45
false
mayhewj/greenstalk
kick_job
28,506
LDU_FT/liftoff/pyminifier/enumerate_method_calls
LDU_FT
[ "<BEGIN>\n## `obfuscation_machine`", "A generator that returns short sequential combinations of lower and\n upper-case letters that will never repeat.", " If *use_unicode* is ``True``, use nonlatin cryllic, arabic, and syriac\n letters instead of the usual ABCs.", " The *identifier_length* represe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enumerate_method_calls 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 enumerate_method_calls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns a list of all object (not module) method calls in the given tokens. *modules* is expected to be a list of all global modules imported into the source code we're working on. For example: >>> enumerate_method_calls(tokens) ['re.compile', 'sys.argv', 'f.write']
"Returns a list of all object (not module) method calls in the given tokens.\n\n *modules* is expected to be a list of all global modules imported into the\n source code we're working on.\n\n For example:\n >>> enumerate_method_calls(tokens)\n ['re.compile', 'sys.argv', 'f.write']"
160
false
liftoff/pyminifier
enumerate_method_calls
28,507
LDU_FT/quantopian/empyrical/perf_attrib
LDU_FT
[ "<BEGIN>\n## `_adjust_returns`", "Returns the returns series adjusted by adjustment_factor. Optimizes for the\n case of adjustment_factor being 0 by returning returns itself, not a copy!", " Parameters\n ----------\n returns : pd.Series or np.ndarray\n adjustment_factor : pd.Series or np.ndarray ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perf_attrib API. 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 perf_attrib API. 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...
Attributes the performance of a returns stream to a set of risk factors. Performance attribution determines how much each risk factor, e.g., momentum, the technology sector, etc., contributed to total returns, as well as the daily exposure to each of the risk factors. The returns that can be attributed...
"Attributes the performance of a returns stream to a set of risk factors.\n\n Performance attribution determines how much each risk factor, e.g.,\n momentum, the technology sector, etc., contributed to total returns, as\n well as the daily exposure to each of the risk factors. The returns that\n can be attr...
253
false
quantopian/empyrical
perf_attrib
28,508
LDU_FT/vburenin/xjpath/split
LDU_FT
[ "<BEGIN>\n## `split`", "Separates a string on a character, taking into account escapes.", " :param str inp_str: string to split.\n :param str sep_char: separator character.\n :param int maxsplit: maximum number of times to split from left.\n :param str escape_char: escape character.\n :rtype: __g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split API. 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 split API. 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...
Separates a string on a character, taking into account escapes. :param str inp_str: string to split. :param str sep_char: separator character. :param int maxsplit: maximum number of times to split from left. :param str escape_char: escape character. :rtype: __generator[str] :return: sub-strings...
"Separates a string on a character, taking into account escapes.\n\n :param str inp_str: string to split.\n :param str sep_char: separator character.\n :param int maxsplit: maximum number of times to split from left.\n :param str escape_char: escape character.\n :rtype: __generator[str]\n :return: sub...
27
false
vburenin/xjpath
split
28,509
LDU_FT/danpoland/pyramid-restful-framework/list_route
LDU_FT
[ "<BEGIN>\n## `parse_requested_expands`", "Extracts the value of the expand query string parameter from a request.\n Supports comma separated lists.", " :param query_key: The name query string parameter.\n :param request: Request instance.\n :return: List of strings representing the values of the exp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_route API. 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 list_route API. 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...
Used to mark a method on a ViewSet that should be routed for list requests. Usage:: class UserViewSet(ModelCRUDViewSet): model = User schema = UserSchema @list_route(methods=['get'], url_path='active-users') def active_users(request, *args, **kwargs): ...
"Used to mark a method on a ViewSet that should be routed for list requests.\n\n Usage::\n\n class UserViewSet(ModelCRUDViewSet):\n model = User\n schema = UserSchema\n\n @list_route(methods=['get'], url_path='active-users')\n def active_users(request, *args, **kwar...
70
false
danpoland/pyramid-restful-framework
list_route
28,510
LDU_FT/alertot/detectem/get_most_complete_pm
LDU_FT
[ "<BEGIN>\n## `get_detection_results`", "Return results from detector.", " This function prepares the environment loading the plugins,\n getting the response and passing it to the detector.", " In case of errors, it raises exceptions to be handled externally.\n<END>", "<BEGIN>\n## `get_plugins`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_most_complete_pm 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_most_complete_pm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return plugin match with longer version, if not available will return plugin match with ``presence=True``
"Return plugin match with longer version, if not available\n will return plugin match with ``presence=True``"
48
false
alertot/detectem
get_most_complete_pm
28,511
LDU_FT/eamigo86/graphene-django-extras/dispatch
LDU_FT
[ "<BEGIN>\n## `dispatch`", "Fetches queried data from graphql and returns cached & hashed key.\n<END>", "<BEGIN>\n## `_parse`", "parse a partial datetime object to a complete datetime object\n<END>", "<BEGIN>\n## `get_obj`", "Function used to get a object\n :param app_label: A valid Django Model or a st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Fetches queried data from graphql and returns cached & hashed key.
"Fetches queried data from graphql and returns cached & hashed key."
17
false
eamigo86/graphene-django-extras
dispatch
28,512
LDU_FT/pycontribs/pyrax/update_alarm
LDU_FT
[ "<BEGIN>\n## `resize`", "Resize the volume to the specified size (in GB).\n<END>", "<BEGIN>\n## `get`", "This additional code is necessary to properly return the 'volume'\n attribute of the instance as a CloudDatabaseVolume object instead of\n a raw dict.\n<END>", "<BEGIN>\n## `_create_body`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_alarm API. 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 update_alarm API. 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...
Updates an existing alarm on this entity.
"Updates an existing alarm on this entity."
1,326
true
pycontribs/pyrax
update_alarm
28,513
LDU_FT/CyberZHG/keras-transformer/attention_builder
LDU_FT
[ "<BEGIN>\n## `_wrap_layer`", "Wrap layers with residual, normalization and dropout.", " :param name: Prefix of names for internal layers.\n :param input_layer: Input layer.\n :param build_func: A callable that takes the input tensor and generates the output tensor.\n :param dropout_rate: Dropout rat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attention_builder API. 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 attention_builder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get multi-head self-attention builder. :param name: Prefix of names for internal layers. :param head_num: Number of heads in multi-head self-attention. :param activation: Activation for multi-head self-attention. :param history_only: Only use history data. :param trainable: Whether the layer is tra...
"Get multi-head self-attention builder.\n\n :param name: Prefix of names for internal layers.\n :param head_num: Number of heads in multi-head self-attention.\n :param activation: Activation for multi-head self-attention.\n :param history_only: Only use history data.\n :param trainable: Whether the layer...
31
false
CyberZHG/keras-transformer
attention_builder
28,514
LDU_FT/ereOn/azmq/on_open
LDU_FT
[ "<BEGIN>\n## `metadata_to_buffers`", "Transform a dict of metadata into a sequence of buffers.", " :param metadata: The metadata, as a dict.\n :returns: A list of buffers.\n<END>", "<BEGIN>\n## `buffer_to_metadata`", "Transform a buffer to a metadata dictionary.", " :param buffer: The buffer, as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Initialize a new timer. :param callback: The function or coroutine function to call on each tick. :param period: The interval of time between two ticks.
"Initialize a new timer.\n\n :param callback: The function or coroutine function to call on each\n tick.\n :param period: The interval of time between two ticks."
111
false
ereOn/azmq
on_open
28,515
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 Mato Grosso state
"Checks the number valiaty for the Mato Grosso state"
30
false
matheuscas/pyIE
start
28,516
LDU_FT/praekeltfoundation/seaworthy/_get_id_and_model
LDU_FT
[ "<BEGIN>\n## `wait_for_response`", "Try make a GET request with an HTTP client against a certain path and\n return once any response has been received, ignoring any errors.", " :param ContainerHttpClient client:\n The HTTP client to use to connect to the container.\n :param timeout:\n Tim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_id_and_model API. 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_id_and_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get both the model and ID of an object that could be an ID or a model. :param id_or_model: The object that could be an ID string or a model object. :param model_collection: The collection to which the model belongs.
"Get both the model and ID of an object that could be an ID or a model.\n\n :param id_or_model:\n The object that could be an ID string or a model object.\n :param model_collection:\n The collection to which the model belongs."
173
false
praekeltfoundation/seaworthy
_get_id_and_model
28,517
LDU_FT/honeybadger-io/honeybadger-python/generate_payload
LDU_FT
[ "<BEGIN>\n## `supports`", "Check whether this is a django request or not.\n :param config: honeybadger configuration.\n :param context: current honeybadger configuration.\n :return: True if this is a django request, False else.\n<END>", "<BEGIN>\n## `generate_payload`", "Generate payload ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_payload API. 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 generate_payload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generate payload by checking Django request object. :param context: current context. :param config: honeybadger configuration. :return: a dict with the generated payload.
"Generate payload by checking Django request object.\n :param context: current context.\n :param config: honeybadger configuration.\n :return: a dict with the generated payload."
23
false
honeybadger-io/honeybadger-python
generate_payload
28,518
LDU_FT/nilp0inter/cpe/_decode
LDU_FT
[ "<BEGIN>\n## `_trim`", "Remove trailing colons from the URI back to the first non-colon.", " :param string s: input URI string\n :returns: URI string with trailing colons removed\n :rtype: string", " TEST: trailing colons necessary", " >>> s = '1:2::::'\n >>> CPE._t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode API. 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 _decode API. 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...
Convert the encoded value of component to standard value (WFN value).
"Convert the encoded value of component to standard value (WFN value)."
206
false
nilp0inter/cpe
_decode
28,519
LDU_FT/af/turrentine/_try_url_with_appended_slash
LDU_FT
[ "<BEGIN>\n## `create`", "Allow an 'author' kwarg to automatically fill in the created_by and last_modified_by fields.\n<END>", "<BEGIN>\n## `get_template_options`", "Returns a list of all templates that can be used for CMS pages.\n The paths that are returned are relative to TURRENTINE_TEMPLATE_ROOT.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _try_url_with_appended_slash 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 _try_url_with_appended_slash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Try our URL with an appended slash. If a CMS page is found at that URL, redirect to it. If no page is found at that URL, raise Http404.
"Try our URL with an appended slash. If a CMS page is found at that URL, redirect to it.\n If no page is found at that URL, raise Http404."
19
false
af/turrentine
_try_url_with_appended_slash
28,520
LDU_FT/mryellow/maze_explorer/recursive_division
LDU_FT
[ "<BEGIN>\n## `update_sensors`", "Check path for each sensor and record wall proximity\n<END>", "<BEGIN>\n## `do_move`", "Updates velocity and returns Rects for start/finish positions\n<END>", "<BEGIN>\n## `add_item`", "Add a single item in random open position\n<END>", "<BEGIN>\n## `map`", "Creates an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recursive_division 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 recursive_division 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...
Recursive division: 1. Split room randomly 1a. Dodge towards larger half if in doorway 2. Place doorway randomly 3. Repeat for each half
"Recursive division:\n 1. Split room randomly\n 1a. Dodge towards larger half if in doorway\n 2. Place doorway randomly\n 3. Repeat for each half"
16
false
mryellow/maze_explorer
recursive_division
28,521
LDU_FT/MaT1g3R/option/get
LDU_FT
[ "<BEGIN>\n## `maybe`", "Shortcut method to return ``Some`` or :py:data:`NONE` based on ``val``.", " Args:\n val: Some value.", " Returns:\n ``Some(val)`` if the ``val`` is not None, otherwise :py:data:`NONE`.", " Examples:\n >>> Option.maybe(0)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Gets a mapping value by key in the contained value or returns ``default`` if the key doesn't exist. Args: key: The mapping key. default: The defauilt value. Returns: * ``Some`` variant of the mapping value if the key exists and the value is no...
"Gets a mapping value by key in the contained value or returns\n ``default`` if the key doesn't exist.\n\n Args:\n key: The mapping key.\n default: The defauilt value.\n\n Returns:\n * ``Some`` variant of the mapping value if the key exists\n and the v...
107
false
MaT1g3R/option
get
28,522
LDU_FT/fedora-infra/fedora-messaging/when_connected
LDU_FT
[ "<BEGIN>\n## `cli`", "The fedora-messaging command line interface.\n<END>", "<BEGIN>\n## `consume`", "Consume messages from an AMQP queue using a Python callback.\n<END>", "<BEGIN>\n## `_consume_errback`", "Handle any errors that occur during consumer registration.\n<END>", "<BEGIN>\n## `_consume_callba...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the when_connected API. 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 when_connected API. 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...
Retrieve the currently-connected Protocol, or the next one to connect. Returns: defer.Deferred: A Deferred that fires with a connected :class:`FedoraMessagingProtocolV2` instance. This is similar to the whenConnected method from the Twisted endpoints APIs, which ...
"Retrieve the currently-connected Protocol, or the next one to connect.\n\n Returns:\n defer.Deferred: A Deferred that fires with a connected\n :class:`FedoraMessagingProtocolV2` instance. This is similar to\n the whenConnected method from the Twisted endpoints APIs, whic...
302
false
fedora-infra/fedora-messaging
when_connected
28,523
LDU_FT/MozillaSecurity/laniakea/_get_default_name_size
LDU_FT
[ "<BEGIN>\n## `list_tags`", "List all used macros within a UserData script.", " :param userdata: The UserData script.\n :type userdata: str\n<END>", "<BEGIN>\n## `handle_tags`", "Insert macro values or auto export variables in UserData scripts.", " :param userdata: The UserData script....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_default_name_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_default_name_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....
Checks if root device name/size were specified in the image definition. :param instance_type: A section name in amazon.json. :type instance_type: str :param size: :type size: int :return: Root device name and size :rtype: tuple(str, int)
"Checks if root device name/size were specified in the image definition.\n\n :param instance_type: A section name in amazon.json.\n :type instance_type: str\n :param size:\n :type size: int\n :return: Root device name and size\n :rtype: tuple(str, int)"
136
false
MozillaSecurity/laniakea
_get_default_name_size
28,524
LDU_FT/veripress/veripress/search_for
LDU_FT
[ "<BEGIN>\n## `generate_pages_by_file`", "Generates custom pages of 'file' storage type.\n<END>", "<BEGIN>\n## `fix_relative_url`", "Fix post or page relative url to a standard, uniform format.", " :param publish_type: publish type ('post' or 'page')\n :param rel_url: relative url to fix\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Search for a query text. :param query: keyword to query :param include_draft: return draft posts/pages or not :return: an iterable object of posts and pages (if allowed).
"Search for a query text.\n\n :param query: keyword to query\n :param include_draft: return draft posts/pages or not\n :return: an iterable object of posts and pages (if allowed)."
109
false
veripress/veripress
search_for
28,525
LDU_FT/senseobservationsystems/commonsense-python-lib/EventsNotificationsDelete
LDU_FT
[ "<BEGIN>\n## `MD5Hash`", "Returns md5 hash of a string.\r", " @param password (string) - String to be hashed.\r", " @return (string) - Md5 hash of password.\n<END>", "<BEGIN>\n## `setVerbosity`", "Set verbosity of the SenseApi object.\r", " @param verbose (boolean) - True of Fal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the EventsNotificationsDelete 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 EventsNotificationsDelete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Delete an event-notification from CommonSense. @param event_notification_id (int) - Id of the event-notification to delete. @return (bool) - Boolean indicating whether EventsNotificationsDelete was successful.
"Delete an event-notification from CommonSense.\r\n \r\n @param event_notification_id (int) - Id of the event-notification to delete.\r\n \r\n @return (bool) - Boolean indicating whether EventsNotificationsDelete was successful."
243
false
senseobservationsystems/commonsense-python-lib
EventsNotificationsDelete
28,526
LDU_FT/danielperna84/pyhomematic/updateParamset
LDU_FT
[ "<BEGIN>\n## `start`", "Start the server thread if it wasn't created with autostart = True.\n<END>", "<BEGIN>\n## `getSystemVariable`", "Get single system variable from CCU / Homegear\n<END>", "<BEGIN>\n## `deleteSystemVariable`", "Delete a system variable from CCU / Homegear\n<END>", "<BEGIN>\n## `setI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updateParamset API. 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 updateParamset API. 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...
Devices should not update their own paramsets. They rely on the state of the server. Hence we pull the specified paramset.
"Devices should not update their own paramsets. They rely on the state of the server.\n Hence we pull the specified paramset."
83
false
danielperna84/pyhomematic
updateParamset
28,527
LDU_FT/projectatomic/osbs-client/get_error_message
LDU_FT
[ "<BEGIN>\n## `get_openshift_base_uri`", "https://<host>[:<port>]/", " :return: str\n<END>", "<BEGIN>\n## `get_builder_openshift_url`", "url of OpenShift where builder will connect\n<END>", "<BEGIN>\n## `generate_nodeselector_dict`", "helper method for generating nodeselector dict\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_error_message API. 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_error_message API. 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 an error message based on atomic-reactor's metadata
"Return an error message based on atomic-reactor's metadata"
268
false
projectatomic/osbs-client
get_error_message
28,528
LDU_FT/SmartTeleMax/iktomi/encrypt_password
LDU_FT
[ "<BEGIN>\n## `pare`", "Pare text to have maximum size and add etc to the end if it's\n changed\n<END>", "<BEGIN>\n## `quoteattrs`", "Takes dict of attributes and returns their HTML representation\n<END>", "<BEGIN>\n## `quote_js`", "Quotes text to be used as JavaScript string in HTML templates. The\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_password API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_password API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns a string of the hexdigest of the given plaintext password and salt using the given algorithm ('md5', 'sha1' or other supported by hashlib).
"Returns a string of the hexdigest of the given plaintext password and salt\n using the given algorithm ('md5', 'sha1' or other supported by hashlib)."
196
false
SmartTeleMax/iktomi
encrypt_password
28,529
LDU_FT/sio2project/filetracker/_read_stream_for_size
LDU_FT
[ "<BEGIN>\n## `get_file`", "Retrieves file identified by ``name``.", " The file is saved as ``save_to``. If ``add_to_cache`` is ``True``,\n the file is added to the local store. If ``force_refresh`` is\n ``True``, local cache is not examined if a remote store is\n configur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_stream_for_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_stream_for_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. ...
Reads a stream discarding the data read and returns its size.
"Reads a stream discarding the data read and returns its size."
84
false
sio2project/filetracker
_read_stream_for_size
28,530
LDU_FT/grycap/cpyutils/ip2hex
LDU_FT
[ "<BEGIN>\n## `set_paths`", "Sets the paths where the configuration files will be searched", " * You can have multiple configuration files (e.g. in the /etc/default folder\n and in /etc/appfolder/)\n<END>", "<BEGIN>\n## `config_filename`", "Obtains the first filename found that is included in o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ip2hex API. 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 ip2hex API. 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 ...
Converts an ip to a hex value that can be used with a hex bit mask
"Converts an ip to a hex value that can be used with a hex bit mask"
39
false
grycap/cpyutils
ip2hex
28,531
LDU_FT/nikcub/floyd/Z
LDU_FT
[ "<BEGIN>\n## `get_file_contents`", "Get the context of the file using full path name\n<END>", "<BEGIN>\n## `import_model`", "imports a model of name from path, returning from local model\n cache if it has been previously loaded otherwise importing\n<END>", "<BEGIN>\n## `parse_md`", "Takes a post path a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Z API. 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 docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Z API. 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 docum...
Time zone offset in seconds (i.e. '-43200' to '43200'). The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.
"Time zone offset in seconds (i.e. '-43200' to '43200'). The offset for\n timezones west of UTC is always negative, and for those east of UTC is\n always positive."
71
false
nikcub/floyd
Z
28,532
LDU_FT/mcs07/ChemDataExtractor/_flush
LDU_FT
[ "<BEGIN>\n## `train_punkt`", "Train Punkt sentence splitter using sentences in input.\n<END>", "<BEGIN>\n## `sentences`", "Read input document, and output sentences.\n<END>", "<BEGIN>\n## `_in_stoplist`", "Return True if the entity is in the stoplist.\n<END>", "<BEGIN>\n## `tag`", "Run individual chem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _flush API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _flush API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Save the contents of data to the file on disk. You should not need to call this manually.
"Save the contents of data to the file on disk. You should not need to call this manually."
243
false
mcs07/ChemDataExtractor
_flush
28,533
LDU_FT/openwisp/django-freeradius/get_install_requires
LDU_FT
[ "<BEGIN>\n## `set_default`", "ensures there's only 1 default group\n (logic overridable via custom models)\n<END>", "<BEGIN>\n## `get_default_queryset`", "looks for default groups excluding the current one\n overridable by openwisp-radius and other 3rd party apps\n<END>", "<BEGIN>\n## `authent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_install_requires 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_install_requires API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
parse requirements.txt, ignore links, exclude comments
"parse requirements.txt, ignore links, exclude comments"
24
false
openwisp/django-freeradius
get_install_requires
28,534
LDU_FT/atztogo/phonopy/get_partial_DOS
LDU_FT
[ "<BEGIN>\n## `_set_translations`", "Set primitive translations in supercell", " _trans_s\n Translations with respect to supercell basis vectors\n _trans_p\n Translations with respect to primitive cell basis vectors\n _N\n Number of the translations = det(sup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_partial_DOS API. 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_partial_DOS API. 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 frequency points and partial DOS as a tuple. Projection is done to atoms and may be also done along directions depending on the parameters at run_partial_dos. Returns ------- A tuple with (frequency_points, partial_dos). frequency_points: ndarray sha...
"Return frequency points and partial DOS as a tuple.\n\n Projection is done to atoms and may be also done along directions\n depending on the parameters at run_partial_dos.\n\n Returns\n -------\n A tuple with (frequency_points, partial_dos).\n\n frequency_points: ndarray\n ...
417
false
atztogo/phonopy
get_partial_DOS
28,535
LDU_FT/CogSciUOS/StudDP/load
LDU_FT
[ "<BEGIN>\n## `path`", "Path of this node on Studip. Looks like Coures/folder/folder/document. Respects the renaming policies defined in the namemap\n<END>", "<BEGIN>\n## `title`", "get title of this node. If an entry for this course is found in the configuration namemap it is used, otherwise the default\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. 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 load API. 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...
load a configuration file. loads default config if file is not found
"load a configuration file. loads default config if file is not found"
26
false
CogSciUOS/StudDP
load
28,536
LDU_FT/kata198/AdvancedHTMLParser/hasAttribute
LDU_FT
[ "<BEGIN>\n## `getRootNodes`", "getRootNodes - Gets all objects at the \"root\" (first level; no parent). Use this if you may have multiple roots (not children of <html>)\n Use this method to get objects, for example, in an AJAX request where <html> may not be your root.", " Note: I...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hasAttribute API. 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 hasAttribute API. 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...
hasAttribute - Checks for the existance of an attribute. Attribute names are all lowercase. @param attrName <str> - The attribute name @return <bool> - True or False if attribute exists by that name
"hasAttribute - Checks for the existance of an attribute. Attribute names are all lowercase.\n \n @param attrName <str> - The attribute name\n \n @return <bool> - True or False if attribute exists by that name"
541
false
kata198/AdvancedHTMLParser
hasAttribute
28,537
LDU_FT/EasyPost/pystalk/stats_job
LDU_FT
[ "<BEGIN>\n## `from_uri`", "Construct a synchronous Beanstalk Client from a URI.", " The URI may be of the form beanstalk://host:port or beanstalkd://host:port", " IPv6 literals must be wrapped in brackets as per RFC 2732.\n<END>", "<BEGIN>\n## `_re_establish_use_watch`", "Call after a close/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stats_job API. 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 stats_job API. 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...
Fetch statistics about a single job :rtype: dict
"Fetch statistics about a single job\n\n :rtype: dict"
85
false
EasyPost/pystalk
stats_job
28,538
LDU_FT/diging/tethne/items
LDU_FT
[ "<BEGIN>\n## `to_dxgmml`", "Writes a :class:`.GraphCollection` to\n `dynamic XGMML. <https://code.google.com/p/dynnetwork/wiki/DynamicXGMML>`_.", " Dynamic XGMML is a schema for describing dynamic networks in Cytoscape 3.0.\n This method assumes that `Graph` indices are orderable points in time\n (e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the items API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the items API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns a :class:`GramGenerator` that produces key,value tuples.
"Returns a :class:`GramGenerator` that produces key,value tuples."
497
false
diging/tethne
items
28,539
LDU_FT/palantir/typedjsonrpc/histogram
LDU_FT
[ "<BEGIN>\n## `from_error`", "Wraps another Exception in an InternalError.", " :param exc_info: The exception info for the wrapped exception\n :type exc_info: (type, object, traceback)\n :type json_encoder: json.JSONEncoder\n :type debug_url: str | None\n :rtype: InternalError"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the histogram API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the histogram API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns a histogram of your data. :param data: The data to histogram :type data: list[object] :return: The histogram :rtype: dict[object, int]
"Returns a histogram of your data.\n\n :param data: The data to histogram\n :type data: list[object]\n :return: The histogram\n :rtype: dict[object, int]"
73
false
palantir/typedjsonrpc
histogram
28,540
LDU_FT/yamins81/tabular/renamecol
LDU_FT
[ "<BEGIN>\n## `arrayuniqify`", "Very fast uniqify routine for numpy arrays.", " **Parameters**", " **X** : numpy array", " Determine the unique elements of this numpy array.", " **retainorder** : Boolean, optional", " Whether or not to retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the renamecol API. 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 renamecol API. 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...
Rename column or color in-place. Method wraps:: tabular.spreadsheet.renamecol(self, old, new)
"Rename column or color in-place.\n\n Method wraps::\n\n tabular.spreadsheet.renamecol(self, old, new)"
928
false
yamins81/tabular
renamecol
28,541
LDU_FT/lexibank/pylexibank/getEvoBibAsBibtex
LDU_FT
[ "<BEGIN>\n## `tokenizer`", "Datasets can provide support for segmentation (aka tokenization) in two ways:\n - by providing an orthography profile at etc/orthography.tsv or\n - by overwriting this method to return a custom tokenizer callable.", " :return: A callable to do segmentation.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getEvoBibAsBibtex API. 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 getEvoBibAsBibtex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Download bibtex format and parse it from EvoBib
"Download bibtex format and parse it from EvoBib"
48
false
lexibank/pylexibank
getEvoBibAsBibtex
28,542
LDU_FT/phoebe-project/phoebe2/open
LDU_FT
[ "<BEGIN>\n## `lc`", "Create parameters for a new light curve dataset.", " Generally, this will be used as an input to the kind argument in\n :meth:`phoebe.frontend.bundle.Bundle.add_dataset`", " :parameter **kwargs: defaults for the values of any of the parameters\n :return: a :class:`phoebe.param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Open a ParameterSet from a JSON-formatted file. This is a constructor so should be called as: >>> b = ParameterSet.open('test.json') :parameter str filename: relative or full path to the file :return: instantiated :class:`ParameterSet` object
"Open a ParameterSet from a JSON-formatted file.\n This is a constructor so should be called as:\n\n\n >>> b = ParameterSet.open('test.json')\n\n\n :parameter str filename: relative or full path to the file\n :return: instantiated :class:`ParameterSet` object"
1,080
true
phoebe-project/phoebe2
open
28,543
LDU_FT/kakwa/ldapcherry/_parse_params
LDU_FT
[ "<BEGIN>\n## `get_param`", "Get a parameter in config (handle default value)", " :param param: name of the parameter to recover\n :type param: string\n :param default: the default value, raises an exception\n if param is not in configuration and default\n is None (whic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
get user attributes @dict params: form parameters @rtype: dict, {<type>: {<attr>: <value>}}
"get user attributes\n @dict params: form parameters\n @rtype: dict, {<type>: {<attr>: <value>}}"
83
false
kakwa/ldapcherry
_parse_params
28,544
LDU_FT/RockFeng0/rtsf/get_imported_module_from_file
LDU_FT
[ "<BEGIN>\n## `get_summary`", "summarize the report data\r\n @param list_all: a list which save the report data\r\n @param kwargs: such as\r\n show_all: True/False report show all status cases\r\n proj_name: project name \r\n home_page: ho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_imported_module_from_file 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 get_imported_module_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
import module from python file path and return imported module
"import module from python file path and return imported module"
53
false
RockFeng0/rtsf
get_imported_module_from_file
28,545
LDU_FT/kootenpv/yagmail/set_logging
LDU_FT
[ "<BEGIN>\n## `resolve_addresses`", "Handle the targets addresses, adding aliases when defined\n<END>", "<BEGIN>\n## `main`", "This is the function that is run from commandline with `yagmail`\n<END>", "<BEGIN>\n## `validate_email_with_regex`", "Note that this will only filter out syntax mistakes in emailad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_logging API. 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 set_logging API. 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...
This function allows to change the logging backend, either output or file as backend It also allows to set the logging level (whether to display only critical/error/info/debug. for example:: yag = yagmail.SMTP() yag.set_logging(yagmail.logging.DEBUG) # to see everything ...
"This function allows to change the logging backend, either output or file as backend\n It also allows to set the logging level (whether to display only critical/error/info/debug.\n for example::\n\n yag = yagmail.SMTP()\n yag.set_logging(yagmail.logging.DEBUG) # to see everything\n...
16
false
kootenpv/yagmail
set_logging
28,546
LDU_FT/Rediker-Software/doac/revoke_tokens
LDU_FT
[ "<BEGIN>\n## `access_token`", "Try to get the `AccessToken` associated with the provided token.", " *The provided value must pass `BearerHandler.validate()`*\n<END>", "<BEGIN>\n## `validate`", "Try to get the `AccessToken` associated with the given token.", " The return value is determined b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the revoke_tokens API. 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 revoke_tokens API. 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...
Revokes the refresh token and all access tokens that were generated using it.
"Revokes the refresh token and all access tokens that were generated using it."
46
false
Rediker-Software/doac
revoke_tokens
28,547
LDU_FT/yyuu/botornado/upload_server_cert
LDU_FT
[ "<BEGIN>\n## `save`", "Saves this item to SDB.", " :param bool replace: If ``True``, delete any attributes on the remote\n SDB item that have a ``None`` value on this object.\n<END>", "<BEGIN>\n## `add_value`", "Helps set or add to attributes on this item. If you are adding a new\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_server_cert 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 upload_server_cert 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...
Uploads a server certificate entity for the AWS Account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded. :type cert_name: string :param cert_name: The name for the server certific...
"Uploads a server certificate entity for the AWS Account.\n The server certificate entity includes a public key certificate,\n a private key, and an optional certificate chain, which should\n all be PEM-encoded.\n\n :type cert_name: string\n :param cert_name: The name for the server c...
2,931
true
yyuu/botornado
upload_server_cert
28,548
LDU_FT/django-getpaid/django-getpaid/new_payment_query_listener
LDU_FT
[ "<BEGIN>\n## `new_payment_query_listener`", "Here we fill only two obligatory fields of payment, and leave signal handler\n<END>", "<BEGIN>\n## `payment_status_changed_listener`", "Here we will actually do something, when payment is accepted.\n E.g. lets change an order status.\n<END>", "<BEGIN>\n## `reg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_payment_query_listener 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 new_payment_query_listener API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Here we fill only two obligatory fields of payment, and leave signal handler
"Here we fill only two obligatory fields of payment, and leave signal handler"
20
false
django-getpaid/django-getpaid
new_payment_query_listener
28,549
LDU_FT/honzamach/pydgets/list_settings
LDU_FT
[ "<BEGIN>\n## `terminal_size`", "Detect the current size of terminal window as a numer of rows and columns.\n<END>", "<BEGIN>\n## `list_settings`", "Get list of all appropriate settings and their default values.", " The returned list is then used in setup() and get_setup() methods to setup\n th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_settings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_settings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get list of all appropriate settings and their default values.
"Get list of all appropriate settings and their default values."
71
false
honzamach/pydgets
list_settings
28,550
LDU_FT/hydraplatform/hydra-base/bulk_set_network_owners
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 bulk_set_network_owners 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 bulk_set_network_owners API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Set the network owner of multiple networks at once. Accepts a list of JSONObjects which look like: { 'network_id': XX, 'user_id' : YY, 'view' : 'Y'/ 'N' 'edit' : 'Y'/ 'N' 'share' : 'Y'/ 'N' }
"Set the network owner of multiple networks at once.\n Accepts a list of JSONObjects which look like:\n {\n 'network_id': XX,\n 'user_id' : YY,\n 'view' : 'Y'/ 'N'\n 'edit' : 'Y'/ 'N'\n 'share' : 'Y'/ 'N'\n }"
576
false
hydraplatform/hydra-base
bulk_set_network_owners
28,551
LDU_FT/robehickman/simple-http-file-sync/have_authenticated_user
LDU_FT
[ "<BEGIN>\n## `lock_access`", "Synchronise access to the user file between processes, this specifies\n which user is allowed write access at the current time\n<END>", "<BEGIN>\n## `can_aquire_user_lock`", "Allow a user to acquire the lock if no other user is currently using it, if the original\n user is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the have_authenticated_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the have_authenticated_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
check user submitted session token against the db and that ip has not changed
"check user submitted session token against the db and that ip has not changed"
60
false
robehickman/simple-http-file-sync
have_authenticated_user
28,552
LDU_FT/Legobot/Legobot/handle
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to a server.", " This overrides the function in SimpleIRCClient\n to provide SSL functionality.", " :param args:\n :param kwargs:\n :return:\n<END>", "<BEGIN>\n## `set_metadata`", "This function sets the metadata that is common between p...
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 ...
Attempts to send a message to the specified destination in Discord. Extends Legobot.Lego.handle() Args: message (Legobot.Message): message w/ metadata to send.
"Attempts to send a message to the specified destination in Discord.\n Extends Legobot.Lego.handle()\n\n Args:\n message (Legobot.Message): message w/ metadata to send."
119
false
Legobot/Legobot
handle
28,553
LDU_FT/rbarrois/confutils/parse_file
LDU_FT
[ "<BEGIN>\n## `update`", "Replace all lines matching `old_line` with `new_line`.", " If ``once`` is set to True, remove only the first instance.\n<END>", "<BEGIN>\n## `update`", "Replace all lines matching `old_line` with `new_line`.", " If ``once`` is set to True, remove only the first insta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 parse_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...
Parse a file from its name (instead of fds). If skip_unreadable is False and the file can't be read, will raise a ConfigReadingError.
"Parse a file from its name (instead of fds).\n\n If skip_unreadable is False and the file can't be read, will raise a\n ConfigReadingError."
42
false
rbarrois/confutils
parse_file
28,554
LDU_FT/thriftrw/thriftrw-python/add_include
LDU_FT
[ "<BEGIN>\n## `add_include`", "Adds a module as an included module.", " :param name:\n Name under which the included module should be exposed in the\n current module.\n :param module_spec:\n ModuleSpec of the included module.\n<END>", "<BEGIN>\n## `link`", "Link...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_include API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_include API. 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...
Adds a module as an included module. :param name: Name under which the included module should be exposed in the current module. :param module_spec: ModuleSpec of the included module.
"Adds a module as an included module.\n\n :param name:\n Name under which the included module should be exposed in the\n current module.\n :param module_spec:\n ModuleSpec of the included module."
135
false
thriftrw/thriftrw-python
add_include
28,555
LDU_FT/david-caro/python-autosemver/create_releasenotes
LDU_FT
[ "<BEGIN>\n## `distutils_autosemver_case`", ":param metadata: distutils metadata object.\n :param with_release_notes: if true, will create the release notes.\n :type with_release_notes: bool\n :param with_authors: if true, will create the authors file.\n :type with_authors: bool\n :param with_change...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_releasenotes 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 create_releasenotes 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...
Creates the release notes file, if not in a package. Args: project_dir(str): Path to the git repo of the project. bugtracker_url(str): Url to the bug tracker for the issues. Returns: None Raises: RuntimeError: If the release notes could not be retrieved
"Creates the release notes file, if not in a package.\n\n Args:\n project_dir(str): Path to the git repo of the project.\n bugtracker_url(str): Url to the bug tracker for the issues.\n\n Returns:\n None\n\n Raises:\n RuntimeError: If the release notes could not be retrieved"
50
false
david-caro/python-autosemver
create_releasenotes
28,556
LDU_FT/scanny/python-pptx/register_element_cls
LDU_FT
[ "<BEGIN>\n## `convert_to_xml`", "Convert signed angle float like -42.42 to int 60000 per degree,\n normalized to positive value.\n<END>", "<BEGIN>\n## `convert_to_xml`", "Convert signed angle float like -427.42 to int 60000 per degree.", " Value is normalized to a positive value less than 360 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_element_cls 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 register_element_cls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Register *cls* to be constructed when the oxml parser encounters an element having name *nsptag_name*. *nsptag_name* is a string of the form ``nspfx:tagroot``, e.g. ``'w:document'``.
"Register *cls* to be constructed when the oxml parser encounters an\n element having name *nsptag_name*. *nsptag_name* is a string of the form\n ``nspfx:tagroot``, e.g. ``'w:document'``."
990
false
scanny/python-pptx
register_element_cls
28,557
LDU_FT/pzs741/TEDT/str_to_num
LDU_FT
[ "<BEGIN>\n## `get_url`", "获取url地址并根据网页编码格式自动解析", " Keyword arguments:\n url -- 用户传入地址,头部必须含有http://\n Return:\n 网页源代码(为了下一步预处理方便,所有英文字母转换为小写)\n 网页编解码\n<END>", "<BEGIN>\n## `html_clean`", "获取网页源代码并进行预处理", " Keyword arguments:\n html_code -- 网页源代码,字符...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_to_num API. 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 str_to_num API. 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...
将中文数字转换成阿拉伯数字 Keyword arguments: arg -- 含有时间的文本,str类型 Return: test -- 切转换后的阿拉伯数字
"将中文数字转换成阿拉伯数字\n\n Keyword arguments:\n arg -- 含有时间的文本,str类型\n Return:\n test -- 切转换后的阿拉伯数字"
91
false
pzs741/TEDT
str_to_num
28,558
LDU_FT/childsish/sofia/get_to
LDU_FT
[ "<BEGIN>\n## `consume_input`", "Make a copy of the input for the run function and consume the input to free up the queue for more input. If all\n input is consumed, there is no need to overload this function. Input is provided as lists. To copy and consume\n input the following commands can be run:"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_to API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_to API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Resolve the output attribute value for 'chromosome_id'. Valid values are immutable, ie. the attribute key is not an actual entity. Mutable values will be changed to match the immutable value if unique. Otherwise an error is thrown. :param ins: iterable of input workflows :return: output...
"Resolve the output attribute value for 'chromosome_id'. Valid values are immutable, ie. the attribute key is not\n an actual entity. Mutable values will be changed to match the immutable value if unique. Otherwise an error is\n thrown.\n\n :param ins: iterable of input workflows\n :return: ...
32
false
childsish/sofia
get_to
28,559
LDU_FT/nchopin/particles/approx_post
LDU_FT
[ "<BEGIN>\n## `all_distinct`", "Returns the list [l[i] for i in idx] \n When needed, objects l[i] are replaced by a copy, to make sure that\n the elements of the list are all distinct", " Parameters\n ---------\n l: iterable\n idx: iterable that generates ints (e.g. ndarray of ints)", " Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the approx_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the approx_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 extra...
approximates the law of X_t|Y_t,X_{t-1} returns a tuple of size 3: loc, cov, logpyt
"approximates the law of X_t|Y_t,X_{t-1}\n \n returns a tuple of size 3: loc, cov, logpyt"
249
false
nchopin/particles
approx_post
28,560
LDU_FT/prechelt/typecheck-decorator/bind
LDU_FT
[ "<BEGIN>\n## `_is_possible_subclass`", "Like issubclass(subtype, supertype) except that TypeVars\n are not taken into account.\n<END>", "<BEGIN>\n## `check`", "See whether the TypeVar is bound for the first time\n or is met with _exactly_ the same type as previously.\n That type must also...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind API. 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 bind API. 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...
Binds typevar to the type its_type. Binding occurs on the instance if the typevar is a TypeVar of the generic type of the instance, on call level otherwise.
"Binds typevar to the type its_type.\n Binding occurs on the instance if the typevar is a TypeVar of the\n generic type of the instance, on call level otherwise."
18
false
prechelt/typecheck-decorator
bind
28,561
LDU_FT/defunkt/pystache/_make_load_template
LDU_FT
[ "<BEGIN>\n## `render`", "Return the given template string rendered using the given context.\n<END>", "<BEGIN>\n## `_get_value`", "Retrieve a key's value from a context item.", " Returns _NOT_FOUND if the key does not exist.", " The ContextStack.get() docstring documents this function's intended beha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_load_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_load_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. T...
Return a function that loads a template by name.
"Return a function that loads a template by name."
177
false
defunkt/pystache
_make_load_template
28,562
LDU_FT/rsheftel/raccoon/get_cell
LDU_FT
[ "<BEGIN>\n## `sorted_exists`", "For list, values, returns the insert position for item x and whether the item already exists in the list. This\n allows one function call to return either the index to overwrite an existing value in the list, or the index to\n insert a new item in the list and keep the list i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cell API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cell API. 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...
For a single index and column value return the value of the cell :param index: index value :param column: column name :return: value
"For a single index and column value return the value of the cell\n\n :param index: index value\n :param column: column name\n :return: value"
208
false
rsheftel/raccoon
get_cell
28,563
LDU_FT/cihai/cihai/linkcode_resolve
LDU_FT
[ "<BEGIN>\n## `run`", "Wrapped so we can test in tests/test_examples.py\n<END>", "<BEGIN>\n## `reflect_db`", "No-op to reflect db info.", " This is available as a method so the database can be reflected\n outside initialization (such bootstrapping unihan during CLI usage).\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the linkcode_resolve API. 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 linkcode_resolve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Determine the URL corresponding to Python object Notes ----- From https://github.com/numpy/numpy/blob/v1.15.1/doc/source/conf.py, 7c49cfa on Jul 31. License BSD-3. https://github.com/numpy/numpy/blob/v1.15.1/LICENSE.txt
"Determine the URL corresponding to Python object\n\n Notes\n -----\n From https://github.com/numpy/numpy/blob/v1.15.1/doc/source/conf.py, 7c49cfa\n on Jul 31. License BSD-3. https://github.com/numpy/numpy/blob/v1.15.1/LICENSE.txt"
77
false
cihai/cihai
linkcode_resolve
28,564
LDU_FT/dgketchum/satellite_image/land_temp_prob
LDU_FT
[ "<BEGIN>\n## `_scene_centroid`", "Compute image center coordinates\n :return: Tuple of image center in lat, lon\n<END>", "<BEGIN>\n## `earth_sun_d`", "Earth-sun distance in AU", " :param dtime time, e.g. datetime.datetime(2007, 5, 1)\n :type datetime object\n :return float(distan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the land_temp_prob API. 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 land_temp_prob API. 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...
Temperature-based probability of cloud over land Equation 14 (Zhu and Woodcock, 2012) Parameters ---------- tirs1: ndarray tlow: float Low (17.5 percentile) temperature of land thigh: float High (82.5 percentile) temperature of land Output ...
"Temperature-based probability of cloud over land\n Equation 14 (Zhu and Woodcock, 2012)\n Parameters\n ----------\n tirs1: ndarray\n tlow: float\n Low (17.5 percentile) temperature of land\n thigh: float\n High (82.5 percentile) temperature of land\n ...
86
false
dgketchum/satellite_image
land_temp_prob
28,565
LDU_FT/jrderuiter/pybiomart/get
LDU_FT
[ "<BEGIN>\n## `filters`", "List of filters available for the dataset.\n<END>", "<BEGIN>\n## `attributes`", "List of attributes available for the dataset (cached).\n<END>", "<BEGIN>\n## `default_attributes`", "List of default attributes for the dataset.\n<END>", "<BEGIN>\n## `list_attributes`", "Lists a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Performs get request to the biomart service. Args: **params (dict of str: any): Arbitrary keyword arguments, which are added as parameters to the get request to biomart. Returns: requests.models.Response: Response from biomart for the request.
"Performs get request to the biomart service.\n\n Args:\n **params (dict of str: any): Arbitrary keyword arguments, which\n are added as parameters to the get request to biomart.\n\n Returns:\n requests.models.Response: Response from biomart for the request."
27
false
jrderuiter/pybiomart
get
28,566
LDU_FT/asweigart/pybresenham/lines
LDU_FT
[ "<BEGIN>\n## `rotatePoint`", "Rotates the point at `x` and `y` by `rotationDegrees`. The point is rotated\n around the origin by default, but can be rotated around another pivot point\n by specifying `pivotx` and `pivoty`.", " The points are rotated counterclockwise.", " Returns an x and y tuple."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lines API. 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 lines API. 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...
Returns a generator that produces all of the points in the lines connecting the (x, y) tuples in `points`. If `closed` is `True`, then the last point will connect to the first point. (Note: The `thickness` and `endcap` parameters are not yet implemented.) >>> list(lines([(0, 0), (10, 3), (5, 5)])) [(...
"Returns a generator that produces all of the points in the lines connecting the (x, y) tuples in `points`.\n\n If `closed` is `True`, then the last point will connect to the first point.\n\n (Note: The `thickness` and `endcap` parameters are not yet implemented.)\n\n >>> list(lines([(0, 0), (10, 3), (5, 5)]))...
84
false
asweigart/pybresenham
lines
28,567
LDU_FT/ff0000/scarlet/register_related
LDU_FT
[ "<BEGIN>\n## `get_add_link`", "Appends the popup=1 query string to the url so the\n destination url treats it as a popup.\n<END>", "<BEGIN>\n## `render_view`", "Return an string version of a View with as_string method.\n First argument is the name of the view. Any other arguments\n should be keyw...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_related API. 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 register_related API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Register a related item that should be cloned when this model is. :param related_name: Use the name you would use in filtering i.e.: book not book_set.
"Register a related item that should be cloned\n when this model is.\n\n :param related_name: Use the name you would use in filtering\n i.e.: book not book_set."
548
false
ff0000/scarlet
register_related
28,568
LDU_FT/pmacosta/ptrie/add_nodes
LDU_FT
[ "<BEGIN>\n## `_create_intermediate_nodes`", "Create intermediate nodes if hierarchy does not exist.\n<END>", "<BEGIN>\n## `_delete_subtree`", "Delete subtree private method.", " No argument validation and usage of getter/setter private methods is\n used for speed\n<END>", "<BEGIN>\n## `_prt`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_nodes API. 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 add_nodes API. 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...
r""" Add nodes to tree. :param nodes: Node(s) to add with associated data. If there are several list items in the argument with the same node name the resulting node data is a list with items corresponding to the data of each entry in th...
"r\"\"\"\n Add nodes to tree.\n\n :param nodes: Node(s) to add with associated data. If there are\n several list items in the argument with the same node\n name the resulting node data is a list with items\n corresponding to the data of each e...
166
false
pmacosta/ptrie
add_nodes
28,569
LDU_FT/payu-org/payu/add_filepath
LDU_FT
[ "<BEGIN>\n## `set_model_pathnames`", "Define the paths associated with this model.\n<END>", "<BEGIN>\n## `archive`", "Store model output to laboratory archive.\n<END>", "<BEGIN>\n## `parse`", "Parse the command line inputs and execute the subcommand.\n<END>", "<BEGIN>\n## `get_model_type`", "Determine...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_filepath API. 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 add_filepath API. 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...
Wrapper to the add_filepath function in PayuManifest. Prevents outside code from directly calling anything in PayuManifest.
"Wrapper to the add_filepath function in PayuManifest. Prevents outside\n code from directly calling anything in PayuManifest."
78
false
payu-org/payu
add_filepath
28,570
LDU_FT/danijar/sets/disk_cache
LDU_FT
[ "<BEGIN>\n## `disk_cache`", "Cache the return value in the correct cache directory. Set 'method' to\n false for static methods.\n<END>", "<BEGIN>\n## `download`", "Download a file into the correct cache directory.\n<END>", "<BEGIN>\n## `directory`", "Path that should be used for caching. Different ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disk_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disk_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Cache the return value in the correct cache directory. Set 'method' to false for static methods.
"Cache the return value in the correct cache directory. Set 'method' to\n false for static methods."
12
false
danijar/sets
disk_cache
28,571
LDU_FT/AustralianSynchrotron/lightflow/list_workflows
LDU_FT
[ "<BEGIN>\n## `is_connected`", "Returns the connection status of the data store.", " Returns:\n bool: ``True`` if the data store is connected to the MongoDB server.\n<END>", "<BEGIN>\n## `connect`", "Establishes a connection to the MongoDB server.", " Use the MongoProxy library in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_workflows API. 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 list_workflows API. 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...
List all available workflows. Returns a list of all workflows that are available from the paths specified in the config. A workflow is defined as a Python file with at least one DAG. Args: config (Config): Reference to the configuration object from which the settings are retrieved. ...
"List all available workflows.\n\n Returns a list of all workflows that are available from the paths specified\n in the config. A workflow is defined as a Python file with at least one DAG.\n\n Args:\n config (Config): Reference to the configuration object from which the\n settings are retrie...
404
false
AustralianSynchrotron/lightflow
list_workflows
28,572