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/yougov/vr.common/tmpdir | LDU_FT | [
"<BEGIN>\n## `str_to_pool`",
"Given a string containing an nginx upstream section, return the pool name\n and list of nodes.\n<END>",
"<BEGIN>\n## `get_buildfile_path`",
"Path to which a build tarball should be downloaded.\n<END>",
"<BEGIN>\n## `_retry`",
"Try to call f(*args, **kwargs) \"n\" times bef... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tmpdir API.
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 tmpdir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create a tempdir context for the cwd and remove it after. | "Create a tempdir context for the cwd and remove it after." | 49 | false | yougov/vr.common | tmpdir | 11,773 | |
LDU_FT/ionelmc/python-cogen/request_generic | LDU_FT | [
"<BEGIN>\n## `run_op`",
"Handle the operation:",
" * if coro is in STATE_RUNNING, send or throw the given op\r",
" * if coro is in STATE_NEED_INIT, call the init function and if it\r\n doesn't return a generator, set STATE_COMPLETED and set the result\r\n to whatever the functi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_generic API.
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 request_generic API.
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... | Performs an overlapped request (via `perform` callable) and saves
the token and the (`overlapped`, `perform`, `complete`) trio. | "Performs an overlapped request (via `perform` callable) and saves\r\n the token and the (`overlapped`, `perform`, `complete`) trio." | 175 | false | ionelmc/python-cogen | request_generic | 11,774 | |
LDU_FT/akesterson/dpath-python/search | LDU_FT | [
"<BEGIN>\n## `path_types`",
"Given a list of path name elements, return anew list of [name, type] path components, given the reference object.\n<END>",
"<BEGIN>\n## `validate`",
"Validate that all the keys in the given list of path components are valid, given that they do not contain the separator, and match ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
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 search API.
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 ... | Given a path glob, return a dictionary containing all keys
that matched the given glob.
If 'yielded' is true, then a dictionary will not be returned.
Instead tuples will be yielded in the form of (path, value) for
every element in the document that matched the glob. | "Given a path glob, return a dictionary containing all keys\n that matched the given glob.\n\n If 'yielded' is true, then a dictionary will not be returned.\n Instead tuples will be yielded in the form of (path, value) for\n every element in the document that matched the glob." | 44 | false | akesterson/dpath-python | search | 11,775 | |
LDU_FT/redcap-tools/PyCap/import_records | LDU_FT | [
"<BEGIN>\n## `validate`",
"Checks that at least required params exist\n<END>",
"<BEGIN>\n## `execute`",
"Execute the API request and return data",
" Parameters\n ----------\n kwargs :\n passed to requests.post()",
" Returns\n -------\n response : list, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_records API.
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 import_records API.
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... | Import data into the RedCap Project
Parameters
----------
to_import : array of dicts, csv/xml string, ``pandas.DataFrame``
:note:
If you pass a csv or xml string, you should use the
``format`` parameter appropriately.
:note:
... | "Import data into the RedCap Project\n\n Parameters\n ----------\n to_import : array of dicts, csv/xml string, ``pandas.DataFrame``\n :note:\n If you pass a csv or xml string, you should use the\n ``format`` parameter appropriately.\n :note:\n ... | 79 | false | redcap-tools/PyCap | import_records | 11,776 | |
LDU_FT/tsroten/dragonmapper/_convert | LDU_FT | [
"<BEGIN>\n## `load_data_file`",
"Load a data file and return it as a list of lines.",
" Parameters:\n filename: The name of the file (no directories included).\n encoding: The file encoding. Defaults to utf-8.\n<END>",
"<BEGIN>\n## `_load_data`",
"Load the word and character mapping data in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Convert a string's syllables to a different transcription system. | "Convert a string's syllables to a different transcription system." | 97 | false | tsroten/dragonmapper | _convert | 11,777 | |
LDU_FT/xingjiepan/cylinder_fitting/calc_A_hat | LDU_FT | [
"<BEGIN>\n## `direction`",
"Return the direction vector of a cylinder defined\n by the spherical coordinates theta and phi.\n<END>",
"<BEGIN>\n## `projection_matrix`",
"Return the projection matrix of a direction w.\n<END>",
"<BEGIN>\n## `skew_matrix`",
"Return the skew matrix of a direction w.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_A_hat API.
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 calc_A_hat API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return the A_hat matrix of A given the skew matrix S | "Return the A_hat matrix of A given the skew matrix S" | 30 | false | xingjiepan/cylinder_fitting | calc_A_hat | 11,778 | |
LDU_FT/biocore-ntnu/epic/compute_enriched_threshold | LDU_FT | [
"<BEGIN>\n## `multiple_files_count_reads_in_windows`",
"Use count_reads on multiple files and store result in dict.",
" Untested since does the same thing as count reads.\n<END>",
"<BEGIN>\n## `_merge_files`",
"Merge lists of chromosome bin df chromosome-wise.",
" windows is an OrderedDict where the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_enriched_threshold API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_enriched_threshold API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Computes the minimum number of tags required in window for an island to be enriched. | "Computes the minimum number of tags required in window for an island to be enriched." | 36 | false | biocore-ntnu/epic | compute_enriched_threshold | 11,779 | |
LDU_FT/videntity/django-djmongo/bulk_csv_import_mongo | LDU_FT | [
"<BEGIN>\n## `httpauth_login_required`",
"Put this decorator before your view to check if the user is logged in\n via httpauth and return a JSON 401 error if he/she is not.\n<END>",
"<BEGIN>\n## `ip_verification_required`",
"Put this decorator before your view to check if the function is coming from an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bulk_csv_import_mongo API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bulk_csv_import_mongo 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 response_dict with a list of search results | "return a response_dict with a list of search results" | 24 | false | videntity/django-djmongo | bulk_csv_import_mongo | 11,780 | |
LDU_FT/cni/MRS/generate_api_doc | LDU_FT | [
"<BEGIN>\n## `fetch_data`",
"Downloads files to folder and checks their md5 checksums",
" Parameters\n ----------\n files : dictionary\n For each file in `files` the value should be (url, md5). The file will\n be downloaded from url if the file does not already exist or if the\n fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_api_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_api_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 ... | Make autodoc documentation template string for a module
Parameters
----------
uri : string
python location of module - e.g 'sphinx.builder'
Returns
-------
head : string
Module name, table of contents.
body : string
Function a... | "Make autodoc documentation template string for a module\n\n Parameters\n ----------\n uri : string\n python location of module - e.g 'sphinx.builder'\n\n Returns\n -------\n head : string\n Module name, table of contents.\n body : string\n ... | 328 | false | cni/MRS | generate_api_doc | 11,781 | |
LDU_FT/vlukes/dicom2fem/read_array | LDU_FT | [
"<BEGIN>\n## `find_map`",
"Find a mapping between common coordinates in x1 and x2, such that\n x1[cmap[:,0]] == x2[cmap[:,1]]\n<END>",
"<BEGIN>\n## `merge_mesh`",
"Merge two meshes in common coordinates found in x1, x2.\n<END>",
"<BEGIN>\n## `fix_double_nodes`",
"Detect and attempt fixing double nodes ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_array API.
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 read_array API.
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... | Read a NumPy array of shape `(n_row, n_col)` from the given file
object and cast it to type `dtype`.
If `n_col` is None, determine the number of columns automatically. | "Read a NumPy array of shape `(n_row, n_col)` from the given file\n object and cast it to type `dtype`.\n If `n_col` is None, determine the number of columns automatically." | 142 | false | vlukes/dicom2fem | read_array | 11,782 | |
LDU_FT/fananimi/pyzk/connect | LDU_FT | [
"<BEGIN>\n## `make_commkey`",
"take a password and session_id and scramble them to send to the machine.\n copied from commpro.c - MakeKey\n<END>",
"<BEGIN>\n## `__create_tcp_top`",
"witch the complete packet set top header\n<END>",
"<BEGIN>\n## `__create_header`",
"Puts a the parts that make up a packe... | 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 to the device
:return: bool | "connect to the device\n\n :return: bool" | 77 | false | fananimi/pyzk | connect | 11,783 | |
LDU_FT/sffjunkie/astral/find_config_files | LDU_FT | [
"<BEGIN>\n## `timezone`",
"The name of the time zone for the location.",
" A list of time zone names can be obtained from pytz. For example.",
" >>> from pytz import all_timezones\n >>> for timezone in all_timezones:\n ... print(timezone)\n<END>",
"<BEGIN>\n## `sun`",
"Retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_config_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_config_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Find as many configuration files as should be processed for this
platform, and return a list of filenames in the order in which they
should be parsed. The filenames returned are guaranteed to exist
(modulo nasty race conditions).
There are three possible config files: distutils.cfg in the
Distutil... | "Find as many configuration files as should be processed for this\n platform, and return a list of filenames in the order in which they\n should be parsed. The filenames returned are guaranteed to exist\n (modulo nasty race conditions).\n\n There are three possible config files: distutils.cfg in the\n D... | 177 | false | sffjunkie/astral | find_config_files | 11,784 | |
LDU_FT/bookieio/breadability/find_candidates | LDU_FT | [
"<BEGIN>\n## `check_node_attributes`",
"Searches match in attributes against given pattern and if\n finds the match against any of them returns True.\n<END>",
"<BEGIN>\n## `generate_hash_id`",
"Generates a hash_id for the node in question.",
" :param node: lxml etree node\n<END>",
"<BEGIN>\n## `get_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_candidates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_candidates API.
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... | Finds cadidate nodes for the readable version of the article.
Here's we're going to remove unlikely nodes, find scores on the rest,
clean up and return the final best match. | "Finds cadidate nodes for the readable version of the article.\n\n Here's we're going to remove unlikely nodes, find scores on the rest,\n clean up and return the final best match." | 48 | false | bookieio/breadability | find_candidates | 11,785 | |
LDU_FT/peopledoc/workalendar/is_holiday | LDU_FT | [
"<BEGIN>\n## `get_variable_days`",
"Add Late Summer holiday (First Monday of September)\n<END>",
"<BEGIN>\n## `iso_register`",
"Registers Calendar class as country or region in IsoRegistry.",
" Registered country must set class variables ``iso`` using this decorator.",
" >>> from workalendar.core im... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_holiday API.
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 is_holiday API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return True if it's an holiday.
In addition to the regular holidays, you can add exceptions.
By providing ``extra_holidays``, you'll state that these dates **are**
holidays, even if not in the regular calendar holidays (or weekends). | "Return True if it's an holiday.\n In addition to the regular holidays, you can add exceptions.\n\n By providing ``extra_holidays``, you'll state that these dates **are**\n holidays, even if not in the regular calendar holidays (or weekends)." | 106 | false | peopledoc/workalendar | is_holiday | 11,786 | |
LDU_FT/burnash/gspread/insert_row | LDU_FT | [
"<BEGIN>\n## `authorize`",
"Login to Google API using OAuth2 credentials.\n This is a shortcut function which\n instantiates :class:`gspread.client.Client`\n and performs login right away.",
" :returns: :class:`gspread.Client` instance.\n<END>",
"<BEGIN>\n## `batch_update`",
"Lower-level method ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_row API.
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 insert_row API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Adds a row to the worksheet at the specified index
and populates it with values.
Widens the worksheet if there are more values than columns.
:param values: List of values for the new row.
:param index: (optional) Offset for the newly inserted row.
:type index: int
:para... | "Adds a row to the worksheet at the specified index\n and populates it with values.\n\n Widens the worksheet if there are more values than columns.\n\n :param values: List of values for the new row.\n :param index: (optional) Offset for the newly inserted row.\n :type index: int\n ... | 226 | false | burnash/gspread | insert_row | 11,787 | |
LDU_FT/taizilongxu/douban.fm/_change_channel | LDU_FT | [
"<BEGIN>\n## `updown`",
"屏幕上下滚动",
" :params incrment: 1 向下滚动\n -1 向上滚动\n<END>",
"<BEGIN>\n## `center_num`",
"返回总字符数(考虑英文和中文在终端所占字块)",
" return: int\n<END>",
"<BEGIN>\n## `get_login_data`",
"提供登陆的认证",
" 这里顺带增加了 volume, channel, theme_id , netease, run_tim... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _change_channel API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _change_channel API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | 这个貌似没啥用
:params fcid, tcid: string | "这个貌似没啥用\n :params fcid, tcid: string" | 36 | false | taizilongxu/douban.fm | _change_channel | 11,788 | |
LDU_FT/ababic/django-cogwheels/_warn_if_deprecated_setting_value_requested | LDU_FT | [
"<BEGIN>\n## `_set_prefix`",
"Called by ``__init()__`` to set the object's ``_prefix`` attribute,\n which determines the prefix app users must use when overriding\n settings associated with this helper. For example:",
" If the ``_prefix`` attribute were to be set to \"YOURAPP\", and there\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _warn_if_deprecated_setting_value_requested API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _warn_if_deprecated_setting_value_requested API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indi... | get(), get_object(), get_model() and get_module() must all check
whether a requested app setting is deprecated. This method allows
the helper to do that in a DRY/consistent way. | "get(), get_object(), get_model() and get_module() must all check\n whether a requested app setting is deprecated. This method allows\n the helper to do that in a DRY/consistent way." | 55 | false | ababic/django-cogwheels | _warn_if_deprecated_setting_value_requested | 11,789 | |
LDU_FT/marcharper/python-ternary/left_parallel_line | LDU_FT | [
"<BEGIN>\n## `normalize`",
"Normalizes input list.",
" Parameters\n ----------\n l: list\n The list to be normalized",
" Returns\n -------\n The normalized list or numpy array",
" Raises\n ------\n ValueError, if the list sums to zero\n<END>",
"<BEGIN>\n## `simplex_iterat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the left_parallel_line API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the left_parallel_line API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Draws the i-th line parallel to the left axis.
Parameters
----------
ax: Matplotlib AxesSubplot
The subplot to draw on.
scale: float
Simplex scale size.
i: float
The index of the line to draw
kwargs: Dictionary
Any kwargs to pass through to Matplotlib. | "Draws the i-th line parallel to the left axis.\n\n Parameters\n ----------\n ax: Matplotlib AxesSubplot\n The subplot to draw on.\n scale: float\n Simplex scale size.\n i: float\n The index of the line to draw\n kwargs: Dictionary\n Any kwargs to pass through to Matplotlib... | 179 | false | marcharper/python-ternary | left_parallel_line | 11,790 | |
LDU_FT/f3at/feat/side_effect_as_string | LDU_FT | [
"<BEGIN>\n## `parse_incoming_query`",
"Effect factory parsing the query value from params and merging in\n the static_conditions specified.",
" @param factory: IQueryView\n @param static_conditions: effect to be called to build up static\n conditions of the query\n @par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the side_effect_as_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the side_effect_as_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | side_effect_as_string() -> "ANY_FUNCTION(ANY_ARGS, ANY_KWARGS)"
side_effect_as_string("foo") -> "foo(ANY_ARGS, ANY_KWARGS)"
side_effect_as_string("foo", (42, )) -> "foo(42, ANY_KWARGS)"
side_effect_as_string("foo", (42, 18)) -> "foo(42, 18, ANY_KWARGS)"
side_effect_as_string("foo", (), {}) -> "foo()"
... | "side_effect_as_string() -> \"ANY_FUNCTION(ANY_ARGS, ANY_KWARGS)\"\n side_effect_as_string(\"foo\") -> \"foo(ANY_ARGS, ANY_KWARGS)\"\n side_effect_as_string(\"foo\", (42, )) -> \"foo(42, ANY_KWARGS)\"\n side_effect_as_string(\"foo\", (42, 18)) -> \"foo(42, 18, ANY_KWARGS)\"\n side_effect_as_string(\"foo\", ... | 658 | false | f3at/feat | side_effect_as_string | 11,791 | |
LDU_FT/bennylope/django-organizations/update_org_invite | LDU_FT | [
"<BEGIN>\n## `invitation_backend`",
"Returns a specified invitation backend",
" Args:\n backend: dotted path to the invitation backend class\n namespace: URL namespace to use",
" Returns:\n an instance of an InvitationBackend\n<END>",
"<BEGIN>\n## `registration_backend`",
"Retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_org_invite API.
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 update_org_invite API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Adds the links to the organization and to the organization user | "Adds the links to the organization and to the organization user" | 90 | false | bennylope/django-organizations | update_org_invite | 11,792 | |
LDU_FT/ianclegg/ntlmlib/_weaken_key | LDU_FT | [
"<BEGIN>\n## `wrap`",
"NTM GSSwrap()\n :param message: The message to be encrypted\n :return: The signed and encrypted message\n<END>",
"<BEGIN>\n## `unwrap`",
"NTLM GSSUnwrap()\n :param message: The message to be encrypted\n :return: The signed and encrypted message\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _weaken_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _weaken_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | NOTE: Key weakening in NTLM2 (Extended Session Security) is performed simply by truncating the master key (or
secondary master key, if key exchange is performed) to the appropriate length. 128-bit keys are supported under
NTLM2. In this case, the master key is used directly in the generation of subkeys ... | "NOTE: Key weakening in NTLM2 (Extended Session Security) is performed simply by truncating the master key (or\n secondary master key, if key exchange is performed) to the appropriate length. 128-bit keys are supported under\n NTLM2. In this case, the master key is used directly in the generation of subke... | 43 | false | ianclegg/ntlmlib | _weaken_key | 11,793 | |
LDU_FT/sveetch/boussole/safe_compile | LDU_FT | [
"<BEGIN>\n## `clean`",
"Filter given settings to keep only key names available in\n ``DEFAULT_SETTINGS``.",
" Args:\n settings (dict): Loaded settings.",
" Returns:\n dict: Settings object filtered.\n<END>",
"<BEGIN>\n## `set_settings`",
"Set every given settings... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_compile API.
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 safe_compile API.
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... | Safe compile
It won't raise compile error and instead return compile success state
as a boolean with a message.
It will create needed directory structure first if it contain some
directories that does not allready exists.
Args:
settings (boussole.conf.model.Setting... | "Safe compile\n\n It won't raise compile error and instead return compile success state\n as a boolean with a message.\n\n It will create needed directory structure first if it contain some\n directories that does not allready exists.\n\n Args:\n settings (boussole.conf.mod... | 289 | false | sveetch/boussole | safe_compile | 11,794 | |
LDU_FT/bspaans/python-mingus/transpose | LDU_FT | [
"<BEGIN>\n## `valid_beat_duration`",
"Return True when log2(duration) is an integer.\n<END>",
"<BEGIN>\n## `add_notes`",
"Add a Note, note as string or NoteContainer to the last Bar.",
" If the Bar is full, a new one will automatically be created.",
" If the Bar is not full but the note can'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transpose API.
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 transpose API.
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... | Transpose the notes in the bar up or down the interval.
Call transpose() on all NoteContainers in the bar. | "Transpose the notes in the bar up or down the interval.\n\n Call transpose() on all NoteContainers in the bar." | 535 | false | bspaans/python-mingus | transpose | 11,795 | |
LDU_FT/Feneric/doxypypy/visit_FunctionDef | LDU_FT | [
"<BEGIN>\n## `coroutine`",
"Basic decorator to implement the coroutine pattern.\n<END>",
"<BEGIN>\n## `main`",
"Starts the parser on the file given by the filename as the first\n argument on the command line.\n<END>",
"<BEGIN>\n## `_endCodeIfNeeded`",
"Simple routine to append end code marker if needed... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_FunctionDef API.
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 visit_FunctionDef API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Handles function definitions within code.
Process a function's docstring, keeping well aware of the function's
context and whether or not it's part of an interface definition. | "Handles function definitions within code.\n\n Process a function's docstring, keeping well aware of the function's\n context and whether or not it's part of an interface definition." | 46 | false | Feneric/doxypypy | visit_FunctionDef | 11,796 | |
LDU_FT/BerkeleyAutomation/autolab_core/quaternion_conjugate | LDU_FT | [
"<BEGIN>\n## `copy`",
"Returns a copy of the RigidTransform.",
" Returns\n -------\n :obj:`RigidTransform`\n A deep copy of the RigidTransform.\n<END>",
"<BEGIN>\n## `_check_valid_rotation`",
"Checks that the given rotation matrix is valid.\n<END>",
"<BEGIN>\n## `_check_val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quaternion_conjugate 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 quaternion_conjugate 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 conjugate of quaternion.
>>> q0 = random_quaternion()
>>> q1 = quaternion_conjugate(q0)
>>> q1[3] == q0[3] and all(q1[:3] == -q0[:3])
True | "Return conjugate of quaternion.\n\n >>> q0 = random_quaternion()\n >>> q1 = quaternion_conjugate(q0)\n >>> q1[3] == q0[3] and all(q1[:3] == -q0[:3])\n True" | 518 | false | BerkeleyAutomation/autolab_core | quaternion_conjugate | 11,797 | |
LDU_FT/sergiocorreia/panflute/_set_content | LDU_FT | [
"<BEGIN>\n## `gabc`",
"Handle gabc file inclusion and gabc code block.\n<END>",
"<BEGIN>\n## `load`",
"Load JSON-encoded document and return a :class:`.Doc` element.",
" The JSON input will be read from :data:`sys.stdin` unless an alternative\n text stream is given (a file handle).",
" To load fr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_content API.
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 _set_content API.
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... | Similar to content.setter but when there are no existing oktypes | "Similar to content.setter but when there are no existing oktypes" | 120 | false | sergiocorreia/panflute | _set_content | 11,798 | |
LDU_FT/StorjOld/pyp2p/start | LDU_FT | [
"<BEGIN>\n## `set_keep_alive`",
"This function instructs the TCP socket to send a heart beat every n\n seconds to detect dead connections. It's the TCP equivalent of the\n IRC ping-pong protocol and allows for better cleanup / detection\n of dead TCP connections.",
" It activates aft... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | This function determines node and NAT type, saves connectivity details,
and starts any needed servers to be a part of the network. This is
usually the first function called after initialising the Net class. | "This function determines node and NAT type, saves connectivity details,\r\n and starts any needed servers to be a part of the network. This is\r\n usually the first function called after initialising the Net class." | 88 | false | StorjOld/pyp2p | start | 11,799 | |
LDU_FT/EpistasisLab/scikit-rebate/_run_algorithm | LDU_FT | [
"<BEGIN>\n## `fit`",
"Scikit-learn required: Computes the feature importance scores from the training data.",
" Parameters\n ----------\n X: array-like {n_samples, n_features}\n Training instances to compute the feature importance scores from\n y: array-like {n_samples}\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_algorithm API.
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 _run_algorithm API.
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... | Runs nearest neighbor (NN) identification and feature scoring to yield MultiSURF scores. | "Runs nearest neighbor (NN) identification and feature scoring to yield MultiSURF scores." | 46 | false | EpistasisLab/scikit-rebate | _run_algorithm | 11,800 | |
LDU_FT/spotify/snakebite/du | LDU_FT | [
"<BEGIN>\n## `get_delimited_message_bytes`",
"Parse a delimited protobuf message. This is done by first getting a protobuf varint from\n the stream that represents the length of the message, then reading that amount of\n from the message and then parse it.\n Since the int can be represented as max 4 byte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the du API.
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 docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the du API.
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 docu... | Returns size information for paths
:param paths: Paths to du
:type paths: list
:param include_toplevel: Include the given path in the result. If the path is a file, include_toplevel is always True.
:type include_toplevel: boolean
:param include_children: Include child nodes in t... | "Returns size information for paths\n\n :param paths: Paths to du\n :type paths: list\n :param include_toplevel: Include the given path in the result. If the path is a file, include_toplevel is always True.\n :type include_toplevel: boolean\n :param include_children: Include child nod... | 148 | false | spotify/snakebite | du | 11,801 | |
LDU_FT/renatopp/liac-arff/_encode_attribute | LDU_FT | [
"<BEGIN>\n## `_parse_values`",
"(INTERNAL) Split a line into a list of values\n<END>",
"<BEGIN>\n## `load`",
"Load a file-like object containing the ARFF document and convert it into\n a Python object.",
" :param fp: a file-like object.\n :param encode_nominal: boolean, if True perform a label enco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_attribute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_attribute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | (INTERNAL) Encodes an attribute line.
The attribute follow the template::
@attribute <attribute-name> <datatype>
where ``attribute-name`` is a string, and ``datatype`` can be:
- Numerical attributes as ``NUMERIC``, ``INTEGER`` or ``REAL``.
- Strings as ``STRING``.
... | "(INTERNAL) Encodes an attribute line.\n\n The attribute follow the template::\n\n @attribute <attribute-name> <datatype>\n\n where ``attribute-name`` is a string, and ``datatype`` can be:\n\n - Numerical attributes as ``NUMERIC``, ``INTEGER`` or ``REAL``.\n - Strings as ``STRING... | 54 | false | renatopp/liac-arff | _encode_attribute | 11,802 | |
LDU_FT/WebarchivCZ/WA-KAT/_download_items | LDU_FT | [
"<BEGIN>\n## `_convert_metadata`",
"Convert metadata from WA-KAT to Dublin core dictionary like structure,\n which may be easily converted to xml using :mod:`xmltodict` module.",
" Args:\n data (dict): Nested WA-KAT data. See tests for example.",
" Returns:\n dict: Dict in dublin core f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_items API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_items API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Download items from the aleph and store them in `db`. Start from `last_id`
if specified.
Args:
db (obj): Dictionary-like object used as DB.
last_id (int): Start from this id. | "Download items from the aleph and store them in `db`. Start from `last_id`\n if specified.\n\n Args:\n db (obj): Dictionary-like object used as DB.\n last_id (int): Start from this id." | 401 | false | WebarchivCZ/WA-KAT | _download_items | 11,803 | |
LDU_FT/serge-sans-paille/pythran/fresh | LDU_FT | [
"<BEGIN>\n## `check_specs`",
"Does nothing but raising PythranSyntaxError if specs\n are incompatible with the actual code\n<END>",
"<BEGIN>\n## `check_exports`",
"Does nothing but raising PythranSyntaxError if specs\n references an undefined global\n<END>",
"<BEGIN>\n## `visit_Import`",
"Check if i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fresh API.
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 fresh API.
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... | Makes a copy of a type expression.
The type t is copied. The generic variables are duplicated and the
non_generic variables are shared.
Args:
t: A type to be copied.
non_generic: A set of non-generic TypeVariables | "Makes a copy of a type expression.\n\n The type t is copied. The generic variables are duplicated and the\n non_generic variables are shared.\n\n Args:\n t: A type to be copied.\n non_generic: A set of non-generic TypeVariables" | 547 | false | serge-sans-paille/pythran | fresh | 11,804 | |
LDU_FT/pmorissette/ffn/merge | LDU_FT | [
"<BEGIN>\n## `memoize`",
"Memoize decorator. The refresh keyword is the keyword\n used to bypass the cache (in the function call).\n<END>",
"<BEGIN>\n## `parse_arg`",
"Parses arguments for convenience. Argument can be a\n csv list ('a,b,c'), a string, a list, a tuple.",
" Returns a list.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API.
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 merge API.
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... | Merge Series and/or DataFrames together.
Returns a DataFrame. | "Merge Series and/or DataFrames together.\n\n Returns a DataFrame." | 176 | false | pmorissette/ffn | merge | 11,805 | |
LDU_FT/oceanprotocol/squid-py/find_service_by_id | LDU_FT | [
"<BEGIN>\n## `get_requests_session`",
"Set connection pool maxsize and block value to avoid `connection pool full` warnings.",
" :return: requests session\n<END>",
"<BEGIN>\n## `request_tokens`",
"Request an amount of tokens for a particular address.\n This transaction has gas cost",
" :p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_service_by_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_service_by_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.
Th... | Get service for a given service_id.
:param service_id: Service id, str
:return: Service | "Get service for a given service_id.\n\n :param service_id: Service id, str\n :return: Service" | 417 | false | oceanprotocol/squid-py | find_service_by_id | 11,806 | |
LDU_FT/kmike/port-for/_parse_ranges | LDU_FT | [
"<BEGIN>\n## `_write_unassigned_ranges`",
"Downloads ports data from IANA & Wikipedia and converts\n it to a python module. This function is used to generate _ranges.py.\n<END>",
"<BEGIN>\n## `_unassigned_ports`",
"Returns a set of all unassigned ports (according to IANA and Wikipedia)\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_ranges API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_ranges API.
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... | Converts a list of string ranges to a list of [low, high] tuples. | "Converts a list of string ranges to a list of [low, high] tuples." | 31 | false | kmike/port-for | _parse_ranges | 11,807 | |
LDU_FT/jbloomlab/phydms/d_distributionparams | LDU_FT | [
"<BEGIN>\n## `maximizeLikelihood`",
"Maximize the log likelihood.",
" Maximizes log likelihood with respect to model parameters\n and potentially branch lengths depending on `optimize_brlen`.\n If optimizing the branch lengths, iterates between optimizing\n the model parameters and b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the d_distributionparams 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 d_distributionparams API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | See docs for `DistributionModel` abstract base class. | "See docs for `DistributionModel` abstract base class." | 294 | false | jbloomlab/phydms | d_distributionparams | 11,808 | |
LDU_FT/istresearch/scrapy-cluster/update_pointed | LDU_FT | [
"<BEGIN>\n## `load`",
"Load the settings dict",
" @param local: The local settings filename to use\n @param default: The default settings module to read\n @return: A dict of the loaded settings\n<END>",
"<BEGIN>\n## `load_from_string`",
"Loads settings from a settings_string. Expects an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_pointed API.
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 update_pointed API.
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... | Grabs the latest file contents based on the pointer uri | "Grabs the latest file contents based on the pointer uri" | 269 | false | istresearch/scrapy-cluster | update_pointed | 11,809 | |
LDU_FT/useblocks/sphinxcontrib-needs/filter_needs | LDU_FT | [
"<BEGIN>\n## `row_col_maker`",
"Creates and returns a column.",
" :param app: current sphinx app\n :param fromdocname: current document\n :param all_needs: Dictionary of all need objects\n :param need_info: need_info object, which stores all related need data\n :param need_key: The key to access ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_needs API.
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 filter_needs API.
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... | Filters given needs based on a given filter string.
Returns all needs, which pass the given filter.
:param merge_part_with_parent: If True, need_parts inherit options from their parent need
:param filter_parts: If True, need_parts get also filtered
:param filter_string: strings, which gets evaluated ag... | "Filters given needs based on a given filter string.\n Returns all needs, which pass the given filter.\n\n :param merge_part_with_parent: If True, need_parts inherit options from their parent need\n :param filter_parts: If True, need_parts get also filtered\n :param filter_string: strings, which gets evalua... | 155 | false | useblocks/sphinxcontrib-needs | filter_needs | 11,810 | |
LDU_FT/clld/clldutils/bibtex | LDU_FT | [
"<BEGIN>\n## `parse`",
"Convert iso formatted timestamps found as values in the dict d to datetime objects.",
" :return: A shallow copy of d with converted timestamps.\n<END>",
"<BEGIN>\n## `dump`",
"Python 2 + 3 compatible version of json.dump.",
" :param obj: The object to be dumped.\n :param p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bibtex API.
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 bibtex API.
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 ... | Represent the source in BibTeX format.
:return: string encoding the source in BibTeX syntax. | "Represent the source in BibTeX format.\n\n :return: string encoding the source in BibTeX syntax." | 70 | false | clld/clldutils | bibtex | 11,811 | |
LDU_FT/thiagopbueno/pyrddl/_build_fluent_table | LDU_FT | [
"<BEGIN>\n## `rename_next_state_fluent`",
"Returns next state fluent canonical name.",
" Args:\n name (str): The current state fluent name.",
" Returns:\n str: The next state fluent name.\n<END>",
"<BEGIN>\n## `rename_state_fluent`",
"Returns current state fluent canonical name.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_fluent_table API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_fluent_table API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Builds the fluent table for each RDDL pvariable. | "Builds the fluent table for each RDDL pvariable." | 158 | false | thiagopbueno/pyrddl | _build_fluent_table | 11,812 | |
LDU_FT/NLeSC/noodles/hybrid_coroutine_worker | LDU_FT | [
"<BEGIN>\n## `coroutine`",
"A sink should be send `None` first, so that the coroutine arrives\n at the `yield` position. This wrapper takes care that this is done\n automatically when the coroutine is started.\n<END>",
"<BEGIN>\n## `maybe`",
"Calls `f` in a try/except block, returning a `Fail` object if... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hybrid_coroutine_worker 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 hybrid_coroutine_worker API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Runs a set of workers, all of them in the main thread.
This runner is here for testing purposes.
:param selector:
A function returning a worker key, given a job.
:type selector: function
:param workers:
A dict of workers.
:type workers: dict | "Runs a set of workers, all of them in the main thread.\n This runner is here for testing purposes.\n\n :param selector:\n A function returning a worker key, given a job.\n :type selector: function\n\n :param workers:\n A dict of workers.\n :type workers: dict" | 293 | false | NLeSC/noodles | hybrid_coroutine_worker | 11,813 | |
LDU_FT/williballenthin/python-pyqt5-hexview/compute_region_border | LDU_FT | [
"<BEGIN>\n## `compute_region_border`",
"given the buffer start and end indices of a range, compute the border edges\n that should be drawn to enclose the range.",
" this function currently assumes 0x10 length rows.\n the result is a dictionary from buffer index to Cell instance.\n the Cell instanc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_region_border 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 compute_region_border API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | given the buffer start and end indices of a range, compute the border edges
that should be drawn to enclose the range.
this function currently assumes 0x10 length rows.
the result is a dictionary from buffer index to Cell instance.
the Cell instance has boolean properties "top", "bottom", "left", and... | "given the buffer start and end indices of a range, compute the border edges\n that should be drawn to enclose the range.\n\n this function currently assumes 0x10 length rows.\n the result is a dictionary from buffer index to Cell instance.\n the Cell instance has boolean properties \"top\", \"bottom\", \... | 21 | false | williballenthin/python-pyqt5-hexview | compute_region_border | 11,814 | |
LDU_FT/zyga/morris/connect | LDU_FT | [
"<BEGIN>\n## `remove_signals_listeners`",
"utility function that disconnects all listeners from all signals on an\n object\n<END>",
"<BEGIN>\n## `connect`",
"Connect a new listener to this signal",
" :param listener:\n The listener (callable) to add\n :param pass_signal:\n ... | 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 new listener to this signal
:param listener:
The listener (callable) to add
:param pass_signal:
An optional argument that controls if the signal object is
explicitly passed to this listener when it is being fired.
If enabled, a ``signal=`` keywo... | "Connect a new listener to this signal\n\n :param listener:\n The listener (callable) to add\n :param pass_signal:\n An optional argument that controls if the signal object is\n explicitly passed to this listener when it is being fired.\n If enabled, a ``signal=... | 27 | false | zyga/morris | connect | 11,815 | |
LDU_FT/rliebz/whoswho/deep_update_dict | LDU_FT | [
"<BEGIN>\n## `deep_compare`",
"Compares each field of the name one at a time to see if they match.\n Each name field has context-specific comparison logic.",
" :param Name other: other Name for comparison\n :return bool: whether the two names are compatible\n<END>",
"<BEGIN>\n## `ratio_de... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deep_update_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deep_update_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Updates the values in a nested dict, while unspecified values will remain
unchanged | "Updates the values in a nested dict, while unspecified values will remain\n unchanged" | 38 | false | rliebz/whoswho | deep_update_dict | 11,816 | |
LDU_FT/t-makaro/animatplot/parametric_line | LDU_FT | [
"<BEGIN>\n## `parametric_line`",
"Parameters\n ----------\n x : 1D numpy array\n y : 1D numpy array\n<END>",
"<BEGIN>\n## `demeshgrid`",
"Turns an ndarray created by a meshgrid back into a 1D array",
" Parameters\n ----------\n arr : array of dimension > 1\n This array should have b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parametric_line API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parametric_line API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Parameters
----------
x : 1D numpy array
y : 1D numpy array | "Parameters\n ----------\n x : 1D numpy array\n y : 1D numpy array" | 36 | false | t-makaro/animatplot | parametric_line | 11,817 | |
LDU_FT/ayust/kitnirc/_get_prefixes | LDU_FT | [
"<BEGIN>\n## `on_line`",
"Default handling for incoming lines.",
" This handler will automatically manage the following IRC messages:",
" PING:\n Responds with a PONG.\n PRIVMSG:\n Dispatches the PRIVMSG event.\n NOTICE:\n Dispatches the NOTICE event.\n MOTDSTART:\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_prefixes API.
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_prefixes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get the possible nick prefixes and associated modes for a client. | "Get the possible nick prefixes and associated modes for a client." | 151 | false | ayust/kitnirc | _get_prefixes | 11,818 | |
LDU_FT/FNNDSC/pfmisc/lsbranch | LDU_FT | [
"<BEGIN>\n## `authorizeClientRequest`",
"Checks the authorization permissions of the bearer token passed, and determines whether the sender is permitted to make the request housed in the payload.\n Usage:\n request = The header object from pfioh, or the whole request from pman. This is parsed fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lsbranch API.
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 lsbranch API.
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... | Print/return the set of nodes in current branch | "Print/return the set of nodes in current branch" | 165 | false | FNNDSC/pfmisc | lsbranch | 11,819 | |
LDU_FT/kgori/treeCl/_embedding_spectral | LDU_FT | [
"<BEGIN>\n## `brent_optimise`",
"Optimise ML distance between two partials. min and max set brackets\n<END>",
"<BEGIN>\n## `pairdists`",
"Load an alignment, calculate all pairwise distances and variances\n model parameter must be a Substitution model type from phylo_utils\n<END>",
"<BEGIN>\n## `write... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _embedding_spectral 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 _embedding_spectral 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... | Private method to calculate Spectral embedding
:param dimensions: (int)
:return: coordinate matrix (np.array) | "Private method to calculate Spectral embedding\n :param dimensions: (int)\n :return: coordinate matrix (np.array)" | 389 | false | kgori/treeCl | _embedding_spectral | 11,820 | |
LDU_FT/zeaphoo/budoc/submodules | LDU_FT | [
"<BEGIN>\n## `import_module`",
"Imports a module. A single point of truth for importing modules to\n be documented by `pydoc`. In particular, it makes sure that the top\n module in `module_name` can be imported by using only the paths in\n `pydoc.import_path`.",
" If a module has already been import... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submodules API.
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 submodules API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns all documented sub-modules in the module sorted
alphabetically as a list of `pydoc.Module`. | "Returns all documented sub-modules in the module sorted\n alphabetically as a list of `pydoc.Module`." | 54 | false | zeaphoo/budoc | submodules | 11,821 | |
LDU_FT/wroberts/pygermanet/synsets | LDU_FT | [
"<BEGIN>\n## `load_germanet`",
"Loads a GermaNet instance connected to the given MongoDB instance.",
" Arguments:\n - `host`: the hostname of the MongoDB instance\n - `port`: the port number of the MongoDB instance\n - `database_name`: the name of the GermaNet database on the\n MongoDB instance... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the synsets API.
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 synsets API.
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... | Looks up synsets in the GermaNet database.
Arguments:
- `lemma`:
- `pos`: | "Looks up synsets in the GermaNet database.\n\n Arguments:\n - `lemma`:\n - `pos`:" | 61 | false | wroberts/pygermanet | synsets | 11,822 | |
LDU_FT/rsheftel/raccoon/set_locations | LDU_FT | [
"<BEGIN>\n## `sorted_exists`",
"For list, values, returns the insert position for item x and whether the item already exists in the list. This\n allows one function call to return either the index to overwrite an existing value in the list, or the index to\n insert a new item in the list and keep the list i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_locations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_locations API.
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... | For a list of locations set the values.
:param locations: list of index locations
:param values: list of values or a single value
:return: nothing | "For a list of locations set the values.\n\n :param locations: list of index locations\n :param values: list of values or a single value\n :return: nothing" | 208 | false | rsheftel/raccoon | set_locations | 11,823 | |
LDU_FT/Arubacloud/pyArubaCloud/purchase_iscsi | LDU_FT | [
"<BEGIN>\n## `find`",
"Return a list of subset of VM that match the pattern name\n @param name (str): the vm name of the virtual machine\n @param name (Obj): the vm object that represent the virtual\n machine (can be Pro or Smart)\n @return (list): the subset contain... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purchase_iscsi API.
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 purchase_iscsi API.
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... | :type quantity: int
:type iqn: list[str]
:type name: str
:type protocol: SharedStorageProtocols
:param quantity: Amount of GB
:param iqn: List of IQN represented in string format
:param name: Name of the resource
:param protocol: Protocol to use
:return: | ":type quantity: int\n :type iqn: list[str]\n :type name: str\n :type protocol: SharedStorageProtocols\n :param quantity: Amount of GB\n :param iqn: List of IQN represented in string format\n :param name: Name of the resource\n :param protocol: Protocol to use\n :... | 43 | false | Arubacloud/pyArubaCloud | purchase_iscsi | 11,824 | |
LDU_FT/JensAstrup/pyOutlook/send_email | LDU_FT | [
"<BEGIN>\n## `auto_reply_message`",
"The account's Internal auto reply message. Setting the value will change the auto reply message of the\n account, automatically setting the status to enabled (but not altering the schedule).\n<END>",
"<BEGIN>\n## `set_auto_reply`",
"Set an automatic reply for the a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_email API.
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 send_email API.
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... | Sends an email in one method, a shortcut for creating an instance of
:class:`Message <pyOutlook.core.message.Message>` .
Args:
body (str): The body of the email
subject (str): The subject of the email
to (list): A list of :class:`Contacts <pyOutlook.core.contact.Cont... | "Sends an email in one method, a shortcut for creating an instance of\n :class:`Message <pyOutlook.core.message.Message>` .\n\n Args:\n body (str): The body of the email\n subject (str): The subject of the email\n to (list): A list of :class:`Contacts <pyOutlook.core.conta... | 99 | false | JensAstrup/pyOutlook | send_email | 11,825 | |
LDU_FT/dr-leo/pandaSDMX/request | LDU_FT | [
"<BEGIN>\n## `namedtuple`",
"Returns a new subclass of tuple with named fields.\n This is a patched version of collections.namedtuple from the stdlib.\n Unlike the latter, it accepts non-identifier strings as field names.\n All values are accessible through dict syntax. Fields whose names are\n identi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Retrieve SDMX messages.
If needed, override in subclasses to support other data providers.
:param url: The URL of the message.
:type url: str
:return: the xml data as file-like object | "Retrieve SDMX messages.\r\n If needed, override in subclasses to support other data providers.\r\n\r\n :param url: The URL of the message.\r\n :type url: str\r\n :return: the xml data as file-like object" | 86 | false | dr-leo/pandaSDMX | request | 11,826 | |
LDU_FT/jpscaletti/solution/clean | LDU_FT | [
"<BEGIN>\n## `as_select`",
"Render the field as a `<select>` element.",
" :param **kwargs:\n Named paremeters used to generate the HTML attributes of each item.\n It follows the same rules as `get_html_attrs`\n<END>",
"<BEGIN>\n## `_clean_data`",
"This overwrite is neccesary for... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API.
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 clean API.
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... | Takes a Werkzeug FileStorage, returns the relative path. | "Takes a Werkzeug FileStorage, returns the relative path." | 57 | false | jpscaletti/solution | clean | 11,827 | |
LDU_FT/mattupstate/flask-security/capture_registrations | LDU_FT | [
"<BEGIN>\n## `add_role_to_user`",
"Adds a role to a user.",
" :param user: The user to manipulate\n :param role: The role to add to the user\n<END>",
"<BEGIN>\n## `remove_role_from_user`",
"Removes a role from a user.",
" :param user: The user to manipulate\n :param role: The r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the capture_registrations 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 capture_registrations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Testing utility for capturing registrations.
:param confirmation_sent_at: An optional datetime object to set the
user's `confirmation_sent_at` to | "Testing utility for capturing registrations.\n\n :param confirmation_sent_at: An optional datetime object to set the\n user's `confirmation_sent_at` to" | 145 | false | mattupstate/flask-security | capture_registrations | 11,828 | |
LDU_FT/acroz/pylivy/create_session | LDU_FT | [
"<BEGIN>\n## `start`",
"Create the remote Spark session and wait for it to be ready.\n<END>",
"<BEGIN>\n## `run`",
"Run some code in the managed Spark session.",
" :param code: The code to run.\n<END>",
"<BEGIN>\n## `read`",
"Evaluate and retrieve a Spark dataframe in the managed session.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_session API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_session API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Create a new session in Livy.
The py_files, files, jars and archives arguments are lists of URLs,
e.g. ["s3://bucket/object", "hdfs://path/to/file", ...] and must be
reachable by the Spark driver process. If the provided URL has no
scheme, it's considered to be relative to the default ... | "Create a new session in Livy.\n\n The py_files, files, jars and archives arguments are lists of URLs,\n e.g. [\"s3://bucket/object\", \"hdfs://path/to/file\", ...] and must be\n reachable by the Spark driver process. If the provided URL has no\n scheme, it's considered to be relative to th... | 34 | false | acroz/pylivy | create_session | 11,829 | |
LDU_FT/LordGaav/python-chaos/get_config_argparse | 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 get_config_argparse 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_config_argparse 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... | Create an ArgumentParser which listens for the following common options:
- --config
- --help
- --quiet
- --verbose
- --version
Arguments
---------
suppress_help: list of strings
Defines what options to suppress from being added to the ArgumentParser. Provide
the name of the options to suppress, without "--... | "Create an ArgumentParser which listens for the following common options:\n\t- --config\n\t- --help\n\t- --quiet\n\t- --verbose\n\t- --version\n\n\tArguments\n\t---------\n\tsuppress_help: list of strings\n\t\tDefines what options to suppress from being added to the ArgumentParser. Provide\n\t\tthe name of the options ... | 138 | false | LordGaav/python-chaos | get_config_argparse | 11,830 | |
LDU_FT/internetarchive/brozzler/_finish_frag_download | LDU_FT | [
"<BEGIN>\n## `elapsed`",
"Returns elapsed crawl time as a float in seconds.",
" This metric includes all the time that a site was in active rotation,\n including any time it spent waiting for its turn to be brozzled.",
" In contrast `Site.active_brozzling_time` only counts time when a\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _finish_frag_download 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 _finish_frag_download API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | We monkey-patch this youtube-dl internal method `_finish_frag_download()`
because it gets called after downloading the last segment of a segmented
video, which is a good time to upload the stitched-up video that youtube-dl
creates for us to warcprox. We have it call a thread-local callback
since differe... | "We monkey-patch this youtube-dl internal method `_finish_frag_download()`\n because it gets called after downloading the last segment of a segmented\n video, which is a good time to upload the stitched-up video that youtube-dl\n creates for us to warcprox. We have it call a thread-local callback\n since di... | 110 | false | internetarchive/brozzler | _finish_frag_download | 11,831 | |
LDU_FT/vnmabus/dcor/_float_copy_to_out | LDU_FT | [
"<BEGIN>\n## `_float_copy_to_out`",
"Copy origin to out and return it.",
" If ``out`` is None, a new copy (casted to floating point) is used. If\n ``out`` and ``origin`` are the same, we simply return it. Otherwise we\n copy the values.\n<END>",
"<BEGIN>\n## `_double_centered_imp`",
"Real implement... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _float_copy_to_out 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 _float_copy_to_out 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... | Copy origin to out and return it.
If ``out`` is None, a new copy (casted to floating point) is used. If
``out`` and ``origin`` are the same, we simply return it. Otherwise we
copy the values. | "Copy origin to out and return it.\n\n If ``out`` is None, a new copy (casted to floating point) is used. If\n ``out`` and ``origin`` are the same, we simply return it. Otherwise we\n copy the values." | 201 | false | vnmabus/dcor | _float_copy_to_out | 11,832 | |
LDU_FT/rdo-management/python-rdomanager-oscplugin/build_option_parser | LDU_FT | [
"<BEGIN>\n## `_csv_to_nodes_dict`",
"Convert CSV to a list of dicts formatted for os_cloud_config",
" Given a CSV file in the format below, convert it into the\n structure expected by os_could_config JSON files.",
" pm_type, pm_addr, pm_user, pm_password, mac\n<END>",
"<BEGIN>\n## `build_option_par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_option_parser 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 build_option_parser 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... | Hook to add global options
Called from openstackclient.shell.OpenStackShell.__init__()
after the builtin parser has been initialized. This is
where a plugin can add global options such as an API version setting.
:param argparse.ArgumentParser parser: The parser object that has been
initialize... | "Hook to add global options\n\n Called from openstackclient.shell.OpenStackShell.__init__()\n after the builtin parser has been initialized. This is\n where a plugin can add global options such as an API version setting.\n\n :param argparse.ArgumentParser parser: The parser object that has been\n in... | 85 | false | rdo-management/python-rdomanager-oscplugin | build_option_parser | 11,833 | |
LDU_FT/ssato/python-anytemplate/chaincalls | LDU_FT | [
"<BEGIN>\n## `fallback_render`",
"Render from given template and context.",
" This is a basic implementation actually does nothing and just returns\n the content of given template file `template`.",
" :param template: Template file path\n :param context: A dict or dict-like object to instantiate g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chaincalls API.
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 chaincalls API.
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... | :param callables: callable objects to apply to obj in this order
:param obj: Object to apply callables
>>> chaincalls([lambda a: a + 1, lambda b: b + 2], 0)
3
>>> chaincalls([[]], 0)
Traceback (most recent call last):
ValueError: Not callable: '[]' | ":param callables: callable objects to apply to obj in this order\n :param obj: Object to apply callables\n\n >>> chaincalls([lambda a: a + 1, lambda b: b + 2], 0)\n 3\n >>> chaincalls([[]], 0)\n Traceback (most recent call last):\n ValueError: Not callable: '[]'" | 156 | false | ssato/python-anytemplate | chaincalls | 11,834 | |
LDU_FT/XuShaohua/bcloud/create_superfile | LDU_FT | [
"<BEGIN>\n## `display_files`",
"重新格式化一下文件列表, 去除不需要的信息",
" 这一操作主要是为了便于接下来的查找工作.\n 文件的path都被提取出来, 然后放到了一个list中.\n<END>",
"<BEGIN>\n## `init_db`",
"这个任务数据库只在程序开始时读入, 在程序关闭时导出.",
" 因为Gtk没有像在Qt中那么方便的使用SQLite, 而必须将所有数据读入一个\n liststore中才行.\n<END>",
"<BEGIN>\n## `get_task_db`",
"从数... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_superfile API.
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_superfile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | 合并slice_upload()中产生的临时文件
path - 文件在服务器上的绝对路径
block_list - 这些文件分片的MD5列表
返回完整的文件pcs信息. | "合并slice_upload()中产生的临时文件\n\n path - 文件在服务器上的绝对路径\n block_list - 这些文件分片的MD5列表\n 返回完整的文件pcs信息." | 199 | false | XuShaohua/bcloud | create_superfile | 11,835 | |
LDU_FT/marshmallow-code/marshmallow/serialize | LDU_FT | [
"<BEGIN>\n## `_get_fields`",
"Get fields from a class. If ordered=True, fields will sorted by creation index.",
" :param attrs: Mapping of class attributes\n :param type field_class: Base field class\n :param bool pop: Remove matching fields\n<END>",
"<BEGIN>\n## `_get_fields_by_mro`",
"Collect fie... | 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... | Pulls the value for the given key from the object, applies the
field's formatting and returns the result.
:param str attr: The attribute or key to get from the object.
:param str obj: The object to pull the key from.
:param callable accessor: Function used to pull values from ``obj``.
... | "Pulls the value for the given key from the object, applies the\n field's formatting and returns the result.\n\n :param str attr: The attribute or key to get from the object.\n :param str obj: The object to pull the key from.\n :param callable accessor: Function used to pull values from ``ob... | 153 | false | marshmallow-code/marshmallow | serialize | 11,836 | |
LDU_FT/openp2pdesign/makerlabs/get_labs | LDU_FT | [
"<BEGIN>\n## `get_lab_text`",
"Gets text description in English or Italian from a single lab from makeinitaly.foundation.\n<END>",
"<BEGIN>\n## `get_single_lab`",
"Gets data from a single lab from makeinitaly.foundation.\n<END>",
"<BEGIN>\n## `get_labs`",
"Gets data from all labs from makeinitaly.foundati... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_labs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_labs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Gets data from all labs from makeinitaly.foundation. | "Gets data from all labs from makeinitaly.foundation." | 20 | false | openp2pdesign/makerlabs | get_labs | 11,837 | |
LDU_FT/empymod/empymod/save_filter | LDU_FT | [
"<BEGIN>\n## `check_ab`",
"r\"\"\"Check source-receiver configuration.",
" This check-function is called from one of the modelling routines in\n :mod:`model`. Consult these modelling routines for a detailed description\n of the input parameters.",
" Parameters\n ----------\n ab : int\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | r"""Save DLF-filter and inversion output to plain text files. | "r\"\"\"Save DLF-filter and inversion output to plain text files." | 570 | false | empymod/empymod | save_filter | 11,838 | |
LDU_FT/erget/StereoVision/write_ply | LDU_FT | [
"<BEGIN>\n## `get_frames_singleimage`",
"Get current left and right frames from a single image,\n by splitting the image in half.\n<END>",
"<BEGIN>\n## `show_frames`",
"Show current frames from cameras.",
" ``wait`` is the wait interval in milliseconds before the window closes.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_ply API.
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 write_ply API.
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... | Export ``PointCloud`` to PLY file for viewing in MeshLab. | "Export ``PointCloud`` to PLY file for viewing in MeshLab." | 83 | false | erget/StereoVision | write_ply | 11,839 | |
LDU_FT/ECRL/ecabc/_onlooker_phase | LDU_FT | [
"<BEGIN>\n## `add_argument`",
"Add an additional argument to be passed to the fitness function\n via additional arguments dictionary; this argument/value is not tuned",
" Args:\n arg_name (string): name/dictionary key of argument\n arg_value (any): dictionary value of argumen... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _onlooker_phase API.
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 _onlooker_phase API.
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... | Well-performing bees (chosen probabilistically based on fitness
score) have a value merged with a second random bee | "Well-performing bees (chosen probabilistically based on fitness\n score) have a value merged with a second random bee" | 67 | false | ECRL/ecabc | _onlooker_phase | 11,840 | |
LDU_FT/wtsi-hgi/python-git-subrepo/pull | LDU_FT | [
"<BEGIN>\n## `requires_subrepo`",
"Decorator that requires the `git subrepo` command to be accessible before calling the given function.\n :param func: the function to wrap\n :return: the wrapped function\n<END>",
"<BEGIN>\n## `clone`",
"Clones the repository at the given location as a subrepo in the gi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull API.
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 pull API.
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... | Pulls the subrepo that has been cloned into the given directory.
:param directory: the directory containing the subrepo
:return: the commit the subrepo is on | "Pulls the subrepo that has been cloned into the given directory.\n :param directory: the directory containing the subrepo\n :return: the commit the subrepo is on" | 17 | false | wtsi-hgi/python-git-subrepo | pull | 11,841 | |
LDU_FT/raamana/hiwenet/make_random_histogram | LDU_FT | [
"<BEGIN>\n## `diff_medians`",
"Computes the difference in medians between two arrays of values.",
" Given arrays will be flattened (to 1D array) regardless of dimension,\n and any non-finite/NaN values will be ignored.",
" Parameters\n ----------\n array_one, array_two : iterable\n T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_random_histogram API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_random_histogram API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns a sequence of histogram density values that sum to 1.0 | "Returns a sequence of histogram density values that sum to 1.0" | 115 | false | raamana/hiwenet | make_random_histogram | 11,842 | |
LDU_FT/python-astrodynamics/spacetrack/_download_predicate_data | LDU_FT | [
"<BEGIN>\n## `check_git_unchanged`",
"Check git to avoid overwriting user changes.\n<END>",
"<BEGIN>\n## `check_staged`",
"Check if there are 'changes to be committed' in the index.\n<END>",
"<BEGIN>\n## `_raise_for_status`",
"Raise an appropriate error for a given response.",
" Arguments:\n res... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_predicate_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_predicate_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Get raw predicate information for given request class, and cache for
subsequent calls. | "Get raw predicate information for given request class, and cache for\n subsequent calls." | 71 | false | python-astrodynamics/spacetrack | _download_predicate_data | 11,843 | |
LDU_FT/jonhadfield/creds/construct_user_list | LDU_FT | [
"<BEGIN>\n## `create_plan`",
"Determine what changes are required.",
" args:\n existing_users (Users): List of discovered users\n proposed_users (Users): List of proposed users\n purge_undefined (bool): Remove discovered users that have not been defined in proposed users list\n pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct_user_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct_user_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Construct a list of User objects from a list of dicts. | "Construct a list of User objects from a list of dicts." | 71 | false | jonhadfield/creds | construct_user_list | 11,844 | |
LDU_FT/dropbox/pyannotate/_trace_dispatch | LDU_FT | [
"<BEGIN>\n## `parse_json`",
"Deserialize a JSON file containing runtime collected types.",
" The input JSON is expected to to have a list of RawEntry items.\n<END>",
"<BEGIN>\n## `tokenize`",
"Translate a type comment into a list of tokens.\n<END>",
"<BEGIN>\n## `generate_annotations_json_string`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _trace_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _trace_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 e... | This is the main hook passed to setprofile().
It implement python profiler interface.
Arguments are described in https://docs.python.org/2/library/sys.html#sys.settrace | "This is the main hook passed to setprofile().\n It implement python profiler interface.\n\n Arguments are described in https://docs.python.org/2/library/sys.html#sys.settrace" | 93 | false | dropbox/pyannotate | _trace_dispatch | 11,845 | |
LDU_FT/penguinmenac3/starttf/create_input_fn | LDU_FT | [
"<BEGIN>\n## `easy_train_and_evaluate`",
"Train and evaluate your model without any boilerplate code.",
" 1) Write your data using the starttf.tfrecords.autorecords.write_data method.\n 2) Create your hyper parameter file containing all required fields and then load it using\n starttf.utils.hyper_p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_input_fn API.
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 create_input_fn API.
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... | Loads a dataset.
:param prefix: The path prefix as defined in the write data method.
:param batch_size: The batch size you want for the tensors.
:param augmentation: An augmentation function.
:return: An input function for a tf estimator. | "Loads a dataset.\n\n :param prefix: The path prefix as defined in the write data method.\n :param batch_size: The batch size you want for the tensors.\n :param augmentation: An augmentation function.\n :return: An input function for a tf estimator." | 120 | false | penguinmenac3/starttf | create_input_fn | 11,846 | |
LDU_FT/cablehead/vanilla/state | LDU_FT | [
"<BEGIN>\n## `Queue`",
"::",
" +----------+\n send --> | Queue |\n | (buffer) | --> recv\n +----------+",
" A Queue may also only have exactly one sender and recver. A Queue however\n has a fifo buffer of a custom size. Sends to the Queue won't b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns a `State`_ `Pair`_.
*state* if supplied sets the intial state. | "Returns a `State`_ `Pair`_.\n\n *state* if supplied sets the intial state." | 81 | false | cablehead/vanilla | state | 11,847 | |
LDU_FT/fossasia/AYABInterface/get_bytes | LDU_FT | [
"<BEGIN>\n## `get`",
"Return the needle positions or None.",
" :param int line_number: the number of the line\n :rtype: list\n :return: the needle positions for a specific line specified by\n :paramref:`line_number` or :obj:`None` if no were given\n<END>",
"<BEGIN>\n## `get_bytes... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Get the bytes representing needle positions or None.
:param int line_number: the line number to take the bytes from
:rtype: bytes
:return: the bytes that represent the message or :obj:`None` if no
data is there for the line.
Depending on the :attr:`machine`, the length and re... | "Get the bytes representing needle positions or None.\n\n :param int line_number: the line number to take the bytes from\n :rtype: bytes\n :return: the bytes that represent the message or :obj:`None` if no\n data is there for the line.\n\n Depending on the :attr:`machine`, the lengt... | 79 | false | fossasia/AYABInterface | get_bytes | 11,848 | |
LDU_FT/sparknetworks/pgpm/create_db_schema | LDU_FT | [
"<BEGIN>\n## `deploy_schema_to_db`",
"Deploys schema\n :param files_deployment: if specific script to be deployed, only find them\n :param mode:\n :param vcs_ref:\n :param vcs_link:\n :param issue_ref:\n :param issue_link:\n :param compare_table_scripts_as_int:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_db_schema API.
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_db_schema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Create Postgres schema script and execute it on cursor | "Create Postgres schema script and execute it on cursor" | 39 | false | sparknetworks/pgpm | create_db_schema | 11,849 | |
LDU_FT/sirrice/pygg/data_sql | LDU_FT | [
"<BEGIN>\n## `_to_r`",
"Helper function to convert python data structures to R equivalents",
" TODO: a single model for transforming to r to handle\n * function args\n * lists as function args\n<END>",
"<BEGIN>\n## `data_sql`",
"Load file using RPostgreSQL",
" Place to edit if want to add more... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_sql API.
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 data_sql API.
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... | Load file using RPostgreSQL
Place to edit if want to add more database backend support | "Load file using RPostgreSQL\n\n Place to edit if want to add more database backend support" | 56 | false | sirrice/pygg | data_sql | 11,850 | |
LDU_FT/Kortemme-Lab/pull_into_place/load | LDU_FT | [
"<BEGIN>\n## `make_command_table`",
"Return a nicely formatted table of all the PIP commands installed on this \n system to incorporate into the help text. The table will have two columns. \n The first will list the commands that comprise the main pipeline and the \n second will list all the other misc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Return a variety of score and distance metrics for the structures found in
the given directory. As much information as possible will be cached. Note
that new information will only be calculated for file names that haven't
been seen before. If a file changes or is deleted, the cache will not be
update... | "Return a variety of score and distance metrics for the structures found in\n the given directory. As much information as possible will be cached. Note\n that new information will only be calculated for file names that haven't\n been seen before. If a file changes or is deleted, the cache will not be\n u... | 75 | false | Kortemme-Lab/pull_into_place | load | 11,851 | |
LDU_FT/mongodb/mongo-python-driver/retryable_writes_supported | LDU_FT | [
"<BEGIN>\n## `_arguments_repr`",
"Representation of the arguments used to create this object.\n<END>",
"<BEGIN>\n## `with_options`",
"Make a copy of this CodecOptions, overriding some options::",
" >>> from bson.codec_options import DEFAULT_CODEC_OPTIONS\n >>> DEFAULT_CODEC_OPTIONS.tz_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retryable_writes_supported API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retryable_writes_supported API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Checks if this server supports retryable writes. | "Checks if this server supports retryable writes." | 908 | false | mongodb/mongo-python-driver | retryable_writes_supported | 11,852 | |
LDU_FT/PixelwarStudio/PyTree/get_node_angle | LDU_FT | [
"<BEGIN>\n## `generate_branches`",
"Generates branches with alternative system.",
" Args:\n scales (tuple/array): Indicating how the branch/es length/es develop/s from age to age.\n angles (tuple/array): Holding the branch and shift angle in radians.\n shift_angle (float): Holding the ro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_node_angle API.
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_node_angle API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get the angle beetween 2 nodes relative to the horizont.
Args:
node (object): The other node.
Returns:
rad: The angle | "Get the angle beetween 2 nodes relative to the horizont.\n\n Args:\n node (object): The other node.\n\n Returns:\n rad: The angle" | 63 | false | PixelwarStudio/PyTree | get_node_angle | 11,853 | |
LDU_FT/blockcypher/bcwallet/verify_and_fill_address_paths_from_bip32key | LDU_FT | [
"<BEGIN>\n## `verify_and_fill_address_paths_from_bip32key`",
"Take address paths and verifies their accuracy client-side.",
" Also fills in all the available metadata (WIF, public key, etc)\n<END>",
"<BEGIN>\n## `get_addresses_on_both_chains`",
"Get addresses across both subchains based on the filter cri... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_and_fill_address_paths_from_bip32key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_and_fill_address_paths_from_bip32key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indi... | Take address paths and verifies their accuracy client-side.
Also fills in all the available metadata (WIF, public key, etc) | "Take address paths and verifies their accuracy client-side.\n\n Also fills in all the available metadata (WIF, public key, etc)" | 18 | false | blockcypher/bcwallet | verify_and_fill_address_paths_from_bip32key | 11,854 | |
LDU_FT/IdentityPython/SATOSA/_register_endpoints | LDU_FT | [
"<BEGIN>\n## `handle_authn_response`",
"See super class method satosa.frontends.base.FrontendModule#handle_authn_response\n :type context: satosa.context.Context\n :type internal_response: satosa.internal.InternalData\n :rtype satosa.response.Response\n<END>",
"<BEGIN>\n## `handle_authn_req... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _register_endpoints 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 _register_endpoints 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... | See super class satosa.frontends.base.FrontendModule#register_endpoints
:type providers: list[str]
:rtype list[(str, ((satosa.context.Context, Any) -> satosa.response.Response, Any))] |
list[(str, (satosa.context.Context) -> satosa.response.Response)]
:param providers: A list wit... | "See super class satosa.frontends.base.FrontendModule#register_endpoints\n\n :type providers: list[str]\n :rtype list[(str, ((satosa.context.Context, Any) -> satosa.response.Response, Any))] |\n list[(str, (satosa.context.Context) -> satosa.response.Response)]\n :param providers: A li... | 435 | false | IdentityPython/SATOSA | _register_endpoints | 11,855 | |
LDU_FT/marchete/django-adldap-sync/get_ldap_user_membership | LDU_FT | [
"<BEGIN>\n## `sync_ldap_users`",
"Synchronize users with local user model.\n<END>",
"<BEGIN>\n## `sync_ldap_groups`",
"Synchronize LDAP groups with local group model.\n<END>",
"<BEGIN>\n## `get_ldap_user_membership`",
"Retrieve user membership from LDAP server.\n<END>",
"<BEGIN>\n## `sync_ldap_user_memb... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ldap_user_membership API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ldap_user_membership API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Retrieve user membership from LDAP server. | "Retrieve user membership from LDAP server." | 14 | false | marchete/django-adldap-sync | get_ldap_user_membership | 11,856 | |
LDU_FT/shoeffner/cvloop/load_hat | LDU_FT | [
"<BEGIN>\n## `load_hat`",
"Loads the hat from a picture at path.",
" Args:\n path: The path to load from",
" Returns:\n The hat data.\n<END>",
"<BEGIN>\n## `find_faces`",
"Uses a haarcascade to detect faces inside an image.",
" Args:\n image: The ima... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_hat API.
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 load_hat API.
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... | Loads the hat from a picture at path.
Args:
path: The path to load from
Returns:
The hat data. | "Loads the hat from a picture at path.\n\n Args:\n path: The path to load from\n\n Returns:\n The hat data." | 67 | false | shoeffner/cvloop | load_hat | 11,857 | |
LDU_FT/edeposit/edeposit.amqp/process_exception | LDU_FT | [
"<BEGIN>\n## `_process_exception`",
"Process informations about exception and send them thru AMQP.",
" Args:\n e (obj): Exception instance.\n body (str): Text which will be sent over AMQP.\n tb (obj): Traceback object with informations, which will be put to the\n headers... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_exception API.
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_exception API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Callback called when exception was raised.
This method serializes the exception and sends it over AMQP back
to caller.
Args:
e (obj): Instance of the exception.
uuid (str): UUID of the message that caused the exception to raise.
routing_key (str): Which rout... | "Callback called when exception was raised.\n\n This method serializes the exception and sends it over AMQP back\n to caller.\n\n Args:\n e (obj): Instance of the exception.\n uuid (str): UUID of the message that caused the exception to raise.\n routing_key (str): W... | 70 | false | edeposit/edeposit.amqp | process_exception | 11,858 | |
LDU_FT/pysal/spglm/deriv2 | LDU_FT | [
"<BEGIN>\n## `fit`",
"Method that fits a model with a particular estimation routine.",
" Parameters\n ----------",
" ini_betas : array\n k*1, initial coefficient values, including constant.\n Default is None, which calculates initial value... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deriv2 API.
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 deriv2 API.
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 ... | Second derivative of the Cauchy link function.
Parameters
----------
p: array-like
Probabilities
Returns
-------
g''(p) : array
Value of the second derivative of Cauchy link function at `p` | "Second derivative of the Cauchy link function.\n\n Parameters\n ----------\n p: array-like\n Probabilities\n\n Returns\n -------\n g''(p) : array\n Value of the second derivative of Cauchy link function at `p`" | 161 | false | pysal/spglm | deriv2 | 11,859 | |
LDU_FT/fabiobatalha/crossrefapi/doi | LDU_FT | [
"<BEGIN>\n## `version`",
"This attribute retrieve the API version.",
" >>> Works().version\n '1.0.0'\n<END>",
"<BEGIN>\n## `count`",
"This method retrieve the total of records resulting from a given query.",
" This attribute can be used compounded with query, filter,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doi API.
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 doi API.
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... | This method retrieve the DOI metadata related to a given DOI
number.
args: Crossref DOI id (String)
return: JSON
Example:
>>> from crossref.restful import Works
>>> works = Works()
>>> works.doi('10.1590/S0004-28032013005000001')
{'is-re... | "This method retrieve the DOI metadata related to a given DOI\n number.\n\n args: Crossref DOI id (String)\n\n return: JSON\n\n Example:\n >>> from crossref.restful import Works\n >>> works = Works()\n >>> works.doi('10.1590/S0004-28032013005000001')\n ... | 108 | false | fabiobatalha/crossrefapi | doi | 11,860 | |
LDU_FT/elastic/apm-agent-python/sanitize_http_headers | LDU_FT | [
"<BEGIN>\n## `extract_signature`",
"Extracts a minimal signature from a given SQL query\n :param sql: the SQL statement\n :return: a string representing the signature\n<END>",
"<BEGIN>\n## `_timed_queue_join`",
"implementation of Queue.join which takes a 'timeout' argument",
" returns True on s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanitize_http_headers 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 sanitize_http_headers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Sanitizes http request/response headers
:param client: an ElasticAPM client
:param event: a transaction or error event
:return: The modified event | "Sanitizes http request/response headers\n\n :param client: an ElasticAPM client\n :param event: a transaction or error event\n :return: The modified event" | 163 | false | elastic/apm-agent-python | sanitize_http_headers | 11,861 | |
LDU_FT/Exanis/django-rest-generators/when_i_send_the_request | LDU_FT | [
"<BEGIN>\n## `given_i_am_logged_in`",
":type username: str\r\n :type context: behave.runner.Context\n<END>",
"<BEGIN>\n## `when_i_send_the_request`",
":type method: str\r\n :type context: behave.runner.Context\n<END>",
"<BEGIN>\n## `then_the_return_value_for_is`",
":type key: str\r\n :type value:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the when_i_send_the_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the when_i_send_the_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | :type method: str
:type context: behave.runner.Context | ":type method: str\r\n :type context: behave.runner.Context" | 14 | false | Exanis/django-rest-generators | when_i_send_the_request | 11,862 | |
LDU_FT/rhattersley/pyepsg/as_html | LDU_FT | [
"<BEGIN>\n## `get`",
"Return an object that corresponds to the given EPSG code.",
" Currently supported object types are:\n - :class:`GeodeticCRS`\n - :class:`ProjectedCRS`\n - :class:`CartesianCS`\n - :class:`UOM`",
" For example::",
" >>> print(get(27700))\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_html API.
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 as_html API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return the OGC WKT which corresponds to the CRS as HTML.
For example::
>>> print(get(27700).as_html()) # doctest: +ELLIPSIS
<div class="syntax"><pre><span class="gh">PROJCS</span><span... | "Return the OGC WKT which corresponds to the CRS as HTML.\n\n For example::\n\n >>> print(get(27700).as_html()) # doctest: +ELLIPSIS\n <div class=\"syntax\"><pre><span class=\"gh\">PROJCS</span><span..." | 23 | false | rhattersley/pyepsg | as_html | 11,863 | |
LDU_FT/openthread/openthread/MGMT_ACTIVE_SET | LDU_FT | [
"<BEGIN>\n## `wait_until`",
"Wait until `what` return True",
" Args:\n what (Callable[bool]): Call `wait()` again and again until it returns True\n times (int): Maximum times of trials before giving up",
" Returns:\n True if success, False if times threshold reached\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the MGMT_ACTIVE_SET API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the MGMT_ACTIVE_SET API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | send MGMT_ACTIVE_SET command
Returns:
True: successful to send MGMT_ACTIVE_SET
False: fail to send MGMT_ACTIVE_SET | "send MGMT_ACTIVE_SET command\n\n Returns:\n True: successful to send MGMT_ACTIVE_SET\n False: fail to send MGMT_ACTIVE_SET" | 403 | false | openthread/openthread | MGMT_ACTIVE_SET | 11,864 | |
LDU_FT/ajslater/picopt/_humanize_bytes | LDU_FT | [
"<BEGIN>\n## `_get_timestamp`",
"Get the timestamp from the timestamp file.",
" Optionally mark it for removal if we're going to write another one.\n<END>",
"<BEGIN>\n## `_get_timestamp_cached`",
"Get the timestamp from the cache or fill the cache\n Much quicker than reading the same files over and ov... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _humanize_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _humanize_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return a humanized string representation of a number of num_bytes.
from:
http://code.activestate.com/recipes/
577081-humanized-representation-of-a-number-of-num_bytes/
Assumes `from __future__ import division`.
>>> humanize_bytes(1)
'1 byte'
>>> humanize_bytes(1024)
'1.0 kB'
... | "Return a humanized string representation of a number of num_bytes.\n\n from:\n http://code.activestate.com/recipes/\n 577081-humanized-representation-of-a-number-of-num_bytes/\n\n Assumes `from __future__ import division`.\n\n >>> humanize_bytes(1)\n '1 byte'\n >>> humanize_bytes(1024)\n ... | 86 | false | ajslater/picopt | _humanize_bytes | 11,865 | |
LDU_FT/gpennington/PyMarvel/get_stories | LDU_FT | [
"<BEGIN>\n## `get_comics`",
"Returns a full ComicDataWrapper object for this creator.",
" /creators/{creatorId}/comics",
" :returns: ComicDataWrapper -- A new request to API. Contains full results set.\n<END>",
"<BEGIN>\n## `get_events`",
"Returns a full EventDataWrapper object for this cre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stories API.
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 get_stories API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns a full StoryDataWrapper object for this creator.
/creators/{creatorId}/stories
:returns: StoriesDataWrapper -- A new request to API. Contains full results set. | "Returns a full StoryDataWrapper object for this creator.\n\n /creators/{creatorId}/stories\n\n :returns: StoriesDataWrapper -- A new request to API. Contains full results set." | 109 | false | gpennington/PyMarvel | get_stories | 11,866 | |
LDU_FT/CSchoel/nolds/tent_map | LDU_FT | [
"<BEGIN>\n## `weron_2002_figure2`",
"Recreates figure 2 of [w]_ comparing the reported values by Weron to the\n values obtained by the functions in this package.",
" The experiment consists of n iterations where the hurst exponent of randomly\n generated gaussian noise is calculated. This is done with differ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tent_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tent_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 extracte... | Generates a time series of the tent map.
Characteristics and Background:
The name of the tent map is derived from the fact that the plot of x_i vs
x_i+1 looks like a tent. For mu > 1 one application of the mapping function
can be viewed as stretching the surface on which the value is located and
then... | "Generates a time series of the tent map.\n\n Characteristics and Background:\n The name of the tent map is derived from the fact that the plot of x_i vs\n x_i+1 looks like a tent. For mu > 1 one application of the mapping function\n can be viewed as stretching the surface on which the value is located and\n ... | 236 | false | CSchoel/nolds | tent_map | 11,867 | |
LDU_FT/ericjang/tdb/compute_node_deps | LDU_FT | [
"<BEGIN>\n## `s`",
"step to the next node in the execution order\n<END>",
"<BEGIN>\n## `get_values`",
"returns final values (same result as tf.Session.run())\n<END>",
"<BEGIN>\n## `_init_evals_bps`",
"HTOps may depend on tf.Tensors that are not in eval. We need to have all inputs to HTOps ready\n\t\tupon ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_node_deps API.
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 compute_node_deps API.
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 the full dependency graph of ALL ops and ALL tensors
Map<string,list<string>> where key=node name, values=list of dependency names
If an Op takes in a placeholder tensor that is the ouput of a PythonOp,
we need to replace that Placeholder with the PythonOp. | "- returns the full dependency graph of ALL ops and ALL tensors\n\tMap<string,list<string>> where key=node name, values=list of dependency names\n\n\tIf an Op takes in a placeholder tensor that is the ouput of a PythonOp, \n\twe need to replace that Placeholder with the PythonOp." | 35 | false | ericjang/tdb | compute_node_deps | 11,868 | |
LDU_FT/applegrew/django-select2/set_to_cache | LDU_FT | [
"<BEGIN>\n## `_get_media`",
"Construct Media as a dynamic property.",
" .. Note:: For more information visit\n https://docs.djangoproject.com/en/stable/topics/forms/media/#media-as-a-dynamic-property\n<END>",
"<BEGIN>\n## `render`",
"Render widget and register it in Django's cache.\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_to_cache API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_to_cache API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Add widget object to Django's cache.
You may need to overwrite this method, to pickle all information
that is required to serve your JSON response view. | "Add widget object to Django's cache.\n\n You may need to overwrite this method, to pickle all information\n that is required to serve your JSON response view." | 25 | false | applegrew/django-select2 | set_to_cache | 11,869 | |
LDU_FT/ultrabug/uhashring/_create_ring | LDU_FT | [
"<BEGIN>\n## `_configure_nodes`",
"Parse and set up the given nodes.",
" :param nodes: nodes used to create the continuum (see doc for format).\n<END>",
"<BEGIN>\n## `_get_pos`",
"Get the index of the given key in the sorted key list.",
" We return the position with the nearest hash based on... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_ring API.
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 _create_ring API.
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... | Generate a ketama compatible continuum/ring. | "Generate a ketama compatible continuum/ring." | 40 | false | ultrabug/uhashring | _create_ring | 11,870 | |
LDU_FT/Galarzaa90/tibia.py/_parse_guild_info | LDU_FT | [
"<BEGIN>\n## `ranks`",
":class:`list` of :class:`str`: Ranks in their hierarchical order.\n<END>",
"<BEGIN>\n## `from_content`",
"Creates an instance of the class from the HTML content of the guild's page.",
" Parameters\n -----------\n content: :class:`str`\n The HTML conten... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_guild_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_guild_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... | Parses the guild's general information and applies the found values.
Parameters
----------
info_container: :class:`bs4.Tag`
The parsed content of the information container. | "Parses the guild's general information and applies the found values.\n\n Parameters\n ----------\n info_container: :class:`bs4.Tag`\n The parsed content of the information container." | 254 | false | Galarzaa90/tibia.py | _parse_guild_info | 11,871 | |
LDU_FT/djaodjin/djaodjin-deployutils/_insert_url | LDU_FT | [
"<BEGIN>\n## `filter`",
"Adds user and remote_addr to the record.\n<END>",
"<BEGIN>\n## `package_theme`",
"Package resources and templates for a multi-tier environment\n into a zip file.",
" Templates are pre-compiled into ``*build_dir*/*app_name*/templates``.\n Compilation means {% assets '*path*'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _insert_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _insert_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 extra... | Redirects to the *inserted_url* before going to the orginal
request path. | "Redirects to the *inserted_url* before going to the orginal\n request path." | 82 | false | djaodjin/djaodjin-deployutils | _insert_url | 11,872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.