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/emilydolson/avida-spatial-tools/color_array_by_hue_mix | LDU_FT | [
"<BEGIN>\n## `gen_gradient`",
"Returns a line of text to add to an environment file, initializing a\n gradient resource with the specified\n name (string), inflow(int), radius(int), and location (tuple of ints)\n<END>",
"<BEGIN>\n## `gen_res`",
"Returns a line of text to add to an environment file, init... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color_array_by_hue_mix 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 color_array_by_hue_mix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Figure out the appropriate color for a binary string value by averaging
the colors corresponding the indices of each one that it contains. Makes
for visualizations that intuitively show patch overlap. | "Figure out the appropriate color for a binary string value by averaging\n the colors corresponding the indices of each one that it contains. Makes\n for visualizations that intuitively show patch overlap." | 189 | false | emilydolson/avida-spatial-tools | color_array_by_hue_mix | 5,573 | |
LDU_FT/b3j0f/conf/modules | LDU_FT | [
"<BEGIN>\n## `pathresource`",
"Returns specific resource.",
" :param str rscpath: resource path.\n :param Logger logger: logger to use.\n :param bool error: raise internal error if True (False by default).\n :param bool force: create the resource even if rscpath does not exist.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modules API.
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 modules API.
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... | Change required modules.
Reload modules given in the value.
:param list value: new modules to use. | "Change required modules.\n\n Reload modules given in the value.\n\n :param list value: new modules to use." | 151 | false | b3j0f/conf | modules | 5,574 | |
LDU_FT/getnikola/coil/orphans_single | LDU_FT | [
"<BEGIN>\n## `orphans_single`",
"Remove all orphans in the site, in the single user-mode.\n<END>",
"<BEGIN>\n## `password_hash`",
"Hash the password, using bcrypt+sha256.",
" .. versionchanged:: 1.1.0",
" :param str password: Password in plaintext\n :return: password hash\n :rtype: str\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the orphans_single API.
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 orphans_single API.
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... | Remove all orphans in the site, in the single user-mode. | "Remove all orphans in the site, in the single user-mode." | 68 | false | getnikola/coil | orphans_single | 5,575 | |
LDU_FT/larsmans/seqlearn/make_trans_matrix | LDU_FT | [
"<BEGIN>\n## `fit`",
"Fit HMM model to data.",
" Parameters\n ----------\n X : {array-like, sparse matrix}, shape (n_samples, n_features)\n Feature matrix of individual samples.",
" y : array-like, shape (n_samples,)\n Target labels.",
" lengths : arr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_trans_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_trans_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Make a sparse transition matrix for y.
Takes a label sequence y and returns an indicator matrix with n_classes²
columns of the label transitions in y: M[i, j, k] means y[i-1] == j and
y[i] == k. The first row will be empty. | "Make a sparse transition matrix for y.\n\n Takes a label sequence y and returns an indicator matrix with n_classes²\n columns of the label transitions in y: M[i, j, k] means y[i-1] == j and\n y[i] == k. The first row will be empty." | 60 | false | larsmans/seqlearn | make_trans_matrix | 5,576 | |
LDU_FT/ckcollab/polished/polish | LDU_FT | [
"<BEGIN>\n## `_remove_files`",
"Removes all files matching the search path",
" Arguments:\n search_path -- The path you would like to remove, can contain wildcards",
" Example:\n self._remove_files(\"output/*.html\")\n<END>",
"<BEGIN>\n## `prepare_page`",
"This is called after ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polish API.
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 polish API.
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 ... | Apply certain behaviors to commits or URLs that need polishing before they are ready for screenshots
For example, if you have 10 commits in a row where static file links were broken, you could re-write the html
in memory as it is interpreted.
Keyword arguments:
commit_indexes -- A list of indexes to a... | "Apply certain behaviors to commits or URLs that need polishing before they are ready for screenshots\n\n For example, if you have 10 commits in a row where static file links were broken, you could re-write the html\n in memory as it is interpreted.\n\n Keyword arguments:\n commit_indexes -- A list of index... | 15 | false | ckcollab/polished | polish | 5,577 | |
LDU_FT/pjmark/NIMPA/ct2mu | LDU_FT | [
"<BEGIN>\n## `trimim`",
"Trim and upsample PET image(s), e.g., for GPU execution,\n PVC correction, ROI sampling, etc.\n The input images 'fims' can be passed in multiple ways:\n 1. as a string of the folder containing NIfTI files\n 2. as a string of a NIfTI file path (this way a 4D image can be loade... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ct2mu API.
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 ct2mu API.
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... | HU units to 511keV PET mu-values
https://link.springer.com/content/pdf/10.1007%2Fs00259-002-0796-3.pdf
C. Burger, et al., PET attenuation coefficients from CT images, | "HU units to 511keV PET mu-values\n https://link.springer.com/content/pdf/10.1007%2Fs00259-002-0796-3.pdf\n C. Burger, et al., PET attenuation coefficients from CT images," | 78 | false | pjmark/NIMPA | ct2mu | 5,578 | |
LDU_FT/ttinies/sc2gameLobby/loadJson | LDU_FT | [
"<BEGIN>\n## `addNew`",
"Add a new version record to the database to be tracked\n VERSION RECORD EXAMPLE:\n \"base-version\": 55505, \n \"data-hash\": \"60718A7CA50D0DF42987A30CF87BCB80\", \n \"fixed-hash\": \"0189B2804E2F6BA4C4591222089E63B2\", \n \"label\": \"3.16\", \n \"r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadJson API.
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 loadJson API.
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... | convert the json data into updating this obj's attrs | "convert the json data into updating this obj's attrs" | 76 | false | ttinies/sc2gameLobby | loadJson | 5,579 | |
LDU_FT/thilux/tvdb_client/login | LDU_FT | [
"<BEGIN>\n## `__get_header_with_auth`",
"This private method returns the HTTP heder filled with the Authorization information with the user token.\n The token validity is monitored whenever this function is called, so according to the swagger page of TheTVDB\n (https://api.thetvdb.com/swagger) the t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | This method performs the login on TheTVDB given the api key, user name and account identifier.
:return: None | "This method performs the login on TheTVDB given the api key, user name and account identifier.\n\n :return: None" | 58 | false | thilux/tvdb_client | login | 5,580 | |
LDU_FT/chop-dbhi/varify/throttled_login | LDU_FT | [
"<BEGIN>\n## `set_cell_value`",
"Convenience method for setting the value of an openpyxl cell",
" This is necessary since the value property changed from internal_value\n to value between version 1.* and 2.*.\n<END>",
"<BEGIN>\n## `get_change_type`",
"Given ref, allele1, and allele2, returns the type ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the throttled_login API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the throttled_login API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Displays the login form and handles the login action. | "Displays the login form and handles the login action." | 27 | false | chop-dbhi/varify | throttled_login | 5,581 | |
LDU_FT/whiteclover/dbpy/query | LDU_FT | [
"<BEGIN>\n## `compile`",
"Building the sql expression",
" :param db: the database instance\n<END>",
"<BEGIN>\n## `find`",
"Find and load the user from database by uid(user id)\n<END>",
"<BEGIN>\n## `find_by_username`",
"Return user by username if find in database otherwise None\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | The connection raw sql query, when select table, show table
to fetch records, it is compatible the dbi execute method::
:param sql string: the sql stamtement like 'select * from %s'
:param args list: Wen set None, will use dbi execute(sql), else
dbi execute(sql, args), the args keep the ori... | "The connection raw sql query, when select table, show table\n to fetch records, it is compatible the dbi execute method::\n\n\n :param sql string: the sql stamtement like 'select * from %s'\n :param args list: Wen set None, will use dbi execute(sql), else\n dbi execute(sql, args), the args keep ... | 41 | false | whiteclover/dbpy | query | 5,582 | |
LDU_FT/Frzk/Ellis/load_rules | LDU_FT | [
"<BEGIN>\n## `_prepare`",
"Updates the function arguments and creates a :class:`asyncio.Task`\n from the Action.",
" *kwargs* is an optional dictionnary of additional arguments to pass to\n the Action function.",
" .. warning::\n *kwargs* will overwrite existing keys in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_rules API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_rules API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Loads the Rules from the config file.
An invalid Rule (no Filter or no Action) will trigger a warning
message and will be ignored. | "Loads the Rules from the config file.\n\n An invalid Rule (no Filter or no Action) will trigger a warning\n message and will be ignored." | 106 | false | Frzk/Ellis | load_rules | 5,583 | |
LDU_FT/haikuginger/beekeeper/download_as_json | LDU_FT | [
"<BEGIN>\n## `merge`",
"Take two copies of a variable and reconcile them. var1 is assumed\n to be the higher-level variable, and so will be overridden by var2\n where such becomes necessary.\n<END>",
"<BEGIN>\n## `has_value_of_type`",
"Does the variable both have the given type and\n have a varia... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_as_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_as_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Download the data at the URL and load it as JSON | "Download the data at the URL and load it as JSON" | 66 | false | haikuginger/beekeeper | download_as_json | 5,584 | |
LDU_FT/mkaz/termgraph/find_max_label_length | LDU_FT | [
"<BEGIN>\n## `find_max_label_length`",
"Return the maximum length for the labels.\n<END>",
"<BEGIN>\n## `horiz_rows`",
"Prepare the horizontal graph.\n Each row is printed through the print_row function.\n<END>",
"<BEGIN>\n## `print_row`",
"A method to print a row for a horizontal graphs.",
" i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_max_label_length 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 find_max_label_length API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return the maximum length for the labels. | "Return the maximum length for the labels." | 21 | false | mkaz/termgraph | find_max_label_length | 5,585 | |
LDU_FT/bigchaindb/bigchaindb-driver/api_info | 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 api_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.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_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.
The extracte... | Retrieves information provided by the API root endpoint
``'/api/v1'``.
Args:
headers (dict): Optional headers to pass to the request.
Returns:
dict: Details of the HTTP API provided by the BigchainDB
server. | "Retrieves information provided by the API root endpoint\n ``'/api/v1'``.\n\n Args:\n headers (dict): Optional headers to pass to the request.\n\n Returns:\n dict: Details of the HTTP API provided by the BigchainDB\n server." | 169 | false | bigchaindb/bigchaindb-driver | api_info | 5,586 | |
LDU_FT/otto-torino/django-baton/get_title_voice | LDU_FT | [
"<BEGIN>\n## `get`",
"Returns a json representing the menu voices\n in a format eaten by the js menu.\n Raised ImproperlyConfigured exceptions can be viewed\n in the browser console\n<END>",
"<BEGIN>\n## `get_title_voice`",
"Title voice\n Returns the js menu compati... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_title_voice API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_title_voice API.
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... | Title voice
Returns the js menu compatible voice dict if the user
can see it, None otherwise | "Title voice\n Returns the js menu compatible voice dict if the user\n can see it, None otherwise" | 20 | false | otto-torino/django-baton | get_title_voice | 5,587 | |
LDU_FT/apacha/OMR-Datasets/draw_into_bitmap | LDU_FT | [
"<BEGIN>\n## `move_images`",
"Moves png-files one directory up from path/image/*.png -> path/*.png\n<END>",
"<BEGIN>\n## `create_images`",
"Creates a visual representation of the Homus Dataset by parsing all text-files and the symbols as specified\n by the parameters by drawing lines that connect the p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_into_bitmap API.
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 draw_into_bitmap API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Draws the symbol in the original size that it has plus an optional margin
:param export_path: The path, where the symbols should be created on disk
:param stroke_thickness: Pen-thickness for drawing the symbol in pixels
:param margin: An optional margin for each symbol | "Draws the symbol in the original size that it has plus an optional margin\n\n :param export_path: The path, where the symbols should be created on disk\n :param stroke_thickness: Pen-thickness for drawing the symbol in pixels\n :param margin: An optional margin for each symbol" | 53 | false | apacha/OMR-Datasets | draw_into_bitmap | 5,588 | |
LDU_FT/teepark/greenhouse/wait | LDU_FT | [
"<BEGIN>\n## `read`",
"read up to len bytes and return them, or empty string on EOF\n<END>",
"<BEGIN>\n## `write`",
"write data to the ssl channel and return the # of bytes transferred\n<END>",
"<BEGIN>\n## `connect`",
"connects to the address and wraps the connection in an SSL context\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait API.
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 wait API.
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... | wait until the count has reached a particular number
.. note:: this method can block the current greenlet
:param until:
the number to wait for the count to get down (or up) to. default 0
:type until: int | "wait until the count has reached a particular number\n\n .. note:: this method can block the current greenlet\n\n :param until:\n the number to wait for the count to get down (or up) to. default 0\n :type until: int" | 349 | false | teepark/greenhouse | wait | 5,589 | |
LDU_FT/coopernurse/barrister/get_all_fields | LDU_FT | [
"<BEGIN>\n## `get_checksum`",
"Returns a checksum based on the IDL that ignores comments and \n ordering, but detects changes to types, parameter order, \n and enum values.\n<END>",
"<BEGIN>\n## `contract_from_file`",
"Loads a Barrister IDL JSON from the given file and returns a Contract class",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns a list containing this struct's fields and all the fields of
its ancestors. Used during validation. | "Returns a list containing this struct's fields and all the fields of\n its ancestors. Used during validation." | 126 | false | coopernurse/barrister | get_all_fields | 5,590 | |
LDU_FT/gopalkoduri/pypeaks/serialize | LDU_FT | [
"<BEGIN>\n## `next_interval`",
"Given a value of an interval, this function returns the \n next interval value\n<END>",
"<BEGIN>\n## `nearest_interval`",
"This function returns the nearest interval to any given interval.\n<END>",
"<BEGIN>\n## `peakdetect`",
"Converted from/based on a MATLAB script ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API.
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 serialize API.
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... | Saves the raw (read unsmoothed) histogram data to the given path using
pickle python module. | "Saves the raw (read unsmoothed) histogram data to the given path using\n pickle python module." | 31 | false | gopalkoduri/pypeaks | serialize | 5,591 | |
LDU_FT/ergo/ziggurat_foundations/groups_for_perm | LDU_FT | [
"<BEGIN>\n## `run_migrations_offline`",
"Run migrations in 'offline' mode.",
" 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.",
" Calls to context.exec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groups_for_perm API.
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 groups_for_perm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | return PermissionTuples for groups that have given
permission for the resource, perm_name is __any_permission__ then
users with any permission will be listed
:param instance:
:param perm_name:
:param group_ids: limits the permissions to specific group ids
:param limit_gr... | "return PermissionTuples for groups that have given\n permission for the resource, perm_name is __any_permission__ then\n users with any permission will be listed\n\n :param instance:\n :param perm_name:\n :param group_ids: limits the permissions to specific group ids\n :param ... | 229 | false | ergo/ziggurat_foundations | groups_for_perm | 5,592 | |
LDU_FT/cocagne/txdbus/handleMethodCallMessage | LDU_FT | [
"<BEGIN>\n## `isSignatureValid`",
"Verifies that the received signature matches the expected value\n<END>",
"<BEGIN>\n## `notifyOnDisconnect`",
"Registers a callback that will be called when the DBus connection\n underlying the remote object is lost",
" @type callback: Callable object acceptin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handleMethodCallMessage 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 handleMethodCallMessage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Handles DBus MethodCall messages on behalf of the DBus Connection and
dispatches them to the appropriate exported object | "Handles DBus MethodCall messages on behalf of the DBus Connection and\n dispatches them to the appropriate exported object" | 160 | false | cocagne/txdbus | handleMethodCallMessage | 5,593 | |
LDU_FT/TaurusOlson/fntools/count | LDU_FT | [
"<BEGIN>\n## `use_with`",
"Apply a function on the attributes of the data",
" :param data: an object\n :param fn: a function\n :param attrs: some attributes of the object\n :returns: an object",
" Let's create some data first::",
" >>> from collections import namedtuple\n >>> Pe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API.
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 count API.
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... | Return the count of True values returned by the predicate function applied to the
collection
:param fn: a predicate function
:param coll: a collection
:returns: an integer
>>> count(lambda x: x % 2 == 0, [11, 22, 31, 24, 15])
2 | "Return the count of True values returned by the predicate function applied to the\n collection\n\n :param fn: a predicate function\n :param coll: a collection\n :returns: an integer\n\n >>> count(lambda x: x % 2 == 0, [11, 22, 31, 24, 15])\n 2" | 134 | false | TaurusOlson/fntools | count | 5,594 | |
LDU_FT/ray-project/ray/_cur_band_filled | LDU_FT | [
"<BEGIN>\n## `_agent_import_failed`",
"Returns dummy agent class for if PyTorch etc. is not installed.\n<END>",
"<BEGIN>\n## `run`",
"Executes training.",
" Args:\n run_or_experiment (function|class|str|Experiment): If\n function|class|str, this is the algorithm or model to train.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cur_band_filled API.
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 _cur_band_filled API.
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 the current band is filled.
The size of the current band should be equal to s_max_1 | "Checks if the current band is filled.\n\n The size of the current band should be equal to s_max_1" | 1,706 | true | ray-project/ray | _cur_band_filled | 5,595 | |
LDU_FT/python-odin/odinweb/op_paths | LDU_FT | [
"<BEGIN>\n## `action`",
"Decorator to apply an action to a resource. An action is applied to a `detail` operation.\n<END>",
"<BEGIN>\n## `listing`",
"Decorator to configure an operation that returns a list of resources.\n<END>",
"<BEGIN>\n## `create`",
"Decorator to configure an operation that creates a r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the op_paths API.
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 op_paths API.
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... | Yield operations paths stored in containers. | "Yield operations paths stored in containers." | 139 | false | python-odin/odinweb | op_paths | 5,596 | |
LDU_FT/pmorissette/bt/outlays | LDU_FT | [
"<BEGIN>\n## `use_integer_positions`",
"Set indicator to use (or not) integer positions for a given strategy or\n security.",
" By default all positions in number of stocks should be integer.\n However this may lead to unexpected results when working with adjusted\n prices of stocks.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the outlays API.
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 outlays API.
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... | Returns a DataFrame of outlays for each child SecurityBase | "Returns a DataFrame of outlays for each child SecurityBase" | 47 | false | pmorissette/bt | outlays | 5,597 | |
LDU_FT/python/core-workflow/cherry_pick_cli | LDU_FT | [
"<BEGIN>\n## `f`",
"Basic support for 3.6's f-strings, in 3.5!",
" Formats \"s\" using appropriate globals and locals\n dictionaries. This f-string:\n f\"hello a is {a}\"\n simply becomes\n f(\"hello a is {a}\")\n In other words, just throw parentheses around the\n string, and you'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cherry_pick_cli API.
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 cherry_pick_cli API.
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... | cherry-pick COMMIT_SHA1 into target BRANCHES. | "cherry-pick COMMIT_SHA1 into target BRANCHES." | 71 | false | python/core-workflow | cherry_pick_cli | 5,598 | |
LDU_FT/roboogle/gtkmvc3/get_sort_function | LDU_FT | [
"<BEGIN>\n## `__create_log_props`",
"Creates all the logical property.",
" The list of names of properties to be created is passed\n with frozenset log_props. The getter/setter information is\n taken from _{get,set}dict.",
" This method resolves also wildcards in names, and perform... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sort_function API.
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_sort_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Returns a callable similar to the built-in `cmp`, to be used on objects.
Takes a list of dictionaries. In each, 'key' must be a string that is
used to get an attribute of the objects to compare, and 'reverse' must
be a boolean indicating whether the result should be reversed. | "Returns a callable similar to the built-in `cmp`, to be used on objects.\n\n Takes a list of dictionaries. In each, 'key' must be a string that is\n used to get an attribute of the objects to compare, and 'reverse' must\n be a boolean indicating whether the result should be reversed." | 300 | false | roboogle/gtkmvc3 | get_sort_function | 5,599 | |
LDU_FT/mozilla/mozilla-django-oidc/_verify_jws | LDU_FT | [
"<BEGIN>\n## `get_next_url`",
"Retrieves next url from request",
" Note: This verifies that the url is safe before returning it. If the url\n is not safe, this returns None.",
" :arg HttpRequest request: the http request\n :arg str redirect_field_name: the name of the field holding the next url",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _verify_jws API.
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 _verify_jws API.
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... | Verify the given JWS payload with the given key and return the payload | "Verify the given JWS payload with the given key and return the payload" | 49 | false | mozilla/mozilla-django-oidc | _verify_jws | 5,600 | |
LDU_FT/gawel/irc3/call_many | LDU_FT | [
"<BEGIN>\n## `dcc_event`",
"Work like :class:`~irc3.dec.event` but occurs during DCC CHATs\n<END>",
"<BEGIN>\n## `extend`",
"Allow to extend a bot:",
" Create a module with some useful routine:",
" .. literalinclude:: ../examples/myextends.py\n ..\n >>> import sys\n >>> sys.path.app... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_many API.
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 call_many API.
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... | callback is run with each arg but run a call per second | "callback is run with each arg but run a call per second" | 95 | false | gawel/irc3 | call_many | 5,601 | |
LDU_FT/opendns/pyinvestigate/post_parse | LDU_FT | [
"<BEGIN>\n## `get`",
"A generic method to make GET requests to the OpenDNS Investigate API\n on the given URI.\n<END>",
"<BEGIN>\n## `post`",
"A generic method to make POST requests to the OpenDNS Investigate API\n on the given URI.\n<END>",
"<BEGIN>\n## `get_parse`",
"Convenience method to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Convenience method to call post() on an arbitrary URI and parse the response
into a JSON object. Raises an error on non-200 response status. | "Convenience method to call post() on an arbitrary URI and parse the response\n into a JSON object. Raises an error on non-200 response status." | 38 | false | opendns/pyinvestigate | post_parse | 5,602 | |
LDU_FT/fhcrc/seqmagick/gap_index_map | LDU_FT | [
"<BEGIN>\n## `action`",
"Run mogrify. Most of the action is in convert, this just creates a temp\n file for the output.\n<END>",
"<BEGIN>\n## `all_unambiguous`",
"All unambiguous versions of sequence_str\n<END>",
"<BEGIN>\n## `moving_average`",
"From Python collections module documentation",
" mo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gap_index_map API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gap_index_map API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Opposite of ungap_index_map: returns mapping from gapped index to ungapped
index.
>>> gap_index_map('AC-TG-')
{0: 0, 1: 1, 3: 2, 4: 3} | "Opposite of ungap_index_map: returns mapping from gapped index to ungapped\n index.\n\n >>> gap_index_map('AC-TG-')\n {0: 0, 1: 1, 3: 2, 4: 3}" | 150 | false | fhcrc/seqmagick | gap_index_map | 5,603 | |
LDU_FT/vedvyas/doxytag2zealdb/open | LDU_FT | [
"<BEGIN>\n## `set_property`",
"Set a new (or updating existing) key value pair.",
" Args:\n key: A string containing the key namespace\n value: A str, int, or bool value",
" Raises:\n NotImplementedError: an unsupported value-type was provided\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Open a connection to the database.
If a connection appears to be open already, transactions are committed
and it is closed before proceeding. After establishing the connection,
the searchIndex table is prepared (and dropped if it already exists). | "Open a connection to the database.\n\n If a connection appears to be open already, transactions are committed\n and it is closed before proceeding. After establishing the connection,\n the searchIndex table is prepared (and dropped if it already exists)." | 50 | false | vedvyas/doxytag2zealdb | open | 5,604 | |
LDU_FT/ace0/pyrelic/relicResult | LDU_FT | [
"<BEGIN>\n## `assertSameType`",
"Raises an exception if @b is not an instance of type(@a)\n<END>",
"<BEGIN>\n## `assertType`",
"Asserts that a variable @var is of an @expectedType. Raises a TypeError\n if the assertion fails.\n<END>",
"<BEGIN>\n## `dp`",
"Debugging print. Prints a list of labels and va... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the relicResult API.
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 relicResult API.
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... | Calls @relicFunc with a list of @args that are passed by reference. If
@resultType is set, a new object of this type is created, passed as the
first argument, and returned by this function. | "Calls @relicFunc with a list of @args that are passed by reference. If\n @resultType is set, a new object of this type is created, passed as the\n first argument, and returned by this function." | 109 | false | ace0/pyrelic | relicResult | 5,605 | |
LDU_FT/LordGaav/python-chaos/register_response | LDU_FT | [
"<BEGIN>\n## `registerWorker`",
"Register a new Worker, under the given descriptive name.",
"\t\tTrying to register multiple workers under the same name will raise an Exception.",
"\t\tParameters\n\t\t----------\n\t\tname: string\n\t\t\tName to register the given worker under.\n\t\tworker: multiprocessing.Pro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Register the receiving of a RPC response. Will return the given correlation_id after registering, or if correlation_id is None, will
generate a correlation_id and return it after registering. If the given correlation_id has already been used, an KeyError will be
raised.
UUID version 1 will be used when generatin... | "Register the receiving of a RPC response. Will return the given correlation_id after registering, or if correlation_id is None, will\n\t\tgenerate a correlation_id and return it after registering. If the given correlation_id has already been used, an KeyError will be\n\t\traised.\n\n\t\tUUID version 1 will be used whe... | 138 | false | LordGaav/python-chaos | register_response | 5,606 | |
LDU_FT/aio-libs/aiohttp-debugtoolbar/inject | LDU_FT | [
"<BEGIN>\n## `log`",
"Log the ASCII traceback into a file object.\n<END>",
"<BEGIN>\n## `render_summary`",
"Render the traceback for the interactive console.\n<END>",
"<BEGIN>\n## `render_full`",
"Render the Full HTML page with the traceback info.\n<END>",
"<BEGIN>\n## `eval`",
"Evaluate code in the c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inject API.
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 inject API.
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 ... | Inject the debug toolbar iframe into an HTML response. | "Inject the debug toolbar iframe into an HTML response." | 24 | false | aio-libs/aiohttp-debugtoolbar | inject | 5,607 | |
LDU_FT/ocslegna/auto_py_torrent/build_url | LDU_FT | [
"<BEGIN>\n## `get_parser`",
"Load parser for command line arguments.",
" It parses argv/input into args variable.\n<END>",
"<BEGIN>\n## `insert`",
"Insert args values into instance variables.\n<END>",
"<BEGIN>\n## `run_it`",
"Search and download torrents until the user says it so.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_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 extract... | Build appropiate encoded URL.
This implies the same way of searching a torrent as in the page itself. | "Build appropiate encoded URL.\n\n This implies the same way of searching a torrent as in the page itself." | 21 | false | ocslegna/auto_py_torrent | build_url | 5,608 | |
LDU_FT/SystemRDL/systemrdl-compiler/get_group_node_size | LDU_FT | [
"<BEGIN>\n## `derive_coordinates`",
"Depending on the compilation source, some members of the SourceRef\n object may be incomplete.\n Calling this function performs the necessary derivations to complete the\n object.\n<END>",
"<BEGIN>\n## `format_message`",
"Formats the message prior to e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_group_node_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_group_node_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Shared getter for AddrmapNode and RegfileNode's "size" property | "Shared getter for AddrmapNode and RegfileNode's \"size\" property" | 207 | false | SystemRDL/systemrdl-compiler | get_group_node_size | 5,609 | |
LDU_FT/loads/molotov/json_request | LDU_FT | [
"<BEGIN>\n## `scenario`",
"Decorator to register a function as a Molotov test.",
" Options:",
" - **weight** used by Molotov when the scenarii are randomly picked.\n The functions with the highest values are more likely to be picked.\n Integer, defaults to 1. This value is ignored when the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Like :func:`molotov.request` but extracts json from the response. | "Like :func:`molotov.request` but extracts json from the response." | 23 | false | loads/molotov | json_request | 5,610 | |
LDU_FT/juicer/juicer/_check_align | LDU_FT | [
"<BEGIN>\n## `log_wrap`",
"DRY: Use magic instead of code to get a string for the correct log\n level when calling ``print_log_msg``. Because writing the same\n boilerplate code in each log_XXX def was too painful to commit.\n<END>",
"<BEGIN>\n## `add_repo`",
"Build up repos",
" `name` - Name o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_align API.
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 _check_align API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Check if alignment has been specified, set default one if not | "Check if alignment has been specified, set default one if not" | 243 | false | juicer/juicer | _check_align | 5,611 | |
LDU_FT/Microsoft/LightGBM/predict_proba | LDU_FT | [
"<BEGIN>\n## `check_dependicies`",
"Check the dynamic symbol versions.",
" Parameters\n ----------\n objdump_string : string\n The dynamic symbol table entries of the file (result of `objdump -T` command).\n<END>",
"<BEGIN>\n## `_objective_function_wrapper`",
"Decorate an objective function.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict_proba API.
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 predict_proba API.
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... | Return the predicted probability for each class for each sample.
Parameters
----------
X : array-like or sparse matrix of shape = [n_samples, n_features]
Input features matrix.
raw_score : bool, optional (default=False)
Whether to predict raw scores.
num_... | "Return the predicted probability for each class for each sample.\n\n Parameters\n ----------\n X : array-like or sparse matrix of shape = [n_samples, n_features]\n Input features matrix.\n raw_score : bool, optional (default=False)\n Whether to predict raw scores.\n ... | 379 | false | Microsoft/LightGBM | predict_proba | 5,612 | |
LDU_FT/SeabornGames/Meta/function_doc | LDU_FT | [
"<BEGIN>\n## `function_arguments`",
"This returns a list of all arguments\n :param func: callable object\n :return: list of str of the arguments for the function\n<END>",
"<BEGIN>\n## `function_defaults`",
"This returns a list of the default arguments\n :param func: callable object\n :return: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the function_doc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the function_doc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | This will return the doc of the calling function
:param function_index: int of how many frames back the program should look
:param function_name: str of what function to look for
:return: str of the doc from the target function | "This will return the doc of the calling function\n :param function_index: int of how many frames back the program should look\n :param function_name: str of what function to look for\n :return: str of the doc from the target function" | 43 | false | SeabornGames/Meta | function_doc | 5,613 | |
LDU_FT/adafruit/Adafruit_Python_MPR121/filtered_data | LDU_FT | [
"<BEGIN>\n## `begin`",
"Initialize communication with the MPR121. ",
" Can specify a custom I2C address for the device using the address \n parameter (defaults to 0x5A). Optional i2c parameter allows specifying a \n custom I2C bus source (defaults to platform's I2C bus).",
" Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filtered_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filtered_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 ext... | Return filtered data register value for the provided pin (0-11).
Useful for debugging. | "Return filtered data register value for the provided pin (0-11).\n Useful for debugging." | 14 | false | adafruit/Adafruit_Python_MPR121 | filtered_data | 5,614 | |
LDU_FT/daniellawrence/graphitesend/init | LDU_FT | [
"<BEGIN>\n## `init`",
"Create the module instance of the GraphiteClient.\n<END>",
"<BEGIN>\n## `send`",
"Make sure that we have an instance of the GraphiteClient.\n Then send the metrics to the graphite server.\n User consumable method.\n<END>",
"<BEGIN>\n## `send_dict`",
"Make sure that we have an ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API.
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 init API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Create the module instance of the GraphiteClient. | "Create the module instance of the GraphiteClient." | 43 | false | daniellawrence/graphitesend | init | 5,615 | |
LDU_FT/nitely/django-djconfig/_reload | LDU_FT | [
"<BEGIN>\n## `override_djconfig`",
"Temporarily override config values.",
" This is similar to :py:func:`django.test.override_settings`,\\\n use it in testing.",
" :param new_cache_values: Keyword arguments,\\\n the key should match one in the config,\\\n a new one is created otherwise,\\\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reload API.
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 _reload API.
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 every registered form's field value.\
If a field name is found in the db, it will load it from there.\
Otherwise, the initial value from the field form is used | "Gets every registered form's field value.\\\n If a field name is found in the db, it will load it from there.\\\n Otherwise, the initial value from the field form is used" | 21 | false | nitely/django-djconfig | _reload | 5,616 | |
LDU_FT/DasIch/argvard/unique | LDU_FT | [
"<BEGIN>\n## `from_string`",
"Returns a :class:`Signature` object based on the given `string`. If\n `option` is `True`, repetitions or optional patterns will not be\n allowed.",
" If the `string` cannot be parsed, :exc:`InvalidSignature` is raised.\n<END>",
"<BEGIN>\n## `usage`",
"A usa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unique API.
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 unique API.
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 ... | Returns an iterator that yields the first occurence of a hashable item in
`iterable`. | "Returns an iterator that yields the first occurence of a hashable item in\n `iterable`." | 31 | false | DasIch/argvard | unique | 5,617 | |
LDU_FT/coreGreenberet/homematicip-rest-api/activate_absence_with_period | LDU_FT | [
"<BEGIN>\n## `from_json`",
"this function will load the functional channel object \r\n from a json object and the given groups \r",
" Args:\r\n js(dict): the json object\r\n groups(Iterable[Group]): the groups for referencing\n<END>",
"<BEGIN>\n## `download_configuration`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_absence_with_period API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_absence_with_period API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | activates the absence mode until the given time
Args:
endtime(datetime): the time when the absence should automatically be disabled | "activates the absence mode until the given time\r\n\r\n Args:\r\n endtime(datetime): the time when the absence should automatically be disabled" | 84 | false | coreGreenberet/homematicip-rest-api | activate_absence_with_period | 5,618 | |
LDU_FT/remram44/rpaths/split_root | LDU_FT | [
"<BEGIN>\n## `pattern2re`",
"Makes a unicode regular expression from a pattern.",
" Returns ``(start, full_re, int_re)`` where:",
" * `start` is either empty or the subdirectory in which to start searching,\n * `full_re` is a regular expression object that matches the requested\n files, i.e. ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_root API.
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 split_root API.
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... | Splits this path into a pair (drive, location).
Note that, because all paths are normalized, a root of ``'.'`` will be
returned for relative paths. | "Splits this path into a pair (drive, location).\n\n Note that, because all paths are normalized, a root of ``'.'`` will be\n returned for relative paths." | 95 | false | remram44/rpaths | split_root | 5,619 | |
LDU_FT/pdkit/pdkit/extract_features | LDU_FT | [
"<BEGIN>\n## `load`",
"This is a general load data method where the format of data to load can be passed as a parameter,",
" :param str filename: The path to load data from\n :param str format_file: format of the file. Default is CloudUPDRS. Set to mpower for mpower data.\n :ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_features API.
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 extract_features API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | This method extracts all the features available to the Tremor Processor class.
:param data_frame: the data frame
:type data_frame: pandas.DataFrame
:return: amplitude_by_fft, frequency_by_fft, amplitude_by_welch, frequency_by_fft, bradykinesia_amplitude_by_fft, \
... | "This method extracts all the features available to the Tremor Processor class.\n\n :param data_frame: the data frame\n :type data_frame: pandas.DataFrame\n :return: amplitude_by_fft, frequency_by_fft, amplitude_by_welch, frequency_by_fft, bradykinesia_amplitude_by_fft, \\\n ... | 344 | false | pdkit/pdkit | extract_features | 5,620 | |
LDU_FT/linode/linode_api4-python/or_ | LDU_FT | [
"<BEGIN>\n## `nodes`",
"This is a special derived_class relationship because NodeBalancerNode is the\n only api object that requires two parent_ids\n<END>",
"<BEGIN>\n## `load_ssl_data`",
"A convenience method that loads a cert and a key from files and sets them\n on this object. This can make ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the or_ API.
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 or_ API.
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... | Combines two :any:`Filters<Filter>` with an "or" operation, matching
any results that match any of the given filters.
:param a: The first filter to consider.
:type a: Filter
:param b: The second filter to consider.
:type b: Filter
:returns: A filter that matches either a or b
:rtype: Filt... | "Combines two :any:`Filters<Filter>` with an \"or\" operation, matching\n any results that match any of the given filters.\n\n :param a: The first filter to consider.\n :type a: Filter\n :param b: The second filter to consider.\n :type b: Filter\n\n :returns: A filter that matches either a or\u0012 b\... | 232 | false | linode/linode_api4-python | or_ | 5,621 | |
LDU_FT/OldhamMade/PySO8601/parse_duration | LDU_FT | [
"<BEGIN>\n## `parse_duration`",
"Attepmt to parse an ISO8601 formatted duration.",
" Accepts a ``duration`` and optionally a start or end ``datetime``.\n ``duration`` must be an ISO8601 formatted string.",
" Returns a ``datetime.timedelta`` object.\n<END>",
"<BEGIN>\n## `parse_simple_duration`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_duration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_duration API.
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... | Attepmt to parse an ISO8601 formatted duration.
Accepts a ``duration`` and optionally a start or end ``datetime``.
``duration`` must be an ISO8601 formatted string.
Returns a ``datetime.timedelta`` object. | "Attepmt to parse an ISO8601 formatted duration.\n\n Accepts a ``duration`` and optionally a start or end ``datetime``.\n ``duration`` must be an ISO8601 formatted string.\n\n Returns a ``datetime.timedelta`` object." | 24 | false | OldhamMade/PySO8601 | parse_duration | 5,622 | |
LDU_FT/nikcub/floyd/to_utf8 | LDU_FT | [
"<BEGIN>\n## `get_file_contents`",
"Get the context of the file using full path name\n<END>",
"<BEGIN>\n## `import_model`",
"imports a model of name from path, returning from local model\n cache if it has been previously loaded otherwise importing\n<END>",
"<BEGIN>\n## `parse_md`",
"Takes a post path a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_utf8 API.
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 to_utf8 API.
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... | Returns a string encoded using UTF-8.
This function comes from `Tornado`_.
:param value:
A unicode or string to be encoded.
:returns:
The encoded string. | "Returns a string encoded using UTF-8.\n\n This function comes from `Tornado`_.\n\n :param value:\n A unicode or string to be encoded.\n :returns:\n The encoded string." | 71 | false | nikcub/floyd | to_utf8 | 5,623 | |
LDU_FT/abe-winter/pg13-py/p_insertx | LDU_FT | [
"<BEGIN>\n## `names_from_exp`",
"Return a list of AttrX and NameX from the expression.\n<END>",
"<BEGIN>\n## `classify_wherex`",
"helper for wherex_to_rowlist. returns [SingleTableCond,...], [CartesianCond,...]\n<END>",
"<BEGIN>\n## `table_to_rowlist`",
"helper for wherex_to_rowlist. (table.Table, [exp, .... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_insertx API.
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 p_insertx API.
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... | expression : kw_insert kw_into NAME opt_paren_namelist kw_values '(' commalist ')' opt_returnx | "expression : kw_insert kw_into NAME opt_paren_namelist kw_values '(' commalist ')' opt_returnx" | 182 | false | abe-winter/pg13-py | p_insertx | 5,624 | |
LDU_FT/anntzer/mplcursors/connect | LDU_FT | [
"<BEGIN>\n## `_register_scatter`",
"Patch `PathCollection` and `scatter` to register their return values.",
" This registration allows us to distinguish `PathCollection`s created by\n `Axes.scatter`, which should use point-like picking, from others, which\n should use path-like picking. The former is ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API.
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 connect API.
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... | Connect a callback to a `Cursor` event; return the callback.
Two events can be connected to:
- callbacks connected to the ``"add"`` event are called when a
`Selection` is added, with that selection as only argument;
- callbacks connected to the ``"remove"`` event are called when a
... | "Connect a callback to a `Cursor` event; return the callback.\n\n Two events can be connected to:\n\n - callbacks connected to the ``\"add\"`` event are called when a\n `Selection` is added, with that selection as only argument;\n - callbacks connected to the ``\"remove\"`` event are calle... | 49 | false | anntzer/mplcursors | connect | 5,625 | |
LDU_FT/vmonaco/pohmm/preprocess | LDU_FT | [
"<BEGIN>\n## `fit`",
"Fit the classifier with labels y and observations X\n<END>",
"<BEGIN>\n## `fit_df`",
"Fit the classifier with labels y and DataFrames dfs\n<END>",
"<BEGIN>\n## `score`",
"Compute the log probability under the model.\n<END>",
"<BEGIN>\n## `score_events`",
"Compute the log probabil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preprocess API.
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 preprocess API.
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... | Convert the CMU dataset from row vectors into time/duration row observations | "Convert the CMU dataset from row vectors into time/duration row observations" | 33 | false | vmonaco/pohmm | preprocess | 5,626 | |
LDU_FT/aptivate/django-sortable-listview/get_basic_sort_link | LDU_FT | [
"<BEGIN>\n## `get_querystring`",
"Clean existing query string (GET parameters) by removing\n arguments that we don't want to preserve (sort parameter, 'page')\n<END>",
"<BEGIN>\n## `set_sort`",
"Take the sort parameter from the get parameters and split it into\n the field and the prefix\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_basic_sort_link API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_basic_sort_link 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... | Thanks to del_query_parameters and get_querystring, we build the link
with preserving interesting get parameters and removing the others | "Thanks to del_query_parameters and get_querystring, we build the link\n with preserving interesting get parameters and removing the others" | 10 | false | aptivate/django-sortable-listview | get_basic_sort_link | 5,627 | |
LDU_FT/tomnor/channelpack/channel_names | LDU_FT | [
"<BEGIN>\n## `masked`",
"Return a numpy array with values from a where elements in b are\n not False. Populate with numpy.nan where b is False. When plotting,\n those elements look like missing, which can be a desired result.\n<END>",
"<BEGIN>\n## `duration_bool`",
"Mask the parts in b being True but do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the channel_names API.
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 channel_names API.
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... | Attempt to extract the channel names from the data
file. Return a list with names. Return None on failed attempt.
usecols: A list with columns to use. If present, the returned
list will include only names for columns requested. It will
align with the columns returned by numpys loadtxt b... | "Attempt to extract the channel names from the data\n file. Return a list with names. Return None on failed attempt.\n\n usecols: A list with columns to use. If present, the returned\n list will include only names for columns requested. It will\n align with the columns returned by numpys loa... | 253 | false | tomnor/channelpack | channel_names | 5,628 | |
LDU_FT/mardix/Juice/get | LDU_FT | [
"<BEGIN>\n## `get_env`",
"Return the Capitalize environment name\n It can be used to retrieve class base config\n Default: Development\n :returns: str\n<END>",
"<BEGIN>\n## `init_app`",
"To bind middlewares, plugins that needs the 'app' object to init\n Bound middlewares will be assigned on cls.in... | 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... | To get a value by dot notation
:param keys: dot notaion string
:param default:
:return: | "To get a value by dot notation\n :param keys: dot notaion string\n :param default:\n :return:" | 101 | false | mardix/Juice | get | 5,629 | |
LDU_FT/mattjj/pylds/resample_zeroinflation_variables | LDU_FT | [
"<BEGIN>\n## `symm_block_tridiag_matmul`",
"Compute matrix-vector product with a symmetric block\n tridiagonal matrix H and vector v.",
" :param H_diag: block diagonal terms of H\n :param H_upper_diag: upper block diagonal terms of H\n :param v: vector to multiple\n :ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resample_zeroinflation_variables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resample_zeroinflation_variables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | There's no way around the fact that we have to look at every
data point, even the zeros here. | "There's no way around the fact that we have to look at every\n data point, even the zeros here." | 53 | false | mattjj/pylds | resample_zeroinflation_variables | 5,630 | |
LDU_FT/elifesciences/elife-tools/inten | LDU_FT | [
"<BEGIN>\n## `strip_punctuation_space`",
"Strip excess whitespace prior to punctuation.\n<END>",
"<BEGIN>\n## `join_sentences`",
"concatenate two sentences together with punctuation glue\n<END>",
"<BEGIN>\n## `coerce_to_int`",
"Attempts to cast given value to an integer, return the original value if faile... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inten API.
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 inten API.
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... | Decorator. Attempts to convert return value to int | "Decorator. Attempts to convert return value to int" | 201 | false | elifesciences/elife-tools | inten | 5,631 | |
LDU_FT/GeoPyTool/GeoPyTool/alpha_shape | LDU_FT | [
"<BEGIN>\n## `lines`",
"read the Excel, then draw the wulf net and Plot points, job done~\n<END>",
"<BEGIN>\n## `add_edge`",
"Add a line between the i-th and j-th points,\n if not in the list already\n<END>",
"<BEGIN>\n## `alpha_shape`",
"Compute the alpha shape (concave hull) of a set\n of points.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alpha_shape API.
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 alpha_shape API.
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... | Compute the alpha shape (concave hull) of a set
of points.
@param points: Iterable container of points.
@param alpha: alpha value to influence the
gooeyness of the border. Smaller numbers
don't fall inward as much as larger numbers.
Too large, and you lose everything! | "Compute the alpha shape (concave hull) of a set\n of points.\n @param points: Iterable container of points.\n @param alpha: alpha value to influence the\n gooeyness of the border. Smaller numbers\n don't fall inward as much as larger numbers.\n Too large, and you lose everything!" | 53 | false | GeoPyTool/GeoPyTool | alpha_shape | 5,632 | |
LDU_FT/Linaro/squad/create_or_update | LDU_FT | [
"<BEGIN>\n## `geomean`",
"The intuitive/naive way of calculating a geometric mean (first\n multiply the n values, then take the nth-root of the result) does not\n work in practice. When you multiple an large enough amount of large\n enough numbers, their product will oferflow the float representation,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_or_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_or_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 ... | Creates (or updates) a new ProjectStatus for the given build and
returns it. | "Creates (or updates) a new ProjectStatus for the given build and\n returns it." | 31 | false | Linaro/squad | create_or_update | 5,633 | |
LDU_FT/Vital-Fernandez/dazer/loadinfofont | LDU_FT | [
"<BEGIN>\n## `linfit`",
"Least squares linear fit.",
" Fit a straight line `f(x_true) = a + bx` to points `(x_true, y)`. Returns\n coefficients `a` and `b` that minimize the squared error.",
" Parameters\n ----------\n x_true : array_like\n one dimensional array of `x_true` data with `n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadinfofont API.
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 loadinfofont API.
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... | Auxiliary method to load font if not yet done. | "Auxiliary method to load font if not yet done." | 228 | false | Vital-Fernandez/dazer | loadinfofont | 5,634 | |
LDU_FT/openstack/networking-hyperv/_work | LDU_FT | [
"<BEGIN>\n## `handle_trunks`",
"Trunk data model change from the server.\n<END>",
"<BEGIN>\n## `handle_subports`",
"Subport data model change from the server.\n<END>",
"<BEGIN>\n## `_setup_trunk`",
"Sets up VLAN trunk and updates the trunk status.\n<END>",
"<BEGIN>\n## `main`",
"The entry point for ne... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _work API.
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 _work API.
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... | Start the neutron-hnv-metadata-proxy agent. | "Start the neutron-hnv-metadata-proxy agent." | 45 | false | openstack/networking-hyperv | _work | 5,635 | |
LDU_FT/edeposit/edeposit.amqp.harvester/_parse_description | LDU_FT | [
"<BEGIN>\n## `save_cache`",
"Save cahce to the disk.",
" Args:\n cache (set): Set with cached data.\n<END>",
"<BEGIN>\n## `load_cache`",
"Load cache from the disk.",
" Return:\n set: Deserialized data from disk.\n<END>",
"<BEGIN>\n## `filter_publication`",
"Deduplication function, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_description 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 _parse_description 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... | Parse description of the book.
Args:
details (obj): HTMLElement containing slice of the page with details.
Returns:
str/None: Details as string with currency or None if not found. | "Parse description of the book.\n\n Args:\n details (obj): HTMLElement containing slice of the page with details.\n\n Returns:\n str/None: Details as string with currency or None if not found." | 303 | false | edeposit/edeposit.amqp.harvester | _parse_description | 5,636 | |
LDU_FT/MoseleyBioinformaticsLab/nmrstarlib/print_saveframe | LDU_FT | [
"<BEGIN>\n## `csview`",
"View chemical shift values organized by amino acid residue.",
" :param view: Open in default image viewer or save file in current working directory quietly.\n :type view: :py:obj:`True` or :py:obj:`False`\n :return: None\n :rtype: :py:obj:`None`\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_saveframe API.
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 print_saveframe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Print saveframe into a file or stdout.
We need to keep track of how far over everything is tabbed. The "tab width"
variable tw does this for us.
:param str sf: Saveframe name.
:param io.StringIO f: writable file-like stream.
:param str file_format: Format to use: `nmrstar` or `j... | "Print saveframe into a file or stdout.\n We need to keep track of how far over everything is tabbed. The \"tab width\"\n variable tw does this for us.\n\n :param str sf: Saveframe name.\n :param io.StringIO f: writable file-like stream.\n :param str file_format: Format to use: `nmrst... | 117 | false | MoseleyBioinformaticsLab/nmrstarlib | print_saveframe | 5,637 | |
LDU_FT/oceanprotocol/aquarius/query_text | LDU_FT | [
"<BEGIN>\n## `get_assets`",
"Get all asset IDs.\n ---\n tags:\n - ddo\n responses:\n 200:\n description: successful action\n<END>",
"<BEGIN>\n## `get_ddo`",
"Get DDO of a particular asset.\n ---\n tags:\n - ddo\n parameters:\n - name: did\n in: path\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Get a list of DDOs that match with the given text.
---
tags:
- ddo
parameters:
- name: text
in: query
description: ID of the asset.
required: true
type: string
- name: sort
in: query
type: object
description: Key or list of keys to so... | "Get a list of DDOs that match with the given text.\n ---\n tags:\n - ddo\n parameters:\n - name: text\n in: query\n description: ID of the asset.\n required: true\n type: string\n - name: sort\n in: query\n type: object\n description: Key or list... | 26 | false | oceanprotocol/aquarius | query_text | 5,638 | |
LDU_FT/michaeljohnbarr/django-timezone-utils/check | LDU_FT | [
"<BEGIN>\n## `get_choices`",
"Retrieves timezone choices from any iterable (normally pytz).\n<END>",
"<BEGIN>\n## `validate`",
"Validates value and throws ValidationError. Subclasses should override\n this to provide validation logic.\n<END>",
"<BEGIN>\n## `get_prep_value`",
"Converts timezone inst... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API.
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 check API.
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... | Calls the TimeZoneField's custom checks. | "Calls the TimeZoneField's custom checks." | 28 | false | michaeljohnbarr/django-timezone-utils | check | 5,639 | |
LDU_FT/INM-6/hybridLFPy/normalize | LDU_FT | [
"<BEGIN>\n## `plot_signal_sum`",
"on axes plot the signal contributions",
" args:\n ::\n ax : matplotlib.axes.AxesSubplot object\n z : np.ndarray\n T : list, [tstart, tstop], which timeinterval\n ylims : list, set range of yaxis to scale with other plots\n fancy : bool, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API.
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 normalize API.
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... | normalize x to have mean 0 and unity standard deviation | "normalize x to have mean 0 and unity standard deviation" | 412 | false | INM-6/hybridLFPy | normalize | 5,640 | |
LDU_FT/MKLab-ITI/reveal-graph-embedding/calculate_epsilon_effective | LDU_FT | [
"<BEGIN>\n## `read_adjacency_matrix`",
"Reads an edge list in csv format and returns the adjacency matrix in SciPy Sparse COOrdinate format.",
" Inputs: - file_path: The path where the adjacency matrix is stored.\n - separator: The delimiter among values (e.g. \",\", \"\\t\", \" \")",
" Out... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_epsilon_effective 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 calculate_epsilon_effective API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Semi-automatic effective epsilon threshold calculation. | "Semi-automatic effective epsilon threshold calculation." | 151 | false | MKLab-ITI/reveal-graph-embedding | calculate_epsilon_effective | 5,641 | |
LDU_FT/e7dal/bubble3/template_substitute | LDU_FT | [
"<BEGIN>\n## `cli`",
"Show example for doing some task in bubble(experimental)\n<END>",
"<BEGIN>\n## `cli`",
"Bubble: command line tool for bubbling information between services",
" .oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.\\n\n Making single point to point API connections:\\n\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the template_substitute 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 template_substitute 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... | Replace placeholders in text by using the data mapping.
Other placeholders that is not represented by data is left untouched.
:param text: Text to search and replace placeholders.
:param data: Data mapping/dict for placeholder key and values.
:return: Potentially modified text with replaced placeho... | "Replace placeholders in text by using the data mapping.\n Other placeholders that is not represented by data is left untouched.\n\n :param text: Text to search and replace placeholders.\n :param data: Data mapping/dict for placeholder key and values.\n :return: Potentially modified text with replaced p... | 171 | false | e7dal/bubble3 | template_substitute | 5,642 | |
LDU_FT/uogbuji/versa/transitive_closure | LDU_FT | [
"<BEGIN>\n## `link`",
"Action function generator to create a link based on the context's current link, or on provided parameters",
" :param origin: IRI/string, or list of same; origins for the created relationships.\n If None, the action context provides the parameter.",
" :param rel: IRI/string, or ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transitive_closure 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 transitive_closure 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... | Generate the closure over a transitive relationship in depth-first fashion | "Generate the closure over a transitive relationship in depth-first fashion" | 146 | false | uogbuji/versa | transitive_closure | 5,643 | |
LDU_FT/bitesofcode/projexui/nodeAt | LDU_FT | [
"<BEGIN>\n## `addEntry`",
"Creates a new entry item for this widget.\r",
" :param key | <str>\r\n value | <variant>\n<END>",
"<BEGIN>\n## `dictionary`",
"Returns a dictionary of the key/value pairing for the items in\r\n this widget.\r",
" :return {<s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nodeAt API.
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 nodeAt API.
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 ... | Returns the node at the inputed positions.
:return <XNode> | "Returns the node at the inputed positions.\n \n :return <XNode>" | 4,917 | true | bitesofcode/projexui | nodeAt | 5,644 | |
LDU_FT/ArduPilot/MAVProxy/ensureMinimal | LDU_FT | [
"<BEGIN>\n## `child_task`",
"child process - this holds all the GUI elements\n<END>",
"<BEGIN>\n## `load_tile_lowres`",
"load a lower resolution tile from cache to fill in a\n map while waiting for a higher resolution tile\n<END>",
"<BEGIN>\n## `area_to_image`",
"return an RGB image for an area of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensureMinimal API.
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 ensureMinimal API.
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... | Checks to see if the default version of wxPython is greater-than
or equal to `minVersion`. If not then it will try to find an
installed version that is >= minVersion. If none are available
then a message is displayed that will inform the user and will
offer to open their web browser to the wxPython do... | "Checks to see if the default version of wxPython is greater-than\n or equal to `minVersion`. If not then it will try to find an\n installed version that is >= minVersion. If none are available\n then a message is displayed that will inform the user and will\n offer to open their web browser to the wxPyth... | 404 | false | ArduPilot/MAVProxy | ensureMinimal | 5,645 | |
LDU_FT/cloudant/python-cloudant/search_disk_size | LDU_FT | [
"<BEGIN>\n## `_start`",
"Starts streaming the feed using the provided session and feed options.\n<END>",
"<BEGIN>\n## `_translate`",
"Perform translation of feed options passed in as keyword\n arguments to CouchDB/Cloudant equivalent.\n<END>",
"<BEGIN>\n## `_validate`",
"Ensures that the key and th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_disk_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_disk_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Retrieves disk size information about a specified search index within
the design document, returns dictionary
GET databasename/_design/{ddoc}/_search_disk_size/{search_index} | "Retrieves disk size information about a specified search index within\n the design document, returns dictionary\n\n GET databasename/_design/{ddoc}/_search_disk_size/{search_index}" | 489 | false | cloudant/python-cloudant | search_disk_size | 5,646 | |
LDU_FT/angr/claripy/eval_constraints | LDU_FT | [
"<BEGIN>\n## `_align_ast`",
"Aligns the AST so that the argument with the highest cardinality is on the left.",
" :return: a new AST.\n<END>",
"<BEGIN>\n## `_doit`",
"This function processes the list of truisms and finds bounds for ASTs.\n<END>",
"<BEGIN>\n## `_handleable_truism`",
"Checks whethe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_constraints API.
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 eval_constraints API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns whether the constraints is satisfied trivially by using the
last model. | "Returns whether the constraints is satisfied trivially by using the\n last model." | 453 | false | angr/claripy | eval_constraints | 5,647 | |
LDU_FT/pytest-dev/pluggy/unregister | LDU_FT | [
"<BEGIN>\n## `create_branch`",
"Create a fresh branch from upstream/master\n<END>",
"<BEGIN>\n## `get_upstream`",
"Find upstream repository for pluggy on the remotes\n<END>",
"<BEGIN>\n## `pre_release`",
"Generates new docs, release announcements and creates a local tag.\n<END>",
"<BEGIN>\n## `_wrapped_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unregister API.
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 unregister API.
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... | unregister a plugin object and all its contained hook implementations
from internal data structures. | "unregister a plugin object and all its contained hook implementations\n from internal data structures." | 52 | false | pytest-dev/pluggy | unregister | 5,648 | |
LDU_FT/gusutabopb/aioinflux/serialize | LDU_FT | [
"<BEGIN>\n## `lineprotocol`",
"Adds ``to_lineprotocol`` method to arbitrary user-defined classes",
" :param cls: Class to monkey-patch\n :param schema: Schema dictionary (attr/type pairs).\n :param rm_none: Whether apply a regex to remove ``None`` values.\n If ``False``, passing ``None`` values ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API.
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 serialize API.
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... | Converts a Pandas DataFrame into line protocol format | "Converts a Pandas DataFrame into line protocol format" | 41 | false | gusutabopb/aioinflux | serialize | 5,649 | |
LDU_FT/Julian/Filesystems/_realpath | LDU_FT | [
"<BEGIN>\n## `_realpath`",
".. warning::",
" The ``os.path`` module's realpath does not error or warn about\n loops, but we do, following the behavior of GNU ``realpath(1)``!\n<END>",
"<BEGIN>\n## `_recursive_remove`",
"A recursive, non-atomic directory removal.\n<END>",
"<BEGIN>\n## `_exist... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _realpath API.
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 _realpath API.
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... | .. warning::
The ``os.path`` module's realpath does not error or warn about
loops, but we do, following the behavior of GNU ``realpath(1)``! | ".. warning::\n\n The ``os.path`` module's realpath does not error or warn about\n loops, but we do, following the behavior of GNU ``realpath(1)``!" | 21 | false | Julian/Filesystems | _realpath | 5,650 | |
LDU_FT/Blueqat/Blueqat/get_objective | LDU_FT | [
"<BEGIN>\n## `pauli`",
"Convert to pauli operators of universal gate model.\n\tRequires blueqat.\n<END>",
"<BEGIN>\n## `make_qs`",
"Make sympy symbols q0, q1, ...",
" Args:\n n(int), m(int, optional):\n If specified both n and m, returns [qn, q(n+1), ..., qm],\n Only n is spe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_objective API.
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_objective API.
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 an objective function to be optimized. | "Get an objective function to be optimized." | 117 | false | Blueqat/Blueqat | get_objective | 5,651 | |
LDU_FT/LudovicRousseau/pyscard/run | LDU_FT | [
"<BEGIN>\n## `translateprotocolmask`",
"Translate CardConnection protocol mask into PCSC protocol mask.\n<END>",
"<BEGIN>\n## `translateprotocolheader`",
"Translate protocol into PCSC protocol header.\n<END>",
"<BEGIN>\n## `connect`",
"Connect to the card.",
" If protocol is not specified, connec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Starts Pyro naming server with command line arguments (see
pyro documentation) | "Starts Pyro naming server with command line arguments (see\n pyro documentation)" | 164 | false | LudovicRousseau/pyscard | run | 5,652 | |
LDU_FT/smarie/python-parsyfiles/get_validated_types | LDU_FT | [
"<BEGIN>\n## `read_dict_or_list_from_json`",
"Helper method to read a dictionary from a .json file using json library\n :param file_object:\n :return:\n<END>",
"<BEGIN>\n## `get_default_collection_parsers`",
"Utility method to return the default parsers able to parse a dictionary from a file.\n :retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_validated_types API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_validated_types 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... | Utility to validate a set of types :
* None is not allowed as a whole or within the set,
* object and Any are converted into AnyObject
* if AnyObject is in the set, it must be the only element
:param object_types: the set of types to validate
:param set_name: a name used in exceptions if any
:r... | "Utility to validate a set of types :\n * None is not allowed as a whole or within the set,\n * object and Any are converted into AnyObject\n * if AnyObject is in the set, it must be the only element\n\n :param object_types: the set of types to validate\n :param set_name: a name used in exceptions if any... | 504 | false | smarie/python-parsyfiles | get_validated_types | 5,653 | |
LDU_FT/dcwatson/django-pgcrypto/pad | LDU_FT | [
"<BEGIN>\n## `armor`",
"Returns a string in ASCII Armor format, for the given binary data. The\n output of this is compatiple with pgcrypto's armor/dearmor functions.\n<END>",
"<BEGIN>\n## `dearmor`",
"Given a string in ASCII Armor format, returns the decoded binary data.\n If verify=True (the default),... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pad API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pad API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Given a text string and a block size, pads the text with bytes of the same value
as the number of padding bytes. This is the recommended method, and the one used
by pgcrypto. See http://www.di-mgt.com.au/cryptopad.html for more information. | "Given a text string and a block size, pads the text with bytes of the same value\n as the number of padding bytes. This is the recommended method, and the one used\n by pgcrypto. See http://www.di-mgt.com.au/cryptopad.html for more information." | 14 | false | dcwatson/django-pgcrypto | pad | 5,654 | |
LDU_FT/Arvedui/picuplib/do_upload | LDU_FT | [
"<BEGIN>\n## `gen_user_agent`",
"generating the user agent witch will be used for most requests",
" monkey patching system and release functions from platform module\n to prevent disclosure of the OS and it's version\n<END>",
"<BEGIN>\n## `check_rotation`",
"checks rotation parameter if illegal value ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_upload API.
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 do_upload API.
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... | does the actual upload also sets and generates the user agent string | "does the actual upload also sets and generates the user agent string" | 27 | false | Arvedui/picuplib | do_upload | 5,655 | |
LDU_FT/python-odin/odinweb/dispatch | LDU_FT | [
"<BEGIN>\n## `action`",
"Decorator to apply an action to a resource. An action is applied to a `detail` operation.\n<END>",
"<BEGIN>\n## `listing`",
"Decorator to configure an operation that returns a list of resources.\n<END>",
"<BEGIN>\n## `create`",
"Decorator to configure an operation that creates a r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Dispatch incoming request and capture top level exceptions. | "Dispatch incoming request and capture top level exceptions." | 139 | false | python-odin/odinweb | dispatch | 5,656 | |
LDU_FT/learningequality/iceqube/process_messages | LDU_FT | [
"<BEGIN>\n## `wait_for_job_update`",
"Blocks until a job given by job_id has updated its state (canceled, completed, progress updated, etc.)\n if timeout is not None, then this function raises iceqube.exceptions.TimeoutError.",
" :param job_id: the job's job_id to monitor for changes.\n :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_messages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_messages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Read from the incoming_message_mailbox and report to the storage backend
based on the first message found there.
Returns: None | "Read from the incoming_message_mailbox and report to the storage backend\n based on the first message found there.\n Returns: None" | 93 | false | learningequality/iceqube | process_messages | 5,657 | |
LDU_FT/croscon/fleaker/_serialize | LDU_FT | [
"<BEGIN>\n## `install`",
"Install Fleaker.",
" In a function so we can protect this file so it's only run when we\n explicitly invoke it and not, say, when py.test collects all Python\n modules.\n<END>",
"<BEGIN>\n## `python_value`",
"Return the JSON in the database as a ``dict``.",
" Retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _serialize API.
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 _serialize API.
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... | Format and validate the phone number user libphonenumber. | "Format and validate the phone number user libphonenumber." | 259 | false | croscon/fleaker | _serialize | 5,658 | |
LDU_FT/IAMconsortium/pyam/_apply_filters | LDU_FT | [
"<BEGIN>\n## `read_ix`",
"Read timeseries data from an ixmp object",
" Parameters\n ----------\n ix: ixmp.TimeSeries or ixmp.Scenario\n this option requires the ixmp package as a dependency\n kwargs: arguments passed to ixmp.TimeSeries.timeseries()\n<END>",
"<BEGIN>\n## `requires_package`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_filters API.
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 _apply_filters API.
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... | Determine rows to keep in data for given set of filters
Parameters
----------
filters: dict
dictionary of filters ({col: values}}); uses a pseudo-regexp syntax
by default, but accepts `regexp: True` to use regexp directly | "Determine rows to keep in data for given set of filters\n\n Parameters\n ----------\n filters: dict\n dictionary of filters ({col: values}}); uses a pseudo-regexp syntax\n by default, but accepts `regexp: True` to use regexp directly" | 256 | false | IAMconsortium/pyam | _apply_filters | 5,659 | |
LDU_FT/hannes-brt/hebel/initialize | LDU_FT | [
"<BEGIN>\n## `parameters`",
"A property that returns all of the model's parameters.\n<END>",
"<BEGIN>\n## `parameters`",
"Used to set all of the model's parameters to new values.",
" **Parameters:**",
" value : array_like\n New values for the model parameters. Must be of length\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API.
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 initialize API.
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... | Initialize the configuration system by installing YAML handlers.
Automatically done on first call to load() specified in this file. | "Initialize the configuration system by installing YAML handlers.\n Automatically done on first call to load() specified in this file." | 372 | false | hannes-brt/hebel | initialize | 5,660 | |
LDU_FT/MakerReduxCorp/PLOD/insert | LDU_FT | [
"<BEGIN>\n## `dropKey`",
"Drop an attribute/element/key-value pair from all the dictionaries.",
" If the dictionary key does not exist in a particular dictionary, then\n that dictionary is left unchanged.",
" Side effect: if the key is a number and it matches a list (interpreted\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API.
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 insert API.
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 ... | Insert a new entry to the end of the list of dictionaries.
This entry retains the original index tracking but adds this
entry incrementally at the end.
>>> test = [
... {"name": "Jim", "age": 18, "income": 93000, "wigs": 68 },
... {"name": "Larry", "age": 18, ... | "Insert a new entry to the end of the list of dictionaries.\n\n This entry retains the original index tracking but adds this\n entry incrementally at the end.\n\n >>> test = [\n ... {\"name\": \"Jim\", \"age\": 18, \"income\": 93000, \"wigs\": 68 },\n ... {\"name\": \"La... | 199 | false | MakerReduxCorp/PLOD | insert | 5,661 | |
LDU_FT/karimbahgat/PyGeoj/add_unique_id | LDU_FT | [
"<BEGIN>\n## `validate`",
"Checks that the geojson data is a feature collection, that it\n contains a proper \"features\" attribute, and that all features are valid too.\n Returns True if all goes well.",
" - skiperrors will throw away any features that fail to validate.\n - fixerrors will attempt t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_unique_id API.
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 add_unique_id API.
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... | Adds a unique id property to each feature.
Raises:
- An Exception if any of the features already
have an "id" field. | "Adds a unique id property to each feature.\n\n Raises:\n \n - An Exception if any of the features already\n have an \"id\" field." | 49 | false | karimbahgat/PyGeoj | add_unique_id | 5,662 | |
LDU_FT/zxylvlp/PingPHP/t_INDENTIFIER | LDU_FT | [
"<BEGIN>\n## `t_DOCCOMMENT`",
"r'((\\'\\'\\'((?!\\'\\'\\')[\\s\\S])*\\'\\'\\')|(\\'{6,8})|(\"\"\"((?!\"\"\")[\\s\\S])*\"\"\")|(\"{6,8}))[ \\t]*\\n\n<END>",
"<BEGIN>\n## `t_NATIVEPHP`",
"r'<\\?php((?!<\\?php)[\\s\\S])*\\?>[ \\t]*(?=\\n)\n<END>",
"<BEGIN>\n## `t_INDENTIFIER`",
"r'(\\$?[_a-zA-Z][_a-zA-Z0-9]*... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the t_INDENTIFIER API.
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 t_INDENTIFIER API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | r'(\$?[_a-zA-Z][_a-zA-Z0-9]*)|(__[A-Z_]+__) | "r'(\\$?[_a-zA-Z][_a-zA-Z0-9]*)|(__[A-Z_]+__)" | 74 | false | zxylvlp/PingPHP | t_INDENTIFIER | 5,663 | |
LDU_FT/nir0s/serv/_init_sys_auto_lookup | LDU_FT | [
"<BEGIN>\n## `generate`",
"Create a service.",
" `COMMAND` is the path to the executable to run\n<END>",
"<BEGIN>\n## `_parse_service_env_vars`",
"Return a dict based on `key=value` pair strings.\n<END>",
"<BEGIN>\n## `_set_service_name_from_command`",
"Set the name of a service according to the comm... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_sys_auto_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_sys_auto_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.
... | Return a list of tuples of available init systems on the
current machine.
Note that in some situations (Ubuntu 14.04 for instance) more than
one init system can be found. | "Return a list of tuples of available init systems on the\n current machine.\n\n Note that in some situations (Ubuntu 14.04 for instance) more than\n one init system can be found." | 65 | false | nir0s/serv | _init_sys_auto_lookup | 5,664 | |
LDU_FT/PonteIneptique/collatinus-python/_lemmatise_contractions | LDU_FT | [
"<BEGIN>\n## `assims`",
"Cherche si la chaîne a peut subir une assimilation, renvoie cette chaîne éventuellement assimilée.",
" :param mot: Mot pour lequel on doit vérifier des assimilations\n :type mot: str\n :return: Mot assimilé\n :rtype: str\n<END>",
"<BEGIN>\n## `morpho`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lemmatise_contractions 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 _lemmatise_contractions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Lemmatise un mot f avec sa contraction
:param f: Mot à lemmatiser
:yield: Match formated like in _lemmatise() | "Lemmatise un mot f avec sa contraction\n\n :param f: Mot à lemmatiser\n :yield: Match formated like in _lemmatise()" | 109 | false | PonteIneptique/collatinus-python | _lemmatise_contractions | 5,665 | |
LDU_FT/GluuFederation/oxd-python/get_client_token | LDU_FT | [
"<BEGIN>\n## `register_site`",
"Function to register the site and generate a unique ID for the site",
" Returns:\n **string:** The ID of the site (also called client id) if the registration is successful",
" Raises:\n **OxdServerError:** If the site registration fails.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_client_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 get_client_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 ... | Function to get the client token which can be used for protection in
all future communication. The access token received by this method is
stored in the config file and used as the `protection_access_token`
for all subsequent calls to oxd.
Parameters:
* **client_id (str, opt... | "Function to get the client token which can be used for protection in\n all future communication. The access token received by this method is\n stored in the config file and used as the `protection_access_token`\n for all subsequent calls to oxd.\n\n Parameters:\n * **client_id (s... | 124 | false | GluuFederation/oxd-python | get_client_token | 5,666 | |
LDU_FT/nocarryr/python-dispatch/emission_lock | LDU_FT | [
"<BEGIN>\n## `register_event`",
"Registers new events after instance creation",
" Args:\n *names (str): Name or names of the events to register\n<END>",
"<BEGIN>\n## `bind`",
"Subscribes to events or to :class:`~pydispatch.properties.Property` updates",
" Keyword arguments are use... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emission_lock API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emission_lock API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Holds emission of events and dispatches the last event on release
The context manager returned will store the last event data called by
:meth:`emit` and prevent callbacks until it exits. On exit, it will
dispatch the last event captured (if any)::
class Foo(Dispatcher):
... | "Holds emission of events and dispatches the last event on release\n\n The context manager returned will store the last event data called by\n :meth:`emit` and prevent callbacks until it exits. On exit, it will\n dispatch the last event captured (if any)::\n\n class Foo(Dispatcher):\n ... | 89 | false | nocarryr/python-dispatch | emission_lock | 5,667 | |
LDU_FT/mabuchilab/QNET/get_coeffs | LDU_FT | [
"<BEGIN>\n## `isdisjoint`",
"Check whether two Hilbert spaces are disjoint (do not have any\n common local factors). Note that `FullSpace` is *not* disjoint with any\n other Hilbert space, while `TrivialSpace` *is* disjoint with any other\n HilbertSpace (even itself)\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_coeffs API.
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_coeffs API.
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... | Create a dictionary with all Operator terms of the expression
(understood as a sum) as keys and their coefficients as values.
The returned object is a defaultdict that return 0. if a term/key
doesn't exist.
Args:
expr: The operator expression to get all coefficients from.
expand: Wheth... | "Create a dictionary with all Operator terms of the expression\n (understood as a sum) as keys and their coefficients as values.\n\n The returned object is a defaultdict that return 0. if a term/key\n doesn't exist.\n\n Args:\n expr: The operator expression to get all coefficients from.\n expa... | 1,017 | false | mabuchilab/QNET | get_coeffs | 5,668 | |
LDU_FT/JDongian/python-jamo/is_jamo_compound | LDU_FT | [
"<BEGIN>\n## `_hangul_char_to_jamo`",
"Return a 3-tuple of lead, vowel, and tail jamo characters.\n Note: Non-Hangul characters are echoed back.\n<END>",
"<BEGIN>\n## `_jamo_to_hangul_char`",
"Return the Hangul character for the given jamo characters.\n<END>",
"<BEGIN>\n## `_get_unicode_name`",
"Fetch ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_jamo_compound API.
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_jamo_compound API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Test if a single character is a compound, i.e., a consonant
cluster, double consonant, or dipthong. | "Test if a single character is a compound, i.e., a consonant\n cluster, double consonant, or dipthong." | 34 | false | JDongian/python-jamo | is_jamo_compound | 5,669 | |
LDU_FT/hydroshare/hs_restclient/getScienceMetadataRDF | LDU_FT | [
"<BEGIN>\n## `custom`",
":param payload:\r\n a key/value object containing the scimeta you want to store\r\n e.g. {\"weather\": \"sunny\", \"temperature\": \"80C\" }\r\n :return:\r\n empty (200 status code)\n<END>",
"<BEGIN>\n## `get`",
":param payload:\r\n a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getScienceMetadataRDF 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 getScienceMetadataRDF API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get science metadata for a resource in XML+RDF format
:param pid: The HydroShare ID of the resource
:raises: HydroShareNotAuthorized if the user is not authorized to view the metadata.
:raises: HydroShareNotFound if the resource was not found.
:raises: HydroShareHTTPException to signal ... | "Get science metadata for a resource in XML+RDF format\n\n :param pid: The HydroShare ID of the resource\n :raises: HydroShareNotAuthorized if the user is not authorized to view the metadata.\n :raises: HydroShareNotFound if the resource was not found.\n :raises: HydroShareHTTPException to s... | 95 | false | hydroshare/hs_restclient | getScienceMetadataRDF | 5,670 | |
LDU_FT/gamechanger/confluent_schema_registry_client/get_subject_version | LDU_FT | [
"<BEGIN>\n## `get_schema`",
"Retrieves the schema with the given schema_id from the registry\n and returns it as a `dict`.\n<END>",
"<BEGIN>\n## `get_subjects`",
"Returns the list of subject names present in the schema registry.\n<END>",
"<BEGIN>\n## `get_subject_version_ids`",
"Return the list of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subject_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subject_version 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... | Retrieves the schema registered under the given subject with
the given version id. Returns the schema as a `dict`. | "Retrieves the schema registered under the given subject with\n the given version id. Returns the schema as a `dict`." | 16 | false | gamechanger/confluent_schema_registry_client | get_subject_version | 5,671 | |
LDU_FT/six8/anticipate/_adapt_param | LDU_FT | [
"<BEGIN>\n## `get_adapter_path`",
"Returns the adapter path that would be used to adapt `obj` to `to_cls`.\n<END>",
"<BEGIN>\n## `adapt`",
"Will adapt `obj` to an instance of `to_cls`.",
" First sees if `obj` has an `__adapt__` method and uses it to adapt. If that fails\n it checks if `to_cls` has an ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _adapt_param API.
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 _adapt_param API.
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... | Adapt the value if an adapter is defined. | "Adapt the value if an adapter is defined." | 14 | false | six8/anticipate | _adapt_param | 5,672 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.