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/ramses-tech/ramses/setup_auth_policies | LDU_FT | [
"<BEGIN>\n## `get_existing_model`",
"Try to find existing model class named `model_name`.",
" :param model_name: String name of the model class.\n<END>",
"<BEGIN>\n## `prepare_relationship`",
"Create referenced model if it doesn't exist.",
" When preparing a relationship, we check to see if the mode... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_auth_policies 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 setup_auth_policies 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... | Setup authentication, authorization policies.
Performs basic validation to check all the required values are present
and performs authentication, authorization policies generation using
generator functions from `AUTHENTICATION_POLICIES`.
:param config: Pyramid Configurator instance.
:param raml_ro... | "Setup authentication, authorization policies.\n\n Performs basic validation to check all the required values are present\n and performs authentication, authorization policies generation using\n generator functions from `AUTHENTICATION_POLICIES`.\n\n :param config: Pyramid Configurator instance.\n :param... | 180 | false | ramses-tech/ramses | setup_auth_policies | 10,473 | |
LDU_FT/Shizmob/pydle/on_raw_authenticate | LDU_FT | [
"<BEGIN>\n## `on_ctcp_version`",
"Built-in CTCP version as some networks seem to require it.\n<END>",
"<BEGIN>\n## `on_raw_privmsg`",
"Modify PRIVMSG to redirect CTCP messages.\n<END>",
"<BEGIN>\n## `on_raw_notice`",
"Modify NOTICE to redirect CTCP messages.\n<END>",
"<BEGIN>\n## `_register`",
"Hijack... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_raw_authenticate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_raw_authenticate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Received part of the authentication challenge. | "Received part of the authentication challenge." | 96 | false | Shizmob/pydle | on_raw_authenticate | 10,474 | |
LDU_FT/datacratic/pymldb/_comparison | LDU_FT | [
"<BEGIN>\n## `query`",
"Shortcut for GET /v1/query, except with argument format='dataframe'\n (the default), in which case it will simply wrap the result of the GET\n query to /v1/query (with format='table') in a `pandas.DataFrame`.\n<END>",
"<BEGIN>\n## `put_and_track`",
"Put and track progress... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _comparison API.
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 _comparison API.
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... | Parameters
----------
value: Column object or base type
The value against which to compare the column. It can either be
another column or a base type value (e.g. int)
Returns
-------
self.query
Notes
-----
Returning self.query wil... | "Parameters\n ----------\n value: Column object or base type\n The value against which to compare the column. It can either be\n another column or a base type value (e.g. int)\n\n Returns\n -------\n self.query\n\n Notes\n -----\n Returning s... | 20 | false | datacratic/pymldb | _comparison | 10,475 | |
LDU_FT/svenkreiss/pysparkling/get_codec | LDU_FT | [
"<BEGIN>\n## `get_fs`",
"Find the file system implementation for this path.\n<END>",
"<BEGIN>\n## `awaitTermination`",
"Wait for context to stop.",
" :param float timeout: in seconds\n<END>",
"<BEGIN>\n## `binaryRecordsStream`",
"Monitor a directory and process all binary files.",
" File... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_codec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_codec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Find the codec implementation for this path. | "Find the codec implementation for this path." | 109 | false | svenkreiss/pysparkling | get_codec | 10,476 | |
LDU_FT/venmo/business-rules/export_rule_data | LDU_FT | [
"<BEGIN>\n## `export_rule_data`",
"export_rule_data is used to export all information about the\n variables, actions, and operators to the client. This will return a\n dictionary with three keys:\n - variables: a list of all available variables along with their label, type and options\n - actions: a l... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_rule_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_rule_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | export_rule_data is used to export all information about the
variables, actions, and operators to the client. This will return a
dictionary with three keys:
- variables: a list of all available variables along with their label, type and options
- actions: a list of all actions along with their label and... | "export_rule_data is used to export all information about the\n variables, actions, and operators to the client. This will return a\n dictionary with three keys:\n - variables: a list of all available variables along with their label, type and options\n - actions: a list of all actions along with their labe... | 21 | false | venmo/business-rules | export_rule_data | 10,477 | |
LDU_FT/cqlengine/cqlengine/add_assignment_clause | LDU_FT | [
"<BEGIN>\n## `create_keyspace`",
"creates a keyspace",
" :param name: name of keyspace to create\n :param strategy_class: keyspace replication strategy class\n :param replication_factor: keyspace replication factor\n :param durable_writes: 1.2 only, write log is bypassed if set to False\n :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_assignment_clause API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_assignment_clause API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | adds an assignment clause to this statement
:param clause: the clause to add
:type clause: AssignmentClause | "adds an assignment clause to this statement\n :param clause: the clause to add\n :type clause: AssignmentClause" | 65 | false | cqlengine/cqlengine | add_assignment_clause | 10,478 | |
LDU_FT/sods/paramz/traverse_parents | LDU_FT | [
"<BEGIN>\n## `adjust_name_for_printing`",
"Make sure a name can be printed, alongside used as a variable name.\n<END>",
"<BEGIN>\n## `name`",
"Set the name of this object.\n Tell the parent if the name has changed.\n<END>",
"<BEGIN>\n## `hierarchy_name`",
"return the name for this object with the p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traverse_parents API.
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 traverse_parents API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Traverse the hierarchy upwards, visiting all parents and their children except self.
See "visitor pattern" in literature. This is implemented in pre-order fashion.
Example:
parents = []
self.traverse_parents(parents.append)
print parents | "Traverse the hierarchy upwards, visiting all parents and their children except self.\n See \"visitor pattern\" in literature. This is implemented in pre-order fashion.\n\n Example:\n\n parents = []\n self.traverse_parents(parents.append)\n print parents" | 225 | false | sods/paramz | traverse_parents | 10,479 | |
LDU_FT/xzased/lvm2py/close | LDU_FT | [
"<BEGIN>\n## `open`",
"Obtains the lvm, vg_t and lv_t handle. Usually you would never need to use this\n method unless you are doing operations using the ctypes function wrappers in\n conversion.py",
" *Raises:*",
" * HandleError\n<END>",
"<BEGIN>\n## `is_active`",
"Retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Closes the lvm and vg_t handle. Usually you would never need to use this method
unless you are doing operations using the ctypes function wrappers in conversion.py
*Raises:*
* HandleError | "Closes the lvm and vg_t handle. Usually you would never need to use this method\n unless you are doing operations using the ctypes function wrappers in conversion.py\n\n *Raises:*\n\n * HandleError" | 189 | false | xzased/lvm2py | close | 10,480 | |
LDU_FT/inveniosoftware/invenio-webhooks/get_hmac | LDU_FT | [
"<BEGIN>\n## `get_hmac`",
"Calculate HMAC value of message using ``WEBHOOKS_SECRET_KEY``.",
" :param message: String to calculate HMAC for.\n<END>",
"<BEGIN>\n## `check_x_hub_signature`",
"Check X-Hub-Signature used by GitHub to sign requests.",
" :param signature: HMAC signature extracted from requ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hmac API.
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_hmac API.
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... | Calculate HMAC value of message using ``WEBHOOKS_SECRET_KEY``.
:param message: String to calculate HMAC for. | "Calculate HMAC value of message using ``WEBHOOKS_SECRET_KEY``.\n\n :param message: String to calculate HMAC for." | 17 | false | inveniosoftware/invenio-webhooks | get_hmac | 10,481 | |
LDU_FT/danielperna84/pyhomematic/getValue | 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 getValue API.
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 getValue API.
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... | Some devices allow to directly get values for specific parameters. | "Some devices allow to directly get values for specific parameters." | 83 | false | danielperna84/pyhomematic | getValue | 10,482 | |
LDU_FT/meejah/txtorcon/modified | LDU_FT | [
"<BEGIN>\n## `tor_agent`",
"This is the low-level method used by\n :meth:`txtorcon.Tor.web_agent` and\n :meth:`txtorcon.Circuit.web_agent` -- probably you should call one\n of those instead.",
" :returns: a Deferred that fires with an object that implements\n :class:`twisted.web.iweb.IAgent` ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modified API.
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 modified API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | This is the time of 'the publication time of its most recent
descriptor' (in UTC).
See also dir-spec.txt. | "This is the time of 'the publication time of its most recent\n descriptor' (in UTC).\n\n See also dir-spec.txt." | 289 | false | meejah/txtorcon | modified | 10,483 | |
LDU_FT/pmneila/morphsnakes/circle_level_set | LDU_FT | [
"<BEGIN>\n## `visual_callback_2d`",
"Returns a callback than can be passed as the argument `iter_callback`\n of `morphological_geodesic_active_contour` and\n `morphological_chan_vese` for visualizing the evolution\n of the levelsets. Only works for 2D images.",
" Parameters\n ----------\n back... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the circle_level_set API.
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 circle_level_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Create a circle level set with binary values.
Parameters
----------
image_shape : tuple of positive integers
Shape of the image
center : tuple of positive integers, optional
Coordinates of the center of the circle given in (row, column). If not
given, it defaults to the center o... | "Create a circle level set with binary values.\n\n Parameters\n ----------\n image_shape : tuple of positive integers\n Shape of the image\n center : tuple of positive integers, optional\n Coordinates of the center of the circle given in (row, column). If not\n given, it defaults to the... | 66 | false | pmneila/morphsnakes | circle_level_set | 10,484 | |
LDU_FT/jreese/dotlink/cleanup_repo | LDU_FT | [
"<BEGIN>\n## `parse_mapping`",
"Do a simple parse of the dotfile mapping, using semicolons to\n separate source file name from the target file paths.\n<END>",
"<BEGIN>\n## `sh`",
"Run a shell command with the given arguments.\n<END>",
"<BEGIN>\n## `ssh`",
"Run an ssh command using the configured us... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup_repo API.
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 cleanup_repo API.
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... | Cleanup the temporary directory containing the dotfiles repo. | "Cleanup the temporary directory containing the dotfiles repo." | 16 | false | jreese/dotlink | cleanup_repo | 10,485 | |
LDU_FT/dogoncouch/logdissect/parse_file | LDU_FT | [
"<BEGIN>\n## `parse_file`",
"Parse an object-per-line JSON file into a log data dict\n<END>",
"<BEGIN>\n## `filter_data`",
"Morph log data by preceeding time period (single log)\n<END>",
"<BEGIN>\n## `parse_file`",
"Parse single JSON object into a LogData object\n<END>",
"<BEGIN>\n## `filter_data`",
"... | 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 an object-per-line JSON file into a log data dict | "Parse an object-per-line JSON file into a log data dict" | 24 | false | dogoncouch/logdissect | parse_file | 10,486 | |
LDU_FT/google/python-adb/Push | LDU_FT | [
"<BEGIN>\n## `_get_service_connection`",
"Based on the service, get the AdbConnection for that service or create one if it doesnt exist",
" :param service:\n :param service_command: Additional service parameters to append\n :param create: If False, dont create a connection if it does not ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Push API.
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 Push API.
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... | Push a file-like object to the device.
Args:
connection: ADB connection
datafile: File-like object for reading from
filename: Filename to push to
st_mode: stat mode for filename
mtime: modification time
progress_callback: callback method that accepts ... | "Push a file-like object to the device.\n\n Args:\n connection: ADB connection\n datafile: File-like object for reading from\n filename: Filename to push to\n st_mode: stat mode for filename\n mtime: modification time\n progress_callback: callback method that... | 174 | false | google/python-adb | Push | 10,487 | |
LDU_FT/awslabs/aws-shell/load_config | LDU_FT | [
"<BEGIN>\n## `_create_key_manager`",
"Create and initialize the keybinding manager.",
" :type get_fuzzy_match: callable\n :param get_fuzzy_match: Gets the fuzzy matching config.",
" :type set_fuzzy_match: callable\n :param set_fuzzy_match: Sets the fuzzy matching config.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Load the config from the config file or template. | "Load the config from the config file or template." | 109 | false | awslabs/aws-shell | load_config | 10,488 | |
LDU_FT/benley/butcher/paths_wanted | LDU_FT | [
"<BEGIN>\n## `_metahash`",
"Checksum hash of all the inputs to this rule.",
" Output is invalid until collect_srcs and collect_deps have been run.",
" In theory, if this hash doesn't change, the outputs won't change\n either, which makes it useful for caching.\n<END>",
"<BEGIN>\n## `col... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paths_wanted API.
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 paths_wanted API.
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... | The set of paths where we expect to find missing nodes. | "The set of paths where we expect to find missing nodes." | 118 | false | benley/butcher | paths_wanted | 10,489 | |
LDU_FT/ajyoon/blur/merge_nodes | LDU_FT | [
"<BEGIN>\n## `with_random_weights`",
"Initialize from a list of options with random weights.",
" The weights assigned to each object are uniformally random\n integers between ``1`` and ``len(options)``",
" Args:\n options (list): The list of options of any type this object\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_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 extra... | Merge two nodes in the graph.
Takes two nodes and merges them together, merging their links by
combining the two link lists and summing the weights of links which
point to the same node.
All links in the graph pointing to ``kill_node`` will be merged
into ``keep_node``.
... | "Merge two nodes in the graph.\n\n Takes two nodes and merges them together, merging their links by\n combining the two link lists and summing the weights of links which\n point to the same node.\n\n All links in the graph pointing to ``kill_node`` will be merged\n into ``keep_node``.... | 235 | false | ajyoon/blur | merge_nodes | 10,490 | |
LDU_FT/OpenHumans/open-humans-api/review_metadata_csv | LDU_FT | [
"<BEGIN>\n## `guess_tags`",
"Function to get potential tags for files using the file names.",
" :param filename: This field is the name of file.\n<END>",
"<BEGIN>\n## `characterize_local_files`",
"Collate local file info as preperation for Open Humans upload.",
" Note: Files with filesize > max_byte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the review_metadata_csv 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 review_metadata_csv 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... | Check validity of metadata fields.
:param filedir: This field is the filepath of the directory whose csv
has to be made.
:param outputfilepath: This field is the file path of the output csv.
:param max_bytes: This field is the maximum file size to consider. Its
default value is 128m. | "Check validity of metadata fields.\n\n :param filedir: This field is the filepath of the directory whose csv\n has to be made.\n :param outputfilepath: This field is the file path of the output csv.\n :param max_bytes: This field is the maximum file size to consider. Its\n default value is 128m.... | 162 | false | OpenHumans/open-humans-api | review_metadata_csv | 10,491 | |
LDU_FT/pytorch/text/call | LDU_FT | [
"<BEGIN>\n## `load_vectors`",
"Arguments:\n vectors: one of or a list containing instantiations of the\n GloVe, CharNGram, or Vectors classes. Alternatively, one\n of or a list of available pretrained vectors:\n charngram.100d\n fasttext.en.30... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Apply _only_ the convert_token function of the current pipeline
to the input. If the input is a list, a list with the results of
applying the `convert_token` function to all input elements is
returned.
Arguments:
x: The input to apply the convert_token function to.
... | "Apply _only_ the convert_token function of the current pipeline\n to the input. If the input is a list, a list with the results of\n applying the `convert_token` function to all input elements is\n returned.\n\n Arguments:\n x: The input to apply the convert_token function to.\n ... | 131 | false | pytorch/text | call | 10,492 | |
LDU_FT/catherinedevlin/ddl-generator/best_representative | LDU_FT | [
"<BEGIN>\n## `precision_and_scale`",
"From a float, decide what precision and scale are needed to represent it.",
" >>> precision_and_scale(54.2)\n (3, 1)\n >>> precision_and_scale(9)\n (1, 0)",
" Thanks to Mark Ransom,\n http://stackoverflow.com/questions/3018758/determine-precision-and-sca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the best_representative 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 best_representative 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... | Given two objects each coerced to the most specific type possible, return the one
of the least restrictive type.
>>> best_representative(Decimal('-37.5'), Decimal('0.9999'))
Decimal('-99.9999')
>>> best_representative(None, Decimal('6.1'))
Decimal('6.1')
>>> best_representative(311920, '48-49')... | "Given two objects each coerced to the most specific type possible, return the one\n of the least restrictive type.\n\n >>> best_representative(Decimal('-37.5'), Decimal('0.9999'))\n Decimal('-99.9999')\n >>> best_representative(None, Decimal('6.1'))\n Decimal('6.1')\n >>> best_representative(311920, ... | 63 | false | catherinedevlin/ddl-generator | best_representative | 10,493 | |
LDU_FT/learningequality/ricecooker/get_restore_path | LDU_FT | [
"<BEGIN>\n## `_write_to_zip`",
"_write_to_zip: Write file to zip\n Args:\n path: (str) where in zip to write file\n contents: (str) contents of file to write\n Returns: None\n<END>",
"<BEGIN>\n## `_commit`",
"_commit: Adds folder/file to map\n Arg... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_restore_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_restore_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | get_restore_path: returns path to directory for restoration points
Args:
filename (str): Name of file to store
Returns: string path to file | "get_restore_path: returns path to directory for restoration points\n Args:\n filename (str): Name of file to store\n Returns: string path to file" | 364 | false | learningequality/ricecooker | get_restore_path | 10,494 | |
LDU_FT/dariusbakunas/rawdisk/detect_mbr | LDU_FT | [
"<BEGIN>\n## `get_entry`",
"Get mft entry by index. If entry is not already loaded it will load \\\n it from file specified during :class:`MftTable` initialization.",
" Returns:\n MftEntry: initialized :class:`~.mft_entry.MftEntry`.\n<END>",
"<BEGIN>\n## `do_list`",
"Enumerate resou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_mbr API.
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 detect_mbr API.
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 by rawdisk.session.Session to match mbr partitions against
filesystem plugins.
Args:
filename: device or file that it will read in order to detect
the filesystem fs_id: filesystem id to match (ex. 0x07)
offset: offset for the filesystem that is being matched
... | "Used by rawdisk.session.Session to match mbr partitions against\n filesystem plugins.\n\n Args:\n filename: device or file that it will read in order to detect\n the filesystem fs_id: filesystem id to match (ex. 0x07)\n offset: offset for the filesystem that is being matc... | 75 | false | dariusbakunas/rawdisk | detect_mbr | 10,495 | |
LDU_FT/pystorm/pystorm/remote_pdb_handler | LDU_FT | [
"<BEGIN>\n## `emit`",
"Emit a spout Tuple message.",
" :param tup: the Tuple to send to Storm, should contain only\n JSON-serializable data.\n :type tup: list or tuple\n :param tup_id: the ID for the Tuple. Leave this blank for an\n unreliable emit.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remote_pdb_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remote_pdb_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Handler to drop us into a remote debugger upon receiving SIGUSR1 | "Handler to drop us into a remote debugger upon receiving SIGUSR1" | 103 | false | pystorm/pystorm | remote_pdb_handler | 10,496 | |
LDU_FT/Cog-Creators/Red-Lavalink/register_event_listener | LDU_FT | [
"<BEGIN>\n## `wait_until_ready`",
"Waits for the underlying node to become ready.",
" If no_raise is set, returns false when a timeout occurs instead of propogating TimeoutError.\n A timeout of None means to wait indefinitely.\n<END>",
"<BEGIN>\n## `connect`",
"Connects to the voice channel as... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_event_listener 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_event_listener API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Registers a coroutine to receive lavalink event information.
This coroutine will accept three arguments: :py:class:`Player`,
:py:class:`LavalinkEvents`, and possibly an extra. The value of the extra depends
on the value of the second argument.
If the second argument is :py:attr:`LavalinkEvents.TRACK_E... | "Registers a coroutine to receive lavalink event information.\n\n This coroutine will accept three arguments: :py:class:`Player`,\n :py:class:`LavalinkEvents`, and possibly an extra. The value of the extra depends\n on the value of the second argument.\n\n If the second argument is :py:attr:`LavalinkEvents.... | 103 | false | Cog-Creators/Red-Lavalink | register_event_listener | 10,497 | |
LDU_FT/hcpl/xkbgroup/open_display | LDU_FT | [
"<BEGIN>\n## `open_display`",
"Establishes connection with X server and prepares objects\n necessary to retrieve and send data.\n<END>",
"<BEGIN>\n## `close_display`",
"Closes connection with X server and cleans up objects\n created on open_display().\n<END>",
"<BEGIN>\n## `groups_data`",
"A... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_display API.
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 open_display API.
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... | Establishes connection with X server and prepares objects
necessary to retrieve and send data. | "Establishes connection with X server and prepares objects\n necessary to retrieve and send data." | 30 | false | hcpl/xkbgroup | open_display | 10,498 | |
LDU_FT/codelv/enaml-native/toggle_keyboard | LDU_FT | [
"<BEGIN>\n## `init_layout`",
"Initialize the layout of the toolkit widget.",
" This method is called during the bottom-up pass. This method\n should initialize the layout of the widget. The child widgets\n will be fully initialized and layed out when this is called.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toggle_keyboard API.
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 toggle_keyboard API.
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... | Toggle the keyboard on and off
Parameters
----------
flag: int
Flag to send to toggleSoftInput
Returns
--------
result: future
Resolves when the toggle is complete | "Toggle the keyboard on and off\n \n Parameters\n ----------\n flag: int\n Flag to send to toggleSoftInput\n \n Returns\n --------\n result: future\n Resolves when the toggle is complete" | 573 | false | codelv/enaml-native | toggle_keyboard | 10,499 | |
LDU_FT/tBaxter/activity-monitor/image | LDU_FT | [
"<BEGIN>\n## `register_app_activity`",
"Create watchers for models defined in settings.py.\n Once created, they will be passed over\n Activity.objects.follow_model(), which lives in managers.py\n<END>",
"<BEGIN>\n## `save`",
"Store a string representation of content_object as target\n and actor n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Attempts to provide a representative image from a content_object based on
the content object's get_image() method.
If there is a another content.object, as in the case of comments and other GFKs,
then it will follow to that content_object and then get the image.
Requires get_image() to... | "Attempts to provide a representative image from a content_object based on\n the content object's get_image() method.\n\n If there is a another content.object, as in the case of comments and other GFKs,\n then it will follow to that content_object and then get the image.\n\n Requires get_ima... | 55 | false | tBaxter/activity-monitor | image | 10,500 | |
LDU_FT/bslatkin/dpxdt/request_run | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds a work item to a queue.",
" Args:\n queue_name: Name of the queue to add the work item to.\n payload: Optional. Payload that describes the work to do as a string.\n If not a string and content_type is not provided, then this\n function assumes th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Requests a new run for a release candidate. | "Requests a new run for a release candidate." | 180 | false | bslatkin/dpxdt | request_run | 10,501 | |
LDU_FT/ironfroggy/django-better-cache/get | LDU_FT | [
"<BEGIN>\n## `process_request`",
"Checks whether the page is already cached and returns the cached\n version if available.\n<END>",
"<BEGIN>\n## `process_response`",
"Sets the cache and deals with caching headers if needed\n<END>",
"<BEGIN>\n## `keys`",
"Create an ordered dict of the names and valu... | 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... | Get a copy of the type from the cache and reconstruct it. | "Get a copy of the type from the cache and reconstruct it." | 51 | false | ironfroggy/django-better-cache | get | 10,502 | |
LDU_FT/pulseenergy/vacation/touch | LDU_FT | [
"<BEGIN>\n## `execute`",
"Perform the actions described by the input tokens.\n<END>",
"<BEGIN>\n## `sort`",
"Return a list of sorted transactions by date.\n<END>",
"<BEGIN>\n## `validate_rc`",
"Before we execute any actions, let's validate our .vacationrc.\n<END>",
"<BEGIN>\n## `validate_setup`",
"Fir... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the touch API.
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 touch API.
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... | Create a .vacationrc file if none exists. | "Create a .vacationrc file if none exists." | 22 | false | pulseenergy/vacation | touch | 10,503 | |
LDU_FT/Pylons/hupper/args_from_interpreter_flags | LDU_FT | [
"<BEGIN>\n## `expand_source_paths`",
"Convert pyc files into their source equivalents.\n<END>",
"<BEGIN>\n## `update_paths`",
"Check sys.modules for paths to add to our path set.\n<END>",
"<BEGIN>\n## `search_traceback`",
"Inspect a traceback for new paths to add to our path set.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the args_from_interpreter_flags API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the args_from_interpreter_flags API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Return a list of command-line arguments reproducing the current
settings in sys.flags and sys.warnoptions. | "Return a list of command-line arguments reproducing the current\n settings in sys.flags and sys.warnoptions." | 27 | false | Pylons/hupper | args_from_interpreter_flags | 10,504 | |
LDU_FT/peterbrittain/asciimatics/add_widget | LDU_FT | [
"<BEGIN>\n## `reset`",
"Reset the scene ready for playing.",
" :param old_scene: The previous version of this Scene that was running before the\n application reset - e.g. due to a screen resize.\n :param screen: New screen to use if old_scene is not None.\n<END>",
"<BEGIN>\n## `add_ef... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_widget API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_widget API.
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... | Add a widget to this Layout.
If you are adding this Widget to the Layout dynamically after starting to play the Scene,
don't forget to ensure that the value is explicitly set before the next update.
:param widget: The widget to be added.
:param column: The column within the widget for ... | "Add a widget to this Layout.\n\n If you are adding this Widget to the Layout dynamically after starting to play the Scene,\n don't forget to ensure that the value is explicitly set before the next update.\n\n :param widget: The widget to be added.\n :param column: The column within the widg... | 355 | false | peterbrittain/asciimatics | add_widget | 10,505 | |
LDU_FT/micahhausler/container-transform/flatten_container | LDU_FT | [
"<BEGIN>\n## `_read_stream`",
"We override the return signature of\n ``super(BaseTransformer, self)._read_stream()`` to return extra volume\n data. This is intentional.",
" :param stream: A file like object\n :returns: Return the family name, containers, and volumes. If there are\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten_container API.
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 flatten_container API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Accepts a marathon container and pulls out the nested values into the top level | "Accepts a marathon container and pulls out the nested values into the top level" | 61 | false | micahhausler/container-transform | flatten_container | 10,506 | |
LDU_FT/gtaylor/django-athumb/url | LDU_FT | [
"<BEGIN>\n## `create_thumbnail`",
"This serves as a really basic example of a thumbnailing method. You\n may want to implement your own logic, but this will work for\n simple cases.",
" :param Image image: This is your engine's ``Image`` object. For\n PIL it's PIL.Image.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Since we assume all public storage with no authorization keys, we can
just simply dump out a URL rather than having to query S3 for new keys. | "Since we assume all public storage with no authorization keys, we can\n just simply dump out a URL rather than having to query S3 for new keys." | 76 | false | gtaylor/django-athumb | url | 10,507 | |
LDU_FT/Karaage-Cluster/karaage/update_object | LDU_FT | [
"<BEGIN>\n## `_gen_project_trend_graph`",
"Generates a bar graph for a project",
" Keyword arguments:\n project -- Project\n start -- start date\n end -- end date\n<END>",
"<BEGIN>\n## `synchronise`",
"If task already queued, running, or finished, don't restart.\n<END>",
"<BEGIN>\n## `send_bou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Generic object-update function.
Templates: ``<app_label>/<model_name>_form.html``
Context:
form
the form for the object
object
the original object being edited | "Generic object-update function.\n\n Templates: ``<app_label>/<model_name>_form.html``\n Context:\n form\n the form for the object\n object\n the original object being edited" | 214 | false | Karaage-Cluster/karaage | update_object | 10,508 | |
LDU_FT/CZ-NIC/yangson/peek_step | LDU_FT | [
"<BEGIN>\n## `schema_root`",
"Return the root node of the receiver's schema.\n<END>",
"<BEGIN>\n## `iname`",
"Return the instance name corresponding to the receiver.\n<END>",
"<BEGIN>\n## `_node_digest`",
"Return dictionary of receiver's properties suitable for clients.\n<END>",
"<BEGIN>\n## `_iname2qna... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the peek_step API.
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 peek_step API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return the entry addressed by the receiver + its schema node.
Args:
val: Current value (array).
sn: Current schema node. | "Return the entry addressed by the receiver + its schema node.\n\n Args:\n val: Current value (array).\n sn: Current schema node." | 352 | false | CZ-NIC/yangson | peek_step | 10,509 | |
LDU_FT/rsgalloway/grit/from_string | LDU_FT | [
"<BEGIN>\n## `assemble_WSGI_git_app`",
"Assembles basic WSGI-compatible application providing functionality of git-http-backend.\r",
" content_path (Defaults to '.' = \"current\" directory)\r\n The path to the folder that will be the root of served files. Accepts relative paths.\r",
" uri_marker ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Create a new Item from a data stream.
:param repo: Repo object.
:param name: Name of item.
:param data: Data stream.
:return: New Item class instance. | "Create a new Item from a data stream.\n\n :param repo: Repo object.\n :param name: Name of item.\n :param data: Data stream.\n\n :return: New Item class instance." | 222 | false | rsgalloway/grit | from_string | 10,510 | |
LDU_FT/alantygel/ckanext-semantictags/get | LDU_FT | [
"<BEGIN>\n## `by_id`",
"Return the semantic tag with the given id, or None.",
"\t\t:param semantictag_id: the id of the semantic tag to return\n\t\t:type semantictag_id: string",
"\t\t:returns: the semantic tag with the given id, or None if there is no tag with\n\t\t\tthat id\n\t\t:rtype: ckan.model.semantict... | 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... | Return all the semantic tag related to the given tag id
:returns: a semantic tag or None
:rtype: list of ckan.model.semantictag.SemanticTag object | "Return all the semantic tag related to the given tag id\n\n\t\t:returns: a semantic tag or None\n\t\t:rtype: list of ckan.model.semantictag.SemanticTag object" | 39 | false | alantygel/ckanext-semantictags | get | 10,511 | |
LDU_FT/redhat-cip/dci-control-server/run_migrations_offline | LDU_FT | [
"<BEGIN>\n## `get_user_and_check_auth`",
"Check the combination username/password that is valid on the\n database.\n<END>",
"<BEGIN>\n## `retrieve_info`",
"Query the Github API to retrieve the needed infos.\n<END>",
"<BEGIN>\n## `get_last_rconfiguration_id`",
"Get the rconfiguration_id of the last ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_migrations_offline 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 run_migrations_offline API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the
script output. | "Run migrations in 'offline' mode.\n\n This configures the context with just a URL\n and not an Engine, though an Engine is acceptable\n here as well. By skipping the Engine creation\n we don't even need a DBAPI to be available.\n\n Calls to context.execute() here emit the given string to the\n scrip... | 86 | false | redhat-cip/dci-control-server | run_migrations_offline | 10,512 | |
LDU_FT/gouthambs/Flask-Blogging/get_posts | LDU_FT | [
"<BEGIN>\n## `init_app`",
"Initialize the engine.",
" :param app: The app to use\n :type app: Object\n :param storage: The blog storage instance that implements the\n :type storage: Object\n :param cache: (Optional) A Flask-Cache object to enable caching\n :type cache: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_posts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_posts API.
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... | TODO: implement cursors support, if it will be needed.
But for the regular blog, it is overhead and
cost savings are minimal. | "TODO: implement cursors support, if it will be needed.\n But for the regular blog, it is overhead and\n cost savings are minimal." | 53 | false | gouthambs/Flask-Blogging | get_posts | 10,513 | |
LDU_FT/hyde/fswrap/is_descendant_of | LDU_FT | [
"<BEGIN>\n## `fully_expanded_path`",
"Returns the absolutely absolute path. Calls os.(\n normpath, normcase, expandvars and expanduser).\n<END>",
"<BEGIN>\n## `depth`",
"Returns the number of ancestors of this directory.\n<END>",
"<BEGIN>\n## `ancestors`",
"Generates the parents until stop or the a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_descendant_of API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_descendant_of API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Checks if this folder is inside the given ancestor. | "Checks if this folder is inside the given ancestor." | 43 | false | hyde/fswrap | is_descendant_of | 10,514 | |
LDU_FT/mieubrisse/wunderpy2/update_task | LDU_FT | [
"<BEGIN>\n## `get_endpoint_obj`",
"Tiny helper function that gets used all over the place to join the object ID to the endpoint and run a GET request, returning the result\n<END>",
"<BEGIN>\n## `update_endpoint_obj`",
"Helper method to ease the repetitiveness of updating an... SO VERY DRY ",
" (That's a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_task API.
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 update_task API.
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... | Updates the task with the given ID
See https://developer.wunderlist.com/documentation/endpoints/task for detailed parameter information | "Updates the task with the given ID\n\n See https://developer.wunderlist.com/documentation/endpoints/task for detailed parameter information" | 94 | false | mieubrisse/wunderpy2 | update_task | 10,515 | |
LDU_FT/brian-rose/climlab/cam3_gen_source | LDU_FT | [
"<BEGIN>\n## `default_absorbers`",
"Initialize a dictionary of well-mixed radiatively active gases\n All values are volumetric mixing ratios.",
" Ozone is set to a climatology.",
" All other gases are assumed well-mixed:",
" - CO2\n - CH4\n - N2O\n - O2\n - CFC11\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cam3_gen_source API.
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 cam3_gen_source API.
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... | Add CAM3 fortran source if Fortran 90 compiler available,
if no compiler is found do not try to build the extension. | "Add CAM3 fortran source if Fortran 90 compiler available,\n if no compiler is found do not try to build the extension." | 571 | false | brian-rose/climlab | cam3_gen_source | 10,516 | |
LDU_FT/kyper-data/python-highcharts/decode | LDU_FT | [
"<BEGIN>\n## `jsonp_loader`",
"jsonp_loader is to request (JSON) data from a server in a different domain (JSONP) \n and covert to python readable data. \n 1. url is the url (https) where data is located\n 2. \"prefix_regex\" and \"suffix_regex\" are regex patterns used to \n remove JSONP specific... | 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 ... | json_string is basicly string that you give to json.loads method | "json_string is basicly string that you give to json.loads method" | 34 | false | kyper-data/python-highcharts | decode | 10,517 | |
LDU_FT/amaas-fintech/amaas-core-sdk-python/deactivate | LDU_FT | [
"<BEGIN>\n## `deactivate`",
"Is is only possible to deactivate an asset manager if your client_id is also the client_id that was used\n to originally create the asset manager.",
" :param asset_manager_id:\n :return:\n<END>",
"<BEGIN>\n## `quote_datetime`",
"Force the quote_datetime to a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deactivate API.
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 deactivate API.
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... | Is is only possible to deactivate an asset manager if your client_id is also the client_id that was used
to originally create the asset manager.
:param asset_manager_id:
:return: | "Is is only possible to deactivate an asset manager if your client_id is also the client_id that was used\n to originally create the asset manager.\n\n :param asset_manager_id:\n :return:" | 109 | false | amaas-fintech/amaas-core-sdk-python | deactivate | 10,518 | |
LDU_FT/sprockets/sprockets.mixins.http/_http_req_apply_default_headers | LDU_FT | [
"<BEGIN>\n## `append_response`",
"Append the response to the stack of responses.",
" :param tornado.httpclient.HTTPResponse response: The HTTP response\n<END>",
"<BEGIN>\n## `body`",
"Returns the HTTP response body, deserialized if possible.",
" :rtype: mixed\n<END>",
"<BEGIN>\n## `links`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _http_req_apply_default_headers 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 _http_req_apply_default_headers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Set default values for common HTTP request headers
:param dict request_headers: The HTTP request headers
:param content_type: The mime-type used in the request/response
:type content_type: :py:class:`ietfparse.datastructures.ContentType`
or str
:param mixed body: The request... | "Set default values for common HTTP request headers\n\n :param dict request_headers: The HTTP request headers\n :param content_type: The mime-type used in the request/response\n :type content_type: :py:class:`ietfparse.datastructures.ContentType`\n or str\n :param mixed body: The ... | 35 | false | sprockets/sprockets.mixins.http | _http_req_apply_default_headers | 10,519 | |
LDU_FT/toastdriven/restless/prepare | LDU_FT | [
"<BEGIN>\n## `skip_prepare`",
"A convenience decorator for indicating the raw data should not be prepared.\n<END>",
"<BEGIN>\n## `as_view`",
"Used for hooking up the all endpoints (including custom ones), this\n returns a wrapper function that creates a new instance of the resource\n class & cal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare API.
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 prepare API.
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... | Handles transforming the provided data into the fielded data that should
be exposed to the end user.
Uses the ``lookup_data`` method to traverse dotted paths.
Returns a dictionary of data as the response. | "Handles transforming the provided data into the fielded data that should\n be exposed to the end user.\n\n Uses the ``lookup_data`` method to traverse dotted paths.\n\n Returns a dictionary of data as the response." | 94 | false | toastdriven/restless | prepare | 10,520 | |
LDU_FT/google/python-gflags/DEFINE_multi | LDU_FT | [
"<BEGIN>\n## `GetRealPath`",
"Given an executable filename, find in the PATH or find absolute path.\n Args:\n filename An executable filename (string)\n Returns:\n Absolute version of filename.\n None if filename could not be found locally, absolutely, or in PATH\n<END>",
"<BEGIN>\n## `Run`",
"Run... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DEFINE_multi API.
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 DEFINE_multi API.
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... | Registers a generic MultiFlag that parses its args with a given parser.
Auxiliary function. Normal users should NOT use it directly.
Developers who need to create their own 'Parser' classes for options
which can appear multiple times can call this module function to
register their flags.
Args:
parser:... | "Registers a generic MultiFlag that parses its args with a given parser.\n\n Auxiliary function. Normal users should NOT use it directly.\n\n Developers who need to create their own 'Parser' classes for options\n which can appear multiple times can call this module function to\n register their flags.\n\n Args:\n ... | 243 | false | google/python-gflags | DEFINE_multi | 10,521 | |
LDU_FT/scopus-api/scopus/affiliation_history | LDU_FT | [
"<BEGIN>\n## `detect_id_type`",
"Method that tries to infer the type of abstract ID.",
" Parameters\n ----------\n sid : str\n The ID of an abstract on Scopus.",
" Raises\n ------\n ValueError\n If the ID type cannot be inferred.",
" Notes\n -----\n PII usually has 1... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the affiliation_history 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 affiliation_history 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... | Unordered list of IDs of all affiliations the author was
affiliated with acccording to Scopus. | "Unordered list of IDs of all affiliations the author was\n affiliated with acccording to Scopus." | 174 | false | scopus-api/scopus | affiliation_history | 10,522 | |
LDU_FT/Ezhil-Language-Foundation/open-tamil/get_letters_iterable | LDU_FT | [
"<BEGIN>\n## `unicode2encode`",
"charmap : dictionary which has both encode as key, unicode as value\n<END>",
"<BEGIN>\n## `unicode2auto`",
"This function will convert unicode (first argument) text into other\r\n encodes by auto find the encode (from available encodes) by using sample\r\n encode text in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_letters_iterable 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_letters_iterable API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | splits the word into a character-list of tamil/english
characters present in the stream | "splits the word into a character-list of tamil/english\n characters present in the stream" | 90 | false | Ezhil-Language-Foundation/open-tamil | get_letters_iterable | 10,523 | |
LDU_FT/Cognexa/cxflow/get_attribute | LDU_FT | [
"<BEGIN>\n## `_write_header`",
"Write CSV header row with column names.",
" Column names are inferred from the ``epoch_data`` and ``self.variables`` (if specified).\n Variables and streams expected later on are stored in ``self._variables`` and ``self._streams`` respectively.",
" :param e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get the specified module attribute. It most cases, it will be a class or function.
:param module_name: module name
:param attribute_name: attribute name
:return: module attribute | "Get the specified module attribute. It most cases, it will be a class or function.\n\n :param module_name: module name\n :param attribute_name: attribute name\n :return: module attribute" | 325 | false | Cognexa/cxflow | get_attribute | 10,524 | |
LDU_FT/druids/django-chamber/change_and_save | LDU_FT | [
"<BEGIN>\n## `get_class_method`",
"Returns a method from a given class or instance. When the method doest not exist, it returns `None`. Also works with\n properties and cached properties.\n<END>",
"<BEGIN>\n## `model_to_dict`",
"The same implementation as django model_to_dict but editable fields are allowe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_and_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_and_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 e... | Changes a given `changed_fields` on each object in the queryset, saves objects
and returns the changed objects in the queryset. | "Changes a given `changed_fields` on each object in the queryset, saves objects\n and returns the changed objects in the queryset." | 38 | false | druids/django-chamber | change_and_save | 10,525 | |
LDU_FT/HiPERCAM/hcam_widgets/update | LDU_FT | [
"<BEGIN>\n## `update`",
"Adds a handler to save to a file. Includes debug stuff.\n<END>",
"<BEGIN>\n## `saveJSON`",
"Saves the current setup to disk.",
" g : hcam_drivers.globals.Container\n Container with globals",
" data : dict\n The current setup in JSON compatible dictionary format.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Updates values. You should run a check on the instrument and
target parameters before calling this. | "Updates values. You should run a check on the instrument and\n target parameters before calling this." | 233 | false | HiPERCAM/hcam_widgets | update | 10,526 | |
LDU_FT/byroot/pysrt/from_time | LDU_FT | [
"<BEGIN>\n## `slice`",
"slice([starts_before][, starts_after][, ends_before][, ends_after]) \\\n-> SubRipFile clone",
" All arguments are optional, and should be coercible to SubRipTime\n object.",
" It reduce the set of subtitles to those that match match given time\n constraints.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_time API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_time API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | datetime.time -> SubRipTime corresponding to time object | "datetime.time -> SubRipTime corresponding to time object" | 55 | false | byroot/pysrt | from_time | 10,527 | |
LDU_FT/phaethon/kamene/routingAreaUpdateAccept | LDU_FT | [
"<BEGIN>\n## `post_build`",
"Called implicitly before a packet is sent.\n<END>",
"<BEGIN>\n## `float_encode`",
"Convert the integer value to its IGMPv3 encoded time value if needed.",
" If value < 128, return the value specified. If >= 128, encode as a floating \n point value. Value can be 0 - 31744.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the routingAreaUpdateAccept 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 routingAreaUpdateAccept API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | ROUTING AREA UPDATE ACCEPT Section 9.4.15 | "ROUTING AREA UPDATE ACCEPT Section 9.4.15" | 477 | false | phaethon/kamene | routingAreaUpdateAccept | 10,528 | |
LDU_FT/fulfilio/python-magento/update | LDU_FT | [
"<BEGIN>\n## `info`",
"Retrieve customer data",
" :param id: ID of customer\n :param attributes: `List` of attributes needed\n<END>",
"<BEGIN>\n## `search`",
"Retrieve order list by options using search api. Using this result can\n be paginated",
" :param options: Dictionary of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Configurable Update product
:param product: ID or SKU of product
:param linked_products: List ID or SKU of linked product to link
:param attributes: dicc
:return: True/False | "Configurable Update product\n\n :param product: ID or SKU of product\n :param linked_products: List ID or SKU of linked product to link\n :param attributes: dicc\n :return: True/False" | 143 | false | fulfilio/python-magento | update | 10,529 | |
LDU_FT/Nekroze/partpy/parse_name | LDU_FT | [
"<BEGIN>\n## `pretty_print`",
"Print the previous and current line with line numbers and\n a carret under the current character position.",
" Will also print a message if one is given to this exception.\n<END>",
"<BEGIN>\n## `parse`",
"Run the parser over the entire sourestring and return the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extrac... | This function uses string patterns to match a title cased name.
This is done in a loop until there are no more names to match so as
to be able to include surnames etc. in the output. | "This function uses string patterns to match a title cased name.\n This is done in a loop until there are no more names to match so as\n to be able to include surnames etc. in the output." | 80 | false | Nekroze/partpy | parse_name | 10,530 | |
LDU_FT/Infinidat/infi.execute/_get_deadline | LDU_FT | [
"<BEGIN>\n## `select_windows`",
"on Windows, select() works only on sockets\n work of anonymous pipes is done as follows:\n PeekNamedPipe returns the amount of data avaialble.\n ReadFile calls with a higher size will be blocked",
" so, in order to support size-limited reads, this function do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_deadline API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_deadline API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | returns the earliest deadline point in time | "returns the earliest deadline point in time" | 13 | false | Infinidat/infi.execute | _get_deadline | 10,531 | |
LDU_FT/hobson/pug-invest/prettify_datetimes | LDU_FT | [
"<BEGIN>\n## `log_loss`",
"Log of the loss (error) summed over all entries",
" The negative of the logarithm of the frequency (probability) of the predicted\n label given the true binary label for a category.",
" Arguments:\n predicted (np.array of float): 2-D table of probabilities for each\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prettify_datetimes 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 prettify_datetimes 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... | Designed for composing lists of strings suitable for pyplot axis labels
Often the xtick spacing doesn't allow room for 100's of text labels, so this
eliminates every other one, then every other one of those, until they fit.
>>> thin_string_list(['x']*20, 5) # doctring: +NORMALIZE_WHITESPACE
['x', '',... | "Designed for composing lists of strings suitable for pyplot axis labels\n\n Often the xtick spacing doesn't allow room for 100's of text labels, so this\n eliminates every other one, then every other one of those, until they fit.\n\n >>> thin_string_list(['x']*20, 5) # doctring: +NORMALIZE_WHITESPACE\n ['... | 205 | false | hobson/pug-invest | prettify_datetimes | 10,532 | |
LDU_FT/riga/tfdeploy/setup | LDU_FT | [
"<BEGIN>\n## `setup`",
"Sets up global variables (currently only the tensorflow version) to adapt to peculiarities of\n different tensorflow versions. This function should only be called before :py:class:`Model`\n creation, not for evaluation. Therefore, the tensorflow module *tf* must be passed:",
" .... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Sets up global variables (currently only the tensorflow version) to adapt to peculiarities of
different tensorflow versions. This function should only be called before :py:class:`Model`
creation, not for evaluation. Therefore, the tensorflow module *tf* must be passed:
.. code-block:: python
import... | "Sets up global variables (currently only the tensorflow version) to adapt to peculiarities of\n different tensorflow versions. This function should only be called before :py:class:`Model`\n creation, not for evaluation. Therefore, the tensorflow module *tf* must be passed:\n\n .. code-block:: python\n\n ... | 43 | false | riga/tfdeploy | setup | 10,533 | |
LDU_FT/CenturyLinkCloud/clc-python-sdk/Create | LDU_FT | [
"<BEGIN>\n## `SetCredentials`",
"Establish API username and password associated with APIv2 commands.\n<END>",
"<BEGIN>\n## `get_session`",
"Start a session with the given parameters",
"\tUse instead of SetCredentials if you need a session object to avoid the use of global credentials.",
"\tReturns a sessi... | 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 ... | Gets the list of Templates available to the account and location.
https://www.centurylinkcloud.com/api-docs/v1/#server-create-server
:param alias: short code for a particular account. If None will use account's default alias
:param location: datacenter where group resides. If None will use account's default l... | "Gets the list of Templates available to the account and location.\n\n\t\thttps://www.centurylinkcloud.com/api-docs/v1/#server-create-server\n\n\t\t:param alias: short code for a particular account. If None will use account's default alias\n\t\t:param location: datacenter where group resides. If None will use account... | 402 | false | CenturyLinkCloud/clc-python-sdk | Create | 10,534 | |
LDU_FT/tgbugs/ontquery/check_scicrunch_for_label | LDU_FT | [
"<BEGIN>\n## `examples`",
"Examples of how to use. Default are that some functions are commented out in order\n to not cause harm to existing metadata within the database.\n<END>",
"<BEGIN>\n## `process_response`",
"Checks for correct data response and status codes\n<END>",
"<BEGIN>\n## `process_syno... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_scicrunch_for_label 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 check_scicrunch_for_label API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Sees if label with your user ID already exists
There are can be multiples of the same label in interlex, but there should only be one
label with your user id. Therefore you can create labels if there already techniqually
exist, but not if you are the one to create it. | "Sees if label with your user ID already exists\n\n There are can be multiples of the same label in interlex, but there should only be one\n label with your user id. Therefore you can create labels if there already techniqually\n exist, but not if you are the one to create it." | 44 | false | tgbugs/ontquery | check_scicrunch_for_label | 10,535 | |
LDU_FT/globus/globus-cli/do_link_auth_flow | LDU_FT | [
"<BEGIN>\n## `role_show`",
"Executor for `globus endpoint role show`\n<END>",
"<BEGIN>\n## `outformat_is_json`",
"Only safe to call within a click context.\n<END>",
"<BEGIN>\n## `outformat_is_unix`",
"Only safe to call within a click context.\n<END>",
"<BEGIN>\n## `outformat_is_text`",
"Only safe to c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_link_auth_flow API.
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 do_link_auth_flow API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Prompts the user with a link to authenticate with globus auth
and authorize the CLI to act on their behalf. | "Prompts the user with a link to authenticate with globus auth\n and authorize the CLI to act on their behalf." | 186 | false | globus/globus-cli | do_link_auth_flow | 10,536 | |
LDU_FT/gplepage/lsqfit/empbayes_fit | LDU_FT | [
"<BEGIN>\n## `run`",
"Append version number to lsqfit/__init__.py\n<END>",
"<BEGIN>\n## `_reformat`",
"Apply format of ``p`` to data in 1-d array ``buf``.\n<END>",
"<BEGIN>\n## `_unpack_data`",
"Unpack data and prior into ``(x, y, prior, fdata)``.",
" This routine unpacks ``data`` and ``prior`` into ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the empbayes_fit API.
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 empbayes_fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return fit and ``z`` corresponding to the fit
``lsqfit.nonlinear_fit(**fitargs(z))`` that maximizes ``logGBF``.
This function maximizes the logarithm of the Bayes Factor from
fit ``lsqfit.nonlinear_fit(**fitargs(z))`` by varying ``z``,
starting at ``z0``. The fit is redone for each value of ``z``
... | "Return fit and ``z`` corresponding to the fit\n ``lsqfit.nonlinear_fit(**fitargs(z))`` that maximizes ``logGBF``.\n\n This function maximizes the logarithm of the Bayes Factor from\n fit ``lsqfit.nonlinear_fit(**fitargs(z))`` by varying ``z``,\n starting at ``z0``. The fit is redone for each value of ``z`... | 208 | false | gplepage/lsqfit | empbayes_fit | 10,537 | |
LDU_FT/sbg/sevenbridges-python/create | LDU_FT | [
"<BEGIN>\n## `query`",
"Query (List) tasks. Date parameters may be both strings and python date\n objects.\n :param project: Target project. optional.\n :param status: Task status.\n :param batch: Only batch tasks.\n :param parent: Parent batch task identifier.\n :param 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 ... | Create a marker on a file.
:param file: File object or identifier.
:param name: Marker name.
:param position: Marker position object.
:param chromosome: Chromosome number.
:param private: Whether the marker is private or public.
:param api: Api instance.
:return: ... | "Create a marker on a file.\n :param file: File object or identifier.\n :param name: Marker name.\n :param position: Marker position object.\n :param chromosome: Chromosome number.\n :param private: Whether the marker is private or public.\n :param api: Api instance.\n :... | 292 | false | sbg/sevenbridges-python | create | 10,538 | |
LDU_FT/projectshift/shift-schema/add_filter | LDU_FT | [
"<BEGIN>\n## `validate`",
"Validate\n Perform value validation against validation settings and return\n error object.",
" :param value: list, value to check\n :param model: parent model being validated\n :param context: object or None, validation co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Add filter to property
:param filter: object, extending from AbstractFilter
:return: None | "Add filter to property\n :param filter: object, extending from AbstractFilter\n :return: None" | 135 | false | projectshift/shift-schema | add_filter | 10,539 | |
LDU_FT/openstack/pyghmi/wait_for_rsp | LDU_FT | [
"<BEGIN>\n## `get_bootdev`",
"Get current boot device override information.",
" :raises: PyghmiException on error\n :returns: dict\n<END>",
"<BEGIN>\n## `set_bootdev`",
"Set boot device to use on next reboot",
" :param bootdev:\n *network -- Request network boot... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_rsp API.
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 wait_for_rsp API.
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... | IPMI Session Event loop iteration
This watches for any activity on IPMI handles and handles registered
by register_handle_callback. Callers are satisfied in the order that
packets return from network, not in the order of calling.
:param timeout: Maximum time to wait for data to come a... | "IPMI Session Event loop iteration\n\n This watches for any activity on IPMI handles and handles registered\n by register_handle_callback. Callers are satisfied in the order that\n packets return from network, not in the order of calling.\n\n :param timeout: Maximum time to wait for data to... | 273 | false | openstack/pyghmi | wait_for_rsp | 10,540 | |
LDU_FT/OzymandiasTheGreat/python-libinput/cancelled | LDU_FT | [
"<BEGIN>\n## `events`",
"Yield events from the internal libinput's queue.",
"\t\tYields device events that are subclasses of\n\t\t:class:`~libinput.event.Event`.",
"\t\tYields:\n\t\t\t:class:`~libinput.event.Event`: Device event.\n<END>",
"<BEGIN>\n## `next_event_type`",
"Return the type of the next event... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancelled API.
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 cancelled API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return if the gesture ended normally, or if it was cancelled.
For gesture events that are not of type
:attr:`~libinput.constant.EventType.GESTURE_SWIPE_END` or
:attr:`~libinput.constant.EventType.GESTURE_PINCH_END`, this property
raises :exc:`AttributeError`.
Returns:
bool: :obj:`True` indicating that th... | "Return if the gesture ended normally, or if it was cancelled.\n\n\t\tFor gesture events that are not of type\n\t\t:attr:`~libinput.constant.EventType.GESTURE_SWIPE_END` or\n\t\t:attr:`~libinput.constant.EventType.GESTURE_PINCH_END`, this property\n\t\traises :exc:`AttributeError`.\n\n\t\tReturns:\n\t\t\tbool: :obj:`Tr... | 320 | false | OzymandiasTheGreat/python-libinput | cancelled | 10,541 | |
LDU_FT/Tivix/django-common/ssl_required | LDU_FT | [
"<BEGIN>\n## `ssl_required`",
"Views decorated with this will always get redirected to https\n except when allow_non_ssl is set to true.\n<END>",
"<BEGIN>\n## `anonymous_required`",
"Only allow if user is NOT authenticated.\n<END>",
"<BEGIN>\n## `generic_var`",
"Stores generic variables in the session ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ssl_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ssl_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 extr... | Views decorated with this will always get redirected to https
except when allow_non_ssl is set to true. | "Views decorated with this will always get redirected to https\n except when allow_non_ssl is set to true." | 28 | false | Tivix/django-common | ssl_required | 10,542 | |
LDU_FT/oasis-open/cti-stix-validator/pretty_error | LDU_FT | [
"<BEGIN>\n## `pretty_error`",
"Return an error message that is easier to read and more useful.\n May require updating if the schemas change significantly.\n<END>",
"<BEGIN>\n## `_iter_errors_custom`",
"Perform additional validation not possible merely with JSON schemas.",
" Args:\n instance: Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_error API.
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 pretty_error API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return an error message that is easier to read and more useful.
May require updating if the schemas change significantly. | "Return an error message that is easier to read and more useful.\n May require updating if the schemas change significantly." | 220 | false | oasis-open/cti-stix-validator | pretty_error | 10,543 | |
LDU_FT/duniter/duniter-python-api/peers | LDU_FT | [
"<BEGIN>\n## `from_signed_raw`",
"Return Certification instance from signed raw document",
" :param signed_raw: Signed raw document\n :return:\n<END>",
"<BEGIN>\n## `from_inline`",
"Return Certification instance from inline document",
" Only self.pubkey_to is populated.\n You m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the peers API.
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 peers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | GET peering entries of every node inside the currency network
:param client: Client to connect to the api
:param leaves: True if leaves should be requested
:param leaf: True if leaf should be requested
:return: | "GET peering entries of every node inside the currency network\n\n :param client: Client to connect to the api\n :param leaves: True if leaves should be requested\n :param leaf: True if leaf should be requested\n :return:" | 415 | false | duniter/duniter-python-api | peers | 10,544 | |
LDU_FT/DocNow/twarc/user_lookup | LDU_FT | [
"<BEGIN>\n## `rate_limit`",
"A decorator to handle rate limiting from the Twitter API. If\n a rate limit error is encountered we will sleep until we can\n issue the API call again.\n<END>",
"<BEGIN>\n## `catch_conn_reset`",
"A decorator to handle connection reset errors even ones from pyOpenSSL\n unt... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_lookup API.
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 user_lookup API.
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... | A generator that returns users for supplied user ids, screen_names,
or an iterator of user_ids of either. Use the id_type to indicate
which you are supplying (user_id or screen_name) | "A generator that returns users for supplied user ids, screen_names,\n or an iterator of user_ids of either. Use the id_type to indicate\n which you are supplying (user_id or screen_name)" | 58 | false | DocNow/twarc | user_lookup | 10,545 | |
LDU_FT/tbielawa/bitmath/format | LDU_FT | [
"<BEGIN>\n## `BitmathType`",
"An 'argument type' for integrations with the argparse module.",
"For more information, see\nhttps://docs.python.org/2/library/argparse.html#type Of particular\ninterest to us is this bit:",
" ``type=`` can take any callable that takes a single string\n argument and returns th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API.
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 format API.
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 a representation of this instance formatted with user
supplied syntax | "Return a representation of this instance formatted with user\nsupplied syntax" | 93 | false | tbielawa/bitmath | format | 10,546 | |
LDU_FT/liampauling/betfair/set_session_token | LDU_FT | [
"<BEGIN>\n## `streaming_market_filter`",
":param list market_ids: filter market data to data pertaining to specific marketIds.\n :param list event_type_ids: filter market data to data pertaining to specific event_type ids.\n :param list event_ids: filter market data to data pertaining to specific event ids.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_session_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_session_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Sets session token and new login time.
:param str session_token: Session token from request. | "Sets session token and new login time.\n\n :param str session_token: Session token from request." | 224 | false | liampauling/betfair | set_session_token | 10,547 | |
LDU_FT/cdeboever3/cdpybio/_read_log | LDU_FT | [
"<BEGIN>\n## `get_region_nt_counts`",
"Get counts of each nucleotide from a bam file for a given region. If R1 and\n R2 reads both overlap a position, only one count will be added. If the R1\n and R2 reads disagree at a position they both overlap, that read pair is not\n used for that position. Can opti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_log API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_log API.
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... | Read STAR Log.final.out file.
Parameters
----------
fn : string
Path to Log.final.out file.
define_sample_name : function that takes string as input
Function mapping filename to sample name. For instance, you may have the
sample name in the path and use a regex to extract it. ... | "Read STAR Log.final.out file.\n\n Parameters\n ----------\n fn : string\n Path to Log.final.out file.\n\n define_sample_name : function that takes string as input\n Function mapping filename to sample name. For instance, you may have the\n sample name in the path and use a regex to ext... | 387 | false | cdeboever3/cdpybio | _read_log | 10,548 | |
LDU_FT/mlavin/django-all-access/get_client | LDU_FT | [
"<BEGIN>\n## `get_client`",
"Return the API client for the given provider.\n<END>",
"<BEGIN>\n## `get_access_token`",
"Fetch access token from callback request.\n<END>",
"<BEGIN>\n## `get_redirect_args`",
"Get request parameters for redirect url.\n<END>",
"<BEGIN>\n## `parse_raw_token`",
"Parse token ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac... | Return the API client for the given provider. | "Return the API client for the given provider." | 26 | false | mlavin/django-all-access | get_client | 10,549 | |
LDU_FT/spacetelescope/acstools/acs2d | LDU_FT | [
"<BEGIN>\n## `extract_dark`",
"Extract superdark data from ``DARKFILE`` or ``DRKCFILE``.",
" Parameters\n ----------\n prihdr : obj\n FITS primary header HDU.",
" scihdu : obj\n Extension HDU of the science image.\n This is only used to extract subarray data.",
" Returns\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the acs2d API.
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 acs2d API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | r"""
Run the acs2d.e executable as from the shell.
Output is automatically named based on input suffix:
+--------------------+----------------+------------------------------+
| INPUT | OUTPUT | EXPECTED DATA |
+====================+================+=... | "r\"\"\"\n Run the acs2d.e executable as from the shell.\n\n Output is automatically named based on input suffix:\n\n +--------------------+----------------+------------------------------+\n | INPUT | OUTPUT | EXPECTED DATA |\n +====================+=======... | 319 | false | spacetelescope/acstools | acs2d | 10,550 | |
LDU_FT/mfitzp/padua/_pca_weights | LDU_FT | [
"<BEGIN>\n## `remove_rows_matching`",
"Return a ``DataFrame`` with rows where `column` values match `match` are removed.",
" The selected `column` series of values from the supplied Pandas ``DataFrame`` is compared\n to `match`, and those rows that match are removed from the DataFrame.",
" :param df:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pca_weights API.
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 _pca_weights API.
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... | :param weights:
:param pc:
:param threshold:
:param label_threshold:
:param label_weights:
:param kwargs:
:return: | ":param weights:\n :param pc:\n :param threshold:\n :param label_threshold:\n :param label_weights:\n :param kwargs:\n :return:" | 266 | false | mfitzp/padua | _pca_weights | 10,551 | |
LDU_FT/keepkey/python-keepkey/enumerate | LDU_FT | [
"<BEGIN>\n## `enumerate`",
"Return a list of available KeepKey devices.\n<END>",
"<BEGIN>\n## `sec_to_public_pair`",
"Convert a public key in sec binary format to a public pair.\n<END>",
"<BEGIN>\n## `parse_path`",
"Convert BIP32 path string to list of uint32 integers with hardened flags.\n Several con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enumerate API.
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 enumerate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return a list of available KeepKey devices. | "Return a list of available KeepKey devices." | 24 | false | keepkey/python-keepkey | enumerate | 10,552 | |
LDU_FT/mayhewj/greenstalk/kick | 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 API.
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 kick API.
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... | Moves delayed and buried jobs into the ready queue and returns the
number of jobs effected.
Only jobs from the currently used tube are moved.
A kick will only move jobs in a single state. If there are any buried
jobs, only those will be moved. Otherwise delayed jobs will be moved.
... | "Moves delayed and buried jobs into the ready queue and returns the\n number of jobs effected.\n\n Only jobs from the currently used tube are moved.\n\n A kick will only move jobs in a single state. If there are any buried\n jobs, only those will be moved. Otherwise delayed jobs will be move... | 45 | false | mayhewj/greenstalk | kick | 10,553 | |
LDU_FT/paltman-archive/nashvegas/get_pending_migrations | LDU_FT | [
"<BEGIN>\n## `handle`",
"Compares current database with a migrations.",
" Creates a temporary database, applies all the migrations to it, and\n then dumps the schema from both current and temporary, diffs them,\n then report the diffs to the user.\n<END>",
"<BEGIN>\n## `get_sql_for_new_mo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pending_migrations 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_pending_migrations 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 dictionary of database => [migrations] representing all pending
migrations. | "Returns a dictionary of database => [migrations] representing all pending\n migrations." | 20 | false | paltman-archive/nashvegas | get_pending_migrations | 10,554 | |
LDU_FT/redhat-openstack/python-tripleo-helper/_get_channel | LDU_FT | [
"<BEGIN>\n## `start`",
"Start the ssh client and connect to the host.",
" It will wait until the ssh service is available during 90 seconds.\n If it doesn't succed to connect then the function will raise\n an SSHException.\n<END>",
"<BEGIN>\n## `run`",
"Run a command on the remote host.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_channel API.
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_channel API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Returns a channel according to if there is a redirection to do or
not. | "Returns a channel according to if there is a redirection to do or\n not." | 82 | false | redhat-openstack/python-tripleo-helper | _get_channel | 10,555 | |
LDU_FT/dlecocq/nsq-py/merged | LDU_FT | [
"<BEGIN>\n## `pack_iterable`",
"Pack an iterable of messages in the TCP protocol format\n<END>",
"<BEGIN>\n## `hexify`",
"Print out printable characters, but others in hex\n<END>",
"<BEGIN>\n## `distribute`",
"Generator for (count, object) tuples that distributes count evenly among\n the provided objec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merged API.
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 merged API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | The clean stats from all the hosts reporting to this host. | "The clean stats from all the hosts reporting to this host." | 54 | false | dlecocq/nsq-py | merged | 10,556 | |
LDU_FT/PedalPi/Application/set_pedalboard | LDU_FT | [
"<BEGIN>\n## `start`",
"Start the application, initializing your components.\n<END>",
"<BEGIN>\n## `stop`",
"Stop the application, closing your components.\n<END>",
"<BEGIN>\n## `by`",
"Get the plugins registered in PedalPi by technology",
" :param PluginTechnology technology: PluginTechnology id... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_pedalboard API.
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 set_pedalboard API.
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 the current :class:`.Pedalboard` for the pedalboard
only if the ``pedalboard != current_pedalboard or force``
Is also possible unload the current pedalboard data with replacing it for ``None``::
>>> current_controller.set_pedalboard(None)
.. warning::
Changing the... | "Set the current :class:`.Pedalboard` for the pedalboard\n only if the ``pedalboard != current_pedalboard or force``\n\n Is also possible unload the current pedalboard data with replacing it for ``None``::\n\n >>> current_controller.set_pedalboard(None)\n\n .. warning::\n\n Ch... | 42 | false | PedalPi/Application | set_pedalboard | 10,557 | |
LDU_FT/glormph/msstitch/get_psms | LDU_FT | [
"<BEGIN>\n## `parse_input`",
"Build peptide table has no input file (though it has a lookup),\n which is why we set it to outfile name so the infile fetching\n and outfile creating wont error.\n<END>",
"<BEGIN>\n## `set_feature_generator`",
"Generates proteins with quant from the lookup table\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_psms API.
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_psms API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Creates iterator to write to new tsv. Contains input tsv
lines plus quant data for these. | "Creates iterator to write to new tsv. Contains input tsv\n lines plus quant data for these." | 233 | false | glormph/msstitch | get_psms | 10,558 | |
LDU_FT/bigchaindb/bigchaindb-driver/prepare | LDU_FT | [
"<BEGIN>\n## `info`",
"Retrieves information of the node being connected to via the\n root endpoint ``'/'``.",
" Args:\n headers (dict): Optional headers to pass to the request.",
" Returns:\n dict: Details of the node that this instance is connected\n to.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare API.
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 prepare API.
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... | Prepares a transaction payload, ready to be fulfilled.
Args:
operation (str): The operation to perform. Must be ``'CREATE'``
or ``'TRANSFER'``. Case insensitive. Defaults to ``'CREATE'``.
signers (:obj:`list` | :obj:`tuple` | :obj:`str`, optional):
One or... | "Prepares a transaction payload, ready to be fulfilled.\n\n Args:\n operation (str): The operation to perform. Must be ``'CREATE'``\n or ``'TRANSFER'``. Case insensitive. Defaults to ``'CREATE'``.\n signers (:obj:`list` | :obj:`tuple` | :obj:`str`, optional):\n ... | 169 | false | bigchaindb/bigchaindb-driver | prepare | 10,559 | |
LDU_FT/JamesPHoughton/pysd/make_python_identifier | LDU_FT | [
"<BEGIN>\n## `parse`",
"context : <string> 'eqn', 'defn'\n If context is set to equation, lone identifiers will be parsed as calls to elements\n If context is set to definition, lone identifiers will be cleaned and returned.\n<END>",
"<BEGIN>\n## `read_tabular`",
"Reads a vensim ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_python_identifier 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 make_python_identifier API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Takes an arbitrary string and creates a valid Python identifier.
If the input string is in the namespace, return its value.
If the python identifier created is already in the namespace,
but the input string is not (ie, two similar strings resolve to
the same python identifier)
or if the identifie... | "Takes an arbitrary string and creates a valid Python identifier.\n\n If the input string is in the namespace, return its value.\n\n If the python identifier created is already in the namespace,\n but the input string is not (ie, two similar strings resolve to\n the same python identifier)\n\n or if the ... | 268 | false | JamesPHoughton/pysd | make_python_identifier | 10,560 | |
LDU_FT/bslatkin/dpxdt/_get_task_with_policy | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds a work item to a queue.",
" Args:\n queue_name: Name of the queue to add the work item to.\n payload: Optional. Payload that describes the work to do as a string.\n If not a string and content_type is not provided, then this\n function assumes th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_task_with_policy 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_task_with_policy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Fetches the specified task and enforces ownership policy.
Args:
queue_name: Name of the queue the work item is on.
task_id: ID of the task that is finished.
owner: Who or what has the current lease on the task.
Returns:
The valid WorkQueue task that is currently owned.
Rai... | "Fetches the specified task and enforces ownership policy.\n\n Args:\n queue_name: Name of the queue the work item is on.\n task_id: ID of the task that is finished.\n owner: Who or what has the current lease on the task.\n\n Returns:\n The valid WorkQueue task that is currently owned.... | 180 | false | bslatkin/dpxdt | _get_task_with_policy | 10,561 | |
LDU_FT/kamikaze/webdav/upload_to | LDU_FT | [
"<BEGIN>\n## `listdir`",
"Returns list of nested files and directories for local directory by path",
" :param directory: absolute or relative path to local directory\n :return: list nested of file or directory names\n<END>",
"<BEGIN>\n## `get_options`",
"Extract options for specified option type from ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_to API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_to API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Uploads file from buffer to remote path on WebDAV server.
More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PUT
:param buff: the buffer with content for file.
:param remote_path: the path to save file remotely on WebDAV server. | "Uploads file from buffer to remote path on WebDAV server.\n More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PUT\n\n :param buff: the buffer with content for file.\n :param remote_path: the path to save file remotely on WebDAV server." | 120 | false | kamikaze/webdav | upload_to | 10,562 | |
LDU_FT/asaskevich/binario/read | LDU_FT | [
"<BEGIN>\n## `write`",
"Writes a byte buffer to the underlying output file.\n Raise exception when file is already closed.\n<END>",
"<BEGIN>\n## `write_bool`",
"Writes a boolean to the underlying output file as a 1-byte value.\n<END>",
"<BEGIN>\n## `write_short`",
"Writes a short integer to the und... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Read byte buffer with specified size from input file.
Raise exception in two cases:
- File already closed.
- Not enough data to read.
Keyword arguments:
size -- size of buffer to read (default 1) | "Read byte buffer with specified size from input file.\n Raise exception in two cases:\n - File already closed.\n - Not enough data to read.\n\n Keyword arguments:\n size -- size of buffer to read (default 1)" | 23 | false | asaskevich/binario | read | 10,563 | |
LDU_FT/picklepete/pyicloud/play_sound | LDU_FT | [
"<BEGIN>\n## `refresh_client`",
"Refreshes the FindMyiPhoneService endpoint,",
" This ensures that the location data is up-to-date.\n<END>",
"<BEGIN>\n## `status`",
"Returns status information for device.",
" This returns only a subset of possible properties.\n<END>",
"<BEGIN>\n## `play_so... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the play_sound API.
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 play_sound API.
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... | Send a request to the device to play a sound.
It's possible to pass a custom message by changing the `subject`. | "Send a request to the device to play a sound.\n\n It's possible to pass a custom message by changing the `subject`." | 32 | false | picklepete/pyicloud | play_sound | 10,564 | |
LDU_FT/ARMmbed/mbed-cloud-sdk-python/remove_account_api_key_from_groups | LDU_FT | [
"<BEGIN>\n## `add_resource_subscription`",
"Subscribe to a resource path # noqa: E501",
"The Device Management Connect eventing model consists of observable resources. This means that endpoints can deliver updated resource content, periodically or with a more sophisticated solution-dependent logic. The OMA LwM... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_account_api_key_from_groups 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 remove_account_api_key_from_groups API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | Remove API key from groups. # noqa: E501
An endpoint for removing API key from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/accounts/{accountID}/api-keys/{apiKey}/groups -d '[0162056a9a1586f30242590700000000,0117056a9a1586f30242590700000000]' -H 'content-type: applicatio... | "Remove API key from groups. # noqa: E501\n\n An endpoint for removing API key from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/accounts/{accountID}/api-keys/{apiKey}/groups -d '[0162056a9a1586f30242590700000000,0117056a9a1586f30242590700000000]' -H 'content-type: applica... | 1,479 | true | ARMmbed/mbed-cloud-sdk-python | remove_account_api_key_from_groups | 10,565 | |
LDU_FT/abilian/abilian-core/register | LDU_FT | [
"<BEGIN>\n## `require_flush`",
"Decorator for methods that need to query security.",
" It ensures all security related operations are flushed to DB, but\n avoids unneeded flushes.\n<END>",
"<BEGIN>\n## `query_pa_no_flush`",
"Query for a :class:`PermissionAssignment` using `session` without any\n `f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API.
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 register API.
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... | Register an :class:`~.Entity` as a attachmentable class.
Can be used as a class decorator:
.. code-block:: python
@attachment.register
class MyContent(Entity):
.... | "Register an :class:`~.Entity` as a attachmentable class.\n\n Can be used as a class decorator:\n\n .. code-block:: python\n\n @attachment.register\n class MyContent(Entity):\n ...." | 429 | false | abilian/abilian-core | register | 10,566 | |
LDU_FT/CityOfZion/neo-python/Deserialize | LDU_FT | [
"<BEGIN>\n## `Clone`",
"Clone self.",
" Returns:\n AccountState:\n<END>",
"<BEGIN>\n## `FromReplica`",
"Get AccountState object from a replica.\n Args:\n replica (obj): must have ScriptHash, IsFrozen, Votes and Balances members.",
" Returns:\n AccountS... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Deserialize API.
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 Deserialize API.
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... | Deserialize full object.
Args:
reader (neocore.IO.BinaryReader): | "Deserialize full object.\n\n Args:\n reader (neocore.IO.BinaryReader):" | 962 | false | CityOfZion/neo-python | Deserialize | 10,567 | |
LDU_FT/openstack/proliantutils/set_iscsi_boot_info | LDU_FT | [
"<BEGIN>\n## `_exec_ipmitool`",
"Execute the ipmitool command.",
" This uses the lanplus interface to communicate with the BMC device driver.",
" :param driver_info: the ipmitool parameters for accessing a node.\n :param command: the ipmitool command to be executed.\n<END>",
"<BEGIN>\n## `get_nic_c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_iscsi_boot_info 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 set_iscsi_boot_info 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... | Set iscsi details of the system in uefi boot mode.
The initiator system is set with the target details like
IQN, LUN, IP, Port etc.
:param mac: The MAC of the NIC to be set with iSCSI information
:param target_name: Target Name for iscsi.
:param lun: logical unit number.
... | "Set iscsi details of the system in uefi boot mode.\n\n The initiator system is set with the target details like\n IQN, LUN, IP, Port etc.\n :param mac: The MAC of the NIC to be set with iSCSI information\n :param target_name: Target Name for iscsi.\n :param lun: logical unit number.\... | 929 | false | openstack/proliantutils | set_iscsi_boot_info | 10,568 | |
LDU_FT/konstantinstadler/pymrio/load | LDU_FT | [
"<BEGIN>\n## `load_all`",
"Loads a full IO system with all extension in path",
" Parameters\n ----------\n path : pathlib.Path or string\n Path or path with para file name for the data to load.\n This must either point to the directory containing the uncompressed\n data or the loca... | 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... | Loads a IOSystem or Extension previously saved with pymrio
This function can be used to load a IOSystem or Extension specified in a
metadata file (as defined in DEFAULT_FILE_NAMES['filepara']: metadata.json)
DataFrames (tables) are loaded from text or binary pickle files.
For the latter, the extension... | "Loads a IOSystem or Extension previously saved with pymrio\n\n This function can be used to load a IOSystem or Extension specified in a\n metadata file (as defined in DEFAULT_FILE_NAMES['filepara']: metadata.json)\n\n DataFrames (tables) are loaded from text or binary pickle files.\n For the latter, the ex... | 433 | false | konstantinstadler/pymrio | load | 10,569 | |
LDU_FT/Accelize/pycosio/readall | LDU_FT | [
"<BEGIN>\n## `_copy`",
"Copies file from source to destination",
" Args:\n src (str or file-like object): Source file.\n dst (str or file-like object): Destination file.\n src_is_storage (bool): Source is storage.\n dst_is_storage (bool): Destination is storage.\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readall API.
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 readall API.
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... | Read and return all the bytes from the stream until EOF.
Returns:
bytes: Object content | "Read and return all the bytes from the stream until EOF.\n\n Returns:\n bytes: Object content" | 498 | false | Accelize/pycosio | readall | 10,570 | |
LDU_FT/spoqa/tsukkomi/check_union | LDU_FT | [
"<BEGIN>\n## `check_type`",
"Check given ``value``'s type.",
" :param value: given argument\n :param hint: expected type of given ``value``.\n as like :mod:`typing` interprets, :const:`None` is interpreted\n as :class:`types.NoneType`\n :type hint: :class:`typing.Optiona... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_union API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_union API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Check argument type & return type of :class:`typing.Union`. since it
raises check :class:`typing.Union` using `isinstance`, so compare in
diffrent way
:param data: union given as a argument
:param hint: assumed type of given ``data`` | "Check argument type & return type of :class:`typing.Union`. since it\n raises check :class:`typing.Union` using `isinstance`, so compare in\n diffrent way\n\n :param data: union given as a argument\n :param hint: assumed type of given ``data``" | 26 | false | spoqa/tsukkomi | check_union | 10,571 | |
LDU_FT/marshmallow-code/marshmallow-jsonapi/format_items | LDU_FT | [
"<BEGIN>\n## `check_relations`",
"Recursive function which checks if a relation is valid.\n<END>",
"<BEGIN>\n## `format_json_api_response`",
"Post-dump hook that formats serialized data as a top-level JSON API object.",
" See: http://jsonapi.org/format/#document-top-level\n<END>",
"<BEGIN>\n## `on_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_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 extr... | Format data as a Resource object or list of Resource objects.
See: http://jsonapi.org/format/#document-resource-objects | "Format data as a Resource object or list of Resource objects.\n\n See: http://jsonapi.org/format/#document-resource-objects" | 41 | false | marshmallow-code/marshmallow-jsonapi | format_items | 10,572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.