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/nilp0inter/cpe/language_match | LDU_FT | [
"<BEGIN>\n## `_trim`",
"Remove trailing colons from the URI back to the first non-colon.",
" :param string s: input URI string\n :returns: URI string with trailing colons removed\n :rtype: string",
" TEST: trailing colons necessary",
" >>> s = '1:2::::'\n >>> CPE._t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the language_match API.
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 language_match API.
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... | Accepts a set of known CPE Names and an expression in the CPE language,
and delivers the answer True if the expression matches with the set.
Otherwise, it returns False.
:param CPELanguage self: An expression in the CPE Applicability
Language, represented as the XML infoset for the ... | "Accepts a set of known CPE Names and an expression in the CPE language,\n and delivers the answer True if the expression matches with the set.\n Otherwise, it returns False.\n\n :param CPELanguage self: An expression in the CPE Applicability\n Language, represented as the XML infoset fo... | 206 | false | nilp0inter/cpe | language_match | 13,773 | |
LDU_FT/TeleSign/python_telesign/_execute | LDU_FT | [
"<BEGIN>\n## `score`",
"Score is an API that delivers reputation scoring based on phone number intelligence, traffic patterns, machine\n learning, and a global data consortium.",
" See https://developer.telesign.com/docs/score-api for detailed API documentation.\n<END>",
"<BEGIN>\n## `generate_t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Generic TeleSign REST API request handler.
:param method_function: The Requests HTTP request function to perform the request.
:param method_name: The HTTP method name, as an upper case string.
:param resource: The partial resource URI to perform the request against, as a string.
:param ... | "Generic TeleSign REST API request handler.\n\n :param method_function: The Requests HTTP request function to perform the request.\n :param method_name: The HTTP method name, as an upper case string.\n :param resource: The partial resource URI to perform the request against, as a string.\n :... | 45 | false | TeleSign/python_telesign | _execute | 13,774 | |
LDU_FT/snare/voltron/dispatch_queue | LDU_FT | [
"<BEGIN>\n## `cancel_queue`",
"Cancel all requests in the queue so we can exit.\n<END>",
"<BEGIN>\n## `dispatch_queue`",
"Dispatch any queued requests.",
" Called by the debugger when it stops.\n<END>",
"<BEGIN>\n## `send_request`",
"Send a request to the server.",
" `request` is an APIR... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch_queue API.
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 dispatch_queue API.
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... | Dispatch any queued requests.
Called by the debugger when it stops. | "Dispatch any queued requests.\n\n Called by the debugger when it stops." | 80 | false | snare/voltron | dispatch_queue | 13,775 | |
LDU_FT/azraq27/neural/atlas_overlap | LDU_FT | [
"<BEGIN>\n## `connectivity_map`",
"Will perform connectivity analysis on ``dset`` using seed point ``(x,y,z)`` (in RAI order) with a sphere of radius ``radius``.\n Does not perform any preprocessing of ``dset``. This should be already motion corrected, noise-regressed, residualized, etc.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the atlas_overlap API.
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 atlas_overlap API.
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... | aligns ``dset`` to the TT_N27 atlas and returns ``(cost,overlap)`` | "aligns ``dset`` to the TT_N27 atlas and returns ``(cost,overlap)``" | 232 | false | azraq27/neural | atlas_overlap | 13,776 | |
LDU_FT/bkjones/pyrabbit/delete_queue | LDU_FT | [
"<BEGIN>\n## `do_call`",
"Send an HTTP request to the REST API.",
" :param string path: A URL\n :param string method: The HTTP method (GET, POST, etc.) to use\n in the request.\n :param string body: A string representing any data to be sent in the\n body of the HTTP re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_queue API.
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 delete_queue API.
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... | Deletes the named queue from the named vhost.
:param string vhost: Vhost housing the queue to be deleted.
:param string qname: Name of the queue to delete.
Note that if you just want to delete the messages from a queue, you
should use purge_queue instead of deleting/recreating a queue. | "Deletes the named queue from the named vhost.\n\n :param string vhost: Vhost housing the queue to be deleted.\n :param string qname: Name of the queue to delete.\n\n Note that if you just want to delete the messages from a queue, you\n should use purge_queue instead of deleting/recreating a... | 112 | false | bkjones/pyrabbit | delete_queue | 13,777 | |
LDU_FT/cox-labs/perseuspy/read_rawFilesTable | LDU_FT | [
"<BEGIN>\n## `read_annotations`",
"Read all annotations from the specified file.",
" >>> annotations = read_annotations(path_or_file, separator)\n >>> colnames = annotations['Column Name']\n >>> types = annotations['Type']\n >>> annot_row = annotations['Annot. row name']",
" :param path_or_file... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_rawFilesTable 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 read_rawFilesTable API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | parse the 'rawFilesTable.txt' file into a pandas dataframe | "parse the 'rawFilesTable.txt' file into a pandas dataframe" | 57 | false | cox-labs/perseuspy | read_rawFilesTable | 13,778 | |
LDU_FT/konture/CloeePy/_load_config | LDU_FT | [
"<BEGIN>\n## `_set_config_path`",
"Reads config path from environment variable CLOEEPY_CONFIG_PATH\n and sets as instance attr\n<END>",
"<BEGIN>\n## `_load_config`",
"Loads the YAML configuration file and sets python dictionary and raw contents\n as instance attrs.\n<END>",
"<BEGIN>\n## `_set_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Loads the YAML configuration file and sets python dictionary and raw contents
as instance attrs. | "Loads the YAML configuration file and sets python dictionary and raw contents\n as instance attrs." | 14 | false | konture/CloeePy | _load_config | 13,779 | |
LDU_FT/tetframework/Tonnikala/_strip_dollars_fast | LDU_FT | [
"<BEGIN>\n## `merge_text_nodes_on`",
"Merges all consecutive non-translatable text nodes into one\n<END>",
"<BEGIN>\n## `push_state`",
"Push a copy of the topmost state on top of the state stack,\n returns the new top.\n<END>",
"<BEGIN>\n## `enter_node`",
"Enter the given element; keeps track of `c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _strip_dollars_fast 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 _strip_dollars_fast API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Replace `$$` with `$`. raise immediately
if `$` starting an interpolated expression is found.
@param text: the source text
@return: the text with dollars replaced, or raise
HasExprException if there are interpolated expressions | "Replace `$$` with `$`. raise immediately\n if `$` starting an interpolated expression is found.\n @param text: the source text\n @return: the text with dollars replaced, or raise\n HasExprException if there are interpolated expressions" | 39 | false | tetframework/Tonnikala | _strip_dollars_fast | 13,780 | |
LDU_FT/sassoftware/epdb/process_IAC | LDU_FT | [
"<BEGIN>\n## `configure`",
"Configure which kinds of exceptions trigger plugin.\n<END>",
"<BEGIN>\n## `set_trace_cond`",
"Sets a condition for set_trace statements that have the\n specified marker. A condition can either callable, in\n which case it should take one argument, which is the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_IAC API.
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 process_IAC API.
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... | Read in and parse IAC commands as passed by telnetlib.
SB/SE commands are stored in sbdataq, and passed in w/ a command
of SE. | "Read in and parse IAC commands as passed by telnetlib.\n\n SB/SE commands are stored in sbdataq, and passed in w/ a command\n of SE." | 31 | false | sassoftware/epdb | process_IAC | 13,781 | |
LDU_FT/neurosnap/mudicom/_gdcm_to_numpy | LDU_FT | [
"<BEGIN>\n## `validate`",
"This function uses dciodvfy to generate\n a list of warnings and errors discovered within\n the DICOM file.",
" :param fname: Location and filename of DICOM file.\n<END>",
"<BEGIN>\n## `numpy`",
"Grabs image data and converts it to a numpy array\n<END>",
"<BEGIN>\n## `_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gdcm_to_numpy API.
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 _gdcm_to_numpy API.
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... | Converts a GDCM image to a numpy array.
:param image: GDCM.ImageReader.GetImage() | "Converts a GDCM image to a numpy array.\n\n :param image: GDCM.ImageReader.GetImage()" | 35 | false | neurosnap/mudicom | _gdcm_to_numpy | 13,782 | |
LDU_FT/ngmarchant/oasis/calc_true_performance | LDU_FT | [
"<BEGIN>\n## `update`",
"Update the posterior and estimates after a label is sampled",
" Parameters\n ----------\n ell : int\n sampled label: 0 or 1",
" k : int\n index of stratum where label was sampled\n<END>",
"<BEGIN>\n## `_sample_item`",
"Sample an it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_true_performance 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 calc_true_performance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Evaluate precision, recall and balanced F-measure | "Evaluate precision, recall and balanced F-measure" | 115 | false | ngmarchant/oasis | calc_true_performance | 13,783 | |
LDU_FT/panzarino/mlbgame/team_info | LDU_FT | [
"<BEGIN>\n## `setobjattr`",
"Sets an object attribute with the correct data type.\n<END>",
"<BEGIN>\n## `get_scoreboard`",
"Return the game file for a certain day matching certain criteria.\n<END>",
"<BEGIN>\n## `get_box_score`",
"Return the box score file of a game with matching id.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the team_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the team_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 extract... | Returns a list of team information dictionaries | "Returns a list of team information dictionaries" | 66 | false | panzarino/mlbgame | team_info | 13,784 | |
LDU_FT/reanahub/reana-commons/click_table_printer | LDU_FT | [
"<BEGIN>\n## `click_table_printer`",
"Generate space separated output for click commands.\n<END>",
"<BEGIN>\n## `calculate_job_input_hash`",
"Calculate md5 hash of job specification and workflow json.\n<END>",
"<BEGIN>\n## `calculate_file_access_time`",
"Calculate access times of files in workspace.\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the click_table_printer 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 click_table_printer 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... | Generate space separated output for click commands. | "Generate space separated output for click commands." | 45 | false | reanahub/reana-commons | click_table_printer | 13,785 | |
LDU_FT/inveniosoftware/invenio-search/put_templates | LDU_FT | [
"<BEGIN>\n## `index`",
"Query Elasticsearch using Invenio query syntax.\n<END>",
"<BEGIN>\n## `templates`",
"Generate a dictionary with template names and file paths.\n<END>",
"<BEGIN>\n## `register_mappings`",
"Register mappings from a package under given alias.",
" :param alias: The alias.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_templates API.
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 put_templates API.
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... | Yield tuple with registered template and response from client. | "Yield tuple with registered template and response from client." | 52 | false | inveniosoftware/invenio-search | put_templates | 13,786 | |
LDU_FT/openfisca/openfisca-core/instant | LDU_FT | [
"<BEGIN>\n## `apply_thresholds`",
"Return one of the choices depending on the input position compared to thresholds, for each input.",
" >>> apply_thresholds(np.array([4]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_thresholds(np.array([5]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the instant API.
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 instant API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return a new instant, aka a triple of integers (year, month, day).
>>> instant(2014)
Instant((2014, 1, 1))
>>> instant('2014')
Instant((2014, 1, 1))
>>> instant('2014-02')
Instant((2014, 2, 1))
>>> instant('2014-3-2')
Instant((2014, 3, 2))
>>> instant(instant('2014-3-2'))
Instan... | "Return a new instant, aka a triple of integers (year, month, day).\n\n >>> instant(2014)\n Instant((2014, 1, 1))\n >>> instant('2014')\n Instant((2014, 1, 1))\n >>> instant('2014-02')\n Instant((2014, 2, 1))\n >>> instant('2014-3-2')\n Instant((2014, 3, 2))\n >>> instant(instant('2014-3-2'))... | 322 | false | openfisca/openfisca-core | instant | 13,787 | |
LDU_FT/quantopian/trading_calendars/all_minutes | LDU_FT | [
"<BEGIN>\n## `days_at_time`",
"Create an index of days at time ``t``, interpreted in timezone ``tz``.",
" The returned index is localized to UTC.",
" Parameters\n ----------\n days : DatetimeIndex\n An index of dates (represented as midnight).\n t : datetime.time\n The time to app... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_minutes API.
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 all_minutes API.
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 DatetimeIndex representing all the minutes in this calendar. | "Returns a DatetimeIndex representing all the minutes in this calendar." | 150 | false | quantopian/trading_calendars | all_minutes | 13,788 | |
LDU_FT/rikrd/inspire/edit_script_to_strings | LDU_FT | [
"<BEGIN>\n## `load_parameter`",
"Load HTK parameter/feature file.",
" :param input_filename:\n :param only_header: only load the metadata\n :return: a named tuple representing the HTK parmeter file\n<END>",
"<BEGIN>\n## `create_parameter`",
"Create a HTK Parameter object from an array of samples an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_script_to_strings 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 edit_script_to_strings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Convert an edit script to a pair of strings representing the operation in a human readable way.
:param edit_script: The edit script as a list of operations, where each operation is a dictionary.
:param use_colors: Boolean indicating whether to use terminal color codes to color the output.
:return: Tuple wi... | "Convert an edit script to a pair of strings representing the operation in a human readable way.\n\n :param edit_script: The edit script as a list of operations, where each operation is a dictionary.\n :param use_colors: Boolean indicating whether to use terminal color codes to color the output.\n :return: Tup... | 91 | false | rikrd/inspire | edit_script_to_strings | 13,789 | |
LDU_FT/aewallin/allantools/frequency_psd_from_qd | LDU_FT | [
"<BEGIN>\n## `set_input`",
"Set inputs after initialization",
" Parameters\n -------\n nr: integer\n length of generated time-series\n number must be power of two\n qd: float\n discrete variance\n b: float\n noise type:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the frequency_psd_from_qd 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 frequency_psd_from_qd 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 frequency power spectral density coefficient h_a
for the noise type defined by (qd, b, tau0)
Colored noise generated with (qd, b, tau0) parameters will
show a frequency power spectral density of
S_y(f) = Frequency_PSD(f) = h_a * f^a
where the slope a ... | "return frequency power spectral density coefficient h_a\n for the noise type defined by (qd, b, tau0)\n\n Colored noise generated with (qd, b, tau0) parameters will\n show a frequency power spectral density of\n\n S_y(f) = Frequency_PSD(f) = h_a * f^a\n where the ... | 273 | false | aewallin/allantools | frequency_psd_from_qd | 13,790 | |
LDU_FT/invinst/ResponseBot/handle | LDU_FT | [
"<BEGIN>\n## `load_config_file`",
"Parse configuration file and get config values.\n<END>",
"<BEGIN>\n## `load_config_from_cli_arguments`",
"Get config values of passed in CLI options.",
" :param dict kwargs: CLI options\n<END>",
"<BEGIN>\n## `validate_configs`",
"Check that required config are s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Entry point to handle user events.
:param event: Received event. See a full list `here <https://dev.twitter.com/streaming/overview/messages-types#Events_event>`_. | "Entry point to handle user events.\n\n :param event: Received event. See a full list `here <https://dev.twitter.com/streaming/overview/messages-types#Events_event>`_." | 99 | false | invinst/ResponseBot | handle | 13,791 | |
LDU_FT/opencobra/memote/generate | LDU_FT | [
"<BEGIN>\n## `validate`",
"Use a defined schema to validate the medium table format.\n<END>",
"<BEGIN>\n## `apply`",
"Set the defined medium on the given model.\n<END>",
"<BEGIN>\n## `find_transported_elements`",
"Return a dictionary showing the amount of transported elements of a rxn.",
" Collects t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API.
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 generate API.
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... | Annotate a shortlist of metabolites with cross-references using MetaNetX.
MNX_DUMP : The chemicals dump from MetaNetX usually called 'chem_xref.tsv'.
Will be downloaded if it doesn't exist. | "Annotate a shortlist of metabolites with cross-references using MetaNetX.\n\n MNX_DUMP : The chemicals dump from MetaNetX usually called 'chem_xref.tsv'.\n Will be downloaded if it doesn't exist." | 508 | false | opencobra/memote | generate | 13,792 | |
LDU_FT/predicador37/pyjstat/get_dimension_indices | LDU_FT | [
"<BEGIN>\n## `check_version_2`",
"Checks if json-stat version attribute exists and is equal or greater \\\n than 2.0 for a given dataset.",
" Args:\n dataset (OrderedDict): data in JSON-stat format, previously \\\n deserialized to a python object by \\\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dimension_indices API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dimension_indices API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Converts a dimension/category list of dicts into a list of \
dimensions’ indices.
Args:
query(list): dimension/category list of dicts.
Returns:
indices(list): list of dimensions' indices. | "Converts a dimension/category list of dicts into a list of \\\n dimensions’ indices.\n Args:\n query(list): dimension/category list of dicts.\n\n Returns:\n indices(list): list of dimensions' indices." | 81 | false | predicador37/pyjstat | get_dimension_indices | 13,793 | |
LDU_FT/matthiask/django-cte-forest/as_tree | LDU_FT | [
"<BEGIN>\n## `_ensure_parameters`",
"Attempts to load and verify the CTE node parameters. Will use\n default values for all missing parameters, and raise an exception if\n a parameter's value cannot be verified. This method will only\n perform these actions once, and set the :attr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_tree API.
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_tree API.
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... | Recursively traverses each tree (starting from each root) in order
to generate a dictionary-based tree structure of the entire forest.
Each level of the forest/tree is a list of nodes, and each node
consists of a dictionary representation, where the entry
``children`` (by... | "Recursively traverses each tree (starting from each root) in order\n to generate a dictionary-based tree structure of the entire forest.\n Each level of the forest/tree is a list of nodes, and each node\n consists of a dictionary representation, where the entry\n ``children`... | 153 | false | matthiask/django-cte-forest | as_tree | 13,794 | |
LDU_FT/galaxyproject/pulsar/get_client | LDU_FT | [
"<BEGIN>\n## `__posix_to_local_path`",
"Converts a posix path (coming from Galaxy), to a local path (be it posix or Windows).",
" >>> import ntpath\n >>> __posix_to_local_path('dataset_1_files/moo/cow', local_path_module=ntpath)\n 'dataset_1_files\\\\\\\\moo\\\\\\\\cow'\n >>> import posixpath\n >... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_client API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_client API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Build a client given specific destination parameters and job_id. | "Build a client given specific destination parameters and job_id." | 142 | false | galaxyproject/pulsar | get_client | 13,795 | |
LDU_FT/FactoryBoy/factory_boy/_get_counter_reference | LDU_FT | [
"<BEGIN>\n## `set_random_state`",
"Force-set the state of factory.fuzzy's random generator.\n<END>",
"<BEGIN>\n## `reseed_random`",
"Reseed factory.fuzzy's random generator.\n<END>",
"<BEGIN>\n## `_lazy_load_get_model`",
"Lazy loading of get_model.",
" get_model loads django.conf.settings, which may ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_counter_reference API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_counter_reference API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Identify which factory should be used for a shared counter. | "Identify which factory should be used for a shared counter." | 120 | false | FactoryBoy/factory_boy | _get_counter_reference | 13,796 | |
LDU_FT/mojaie/chorus/assign_rotatable | LDU_FT | [
"<BEGIN>\n## `draw`",
"Draw molecule structure image.",
" Args:\n canvas: draw.drawable.Drawable\n mol: model.graphmol.Compound\n<END>",
"<BEGIN>\n## `smiles_to_compound`",
"Convert SMILES text to compound object",
" Raises:\n ValueError: SMILES with unsupported format\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assign_rotatable API.
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 assign_rotatable API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Assign rotatable bonds (single and not terminal and not in ring) | "Assign rotatable bonds (single and not terminal and not in ring)" | 158 | false | mojaie/chorus | assign_rotatable | 13,797 | |
LDU_FT/sentinel-hub/eo-learn/_get_features | LDU_FT | [
"<BEGIN>\n## `execute`",
"Execute computation of blobs on input eopatch",
" :param eopatch: Input eopatch\n :type eopatch: eolearn.core.EOPatch\n :return: EOPatch instance with new key holding the blob image.\n :rtype: eolearn.core.EOPatch\n<END>",
"<BEGIN>\n## `_check_classifier`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_features API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_features API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | A generator of parsed features.
:param eopatch: A given EOPatch
:type eopatch: EOPatch or None
:return: One by one feature
:rtype: tuple(FeatureType, str) or tuple(FeatureType, str, str) | "A generator of parsed features.\r\n\r\n :param eopatch: A given EOPatch\r\n :type eopatch: EOPatch or None\r\n :return: One by one feature\r\n :rtype: tuple(FeatureType, str) or tuple(FeatureType, str, str)" | 453 | false | sentinel-hub/eo-learn | _get_features | 13,798 | |
LDU_FT/sorend/sshconf/rename | LDU_FT | [
"<BEGIN>\n## `read_ssh_config`",
"Read ssh config file and return parsed SshConfig\n<END>",
"<BEGIN>\n## `_remap_key`",
"Change key into correct casing if we know the parameter\n<END>",
"<BEGIN>\n## `host`",
"Return the configuration of a specific host as a dictionary.",
" Dictionary always conta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename API.
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 rename API.
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 ... | Renames a host configuration.
Parameters
----------
old_host : the host to rename.
new_host : the new host value | "Renames a host configuration.\n\n Parameters\n ----------\n old_host : the host to rename.\n new_host : the new host value" | 27 | false | sorend/sshconf | rename | 13,799 | |
LDU_FT/PmagPy/PmagPy/on_close_criteria_box | LDU_FT | [
"<BEGIN>\n## `GetValue`",
"Find the matching value from pandas DataFrame,\n return it.\n<END>",
"<BEGIN>\n## `SetColumnValues`",
"Custom method to efficiently set all values\n in a column.",
" Parameters\n ----------\n col : str or int\n name or index position o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_close_criteria_box 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 on_close_criteria_box API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Function called on close of change acceptance criteria dialog that
writes new criteria to the hardrive and sets new criteria as GUI's
current criteria.
Parameters
----------
dia : closed change criteria dialog | "Function called on close of change acceptance criteria dialog that\n writes new criteria to the hardrive and sets new criteria as GUI's\n current criteria.\n\n Parameters\n ----------\n dia : closed change criteria dialog" | 3,302 | true | PmagPy/PmagPy | on_close_criteria_box | 13,800 | |
LDU_FT/chovanecm/sacredboard/_to_mongo_query | LDU_FT | [
"<BEGIN>\n## `get_file`",
"Get a specific file from GridFS.",
" Returns a binary stream response or HTTP 404 if not found.\n<END>",
"<BEGIN>\n## `get_files_zip`",
"Send all artifacts or sources of a run as ZIP.\n<END>",
"<BEGIN>\n## `get`",
"Return the file identified by a file_id string.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_mongo_query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_mongo_query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Convert the query received by the Sacred Web API to a MongoDB query.
Takes a query in format
{"type": "and", "filters": [
{"field": "host.hostname", "operator": "==", "value": "ntbacer"},
{"type": "or", "filters": [
{"field": "result", "operator": "==", "value": 2403.52},
... | "Convert the query received by the Sacred Web API to a MongoDB query.\n\n Takes a query in format\n {\"type\": \"and\", \"filters\": [\n {\"field\": \"host.hostname\", \"operator\": \"==\", \"value\": \"ntbacer\"},\n {\"type\": \"or\", \"filters\": [\n {\"field\": \"result\", \"... | 128 | false | chovanecm/sacredboard | _to_mongo_query | 13,801 | |
LDU_FT/yangl1996/libpagure/list_users | LDU_FT | [
"<BEGIN>\n## `_call_api`",
"Method used to call the API.\n It returns the raw JSON returned by the API or raises an exception\n if something goes wrong.",
" :arg url: the URL to call\n :kwarg method: the HTTP method to use when calling the specified\n URL, can be GET, POST... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_users API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_users API.
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... | List all users registered on this Pagure instance.
:param pattern: filters the starting letters of the return value
:return: | "List all users registered on this Pagure instance.\n :param pattern: filters the starting letters of the return value\n :return:" | 62 | false | yangl1996/libpagure | list_users | 13,802 | |
LDU_FT/eeue56/PyChat.js/write_message | LDU_FT | [
"<BEGIN>\n## `create_message`",
"Creates a standard message from a given user with the message \r\n Replaces newline with html break\n<END>",
"<BEGIN>\n## `write_message`",
"Writes a message to this chat connection's handler\n<END>",
"<BEGIN>\n## `join_room`",
"Connects to a given room \r\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Writes a message to this chat connection's handler | "Writes a message to this chat connection's handler" | 20 | false | eeue56/PyChat.js | write_message | 13,803 | |
LDU_FT/lionheart/django-pyodbc/format_results | LDU_FT | [
"<BEGIN>\n## `_get_sql_server_ver`",
"Returns the version of the SQL Server in use:\n<END>",
"<BEGIN>\n## `_switch_tz_offset_sql`",
"Returns the SQL that will convert field_name to UTC from tzname.\n<END>",
"<BEGIN>\n## `datetime_trunc_sql`",
"Given a lookup_type of 'year', 'month', 'day', 'hour', 'minute... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_results API.
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 format_results API.
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... | Decode data coming from the database if needed and convert rows to tuples
(pyodbc Rows are not sliceable). | "Decode data coming from the database if needed and convert rows to tuples\n (pyodbc Rows are not sliceable)." | 51 | false | lionheart/django-pyodbc | format_results | 13,804 | |
LDU_FT/okfn/ofs/get_stream | LDU_FT | [
"<BEGIN>\n## `revert`",
"Revert the state to the version stored on disc.\n<END>",
"<BEGIN>\n## `sync`",
"Synchronise and update the stored state to the in-memory state.\n<END>",
"<BEGIN>\n## `del_stream`",
"Will fail if the bucket or label don't exist\n<END>",
"<BEGIN>\n## `authenticate_request`",
"Au... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stream API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stream API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Get a bitstream for the given bucket:label combination.
:param bucket: the bucket to use.
:return: bitstream as a file-like object | "Get a bitstream for the given bucket:label combination.\n\n :param bucket: the bucket to use.\n :return: bitstream as a file-like object" | 53 | false | okfn/ofs | get_stream | 13,805 | |
LDU_FT/HumanCellAtlas/cloud-blobstore/get_content_type | LDU_FT | [
"<BEGIN>\n## `list`",
"Returns an iterator of all blob entries in a bucket that match a given prefix. Do not return any keys that\n contain the delimiter past the\n prefix.\n<END>",
"<BEGIN>\n## `delete`",
"Deletes an object in a bucket. If the operation definitely did not delete anything, ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Retrieves the content-type for a given object in a given bucket.
:param bucket: the bucket the object resides in.
:param key: the key of the object for which content-type is being retrieved.
:return: the content-type | "Retrieves the content-type for a given object in a given bucket.\n :param bucket: the bucket the object resides in.\n :param key: the key of the object for which content-type is being retrieved.\n :return: the content-type" | 59 | false | HumanCellAtlas/cloud-blobstore | get_content_type | 13,806 | |
LDU_FT/cmbruns/pyopenvr/getBoundsColor | LDU_FT | [
"<BEGIN>\n## `key_press`",
"Close the application when the player presses ESCAPE\n<END>",
"<BEGIN>\n## `scale`",
"Uniform scale, if only sx argument is specified\n<END>",
"<BEGIN>\n## `bInit`",
"Purpose: Allocates and populates the GL resources for a render model\n<END>",
"<BEGIN>\n## `cleanup`",
"Pur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getBoundsColor API.
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 getBoundsColor API.
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 current chaperone bounds draw color and brightness | "Get the current chaperone bounds draw color and brightness" | 475 | false | cmbruns/pyopenvr | getBoundsColor | 13,807 | |
LDU_FT/ContextLab/hypertools/df2mat | LDU_FT | [
"<BEGIN>\n## `default_params`",
"Loads and updates default model parameters",
" Parameters\n ----------",
" model : str\n The name of a model",
" update_dict : dict\n A dict to update default parameters",
" Returns\n ----------",
" params : dict\n A dictionary o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the df2mat API.
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 df2mat API.
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 ... | Transforms a Pandas DataFrame into a Numpy array with binarized text columns
This function transforms single-level df to an array so it can be plotted
with HyperTools. Additionally, it uses the Pandas.Dataframe.get_dummies
function to transform text columns into binary vectors, or
'dummy variables'.
... | "Transforms a Pandas DataFrame into a Numpy array with binarized text columns\n\n This function transforms single-level df to an array so it can be plotted\n with HyperTools. Additionally, it uses the Pandas.Dataframe.get_dummies\n function to transform text columns into binary vectors, or\n 'dummy variabl... | 239 | false | ContextLab/hypertools | df2mat | 13,808 | |
LDU_FT/atarashansky/self-assembling-manifold/run_umap | LDU_FT | [
"<BEGIN>\n## `preprocess_data`",
"Log-normalizes and filters the expression data.",
" Parameters\n ----------",
" div : float, optional, default 1\n The factor by which the gene expression will be divided prior to\n log normalization.",
" downsample : float,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_umap API.
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 run_umap API.
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... | Wrapper for umap-learn.
See https://github.com/lmcinnes/umap sklearn for the documentation
and source code. | "Wrapper for umap-learn.\n\n See https://github.com/lmcinnes/umap sklearn for the documentation\n and source code." | 125 | false | atarashansky/self-assembling-manifold | run_umap | 13,809 | |
LDU_FT/luismasuelli/django-trackmodels-ritual/get_reporters | LDU_FT | [
"<BEGIN>\n## `lookups`",
"Performs lookup in the same way the reporting tool allows to generate a report.\n :param request: Current request\n :param model_admin: Current model admin. It must implement get_period_options as returning a list of (k, v).\n :raises: AttributeError, ValueError, or ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reporters API.
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_reporters API.
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 the report_generators list to a dictionary, and caches the result.
:return: A dictionary with such references. | "Converts the report_generators list to a dictionary, and caches the result.\n :return: A dictionary with such references." | 28 | false | luismasuelli/django-trackmodels-ritual | get_reporters | 13,810 | |
LDU_FT/fronzbot/blinkpy/request_camera_sensors | LDU_FT | [
"<BEGIN>\n## `refresh`",
"Get all blink cameras and pulls their most recent status.\n<END>",
"<BEGIN>\n## `attributes`",
"Return dictionary of all camera attributes.\n<END>",
"<BEGIN>\n## `snap_picture`",
"Take a picture with camera to create a new thumbnail.\n<END>",
"<BEGIN>\n## `image_to_file`",
"W... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_camera_sensors 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 request_camera_sensors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Request camera sensor info for one camera.
:param blink: Blink instance.
:param network: Sync module network id.
:param camera_id: Camera ID of camera to request sesnor info from. | "Request camera sensor info for one camera.\n\n :param blink: Blink instance.\n :param network: Sync module network id.\n :param camera_id: Camera ID of camera to request sesnor info from." | 71 | false | fronzbot/blinkpy | request_camera_sensors | 13,811 | |
LDU_FT/etcher-be/epab/get_sha | LDU_FT | [
"<BEGIN>\n## `cli`",
"This is a tool that handles all the tasks to build a Python application",
" This tool is installed as a setuptools entry point, which means it should be accessible from your terminal once\n this application is installed in develop mode.\n<END>",
"<BEGIN>\n## `sort`",
"Runs iSort ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sha API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sha API.
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: SHA of the latest commit
:rtype: str | ":return: SHA of the latest commit\n :rtype: str" | 133 | false | etcher-be/epab | get_sha | 13,812 | |
LDU_FT/ilgarm/pyzimbra/print_trace | LDU_FT | [
"<BEGIN>\n## `authenticate`",
"Authenticates account, if no password given tries to pre-authenticate.\n @param transport: transport to use for method calls\n @param account_name: account name\n @param password: account password\n @return: AuthToken if authentication succeeded\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_trace API.
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 print_trace API.
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... | Prints stack trace for current exceptions chain. | "Prints stack trace for current exceptions chain." | 32 | false | ilgarm/pyzimbra | print_trace | 13,813 | |
LDU_FT/yunpian/yunpian-python-sdk/update_voice_notify | LDU_FT | [
"<BEGIN>\n## `update_voice_notify`",
"修改语音通知模版",
" 注意:模板成功修改之后需要重新审核才能使用!同时提醒您如果修改了变量,务必重新测试,以免替换出错!\n 参数:\n 参数名 类型 是否必须 描述 示例\n apikey String 是 用户唯一标识 9b11127a9701975c734b8aee81ee3526\n tpl_id Long 是 模板id,64位长整形。指定id时返回id对应的模板。未指定时返回所有模板 95... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_voice_notify 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 update_voice_notify 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... | 修改语音通知模版
注意:模板成功修改之后需要重新审核才能使用!同时提醒您如果修改了变量,务必重新测试,以免替换出错!
参数:
参数名 类型 是否必须 描述 示例
apikey String 是 用户唯一标识 9b11127a9701975c734b8aee81ee3526
tpl_id Long 是 模板id,64位长整形。指定id时返回id对应的模板。未指定时返回所有模板 9527
tpl_content String 是 模板i... | "修改语音通知模版\n \n 注意:模板成功修改之后需要重新审核才能使用!同时提醒您如果修改了变量,务必重新测试,以免替换出错!\n 参数:\n 参数名 类型 是否必须 描述 示例\n apikey String 是 用户唯一标识 9b11127a9701975c734b8aee81ee3526\n tpl_id Long 是 模板id,64位长整形。指定id时返回id对应的模板。未指定时返回所有模板 9527\n tpl_content String ... | 62 | false | yunpian/yunpian-python-sdk | update_voice_notify | 13,814 | |
LDU_FT/glue-viz/echo/ignore_callback | LDU_FT | [
"<BEGIN>\n## `add_callback`",
"Attach a callback function to a property in an instance",
" Parameters\n ----------\n instance\n The instance to add the callback to\n prop : str\n Name of callback property in `instance`\n callback : func\n The callback function to add\n ech... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ignore_callback API.
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 ignore_callback API.
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... | Temporarily ignore any callbacks from one or more callback properties
This is a context manager. Within the context block, no callbacks will be
issued. In contrast with :func:`~echo.delay_callback`, no callbakcs will be
called on exiting the context manager
Parameters
----------
instance
... | "Temporarily ignore any callbacks from one or more callback properties\n\n This is a context manager. Within the context block, no callbacks will be\n issued. In contrast with :func:`~echo.delay_callback`, no callbakcs will be\n called on exiting the context manager\n\n Parameters\n ----------\n insta... | 88 | false | glue-viz/echo | ignore_callback | 13,815 | |
LDU_FT/panzarino/mlbgame/box_score | LDU_FT | [
"<BEGIN>\n## `setobjattr`",
"Sets an object attribute with the correct data type.\n<END>",
"<BEGIN>\n## `get_scoreboard`",
"Return the game file for a certain day matching certain criteria.\n<END>",
"<BEGIN>\n## `get_box_score`",
"Return the box score file of a game with matching id.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the box_score API.
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 box_score API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return box score for game matching the game id. | "Return box score for game matching the game id." | 66 | false | panzarino/mlbgame | box_score | 13,816 | |
LDU_FT/rytilahti/python-songpal/listen_notifications | LDU_FT | [
"<BEGIN>\n## `make`",
"Create a container.",
" Reports extra keys as well as missing ones.\n Thanks to habnabit for the idea!\n<END>",
"<BEGIN>\n## `create_post_request`",
"Call the given method over POST.",
" :param method: Name of the method\n :param params: dict of parameters\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listen_notifications 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 listen_notifications API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Listen for notifications from the device forever.
Use :func:on_notification: to register what notifications to listen to. | "Listen for notifications from the device forever.\n\n Use :func:on_notification: to register what notifications to listen to." | 86 | false | rytilahti/python-songpal | listen_notifications | 13,817 | |
LDU_FT/openthread/openthread/getMAC | 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 getMAC API.
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 getMAC API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | get one specific type of MAC address
currently OpenThread only supports Random MAC address
Args:
bType: indicate which kind of MAC address is required
Returns:
specific type of MAC address | "get one specific type of MAC address\n currently OpenThread only supports Random MAC address\n\n Args:\n bType: indicate which kind of MAC address is required\n\n Returns:\n specific type of MAC address" | 403 | false | openthread/openthread | getMAC | 13,818 | |
LDU_FT/textX/textX/get_children_of_type | LDU_FT | [
"<BEGIN>\n## `needs_to_be_resolved`",
"This function determines, if a reference (CrossReference) needs to be\n resolved or not (while creating the model, while resolving references).",
" Args:\n parent_obj: the object containing the attribute to be resolved.\n attr_name: the attribute identi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_children_of_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_children_of_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns a list of all model elements of type 'typ' starting from model
element 'root'. The search process will follow containment links only.
Non-containing references shall not be followed.
Args:
typ(str or python class): The type of the model object we are
looking for.
root (m... | "Returns a list of all model elements of type 'typ' starting from model\n element 'root'. The search process will follow containment links only.\n Non-containing references shall not be followed.\n\n Args:\n typ(str or python class): The type of the model object we are\n looking for.\n ... | 140 | false | textX/textX | get_children_of_type | 13,819 | |
LDU_FT/etingof/pyasn1/subtype | LDU_FT | [
"<BEGIN>\n## `isSameTypeWith`",
"Examine |ASN.1| type for equality with other ASN.1 type.",
" ASN.1 tags (:py:mod:`~pyasn1.type.tag`) and constraints\n (:py:mod:`~pyasn1.type.constraint`) are examined when carrying\n out ASN.1 types comparison.",
" Python class inheritance relation... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subtype API.
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 subtype API.
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 specialization of |ASN.1| schema object.
The `subtype()` method accepts the same set arguments as |ASN.1|
class takes on instantiation except that all parameters
of the `subtype()` method are optional.
With the exception of the arguments described below, the rest of
su... | "Create a specialization of |ASN.1| schema object.\n\n The `subtype()` method accepts the same set arguments as |ASN.1|\n class takes on instantiation except that all parameters\n of the `subtype()` method are optional.\n\n With the exception of the arguments described below, the rest of\n ... | 239 | false | etingof/pyasn1 | subtype | 13,820 | |
LDU_FT/KimiNewt/pyshark/parse_packets | LDU_FT | [
"<BEGIN>\n## `get_field`",
"Gets the XML field object of the given name.\n<END>",
"<BEGIN>\n## `get_field_value`",
"Tries getting the value of the given field.\n Tries it in the following order: show (standard nice display), value (raw value), showname (extended nice display).",
" :param name:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_packets API.
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_packets API.
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... | Parses binary packets and return a list of parsed packets.
DOES NOT CLOSE tshark. It must be closed manually by calling close() when you're done
working with it. | "Parses binary packets and return a list of parsed packets.\n\n DOES NOT CLOSE tshark. It must be closed manually by calling close() when you're done\n working with it." | 91 | false | KimiNewt/pyshark | parse_packets | 13,821 | |
LDU_FT/SpotlightData/preprocessing/create_sentence_list | LDU_FT | [
"<BEGIN>\n## `correct_word`",
"Finds all valid one and two letter corrections for word_string, returning the word\n with the highest relative probability as type str.\n<END>",
"<BEGIN>\n## `find_candidates`",
"Finds all potential words word_string could have intended to mean. If a word is not incorrectly\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_sentence_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_sentence_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.
... | Splits text_string into a list of sentences based on NLTK's english.pickle tokenizer, and
returns said list as type list of str.
Keyword argument:
- text_string: string instance
Exceptions raised:
- InputError: occurs should a non-string argument be passed | "Splits text_string into a list of sentences based on NLTK's english.pickle tokenizer, and\n returns said list as type list of str.\n\n Keyword argument:\n\n - text_string: string instance\n\n Exceptions raised:\n\n - InputError: occurs should a non-string argument be passed" | 106 | false | SpotlightData/preprocessing | create_sentence_list | 13,822 | |
LDU_FT/pseudo-lang/pseudo/generate | LDU_FT | [
"<BEGIN>\n## `safe_serialize_type`",
"serialize only with letters, numbers and _\n<END>",
"<BEGIN>\n## `generate`",
"generates code based on templates and gen functions\n defined in the <x> lang generator\n<END>",
"<BEGIN>\n## `_parse_template`",
"Pare smart indented templates",
" Takes a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API.
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 generate API.
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 code based on templates and gen functions
defined in the <x> lang generator | "generates code based on templates and gen functions\n defined in the <x> lang generator" | 34 | false | pseudo-lang/pseudo | generate | 13,823 | |
LDU_FT/mattrobenolt/django-sudo/redirect_to_sudo | LDU_FT | [
"<BEGIN>\n## `redirect_to_sudo`",
"Redirects the user to the login page, passing the given 'next' page\n<END>",
"<BEGIN>\n## `sudo_required`",
"Enforces a view to have elevated privileges.\n Should likely be paired with ``@login_required``.",
" >>> @sudo_required\n >>> def secure_page(request):\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the redirect_to_sudo API.
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 redirect_to_sudo API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Redirects the user to the login page, passing the given 'next' page | "Redirects the user to the login page, passing the given 'next' page" | 13 | false | mattrobenolt/django-sudo | redirect_to_sudo | 13,824 | |
LDU_FT/acsone/git-aggregator/setup_logger | LDU_FT | [
"<BEGIN>\n## `init_git_version`",
"r\"\"\"Parse git version string and store the resulting tuple on self.\n :returns: the parsed version tuple\n Only the first 3 digits are kept. This is good enough for the few\n version dependent cases we need, and coarse enough to avoid\n more compli... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_logger API.
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 setup_logger API.
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... | Setup logging for CLI use.
:param log: instance of logger
:type log: :py:class:`Logger` | "Setup logging for CLI use.\n :param log: instance of logger\n :type log: :py:class:`Logger`" | 33 | false | acsone/git-aggregator | setup_logger | 13,825 | |
LDU_FT/michael-lazar/rtv/get_me | LDU_FT | [
"<BEGIN>\n## `refresh_content`",
"Re-download all subscriptions and reset the page index\n<END>",
"<BEGIN>\n## `select_subreddit`",
"Store the selected subreddit and return to the subreddit page\n<END>",
"<BEGIN>\n## `alias_function`",
"Create a RedditContentObject function mapped to a BaseReddit function... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_me API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_me API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Return a LoggedInRedditor object.
Note: This function is only intended to be used with an 'identity'
providing OAuth2 grant. | "Return a LoggedInRedditor object.\n\n Note: This function is only intended to be used with an 'identity'\n providing OAuth2 grant." | 919 | false | michael-lazar/rtv | get_me | 13,826 | |
LDU_FT/ioos/cc-plugin-ncei/check_timeseries_id | LDU_FT | [
"<BEGIN>\n## `check_timeseries_id`",
"Checks that if a variable exists for the time series id it has the appropriate attributes",
" :param netCDF4.Dataset dataset: An open netCDF dataset\n<END>",
"<BEGIN>\n## `check_recommended_attributes`",
"Feature type specific check of global recommended attribut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_timeseries_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_timeseries_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.
T... | Checks that if a variable exists for the time series id it has the appropriate attributes
:param netCDF4.Dataset dataset: An open netCDF dataset | "Checks that if a variable exists for the time series id it has the appropriate attributes\n\n :param netCDF4.Dataset dataset: An open netCDF dataset" | 134 | false | ioos/cc-plugin-ncei | check_timeseries_id | 13,827 | |
LDU_FT/harvard-nrg/yaxil/has | LDU_FT | [
"<BEGIN>\n## `splitarg`",
"This function will split arguments separated by spaces or commas \n to be backwards compatible with the original ArcGet command line tool\n<END>",
"<BEGIN>\n## `search`",
"Search for DICOM files within a given directory and receive back a \n dictionary of {StudyInstanceUID: {S... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has API.
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 has API.
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... | Test if a project contains any items of a particular xsi:type.
Example:
>>> import yaxil
>>> auth = yaxil.XnatAuth(url='...', username='...', password='...')
>>> yaxil.has(auth, 'neuroinfo:extendedboldqc', project='MyProject')
:param auth: XNAT authentication
:type auth: :mod:`yaxi... | "Test if a project contains any items of a particular xsi:type.\n\n Example:\n >>> import yaxil\n >>> auth = yaxil.XnatAuth(url='...', username='...', password='...')\n >>> yaxil.has(auth, 'neuroinfo:extendedboldqc', project='MyProject')\n\n :param auth: XNAT authentication\n :type auth: :... | 71 | false | harvard-nrg/yaxil | has | 13,828 | |
LDU_FT/RI-imaging/qpimage/clear_bg | LDU_FT | [
"<BEGIN>\n## `check`",
"Checks various properties of a :class:`qpimage.core.QPImage` instance",
" Parameters\n ----------\n qpi_or_h5file: qpimage.core.QPImage or str\n A QPImage object or a path to an hdf5 file\n checks: list of str\n Which checks to perform (\"attributes\" and/or \"b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_bg API.
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 clear_bg API.
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... | Clear background correction
Parameters
----------
which_data: str or list of str
From which type of data to remove the background
information. The list contains either "amplitude",
"phase", or both.
keys: str or list of str
Which type of b... | "Clear background correction\n\n Parameters\n ----------\n which_data: str or list of str\n From which type of data to remove the background\n information. The list contains either \"amplitude\",\n \"phase\", or both.\n keys: str or list of str\n W... | 115 | false | RI-imaging/qpimage | clear_bg | 13,829 | |
LDU_FT/plandes/actioncli/populate | LDU_FT | [
"<BEGIN>\n## `populate`",
"Set attributes in ``obj`` with ``setattr`` from the all values in\n ``section``.\n<END>",
"<BEGIN>\n## `_get_calling_module`",
"Get the last module in the call stack that is not this module or ``None`` if\n the call originated from this module.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate API.
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 populate API.
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... | Set attributes in ``obj`` with ``setattr`` from the all values in
``section``. | "Set attributes in ``obj`` with ``setattr`` from the all values in\n ``section``." | 67 | false | plandes/actioncli | populate | 13,830 | |
LDU_FT/harlowja/failure/pformat | LDU_FT | [
"<BEGIN>\n## `match_modules`",
"Creates a matcher that matches a list/set/tuple of allowed modules.\n<END>",
"<BEGIN>\n## `match_classes`",
"Creates a matcher that matches a list/tuple of allowed classes.\n<END>",
"<BEGIN>\n## `combine_or`",
"Combines more than one matcher together (first that matches win... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pformat API.
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 pformat API.
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... | Pretty formats the failure object into a string. | "Pretty formats the failure object into a string." | 39 | false | harlowja/failure | pformat | 13,831 | |
LDU_FT/nephila/djangocms-page-tags/get_cache_key | LDU_FT | [
"<BEGIN>\n## `get_cache_key`",
"Create the cache key for the current page and tag type\n<END>",
"<BEGIN>\n## `get_page_tags`",
"Retrieves all the tags for a Page instance.",
" :param page: a Page instance",
" :return: list or queryset of attached tags\n :type: List\n<END>",
"<BEGIN>\n## `page_h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cache_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cache_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 ext... | Create the cache key for the current page and tag type | "Create the cache key for the current page and tag type" | 26 | false | nephila/djangocms-page-tags | get_cache_key | 13,832 | |
LDU_FT/sdispater/eloquent/purge | LDU_FT | [
"<BEGIN>\n## `get_last`",
"Get the last migration batch.",
" :rtype: list\n<END>",
"<BEGIN>\n## `compile_insert`",
"Compile an insert SQL statement",
" :param query: A QueryBuilder instance\n :type query: QueryBuilder",
" :param values: The values to insert\n :type val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purge API.
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 purge API.
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... | Disconnect from the given database and remove from local cache
:param name: The name of the connection
:type name: str
:rtype: None | "Disconnect from the given database and remove from local cache\n\n :param name: The name of the connection\n :type name: str\n\n :rtype: None" | 498 | false | sdispater/eloquent | purge | 13,833 | |
LDU_FT/Metatab/metapack/update_mt_arg | LDU_FT | [
"<BEGIN>\n## `_load_resource`",
"The CSV package has no reseources, so we just need to resolve the URLs to them. Usually, the\n CSV package is built from a file system ackage on a publically acessible server.\n<END>",
"<BEGIN>\n## `set_s3_profile`",
"Load the credentials for an s3 profile into envi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_mt_arg API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_mt_arg API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return a new memo with a new metatabfile argument | "Return a new memo with a new metatabfile argument" | 261 | false | Metatab/metapack | update_mt_arg | 13,834 | |
LDU_FT/adaptive-learning/proso-apps/get_reference_fields | LDU_FT | [
"<BEGIN>\n## `process_answer`",
"This method is used during the answer streaming and is called after the\n predictive model for each answer.",
" Args:\n user (int):\n identifier of ther user answering the question\n asked (int):\n identifier of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reference_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reference_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get all Django model fields which reference the Item model. | "Get all Django model fields which reference the Item model." | 276 | false | adaptive-learning/proso-apps | get_reference_fields | 13,835 | |
LDU_FT/tkem/uritools/issamedoc | LDU_FT | [
"<BEGIN>\n## `urijoin`",
"Convert a URI reference relative to a base URI to its target URI\n string.\n<END>",
"<BEGIN>\n## `uridefrag`",
"Remove an existing fragment component from a URI reference string.\n<END>",
"<BEGIN>\n## `geturi`",
"Return the recombined version of the original URI as a string.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the issamedoc API.
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 issamedoc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return :const:`True` if this is a same-document reference. | "Return :const:`True` if this is a same-document reference." | 45 | false | tkem/uritools | issamedoc | 13,836 | |
LDU_FT/PythonCharmers/python-future/is_protected_type | LDU_FT | [
"<BEGIN>\n## `time2isoz`",
"Return a string representing time in seconds since epoch, t.",
" If the function is called without an argument, it will use the current\n time.",
" The format of the returned string is like \"YYYY-MM-DD hh:mm:ssZ\",\n representing Universal Time (UTC, aka GMT). An exam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_protected_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_protected_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Determine if the object instance is of a protected type.
Objects of protected types are preserved as-is when passed to
force_text(strings_only=True). | "Determine if the object instance is of a protected type.\n\n Objects of protected types are preserved as-is when passed to\n force_text(strings_only=True)." | 1,185 | true | PythonCharmers/python-future | is_protected_type | 13,837 | |
LDU_FT/sryza/spark-timeseries/to_instants_dataframe | LDU_FT | [
"<BEGIN>\n## `fit_model`",
"Fits an EWMA model to a time series. Uses the first point in the time series as a starting\n value. Uses sum squared error as an objective function to optimize to find smoothing parameter\n The model for EWMA is recursively defined as S_t = (1 - a) * X_t + a * S_{t-1}, where\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_instants_dataframe 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 to_instants_dataframe 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 DataFrame of instants, each a horizontal slice of this TimeSeriesRDD at a time.
This essentially transposes the TimeSeriesRDD, producing a DataFrame where each column
is a key form one of the rows in the TimeSeriesRDD. | "Returns a DataFrame of instants, each a horizontal slice of this TimeSeriesRDD at a time.\n\n This essentially transposes the TimeSeriesRDD, producing a DataFrame where each column\n is a key form one of the rows in the TimeSeriesRDD." | 137 | false | sryza/spark-timeseries | to_instants_dataframe | 13,838 | |
LDU_FT/lehins/python-wepay/__add_bank | LDU_FT | [
"<BEGIN>\n## `authorize`",
"Documentation: `/oauth2/authorize\n <https://www.wepay.com/developer/reference/oauth2#authorize>`_.",
" .. note::",
" This is not an API call but an actual uri that you send the user to.\n<END>",
"<BEGIN>\n## `__token`",
"Call documentation: `/oauth2/tok... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __add_bank API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __add_bank API.
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... | Call documentation: `/account/add_bank
<https://www.wepay.com/developer/reference/account-2011-01-15#add_bank>`_, plus
extra keyword parameters:
:keyword str access_token: will be used instead of instance's
``access_token``, with ``batch_mode=True`` will set `authorization`
... | "Call documentation: `/account/add_bank\n <https://www.wepay.com/developer/reference/account-2011-01-15#add_bank>`_, plus\n extra keyword parameters:\n \n :keyword str access_token: will be used instead of instance's\n ``access_token``, with ``batch_mode=True`` will set `authorizat... | 269 | false | lehins/python-wepay | __add_bank | 13,839 | |
LDU_FT/ozgurgunes/django-manifest/delete_expired_users | LDU_FT | [
"<BEGIN>\n## `create_user`",
"A simple wrapper that creates a new :class:`User`.",
" :param username:\n String containing the username of the new user.",
" :param email:\n String containing the email address of the new user.",
" :param password:\n String... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_expired_users 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 delete_expired_users API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Checks for expired users and delete's the ``User`` associated with
it. Skips if the user ``is_staff``.
:return: A list containing the deleted users. | "Checks for expired users and delete's the ``User`` associated with\n it. Skips if the user ``is_staff``.\n\n :return: A list containing the deleted users." | 121 | false | ozgurgunes/django-manifest | delete_expired_users | 13,840 | |
LDU_FT/Workiva/furious/add | LDU_FT | [
"<BEGIN>\n## `_handle_task`",
"Pass request info to the async framework.\n<END>",
"<BEGIN>\n## `_init`",
"Initialize the furious context and registry.",
" NOTE: Do not directly run this method.\n<END>",
"<BEGIN>\n## `run_job`",
"Takes an async object and executes its job.\n<END>",
"<BEGIN>\n## `_ha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
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 add API.
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... | Add an Async job to this context.
Takes an Async object or the arguments to construct an Async
object as arguments. Returns the newly added Async object. | "Add an Async job to this context.\n\n Takes an Async object or the arguments to construct an Async\n object as arguments. Returns the newly added Async object." | 211 | false | Workiva/furious | add | 13,841 | |
LDU_FT/itamarst/crochet/_mx | LDU_FT | [
"<BEGIN>\n## `register`",
"Register an EventualResult.",
" May be called in any thread.\n<END>",
"<BEGIN>\n## `stop`",
"Indicate no more results will get pushed into EventualResults, since\n the reactor has stopped.",
" This should be called in the reactor thread.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _mx API.
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 _mx API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Return Deferred that fires with a list of (priority, MX domain) tuples for
a given domain. | "Return Deferred that fires with a list of (priority, MX domain) tuples for\n a given domain." | 61 | false | itamarst/crochet | _mx | 13,842 | |
LDU_FT/ornlneutronimaging/ImagingReso/add_layer | LDU_FT | [
"<BEGIN>\n## `add_layer`",
"provide another way to define the layers (stack)",
" Parameters:\n ===========\n formula: string\n ex: 'CoAg2'\n ex: 'Al'\n thickness: float (in mm)\n density: float (g/cm3)\n<END>",
"<BEGIN>\n## `get_isotopic_ratio`",
"retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_layer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_layer API.
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... | provide another way to define the layers (stack)
Parameters:
===========
formula: string
ex: 'CoAg2'
ex: 'Al'
thickness: float (in mm)
density: float (g/cm3) | "provide another way to define the layers (stack)\n\n Parameters:\n ===========\n formula: string\n ex: 'CoAg2'\n ex: 'Al'\n thickness: float (in mm)\n density: float (g/cm3)" | 114 | false | ornlneutronimaging/ImagingReso | add_layer | 13,843 | |
LDU_FT/EmbodiedCognition/py-c3d/_as_array | LDU_FT | [
"<BEGIN>\n## `write`",
"Write binary header data to a file handle.",
" This method writes exactly 512 bytes to the beginning of the given file\n handle.",
" Parameters\n ----------\n handle : file handle\n The given handle will be reset to 0 using `seek` and then ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _as_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _as_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 extract... | Unpack the raw bytes of this param using the given data format. | "Unpack the raw bytes of this param using the given data format." | 61 | false | EmbodiedCognition/py-c3d | _as_array | 13,844 | |
LDU_FT/user-cont/conu/_wrapper | LDU_FT | [
"<BEGIN>\n## `clean`",
"remove the directory we operated on",
" :return: None\n<END>",
"<BEGIN>\n## `initialize`",
"create the directory if needed and configure it",
" :return: None\n<END>",
"<BEGIN>\n## `_set_selinux_context`",
"Set SELinux context or fields using chcon program. Raises ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wrapper API.
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 _wrapper API.
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... | _wrapper checks return status of Probe.fnc and provides the result for process managing
:param q: Queue for function results
:param start: Time of function run (used for logging)
:return: Return value or Exception | "_wrapper checks return status of Probe.fnc and provides the result for process managing\n\n :param q: Queue for function results\n :param start: Time of function run (used for logging)\n :return: Return value or Exception" | 487 | false | user-cont/conu | _wrapper | 13,845 | |
LDU_FT/sony/nnabla/imread | LDU_FT | [
"<BEGIN>\n## `convert`",
"All functions are replaced with the same `new` function.",
" Args:\n vroot (:obj:`Variable`): NNabla Variable\n entry_variables (:obj:`Variable`): Entry variable from which the conversion starts.\n<END>",
"<BEGIN>\n## `convert`",
"All functions are repl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the imread API.
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 imread API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Read image by cv2 module.
Args:
path (str or 'file object'): File path or object to read.
grayscale (bool):
size (tupple of int):
(width, height).
If None, output img shape depends on the files to read.
channel_first (bool):
This argument specifie... | "Read image by cv2 module.\n\n Args:\n path (str or 'file object'): File path or object to read.\n grayscale (bool):\n size (tupple of int):\n (width, height).\n If None, output img shape depends on the files to read.\n channel_first (bool):\n This argumen... | 870 | false | sony/nnabla | imread | 13,846 | |
LDU_FT/pytroll/trollimage/_rgb2ycbcr | LDU_FT | [
"<BEGIN>\n## `colorize`",
"Colorize a monochromatic array *arr*, based *colors* given for\n *values*. Interpolation is used. *values* must be in ascending order.\n<END>",
"<BEGIN>\n## `palettize`",
"From start *values* apply *colors* to *data*.\n<END>",
"<BEGIN>\n## `set_range`",
"Set the range of the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rgb2ycbcr API.
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 _rgb2ycbcr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Convert the image from RGB mode to YCbCr. | "Convert the image from RGB mode to YCbCr." | 150 | false | pytroll/trollimage | _rgb2ycbcr | 13,847 | |
LDU_FT/sergiocorreia/panflute/doc | 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 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 extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc... | Return the root Doc element (if there is one) | "Return the root Doc element (if there is one)" | 120 | false | sergiocorreia/panflute | doc | 13,848 | |
LDU_FT/mbr/flask-kvsession/unserialize | LDU_FT | [
"<BEGIN>\n## `has_expired`",
"Report if the session key has expired.",
" :param lifetime: A :class:`datetime.timedelta` that specifies the\n maximum age this :class:`SessionID` should be checked\n against.\n :param now: If specified, use this :class:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unserialize API.
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 unserialize API.
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... | Unserializes from a string.
:param string: A string created by :meth:`serialize`. | "Unserializes from a string.\n\n :param string: A string created by :meth:`serialize`." | 22 | false | mbr/flask-kvsession | unserialize | 13,849 | |
LDU_FT/cohorte/cohorte-herald/_make_json_result | LDU_FT | [
"<BEGIN>\n## `main`",
"Runs the framework",
" :param http_port: HTTP port to listen to\n :param peer_name: Name of the peer\n :param node_name: Name (also, UID) of the node hosting the peer\n :param app_id: Application ID\n<END>",
"<BEGIN>\n## `_get_link`",
"Returns a link to the given peer",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_json_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_json_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | An utility method to prepare a JSON result string, usable by the
SignalReceiver
:param code: A HTTP Code
:param message: An associated message | "An utility method to prepare a JSON result string, usable by the\n SignalReceiver\n\n :param code: A HTTP Code\n :param message: An associated message" | 110 | false | cohorte/cohorte-herald | _make_json_result | 13,850 | |
LDU_FT/insilichem/ommprotocol/from_amber | LDU_FT | [
"<BEGIN>\n## `protocol`",
"Run all the stages in protocol",
" Parameters\n ----------\n handler : SystemHandler\n Container of initial conditions of simulation",
" cfg : dict\n Imported YAML file.\n<END>",
"<BEGIN>\n## `run`",
"Launch MD simulation, which may consist of:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_amber API.
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 from_amber API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Loads Amber Parm7 parameters and topology file
Parameters
----------
path : str
Path to *.prmtop or *.top file
positions : simtk.unit.Quantity
Atomic positions
Returns
-------
prmtop : SystemHandler
SystemHandler with topology | "Loads Amber Parm7 parameters and topology file\n\n Parameters\n ----------\n path : str\n Path to *.prmtop or *.top file\n positions : simtk.unit.Quantity\n Atomic positions\n\n Returns\n -------\n prmtop : SystemHandler\n SystemHandler ... | 84 | false | insilichem/ommprotocol | from_amber | 13,851 | |
LDU_FT/praw-dev/prawcore/refresh | LDU_FT | [
"<BEGIN>\n## `receive_connection`",
"Wait for and then return a connected socket..",
" Opens a TCP connection on port 8080, and waits for a single client.\n<END>",
"<BEGIN>\n## `send_message`",
"Send message to client and close the connection.\n<END>",
"<BEGIN>\n## `main`",
"Provide the program's ent... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh API.
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 refresh API.
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... | Obtain a new access token from the refresh_token. | "Obtain a new access token from the refresh_token." | 51 | false | praw-dev/prawcore | refresh | 13,852 | |
LDU_FT/atarashansky/self-assembling-manifold/louvain_clustering | LDU_FT | [
"<BEGIN>\n## `preprocess_data`",
"Log-normalizes and filters the expression data.",
" Parameters\n ----------",
" div : float, optional, default 1\n The factor by which the gene expression will be divided prior to\n log normalization.",
" downsample : float,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the louvain_clustering 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 louvain_clustering 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... | Runs Louvain clustering using the vtraag implementation. Assumes
that 'louvain' optional dependency is installed.
Parameters
----------
res - float, optional, default 1
The resolution parameter which tunes the number of clusters Louvain
finds.
method - s... | "Runs Louvain clustering using the vtraag implementation. Assumes\n that 'louvain' optional dependency is installed.\n\n Parameters\n ----------\n res - float, optional, default 1\n The resolution parameter which tunes the number of clusters Louvain\n finds.\n\n ... | 125 | false | atarashansky/self-assembling-manifold | louvain_clustering | 13,853 | |
LDU_FT/jaraco/irc/ip_quad_to_numstr | LDU_FT | [
"<BEGIN>\n## `handle_nick`",
"Handle the initial setting of the user's nickname and nick changes.\n<END>",
"<BEGIN>\n## `handle_user`",
"Handle the USER command which identifies the user to the server.\n<END>",
"<BEGIN>\n## `handle_join`",
"Handle the JOINing of a user to a channel. Valid channel names st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ip_quad_to_numstr API.
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 ip_quad_to_numstr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Convert an IP address string (e.g. '192.168.0.1') to an IP
number as a base-10 integer given in ASCII representation.
>>> ip_quad_to_numstr('192.168.0.1')
'3232235521' | "Convert an IP address string (e.g. '192.168.0.1') to an IP\n number as a base-10 integer given in ASCII representation.\n\n >>> ip_quad_to_numstr('192.168.0.1')\n '3232235521'" | 193 | false | jaraco/irc | ip_quad_to_numstr | 13,854 | |
LDU_FT/loganasherjones/yapconf/convert_config_value | LDU_FT | [
"<BEGIN>\n## `change_case`",
"Changes the case to snake/kebab case depending on the separator.",
" As regexes can be confusing, I'll just go through this line by line as an\n example with the following string: ' Foo2Boo_barBaz bat'",
" 1. Remove whitespaces from beginning/end. => 'Foo2Boo_barBaz bat-... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_config_value 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 convert_config_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Converts all 'Truthy' values to True and 'Falsy' values to False.
Args:
value: Value to convert
label: Label of the config which this item was found.
Returns: | "Converts all 'Truthy' values to True and 'Falsy' values to False.\n\n Args:\n value: Value to convert\n label: Label of the config which this item was found.\n\n Returns:" | 139 | false | loganasherjones/yapconf | convert_config_value | 13,855 | |
LDU_FT/jaijuneja/PyTLDR/tokenize_words | LDU_FT | [
"<BEGIN>\n## `summarize`",
"Implements the TextRank summarization algorithm, which follows closely to the PageRank algorithm for ranking\n web pages.",
" :param text: a string of text to be summarized, path to a text file, or URL starting with http\n :param length: the length of the output ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize_words API.
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 tokenize_words API.
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... | Tokenize an input string into a list of words (with punctuation removed). | "Tokenize an input string into a list of words (with punctuation removed)." | 30 | false | jaijuneja/PyTLDR | tokenize_words | 13,856 | |
LDU_FT/vanheeringen-lab/gimmemotifs/pwm_max_score | LDU_FT | [
"<BEGIN>\n## `threshold`",
"Calculate motif score threshold for a given FPR.\n<END>",
"<BEGIN>\n## `values_to_labels`",
"Convert two arrays of values to an array of labels and an array of scores.",
" Parameters\n ----------\n fg_vals : array_like\n The list of values for the positive set.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pwm_max_score API.
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 pwm_max_score API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return the maximum PWM score.
Returns
-------
score : float
Maximum PWM score. | "Return the maximum PWM score.\n\n Returns\n -------\n score : float\n Maximum PWM score." | 677 | false | vanheeringen-lab/gimmemotifs | pwm_max_score | 13,857 | |
LDU_FT/qubole/qds-sdk-py/_parse_cluster_manage_command | LDU_FT | [
"<BEGIN>\n## `_parse_list`",
"Parse command line arguments to construct a dictionary of cluster\n parameters that can be used to determine which clusters to list.",
" Args:\n `args`: sequence of arguments",
" Returns:\n Dictionary that can be used to determine which ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_cluster_manage_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_cluster_manage_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Parse command line arguments for cluster manage commands. | "Parse command line arguments for cluster manage commands." | 316 | false | qubole/qds-sdk-py | _parse_cluster_manage_command | 13,858 | |
LDU_FT/PythonCharmers/python-future/parse_qsl | LDU_FT | [
"<BEGIN>\n## `time2isoz`",
"Return a string representing time in seconds since epoch, t.",
" If the function is called without an argument, it will use the current\n time.",
" The format of the returned string is like \"YYYY-MM-DD hh:mm:ssZ\",\n representing Universal Time (UTC, aka GMT). An exam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_qsl API.
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 parse_qsl API.
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... | Parse a query given as a string argument.
Arguments:
qs: percent-encoded query string to be parsed
keep_blank_values: flag indicating whether blank values in
percent-encoded queries should be treated as blank strings. A
true value indicates that blanks should be retained as blank
... | "Parse a query given as a string argument.\n\n Arguments:\n\n qs: percent-encoded query string to be parsed\n\n keep_blank_values: flag indicating whether blank values in\n percent-encoded queries should be treated as blank strings. A\n true value indicates that blanks should be retained as blan... | 1,185 | true | PythonCharmers/python-future | parse_qsl | 13,859 | |
LDU_FT/briancappello/py-yaml-fixtures/random_model | LDU_FT | [
"<BEGIN>\n## `create_or_update`",
"Create or update a model.",
" :param identifier: An object with :attr:`class_name` and :attr:`key`\n attributes\n :param data: A dictionary keyed by column name, with values being the\n converted values to set on the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Get a random model identifier by class name. For example::
# db/fixtures/Category.yml
{% for i in range(0, 10) %}
category{{ i }}:
name: {{ faker.name() }}
{% endfor %}
# db/fixtures/Post.yml
a_blog_post:
category: {{ random_model('Category') }}
... | "Get a random model identifier by class name. For example::\n\n # db/fixtures/Category.yml\n {% for i in range(0, 10) %}\n category{{ i }}:\n name: {{ faker.name() }}\n {% endfor %}\n\n # db/fixtures/Post.yml\n a_blog_post:\n category: {{ random_model('Cat... | 31 | false | briancappello/py-yaml-fixtures | random_model | 13,860 | |
LDU_FT/pletzer/pnumpy/gdaOnes | LDU_FT | [
"<BEGIN>\n## `getStringPartition`",
"Get the string representation of the current partition\n @return string like \":-1,0:2\"\n<END>",
"<BEGIN>\n## `getPrimeFactors`",
"Get all the prime factor of given integer\n @param n integer\n @return list [1, ..., n]\n<END>",
"<BEGIN>\n## `getNeighborProc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gdaOnes API.
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 gdaOnes API.
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... | ghosted distributed array one constructor
@param shape the shape of the array
@param dtype the numpy data type
@param numGhosts the number of ghosts (>= 0) | "ghosted distributed array one constructor\n @param shape the shape of the array\n @param dtype the numpy data type\n @param numGhosts the number of ghosts (>= 0)" | 54 | false | pletzer/pnumpy | gdaOnes | 13,861 | |
LDU_FT/linode/linode_api4-python/instance_create | LDU_FT | [
"<BEGIN>\n## `nodes`",
"This is a special derived_class relationship because NodeBalancerNode is the\n only api object that requires two parent_ids\n<END>",
"<BEGIN>\n## `load_ssl_data`",
"A convenience method that loads a cert and a key from files and sets them\n on this object. This can make ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the instance_create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the instance_create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Creates a new Linode Instance. This function has several modes of operation:
**Create an Instance from an Image**
To create an Instance from an :any:`Image`, call `instance_create` with
a :any:`Type`, a :any:`Region`, and an :any:`Image`. All three of
these fields may be provided as e... | "Creates a new Linode Instance. This function has several modes of operation:\n\n **Create an Instance from an Image**\n\n To create an Instance from an :any:`Image`, call `instance_create` with\n a :any:`Type`, a :any:`Region`, and an :any:`Image`. All three of\n these fields may be provid... | 232 | false | linode/linode_api4-python | instance_create | 13,862 | |
LDU_FT/ANTsX/ANTsPy/smooth_image | LDU_FT | [
"<BEGIN>\n## `smooth_image`",
"Smooth an image",
" ANTsR function: `smoothImage`",
" Arguments\n ---------\n image \n Image to smooth",
" sigma \n Smoothing factor. Can be scalar, in which case the same sigma is applied to each dimension, or a vector of length dim(inimage) t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smooth_image API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smooth_image API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Smooth an image
ANTsR function: `smoothImage`
Arguments
---------
image
Image to smooth
sigma
Smoothing factor. Can be scalar, in which case the same sigma is applied to each dimension, or a vector of length dim(inimage) to specify a unique smoothness for each dimension.... | "Smooth an image\n\n ANTsR function: `smoothImage`\n\n Arguments\n ---------\n image \n Image to smooth\n \n sigma \n Smoothing factor. Can be scalar, in which case the same sigma is applied to each dimension, or a vector of length dim(inimage) to specify a unique smoothness for each... | 1,176 | true | ANTsX/ANTsPy | smooth_image | 13,863 | |
LDU_FT/horejsek/python-webdriverwrapper/click | LDU_FT | [
"<BEGIN>\n## `expected_error_page`",
"Decorator expecting defined error page at the end of test method. As param\n use what :py:meth:`~.WebdriverWrapperErrorMixin.get_error_page`\n returns.",
" .. versionadded:: 2.0\n Before this decorator was called ``ShouldBeErrorPage``.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the click API.
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 click API.
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... | When you not pass any argument, it clicks on current element. If you
pass some arguments, it works as following snippet. For more info what
you can pass check out method :py:meth:`~._WebdriverBaseWrapper.get_elm`.
.. code-block:: python
driver.get_elm('someid').click() | "When you not pass any argument, it clicks on current element. If you\n pass some arguments, it works as following snippet. For more info what\n you can pass check out method :py:meth:`~._WebdriverBaseWrapper.get_elm`.\n\n .. code-block:: python\n\n driver.get_elm('someid').click()" | 120 | false | horejsek/python-webdriverwrapper | click | 13,864 | |
LDU_FT/amzn/ion-python/_struct_or_lob_handler | LDU_FT | [
"<BEGIN>\n## `local_symbol_table`",
"Constructs a local symbol table.",
" Args:\n imports (Optional[SymbolTable]): Shared symbol tables to import.\n symbols (Optional[Iterable[Unicode]]): Initial local symbols to add.",
" Returns:\n SymbolTable: A mutable local symbol table with the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _struct_or_lob_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _struct_or_lob_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Handles tokens that begin with an open brace. | "Handles tokens that begin with an open brace." | 384 | false | amzn/ion-python | _struct_or_lob_handler | 13,865 | |
LDU_FT/gouthambs/Flask-Blogging/save_post | LDU_FT | [
"<BEGIN>\n## `init_app`",
"Initialize the engine.",
" :param app: The app to use\n :type app: Object\n :param storage: The blog storage instance that implements the\n :type storage: Object\n :param cache: (Optional) A Flask-Cache object to enable caching\n :type cache: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Persist the blog post data. If ``post_id`` is ``None`` or ``post_id``
is invalid, the post must be inserted into the storage. If ``post_id``
is a valid id, then the data must be updated.
:param title: The title of the blog post
:type title: str
:param text: The text of the blog ... | "Persist the blog post data. If ``post_id`` is ``None`` or ``post_id``\n is invalid, the post must be inserted into the storage. If ``post_id``\n is a valid id, then the data must be updated.\n\n :param title: The title of the blog post\n :type title: str\n :param text: The text of th... | 53 | false | gouthambs/Flask-Blogging | save_post | 13,866 | |
LDU_FT/spyder-ide/spyder/get_identifiers | LDU_FT | [
"<BEGIN>\n## `set_bracket_matcher_color_scheme`",
"Set color scheme for matched parentheses.\n<END>",
"<BEGIN>\n## `long_banner`",
"Banner for IPython widgets with pylab message\n<END>",
"<BEGIN>\n## `reset_namespace`",
"Reset the namespace by removing all names defined by the user.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_identifiers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_identifiers API.
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... | Split source code into python identifier-like tokens | "Split source code into python identifier-like tokens" | 2,144 | true | spyder-ide/spyder | get_identifiers | 13,867 | |
LDU_FT/lightning-viz/lightning-python/append | LDU_FT | [
"<BEGIN>\n## `enable_ipython`",
"Enable plotting in the iPython notebook.",
" Once enabled, all lightning plots will be automatically produced\n within the iPython notebook. They will also be available on\n your lightning server within the current session.\n<END>",
"<BEGIN>\n## `disable_i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append API.
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 append API.
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 ... | Base method for appending data.
Applies a plot-type specific cleaning operation, then
appends data to the visualization. | "Base method for appending data.\n\n Applies a plot-type specific cleaning operation, then\n appends data to the visualization." | 55 | false | lightning-viz/lightning-python | append | 13,868 | |
LDU_FT/CodeReclaimers/neat-python/configure_new | LDU_FT | [
"<BEGIN>\n## `eval_genome`",
"This function will be run in parallel by ParallelEvaluator. It takes two\n arguments (a single genome and the genome class configuration data) and\n should return one float (that genome's fitness).",
" Note that this function needs to be in module scope for multiprocessin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_new API.
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 configure_new API.
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... | Configure a new genome based on the given configuration. | "Configure a new genome based on the given configuration." | 121 | false | CodeReclaimers/neat-python | configure_new | 13,869 | |
LDU_FT/xflr6/bitsets/index_sets | LDU_FT | [
"<BEGIN>\n## `chunkreverse`",
"Yield integers of dtype bit-length reverting their bit-order.",
" >>> list(chunkreverse([0b10000000, 0b11000000, 0b00000001], 'B'))\n [1, 3, 128]",
" >>> list(chunkreverse([0x8000, 0xC000, 0x0001], 'H'))\n [1, 3, 32768]\n<END>",
"<BEGIN>\n## `pack`",
"Return inte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_sets API.
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 index_sets API.
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 series as list of index set tuples. | "Return the series as list of index set tuples." | 66 | false | xflr6/bitsets | index_sets | 13,870 | |
LDU_FT/datamachine/twx/send_sticker | LDU_FT | [
"<BEGIN>\n## `_ige`",
"Given a key, given an iv, and message\n do whatever operation asked in the operation field.\n Operation will be checked for: \"decrypt\" and \"encrypt\" strings.\n Returns the message encrypted/decrypted.\n message must be a multiple by 16 bytes (for division in 16 byte bloc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_sticker API.
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 send_sticker API.
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... | Send sticker to this peer.
:param sticker: File path to sticker to send.
:param reply: Message object.
:param on_success: Callback to call when call is complete.
:type reply: int or Message | "Send sticker to this peer.\n :param sticker: File path to sticker to send.\n :param reply: Message object.\n :param on_success: Callback to call when call is complete.\n\n :type reply: int or Message" | 94 | false | datamachine/twx | send_sticker | 13,871 | |
LDU_FT/github/octodns/_create_gcloud_zone | LDU_FT | [
"<BEGIN>\n## `compare`",
"Compare zone data between 2 sources.",
" Note: only things supported by both sources will be considered\n<END>",
"<BEGIN>\n## `dump`",
"Dump zone data from the specified source\n<END>",
"<BEGIN>\n## `_equals`",
"Checks whether two records are equal by comparing all field... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_gcloud_zone API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_gcloud_zone API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Creates a google cloud ManagedZone with dns_name, and zone named
derived from it. calls .create() method and returns it.
:param dns_name: fqdn of zone to create
:type dns_name: str
:type return: new google.cloud.dns.ManagedZone | "Creates a google cloud ManagedZone with dns_name, and zone named\n derived from it. calls .create() method and returns it.\n\n :param dns_name: fqdn of zone to create\n :type dns_name: str\n\n :type return: new google.cloud.dns.ManagedZone" | 64 | false | github/octodns | _create_gcloud_zone | 13,872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.