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/push-things/wallabag_api/query | LDU_FT | [
"<BEGIN>\n## `query`",
"Do a query to the System API",
" :param path: url to the API\n :param method: the kind of query to do\n :param params: a dict with all the\n necessary things to query the API\n :return json data\n<END>",
"<BEGIN>\n## `handle_json_response`",
"get th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Do a query to the System API
:param path: url to the API
:param method: the kind of query to do
:param params: a dict with all the
necessary things to query the API
:return json data | "Do a query to the System API\n\n :param path: url to the API\n :param method: the kind of query to do\n :param params: a dict with all the\n necessary things to query the API\n :return json data" | 68 | false | push-things/wallabag_api | query | 19,773 | |
LDU_FT/SBRG/ssbio/add_features_to_nglview | LDU_FT | [
"<BEGIN>\n## `search_ss_bonds`",
"Searches S-S bonds based on distances\n between atoms in the structure (first model only).\n Average distance is 2.05A. Threshold is 3A default.\n Returns iterator with tuples of residues.",
" ADAPTED FROM JOAO RODRIGUES' BIOPYTHON GSOC PROJECT (http... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_features_to_nglview API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_features_to_nglview API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Add select features from the selected SeqProp object to an NGLWidget view object.
Currently parsing for:
* Single residue features (ie. metal binding sites)
* Disulfide bonds
Args:
view (NGLWidget): NGLWidget view object
seqprop (SeqProp): SeqProp object
structprop (StructProp)... | "Add select features from the selected SeqProp object to an NGLWidget view object.\n\n Currently parsing for:\n * Single residue features (ie. metal binding sites)\n * Disulfide bonds\n\n Args:\n view (NGLWidget): NGLWidget view object\n seqprop (SeqProp): SeqProp object\n structprop (S... | 1,487 | true | SBRG/ssbio | add_features_to_nglview | 19,774 | |
LDU_FT/hhatto/autopep8/fix_e304 | LDU_FT | [
"<BEGIN>\n## `continued_indentation`",
"Override pycodestyle's function to provide indentation information.\n<END>",
"<BEGIN>\n## `get_w605_position`",
"workaround get pointing out position by W605.\n<END>",
"<BEGIN>\n## `get_module_imports_on_top_of_file`",
"return import or from keyword position",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_e304 API.
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 fix_e304 API.
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... | Remove blank line following function decorator. | "Remove blank line following function decorator." | 139 | false | hhatto/autopep8 | fix_e304 | 19,775 | |
LDU_FT/PetrochukM/PyTorch-NLP/repackage_hidden | LDU_FT | [
"<BEGIN>\n## `imdb_dataset`",
"Load the IMDB dataset (Large Movie Review Dataset v1.0).",
" This is a dataset for binary sentiment classification containing substantially more data than\n previous benchmark datasets. Provided a set of 25,000 highly polar movie reviews for\n training, and 25,000 for tes... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repackage_hidden API.
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 repackage_hidden API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Wraps hidden states in new Tensors, to detach them from their history. | "Wraps hidden states in new Tensors, to detach them from their history." | 261 | false | PetrochukM/PyTorch-NLP | repackage_hidden | 19,776 | |
LDU_FT/dswah/pyGAM/combine | LDU_FT | [
"<BEGIN>\n## `validate_callback_data`",
"wraps a callback's method to pull the desired arguments from the vars dict\n also checks to ensure the method's arguments are in the vars dict",
" Parameters\n ----------\n method : callable",
" Returns\n -------\n validated callable\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine API.
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 combine API.
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... | tool to perform tree search via recursion
useful for developing the grid in a grid search
Parameters
----------
args : list of lists
Returns
-------
list of all the combinations of the elements in the input lists | "tool to perform tree search via recursion\n useful for developing the grid in a grid search\n\n Parameters\n ----------\n args : list of lists\n\n Returns\n -------\n list of all the combinations of the elements in the input lists" | 770 | false | dswah/pyGAM | combine | 19,777 | |
LDU_FT/bfontaine/term2048/getCellStr | LDU_FT | [
"<BEGIN>\n## `adjustColors`",
"Change a few colors depending on the mode to use. The default mode\n doesn't assume anything and avoid using white & black colors. The dark\n mode use white and avoid dark blue while the light mode use black and\n avoid yellow, to give a few examples.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCellStr API.
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 getCellStr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | return a string representation of the cell located at x,y. | "return a string representation of the cell located at x,y." | 28 | false | bfontaine/term2048 | getCellStr | 19,778 | |
LDU_FT/SmartTeleMax/iktomi/build_subreverse | LDU_FT | [
"<BEGIN>\n## `pare`",
"Pare text to have maximum size and add etc to the end if it's\n changed\n<END>",
"<BEGIN>\n## `quoteattrs`",
"Takes dict of attributes and returns their HTML representation\n<END>",
"<BEGIN>\n## `quote_js`",
"Quotes text to be used as JavaScript string in HTML templates. The\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_subreverse API.
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 build_subreverse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | String-based reverse API. Returns subreverse object::
env.root.build_subreverse('user', user_id=1).profile | "String-based reverse API. Returns subreverse object::\n\n env.root.build_subreverse('user', user_id=1).profile" | 196 | false | SmartTeleMax/iktomi | build_subreverse | 19,779 | |
LDU_FT/edwards-lab/libGWAS/load_genotypes | LDU_FT | [
"<BEGIN>\n## `load_genotypes`",
"This really just intializes the file by opening it up.\n<END>",
"<BEGIN>\n## `process_genotypes`",
"Parse pedigree line and remove excluded individuals from geno",
" Translates alleles into numerical genotypes (0, 1, 2) counting\n number of minor alleles.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_genotypes API.
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 load_genotypes API.
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... | Prepares the files for genotype parsing.
:return: None | "Prepares the files for genotype parsing.\n\n :return: None" | 142 | false | edwards-lab/libGWAS | load_genotypes | 19,780 | |
LDU_FT/noobermin/pys/parse_qs | LDU_FT | [
"<BEGIN>\n## `conv`",
"essentially, the generalization of",
" arg if arg else default",
" or",
" func(arg) if arg else default\n<END>",
"<BEGIN>\n## `filelines`",
"read lines from a file into lines...optional strip\n<END>",
"<BEGIN>\n## `parse_utuple`",
"parse a string into a list of a unif... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_qs API.
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 parse_qs API.
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... | helper for parsing a string that can both rx or parsef
which is obstensibly the parsef for rx.
Use parse colors for color tuples. This won't work with
those. | "helper for parsing a string that can both rx or parsef\n which is obstensibly the parsef for rx.\n\n Use parse colors for color tuples. This won't work with\n those." | 37 | false | noobermin/pys | parse_qs | 19,781 | |
LDU_FT/blockadeio/analyst_toolbench/remove_handler | LDU_FT | [
"<BEGIN>\n## `clean_indicators`",
"Remove any extra details from indicators.\n<END>",
"<BEGIN>\n## `check_whitelist`",
"Check the indicators against known whitelists.\n<END>",
"<BEGIN>\n## `cache_items`",
"Cache indicators that were successfully sent to avoid dups.\n<END>",
"<BEGIN>\n## `prune_cached`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_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.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_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.
The ex... | Remove the user, group and policies for Blockade. | "Remove the user, group and policies for Blockade." | 50 | false | blockadeio/analyst_toolbench | remove_handler | 19,782 | |
LDU_FT/KelSolaar/Umbra/rename | LDU_FT | [
"<BEGIN>\n## `restore_geometry_on_layout_change`",
"Setter for **self.__restore_geometry_on_layout_change** attribute.",
" :param value: Attribute value.\n :type value: bool\n<END>",
"<BEGIN>\n## `get`",
"Returns given layout value.",
" :param layout: Layout name.\n :type layou... | 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 given Node associated path.
:param node: Node.
:type node: ProjectNode or DirectoryNode or FileNode
:return: Method success.
:rtype: bool | "Renames given Node associated path.\n\n :param node: Node.\n :type node: ProjectNode or DirectoryNode or FileNode\n :return: Method success.\n :rtype: bool" | 1,432 | true | KelSolaar/Umbra | rename | 19,783 | |
LDU_FT/globus/globus-cli/server_show | LDU_FT | [
"<BEGIN>\n## `role_show`",
"Executor for `globus endpoint role show`\n<END>",
"<BEGIN>\n## `outformat_is_json`",
"Only safe to call within a click context.\n<END>",
"<BEGIN>\n## `outformat_is_unix`",
"Only safe to call within a click context.\n<END>",
"<BEGIN>\n## `outformat_is_text`",
"Only safe to c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the server_show API.
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 server_show API.
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... | Executor for `globus endpoint server show` | "Executor for `globus endpoint server show`" | 186 | false | globus/globus-cli | server_show | 19,784 | |
LDU_FT/ambitioninc/django-entity/save_entity_signal_handler | LDU_FT | [
"<BEGIN>\n## `remove_duplicates`",
"Remove any duplicates from the entity relationship table\n :param apps:\n :param schema_editor:\n :return:\n<END>",
"<BEGIN>\n## `transaction_atomic_with_retry`",
"This is a decorator that will wrap the decorated method in an atomic transaction and\n retry the t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_entity_signal_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_entity_signal_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Defines a signal handler for saving an entity. Syncs the entity to
the entity mirror table. | "Defines a signal handler for saving an entity. Syncs the entity to\n the entity mirror table." | 83 | false | ambitioninc/django-entity | save_entity_signal_handler | 19,785 | |
LDU_FT/dodger487/dplython/select | LDU_FT | [
"<BEGIN>\n## `select`",
"Select specific columns from DataFrame. ",
" Output will be DplyFrame type. Order of columns will be the same as input into\n select.",
" >>> diamonds >> select(X.color, X.carat) >> head(3)\n Out:\n color carat\n 0 E 0.23\n 1 E 0.21\n 2 E 0.23",
" Group... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API.
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 select API.
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 ... | Select specific columns from DataFrame.
Output will be DplyFrame type. Order of columns will be the same as input into
select.
>>> diamonds >> select(X.color, X.carat) >> head(3)
Out:
color carat
0 E 0.23
1 E 0.21
2 E 0.23
Grouping variables are implied in selection.
>>> df ... | "Select specific columns from DataFrame. \n\n Output will be DplyFrame type. Order of columns will be the same as input into\n select.\n\n >>> diamonds >> select(X.color, X.carat) >> head(3)\n Out:\n color carat\n 0 E 0.23\n 1 E 0.21\n 2 E 0.23\n\n Grouping variables are implied in selecti... | 19 | false | dodger487/dplython | select | 19,786 | |
LDU_FT/robotpy/pyfrc/draw_pathfinder_trajectory | LDU_FT | [
"<BEGIN>\n## `compute`",
"Call this when vision processing should be enabled",
" :param now: The value passed to ``update_sim``\n :param x: Returned from physics_controller.get_position\n :param y: Returned from physics_controller.get_position\n :param angle... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_pathfinder_trajectory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_pathfinder_trajectory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Special helper function for drawing trajectories generated by
robotpy-pathfinder
:param trajectory: A list of pathfinder segment objects
:param offset: If specified, should be x/y tuple to add to the path
relative to the robot coordinates
... | "Special helper function for drawing trajectories generated by\n robotpy-pathfinder\n \n :param trajectory: A list of pathfinder segment objects\n :param offset: If specified, should be x/y tuple to add to the path\n relative to the robot coordinates... | 109 | false | robotpy/pyfrc | draw_pathfinder_trajectory | 19,787 | |
LDU_FT/sjkingo/python-freshdesk/get_ticket | LDU_FT | [
"<BEGIN>\n## `get_ticket`",
"Fetches the ticket for the given ticket ID\n<END>",
"<BEGIN>\n## `create_ticket`",
"Creates a ticket\n To create ticket with attachments,\n pass a key 'attachments' with value as list of fully qualified file paths in string format.\n ex: attachment... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ticket API.
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_ticket API.
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... | Fetches the ticket for the given ticket ID | "Fetches the ticket for the given ticket ID" | 57 | false | sjkingo/python-freshdesk | get_ticket | 19,788 | |
LDU_FT/b-loyola/itglue-py/find | LDU_FT | [
"<BEGIN>\n## `set_attributes`",
"Set the value of multiple attributes.\n :param attributes_dict dict: a dictionary containing key-value pairs as attribute names and values to be set\n :returns: the resource itself\n<END>",
"<BEGIN>\n## `save`",
"Either creates a resource or updates it (if it alr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Gets the resource of the given type and parent (if provided) with matching id.
This will trigger an api GET request.
:param parent ResourceBase: the parent of the resource - used for nesting the request url, optional
:param id int: the id of the resource to be fetched
:returns: the match... | "Gets the resource of the given type and parent (if provided) with matching id.\n This will trigger an api GET request.\n :param parent ResourceBase: the parent of the resource - used for nesting the request url, optional\n :param id int: the id of the resource to be fetched\n :returns: the ... | 22 | false | b-loyola/itglue-py | find | 19,789 | |
LDU_FT/blockchain-certificates/cert-issuer/prepare_batch | LDU_FT | [
"<BEGIN>\n## `check_internet_off`",
"If internet off and USB plugged in, returns true. Else, continues to wait...\n<END>",
"<BEGIN>\n## `check_internet_on`",
"If internet on and USB unplugged, returns true. Else, continues to wait...\n<END>",
"<BEGIN>\n## `issue`",
"Issue the certificates on the blockchai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_batch API.
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 prepare_batch API.
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... | Propagates exception on failure
:return: byte array to put on the blockchain | "Propagates exception on failure\n :return: byte array to put on the blockchain" | 62 | false | blockchain-certificates/cert-issuer | prepare_batch | 19,790 | |
LDU_FT/robmcmullen/atrcopy/restore_renamed_serializable_attributes | LDU_FT | [
"<BEGIN>\n## `text_to_int`",
"Convert text to int, raising exeception on invalid input\n<END>",
"<BEGIN>\n## `assign_sector_numbers`",
"Map out the sectors and link the sectors together",
" raises NotEnoughSpaceOnDisk if the whole file won't fit. It will not\n allow partial writes.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore_renamed_serializable_attributes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore_renamed_serializable_attributes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate... | Hook for the future if attributes have been renamed. The old
attribute names will have been restored in the __dict__.update in
__setstate__, so this routine should move attribute values to their new
names. | "Hook for the future if attributes have been renamed. The old\n attribute names will have been restored in the __dict__.update in\n __setstate__, so this routine should move attribute values to their new\n names." | 73 | false | robmcmullen/atrcopy | restore_renamed_serializable_attributes | 19,791 | |
LDU_FT/telminov/sw-django-utils/process_date_from_to_options | LDU_FT | [
"<BEGIN>\n## `random_date`",
"This function will return a random datetime between two datetime objects.\n :param start:\n :param end:\n<END>",
"<BEGIN>\n## `url_path`",
"join base_url and some GET-parameters to one; it could be absolute url optionally",
" usage example:",
" c['current_url'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_date_from_to_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_date_from_to_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | to_datetime - приводить ли date к datetime
default_dt_to - устанавливать заведомо будущее дефолтное значение для dt_to | "to_datetime - приводить ли date к datetime\n default_dt_to - устанавливать заведомо будущее дефолтное значение для dt_to" | 17 | false | telminov/sw-django-utils | process_date_from_to_options | 19,792 | |
LDU_FT/mayfield/shellish/_fill_text | LDU_FT | [
"<BEGIN>\n## `hone_cache`",
"A caching decorator that follows after the style of lru_cache. Calls\n that are sharper than previous requests are returned from the cache after\n honing in on the requested results using the `refineby` technique.",
" The `refineby` technique can be `startswith`, `container... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fill_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fill_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Reflow text width while maintaining certain formatting
characteristics like double newlines and indented statements. | "Reflow text width while maintaining certain formatting\n characteristics like double newlines and indented statements." | 172 | false | mayfield/shellish | _fill_text | 19,793 | |
LDU_FT/NicolasLM/spinach/next_future_job_delta | LDU_FT | [
"<BEGIN>\n## `_reset`",
"Initialization that must happen before the arbiter is (re)started\n<END>",
"<BEGIN>\n## `attach_tasks`",
"Attach a set of tasks.",
" A task cannot be scheduled or executed before it is attached to an\n Engine.",
" >>> tasks = Tasks()\n >>> spin.attach_t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_future_job_delta 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 next_future_job_delta API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Give the amount of seconds before the next future job is due. | "Give the amount of seconds before the next future job is due." | 93 | false | NicolasLM/spinach | next_future_job_delta | 19,794 | |
LDU_FT/fbcotter/py3nvml/nvmlDeviceGetSupportedMemoryClocks | LDU_FT | [
"<BEGIN>\n## `grab_gpus`",
"Checks for gpu availability and sets CUDA_VISIBLE_DEVICES as such.",
" Note that this function does not do anything to 'reserve' gpus, it only\n limits what GPUS your program can see by altering the CUDA_VISIBLE_DEVICES\n variable. Other programs can still come along and sna... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nvmlDeviceGetSupportedMemoryClocks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nvmlDeviceGetSupportedMemoryClocks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | r"""
/**
* Retrieves the list of possible memory clocks that can be used as an argument for \ref nvmlDeviceSetApplicationsClocks.
*
* For Kepler &tm; or newer fully supported devices.
*
* @param device The identifier of the target device
* @param count ... | "r\"\"\"\n /**\n * Retrieves the list of possible memory clocks that can be used as an argument for \\ref nvmlDeviceSetApplicationsClocks.\n *\n * For Kepler &tm; or newer fully supported devices.\n *\n * @param device The identifier of the target device\n * @par... | 336 | false | fbcotter/py3nvml | nvmlDeviceGetSupportedMemoryClocks | 19,795 | |
LDU_FT/david-cortes/hpfrec/predict | LDU_FT | [
"<BEGIN>\n## `fit`",
"Fit Hierarchical Poisson Model to sparse count data",
"\t\tFits a hierarchical Poisson model to count data using mean-field approximation with either\n\t\tfull-batch coordinate-ascent or mini-batch stochastic coordinate-ascent.",
"\t\tNote\n\t\t----\n\t\tDataFrames and arrays passed to '... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API.
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 predict API.
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... | Predict count for combinations of users and items
Note
----
You can either pass an individual user and item, or arrays representing
tuples (UserId, ItemId) with the combinatinons of users and items for which
to predict (one row per prediction).
Parameters
----------
user : array-like (npred,) or obj... | "Predict count for combinations of users and items\n\t\t\n\t\tNote\n\t\t----\n\t\tYou can either pass an individual user and item, or arrays representing\n\t\ttuples (UserId, ItemId) with the combinatinons of users and items for which\n\t\tto predict (one row per prediction).\n\n\t\tParameters\n\t\t----------\n\t\tuser... | 53 | false | david-cortes/hpfrec | predict | 19,796 | |
LDU_FT/sci-bots/pygtkhelpers/open_filechooser | LDU_FT | [
"<BEGIN>\n## `gcall`",
"Calls a function, with the given arguments inside Gtk's main loop.\n Example::\n gcall(lbl.set_text, \"foo\")",
" If this call would be made in a thread there could be problems, using\n it inside Gtk's main loop makes it thread safe.\n<END>",
"<BEGIN>\n## `invoke_in_mai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_filechooser API.
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 open_filechooser API.
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 open dialog.
:param parent: window or None
:param patterns: file match patterns
:param folder: initial folder
:param filter: file filter
Use of filter and patterns at the same time is invalid. | "An open dialog.\n\n :param parent: window or None\n :param patterns: file match patterns\n :param folder: initial folder\n :param filter: file filter\n\n Use of filter and patterns at the same time is invalid." | 240 | false | sci-bots/pygtkhelpers | open_filechooser | 19,797 | |
LDU_FT/jenanwise/codequality/_relevant_checkers | LDU_FT | [
"<BEGIN>\n## `_temp_filename`",
"Make a temporary file with `contents`.",
" The file will be cleaned up on exit.\n<END>",
"<BEGIN>\n## `register`",
"Decorator to register a class as a checker for extensions.\n<END>",
"<BEGIN>\n## `check`",
"Return list of error dicts for all found errors in paths.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _relevant_checkers 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 _relevant_checkers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Get set of checkers for the given path.
TODO: currently this is based off the file extension. We would like to
honor magic bits as well, so that python binaries, shell scripts, etc
but we're not guaranteed that `path` currently exists on the filesystem
-- e.g. when version control for ... | "Get set of checkers for the given path.\n\n TODO: currently this is based off the file extension. We would like to\n honor magic bits as well, so that python binaries, shell scripts, etc\n but we're not guaranteed that `path` currently exists on the filesystem\n -- e.g. when version contro... | 19 | false | jenanwise/codequality | _relevant_checkers | 19,798 | |
LDU_FT/aboSamoor/polyglot/extend | LDU_FT | [
"<BEGIN>\n## `most_frequent`",
"Only most frequent k words to be included in the embeddings.\n<END>",
"<BEGIN>\n## `normalize_words`",
"Normalize embeddings matrix row-wise.",
" Args:\n ord: normalization order. Possible values {1, 2, 'inf', '-inf'}\n<END>",
"<BEGIN>\n## `nearest_neighbors`",
"R... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend API.
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 extend API.
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 ... | Extend WordList by appending elements from ``iterable``. If an element
is a string, appends a :class:`Word <Word>` object. | "Extend WordList by appending elements from ``iterable``. If an element\n is a string, appends a :class:`Word <Word>` object." | 189 | false | aboSamoor/polyglot | extend | 19,799 | |
LDU_FT/zalando/patroni/_get_machines_cache_from_srv | LDU_FT | [
"<BEGIN>\n## `create_connection`",
"This method is trying to establish connection with one of the zookeeper nodes.\n Somehow strategy \"fail earlier and retry more often\" works way better comparing to\n the original strategy \"try to connect with specified timeout\".\n Since we want... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_machines_cache_from_srv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_machines_cache_from_srv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Fetch list of etcd-cluster member by resolving _etcd-server._tcp. SRV record.
This record should contain list of host and peer ports which could be used to run
'GET http://{host}:{port}/members' request (peer protocol) | "Fetch list of etcd-cluster member by resolving _etcd-server._tcp. SRV record.\n This record should contain list of host and peer ports which could be used to run\n 'GET http://{host}:{port}/members' request (peer protocol)" | 228 | false | zalando/patroni | _get_machines_cache_from_srv | 19,800 | |
LDU_FT/mvn23/pyotgw/connection_lost | LDU_FT | [
"<BEGIN>\n## `connection_made`",
"Gets called when a connection to the gateway is established.\n Initialise the protocol object.\n<END>",
"<BEGIN>\n## `connection_lost`",
"Gets called when the connection to the gateway is lost.\n Tear down and clean up the protocol object.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection_lost API.
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 connection_lost API.
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... | Gets called when the connection to the gateway is lost.
Tear down and clean up the protocol object. | "Gets called when the connection to the gateway is lost.\n Tear down and clean up the protocol object." | 115 | false | mvn23/pyotgw | connection_lost | 19,801 | |
LDU_FT/djaodjin/djaodjin-deployutils/site_prefixed | LDU_FT | [
"<BEGIN>\n## `filter`",
"Adds user and remote_addr to the record.\n<END>",
"<BEGIN>\n## `package_theme`",
"Package resources and templates for a multi-tier environment\n into a zip file.",
" Templates are pre-compiled into ``*build_dir*/*app_name*/templates``.\n Compilation means {% assets '*path*'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the site_prefixed API.
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 site_prefixed API.
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... | *Mockup*: adds the path prefix when required. | "*Mockup*: adds the path prefix when required." | 82 | false | djaodjin/djaodjin-deployutils | site_prefixed | 19,802 | |
LDU_FT/useblocks/groundwork/list_signals | LDU_FT | [
"<BEGIN>\n## `set`",
"Sets a new value for a given configuration parameter.",
" If it already exists, an Exception is thrown.\n To overwrite an existing value, set overwrite to True.",
" :param name: Unique name of the parameter\n :param value: Value of the configuration parameter\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_signals API.
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 list_signals API.
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... | Prints a list of all registered signals. Including description and plugin name. | "Prints a list of all registered signals. Including description and plugin name." | 198 | false | useblocks/groundwork | list_signals | 19,803 | |
LDU_FT/SpriteLink/NIPAP/edit_asn | LDU_FT | [
"<BEGIN>\n## `_serve_file`",
"Call Paste's FileApp (a WSGI application) to serve the file\n at the specified path\n<END>",
"<BEGIN>\n## `extract_prefix_attr`",
"Extract prefix attributes from arbitary dict.\n<END>",
"<BEGIN>\n## `extract_pool_attr`",
"Extract pool attributes from arbitary dict.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_asn API.
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 edit_asn API.
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... | Edit AS number
* `auth` [BaseAuth]
AAA options.
* `asn` [integer]
AS number to edit.
* `attr` [asn_attr]
New AS attributes.
This is the documentation of the internal backend function. It's
exposed over XML-RPC,... | "Edit AS number\n\n * `auth` [BaseAuth]\n AAA options.\n * `asn` [integer]\n AS number to edit.\n * `attr` [asn_attr]\n New AS attributes.\n\n This is the documentation of the internal backend function. It's\n exposed ov... | 454 | false | SpriteLink/NIPAP | edit_asn | 19,804 | |
LDU_FT/dwavesystems/dwave_networkx/min_fill_heuristic | LDU_FT | [
"<BEGIN>\n## `traveling_salesman`",
"Returns an approximate minimum traveling salesperson route.",
" Defines a QUBO with ground states corresponding to the\n minimum routes and uses the sampler to sample\n from it.",
" A route is a cycle in the graph that reaches each node exactly once.\n A min... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the min_fill_heuristic 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 min_fill_heuristic 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... | Computes an upper bound on the treewidth of graph G based on
the min-fill heuristic for the elimination ordering.
Parameters
----------
G : NetworkX graph
The graph on which to compute an upper bound for the treewidth.
Returns
-------
treewidth_upper_bound : int
An upper bo... | "Computes an upper bound on the treewidth of graph G based on\n the min-fill heuristic for the elimination ordering.\n\n Parameters\n ----------\n G : NetworkX graph\n The graph on which to compute an upper bound for the treewidth.\n\n Returns\n -------\n treewidth_upper_bound : int\n ... | 563 | false | dwavesystems/dwave_networkx | min_fill_heuristic | 19,805 | |
LDU_FT/night-crawler/django-docker-helpers/format_config_read_queue | LDU_FT | [
"<BEGIN>\n## `get`",
":param variable_path: a delimiter-separated path to a nested value\n :param default: default value if there's no object by specified path\n :param coerce_type: cast a type of a value to a specified one\n :param coercer: perform a type casting with specified callback\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_config_read_queue API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_config_read_queue API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Prepares a string with pretty printed config read queue.
:param use_color: use terminal colors
:param max_col_width: limit column width, ``50`` by default
:return: | "Prepares a string with pretty printed config read queue.\n\n :param use_color: use terminal colors\n :param max_col_width: limit column width, ``50`` by default\n :return:" | 141 | false | night-crawler/django-docker-helpers | format_config_read_queue | 19,806 | |
LDU_FT/haaksmash/pyutils/unlist | LDU_FT | [
"<BEGIN>\n## `from_keyed_iterable`",
"Construct a dictionary out of an iterable, using an attribute name as\n the key. Optionally provide a filter function, to determine what should be\n kept in the dictionary.\n<END>",
"<BEGIN>\n## `subtract_by_key`",
"given two dicts, a and b, this function returns c ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unlist API.
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 unlist API.
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 [Something] -> Something. By default, raises a ValueError for
any other list values. | "transforms [Something] -> Something. By default, raises a ValueError for\n any other list values." | 27 | false | haaksmash/pyutils | unlist | 19,807 | |
LDU_FT/modlinltd/django-advanced-filters/initialize_form | LDU_FT | [
"<BEGIN>\n## `changelist_view`",
"Add advanced_filters form to changelist context\n<END>",
"<BEGIN>\n## `filter_by_user`",
"All filters that should be displayed to a user (by users/group)\n<END>",
"<BEGIN>\n## `query`",
"De-serialize, decode and return an ORM query stored in b64_query.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_form API.
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 initialize_form API.
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... | Takes a "finalized" query and generate it's form data | "Takes a \"finalized\" query and generate it's form data" | 37 | false | modlinltd/django-advanced-filters | initialize_form | 19,808 | |
LDU_FT/stevepeak/inquiry/json_minify | LDU_FT | [
"<BEGIN>\n## `unique`",
"Unique with keeping sort/order\n [\"a\", \"c\", \"b\", \"c\", \"c\", [\"d\", \"e\"]]",
" Results in\n [\"a\", \"c\", \"b\", \"d\", \"e\"]\n<END>",
"<BEGIN>\n## `_merge_fix`",
"Fixes keys that start with \"&\" and \"-\"\n d = {\n \"&steve\": 10,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_minify API.
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 json_minify API.
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... | Removes whitespace from json strings, returning the string | "Removes whitespace from json strings, returning the string" | 17 | false | stevepeak/inquiry | json_minify | 19,809 | |
LDU_FT/inveniosoftware/invenio-oauth2server/authorize | LDU_FT | [
"<BEGIN>\n## `require_api_auth`",
"Decorator to require API authentication using OAuth token.",
" :param allow_anonymous: Allow access without OAuth token\n (default: ``False``).\n<END>",
"<BEGIN>\n## `require_oauth_scopes`",
"r\"\"\"Decorator to require a list of OAuth scopes.",
" Decorator ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authorize API.
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 authorize API.
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... | View for rendering authorization request. | "View for rendering authorization request." | 92 | false | inveniosoftware/invenio-oauth2server | authorize | 19,810 | |
LDU_FT/webrecorder/pywb/_init_routes | LDU_FT | [
"<BEGIN>\n## `read_last_line`",
"Read last line from a seekable file. Start reading\n from buff before end of file, and double backwards seek\n until line break is found. If reached beginning of file\n (no lines), just return whole file\n<END>",
"<BEGIN>\n## `load`",
"Load a file-like reader from the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_routes API.
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 _init_routes API.
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... | Initialize the routes and based on the configuration file makes available
specific routes (proxy mode, record) | "Initialize the routes and based on the configuration file makes available\n specific routes (proxy mode, record)" | 227 | false | webrecorder/pywb | _init_routes | 19,811 | |
LDU_FT/nabetama/slacky/get_presence | LDU_FT | [
"<BEGIN>\n## `create`",
"https://api.slack.com/methods/channels.create\n<END>",
"<BEGIN>\n## `history`",
"https://api.slack.com/methods/channels.history\n<END>",
"<BEGIN>\n## `info`",
"https://api.slack.com/methods/channels.info\n<END>",
"<BEGIN>\n## `invite`",
"https://api.slack.com/methods/channels.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_presence API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_presence API.
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... | https://api.slack.com/methods/users.getPresence | "https://api.slack.com/methods/users.getPresence" | 60 | false | nabetama/slacky | get_presence | 19,812 | |
LDU_FT/coin-or/GiMPy/get_out_degrees | LDU_FT | [
"<BEGIN>\n## `add_root`",
"API: add_root(self, root, **attrs)\n Description:\n Adds root node to the tree with name root and returns root Node\n instance.\n Input:\n root: Root node name.\n attrs: Root node attributes.\n Post:\n Changes s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_out_degrees API.
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_out_degrees API.
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... | API:
get_degree(self)
Description:
Returns degrees of nodes in dictionary format.
Return:
Returns a dictionary of node degrees. Keys are node names, values
are corresponding degrees. | "API:\n get_degree(self)\n Description:\n Returns degrees of nodes in dictionary format.\n Return:\n Returns a dictionary of node degrees. Keys are node names, values\n are corresponding degrees." | 179 | false | coin-or/GiMPy | get_out_degrees | 19,813 | |
LDU_FT/sensu-plugins/sensu-plugin-python/check_name | LDU_FT | [
"<BEGIN>\n## `__make_dynamic`",
"Create a method for each of the exit codes.\n<END>",
"<BEGIN>\n## `__exitfunction`",
"Method called by exit hook, ensures that both an exit code and\n output is supplied, also catches errors.\n<END>",
"<BEGIN>\n## `run`",
"Set up the event object, global settings an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Checks the plugin name and sets it accordingly.
Uses name if specified, class name if not set. | "Checks the plugin name and sets it accordingly.\n Uses name if specified, class name if not set." | 23 | false | sensu-plugins/sensu-plugin-python | check_name | 19,814 | |
LDU_FT/zxylvlp/PingPHP/p_InUseTraitDef | LDU_FT | [
"<BEGIN>\n## `t_DOCCOMMENT`",
"r'((\\'\\'\\'((?!\\'\\'\\')[\\s\\S])*\\'\\'\\')|(\\'{6,8})|(\"\"\"((?!\"\"\")[\\s\\S])*\"\"\")|(\"{6,8}))[ \\t]*\\n\n<END>",
"<BEGIN>\n## `t_NATIVEPHP`",
"r'<\\?php((?!<\\?php)[\\s\\S])*\\?>[ \\t]*(?=\\n)\n<END>",
"<BEGIN>\n## `t_INDENTIFIER`",
"r'(\\$?[_a-zA-Z][_a-zA-Z0-9]*... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_InUseTraitDef API.
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 p_InUseTraitDef API.
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... | InUseTraitDef : Varible INSTEADOF NsContentName Terminator
| Varible AS AccessModifier Terminator
| Varible AS AccessModifier NsContentName Terminator | "InUseTraitDef : Varible INSTEADOF NsContentName Terminator\n | Varible AS AccessModifier Terminator\n | Varible AS AccessModifier NsContentName Terminator" | 74 | false | zxylvlp/PingPHP | p_InUseTraitDef | 19,815 | |
LDU_FT/marshmallow-code/apispec/build_reference | LDU_FT | [
"<BEGIN>\n## `load_operations_from_docstring`",
"Return a dictionary of OpenAPI operations parsed from a\n a docstring.\n<END>",
"<BEGIN>\n## `resolve_schema_instance`",
"Return schema instance for given schema (instance or class)",
" :param type|Schema|str schema: instance, class or class name of mar... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_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.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_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.
The e... | Return path to reference
:param str component_type: Component type (schema, parameter, response, security_scheme)
:param int openapi_major_version: OpenAPI major version (2 or 3)
:param str component_name: Name of component to reference | "Return path to reference\n\n :param str component_type: Component type (schema, parameter, response, security_scheme)\n :param int openapi_major_version: OpenAPI major version (2 or 3)\n :param str component_name: Name of component to reference" | 149 | false | marshmallow-code/apispec | build_reference | 19,816 | |
LDU_FT/alexandrovteam/cpyMSpec/masses | LDU_FT | [
"<BEGIN>\n## `isotopePattern`",
"Calculates isotopic peaks for a sum formula.",
" :param sum_formula: text representation of an atomic composition\n :type sum_formula: str\n :param threshold: minimum peak abundance\n :type threshold: float\n :param rel_threshold: if True, threshold is relative to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the masses API.
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 masses API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | :returns: peak masses
:rtype: list of floats | ":returns: peak masses\n :rtype: list of floats" | 25 | false | alexandrovteam/cpyMSpec | masses | 19,817 | |
LDU_FT/closeio/quotequail/extract_headers | LDU_FT | [
"<BEGIN>\n## `quote`",
"Takes a plain text message as an argument, returns a list of tuples. The\n first argument of the tuple denotes whether the text should be expanded by\n default. The second argument is the unmodified corresponding text.",
" Example: [(True, 'expanded text'), (False, '> Some quote... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_headers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_headers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Extracts email headers from the given lines. Returns a dict with the
detected headers and the amount of lines that were processed. | "Extracts email headers from the given lines. Returns a dict with the\n detected headers and the amount of lines that were processed." | 65 | false | closeio/quotequail | extract_headers | 19,818 | |
LDU_FT/KieranWynn/pyquaternion/conjugate | LDU_FT | [
"<BEGIN>\n## `_validate_number_sequence`",
"Validate a sequence to be of a certain length and ensure it's a numpy array of floats.",
" Raises:\n ValueError: Invalid length or non-numeric value\n<END>",
"<BEGIN>\n## `_from_matrix`",
"Initialise from matrix representation",
" Create... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the conjugate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the conjugate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Quaternion conjugate, encapsulated in a new instance.
For a unit quaternion, this is the same as the inverse.
Returns:
A new Quaternion object clone with its vector part negated | "Quaternion conjugate, encapsulated in a new instance.\n\n For a unit quaternion, this is the same as the inverse.\n\n Returns:\n A new Quaternion object clone with its vector part negated" | 129 | false | KieranWynn/pyquaternion | conjugate | 19,819 | |
LDU_FT/mirceaulinic/pypluribus/open | LDU_FT | [
"<BEGIN>\n## `open`",
"Opens a SSH connection with a Pluribus machine.\n<END>",
"<BEGIN>\n## `close`",
"Closes the SSH connection if the connection is UP.\n<END>",
"<BEGIN>\n## `cli`",
"Executes a command and returns raw output from the CLI.",
" :param command: Command to be executed on the CLI.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Opens a SSH connection with a Pluribus machine. | "Opens a SSH connection with a Pluribus machine." | 35 | false | mirceaulinic/pypluribus | open | 19,820 | |
LDU_FT/faucamp/python-gsmmodem/_color | LDU_FT | [
"<BEGIN>\n## `status`",
"Status of this SMS. Can be ENROUTE, DELIVERED or FAILED",
" The actual status report object may be accessed via the 'report' attribute\n if status is 'DELIVERED' or 'FAILED'\n<END>",
"<BEGIN>\n## `connect`",
"Opens the port and initializes the modem and SIM card",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _color API.
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 _color API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Converts a message to be printed to the user's terminal in red | "Converts a message to be printed to the user's terminal in red" | 214 | false | faucamp/python-gsmmodem | _color | 19,821 | |
LDU_FT/mila/pyoo/__set_values | LDU_FT | [
"<BEGIN>\n## `str_repr`",
"Implements string conversion methods for the given class.",
" The given class must implement the __str__ method. This decorat\n will add __repr__ and __unicode__ (for Python 2).\n<END>",
"<BEGIN>\n## `_clean_slice`",
"Validates and normalizes a cell range slice.",
" >>>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __set_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __set_values API.
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... | Sets values in this cell range from an iterable of iterables. | "Sets values in this cell range from an iterable of iterables." | 70 | false | mila/pyoo | __set_values | 19,822 | |
LDU_FT/ToFuProject/tofu/FindSolFile | LDU_FT | [
"<BEGIN>\n## `Struct_plot`",
"Plot the projections of a list of Struct subclass instances",
" D. VEZINET, Aug. 2014\n Inputs :\n V A Ves instance\n Nstep An int (the number of points for evaluation of theta by np.linspace)\n axP A plt.Axes instance (if given) on... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FindSolFile API.
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 FindSolFile API.
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... | Identify the good Sol2D saved file in a given folder (OutPath), based on key ToFu criteria
When trying to load a Sol2D object (i.e.: solution of a tomographic inversion), it may be handy to provide the key parameters (shot, time, mesh name, degree of basis functions, regularisation functional) instead of copy-past... | "Identify the good Sol2D saved file in a given folder (OutPath), based on key ToFu criteria\n\n When trying to load a Sol2D object (i.e.: solution of a tomographic inversion), it may be handy to provide the key parameters (shot, time, mesh name, degree of basis functions, regularisation functional) instead of copy-p... | 424 | false | ToFuProject/tofu | FindSolFile | 19,823 | |
LDU_FT/coldfix/udiskie/device_unlocked | LDU_FT | [
"<BEGIN>\n## `_is_parent_of`",
"Check whether the first device is the parent of the second device.\n<END>",
"<BEGIN>\n## `prune_empty_node`",
"Recursively remove empty branches and return whether this makes the node\n itself empty.",
" The ``seen`` parameter is used to avoid infinite recursion due to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the device_unlocked API.
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 device_unlocked API.
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... | Show unlock notification for specified device object. | "Show unlock notification for specified device object." | 228 | false | coldfix/udiskie | device_unlocked | 19,824 | |
LDU_FT/litters/shrew/delete_password | LDU_FT | [
"<BEGIN>\n## `unlock_keychain`",
"If the user is running via SSH, their Keychain must be unlocked first.\n<END>",
"<BEGIN>\n## `save_password`",
"Saves the given password in the user's keychain.",
" :param entry: The entry in the keychain. This is a caller specific key.\n :param password: The pass... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_password API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_password API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Delete the password for the username of the service. | "Delete the password for the username of the service." | 46 | false | litters/shrew | delete_password | 19,825 | |
LDU_FT/dschien/PyExcelModelingHelper/get_mean | LDU_FT | [
"<BEGIN>\n## `growth_coefficients`",
"Build a matrix of growth factors according to the CAGR formula y'=y0 (1+a)^(t'-t0).",
" a growth rate alpha\n t0 start date\n t' end date\n y' output\n y0 start value\n<END>",
"<BEGIN>\n## `get_mean`",
"Get the mean value for a distribution.\n If ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mean API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mean API.
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... | Get the mean value for a distribution.
If the distribution function is [normal, uniform,choice,triangular] the analytic value is being calculted.
Else, the distribution is instantiated and then the mean is being calculated.
:param distribution_function:
:return: the mean as a scalar | "Get the mean value for a distribution.\n If the distribution function is [normal, uniform,choice,triangular] the analytic value is being calculted.\n Else, the distribution is instantiated and then the mean is being calculated.\n\n :param distribution_function:\n :return: the mean as a scal... | 39 | false | dschien/PyExcelModelingHelper | get_mean | 19,826 | |
LDU_FT/PureStorage-OpenConnect/rest-client/connect_host | LDU_FT | [
"<BEGIN>\n## `_check_rest_version`",
"Validate a REST API version is supported by the library and target array.\n<END>",
"<BEGIN>\n## `_choose_rest_version`",
"Return the newest REST API version supported by target array.\n<END>",
"<BEGIN>\n## `_list_available_rest_versions`",
"Return a list of the REST A... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_host API.
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 connect_host API.
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... | Create a connection between a host and a volume.
:param host: Name of host to connect to volume.
:type host: str
:param volume: Name of volume to connect to host.
:type volume: str
:param \*\*kwargs: See the REST API Guide on your array for the
documen... | "Create a connection between a host and a volume.\n\n :param host: Name of host to connect to volume.\n :type host: str\n :param volume: Name of volume to connect to host.\n :type volume: str\n :param \\*\\*kwargs: See the REST API Guide on your array for the\n ... | 166 | false | PureStorage-OpenConnect/rest-client | connect_host | 19,827 | |
LDU_FT/emory-libraries/eulxml/_remove_child_node | LDU_FT | [
"<BEGIN>\n## `_serialize`",
"Generate token strings which, when joined together, form a valid\n XPath serialization of the AST.\n<END>",
"<BEGIN>\n## `download_schema`",
"Download a schema from a specified URI and save it locally.",
" :param uri: url where the schema should be downloaded\n :param p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_child_node 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 _remove_child_node 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... | Remove a child node based on the specified xpath.
:param node: lxml element relative to which the xpath will be
interpreted
:param context: any context required for the xpath (e.g.,
namespace definitions)
:param xast: parsed xpath (xpath abstract syntax tree) from
:mod:`eulxml.xpath`
:param ... | "Remove a child node based on the specified xpath.\n\n :param node: lxml element relative to which the xpath will be\n \tinterpreted\n :param context: any context required for the xpath (e.g.,\n \tnamespace definitions)\n :param xast: parsed xpath (xpath abstract syntax tree) from\n\t:mod:`eulxml.xpath`\... | 109 | false | emory-libraries/eulxml | _remove_child_node | 19,828 | |
LDU_FT/janpipek/iso639-python/to_iso639_2 | LDU_FT | [
"<BEGIN>\n## `find`",
"Find data row with the language.",
" :param whatever: key to search in any of the following fields\n :param language: key to search in English language name\n :param iso639_1: key to search in ISO 639-1 code (2 digits)\n :param iso639_2: key to search in ISO 639-2 code (3 digi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_iso639_2 API.
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 to_iso639_2 API.
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... | Find ISO 639-2 code for language specified by key.
:param type: "B" - bibliographical (default), "T" - terminological
>>> to_iso639_2("German")
u'ger'
>>> to_iso639_2("German", "T")
u'deu' | "Find ISO 639-2 code for language specified by key.\n\n :param type: \"B\" - bibliographical (default), \"T\" - terminological\n\n >>> to_iso639_2(\"German\")\n u'ger'\n >>> to_iso639_2(\"German\", \"T\")\n u'deu'" | 17 | false | janpipek/iso639-python | to_iso639_2 | 19,829 | |
LDU_FT/merll/docker-map/remove | LDU_FT | [
"<BEGIN>\n## `get_state_actions`",
"For attached volumes, missing containers are created and initial containers are started and prepared with\n permissions. Outdated containers or containers with errors are recreated. The latter also applies to instance\n containers. Similarly, instance containers a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API.
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 remove API.
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 ... | Remove instances from a container configuration.
:param container: Container name.
:type container: unicode | str
:param instances: Instance names to remove. If not specified, will remove all instances as specified in the
configuration (or just one default instance).
:type inst... | "Remove instances from a container configuration.\n\n :param container: Container name.\n :type container: unicode | str\n :param instances: Instance names to remove. If not specified, will remove all instances as specified in the\n configuration (or just one default instance).\n :ty... | 584 | false | merll/docker-map | remove | 19,830 | |
LDU_FT/alertot/detectem/docker_container | LDU_FT | [
"<BEGIN>\n## `get_detection_results`",
"Return results from detector.",
" This function prepares the environment loading the plugins,\n getting the response and passing it to the detector.",
" In case of errors, it raises exceptions to be handled externally.\n<END>",
"<BEGIN>\n## `get_plugins`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the docker_container API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the docker_container API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Start the Splash server on a Docker container.
If the container doesn't exist, it is created and named 'splash-detectem'. | "Start the Splash server on a Docker container.\n If the container doesn't exist, it is created and named 'splash-detectem'." | 48 | false | alertot/detectem | docker_container | 19,831 | |
LDU_FT/Peter-Slump/python-keycloak-client/permission_list | LDU_FT | [
"<BEGIN>\n## `session`",
"Get session object to benefit from connection pooling.",
" http://docs.python-requests.org/en/master/user/advanced/#session-objects",
" :rtype: requests.Session\n<END>",
"<BEGIN>\n## `open_id_connect`",
"Get OpenID Connect client",
" :param str client_id:\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the permission_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.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the permission_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.
The e... | Querying permission
https://www.keycloak.org/docs/latest/authorization_services/index.html#querying-permission
:param str token: client access token
:param str resource: (optional)
:param str name: (optional)
:param str scope: (optional)
:rtype: dict | "Querying permission\n\n https://www.keycloak.org/docs/latest/authorization_services/index.html#querying-permission\n\n\n :param str token: client access token\n :param str resource: (optional)\n :param str name: (optional)\n :param str scope: (optional)\n\n :rtype: dict" | 118 | false | Peter-Slump/python-keycloak-client | permission_list | 19,832 | |
LDU_FT/jtwhite79/pyemu/plot_summary_distributions | LDU_FT | [
"<BEGIN>\n## `_calc_delta`",
"calc the scaled ensemble differences from the mean\n<END>",
"<BEGIN>\n## `_calc_obs_local`",
"propagate the ensemble forward using sweep.\n<END>",
"<BEGIN>\n## `save_coo`",
"write a PEST-compatible binary file. The data format is\n [int,int,float] for i,j,value. It is a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_summary_distributions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_summary_distributions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | helper function to plot gaussian distrbutions from prior and posterior
means and standard deviations
Parameters
----------
df : pandas.DataFrame
a dataframe and csv file. Must have columns named:
'prior_mean','prior_stdev','post_mean','post_stdev'. If loaded
from a csv file, c... | "helper function to plot gaussian distrbutions from prior and posterior\n means and standard deviations\n\n Parameters\n ----------\n df : pandas.DataFrame\n a dataframe and csv file. Must have columns named:\n 'prior_mean','prior_stdev','post_mean','post_stdev'. If loaded\n from a cs... | 1,496 | true | jtwhite79/pyemu | plot_summary_distributions | 19,833 | |
LDU_FT/Chilipp/psy-simple/_remove_texttuple | LDU_FT | [
"<BEGIN>\n## `try_and_error`",
"Apply multiple validation functions",
" Parameters\n ----------\n ``*funcs``\n Validation functions to test",
" Returns\n -------\n function\n<END>",
"<BEGIN>\n## `validate_text`",
"Validate a text formatoption",
" Parameters\n ----------\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_texttuple API.
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 _remove_texttuple API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Remove a texttuple from the value in the plotter
Parameters
----------
pos: tuple (x, y, cs)
x and y are the x- and y-positions and cs the coordinate system | "Remove a texttuple from the value in the plotter\n\n Parameters\n ----------\n pos: tuple (x, y, cs)\n x and y are the x- and y-positions and cs the coordinate system" | 183 | false | Chilipp/psy-simple | _remove_texttuple | 19,834 | |
LDU_FT/programa-stic/barf-project/read | LDU_FT | [
"<BEGIN>\n## `translate`",
"Return the SMT representation of a REIL instruction.\n<END>",
"<BEGIN>\n## `_translate_src_oprnd`",
"Translate source operand to a SMT expression.\n<END>",
"<BEGIN>\n## `_translate_dst_oprnd`",
"Translate destination operand to a SMT expression.\n<END>",
"<BEGIN>\n## `_transl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Read arbitrary size content from memory. | "Read arbitrary size content from memory." | 148 | false | programa-stic/barf-project | read | 19,835 | |
LDU_FT/chaoss/grimoirelab-elk/enrich_items | LDU_FT | [
"<BEGIN>\n## `__related_categories`",
"Get all related categories to a given one\n<END>",
"<BEGIN>\n## `__show_categories_tree`",
"Show the category tree: list of categories and its subcategories\n<END>",
"<BEGIN>\n## `fetch_track_items`",
"The file format is:",
" # Upstream contributions, bitergia w... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enrich_items API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enrich_items API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Implementation supporting signed-off and multiauthor/committer commits. | "Implementation supporting signed-off and multiauthor/committer commits." | 296 | false | chaoss/grimoirelab-elk | enrich_items | 19,836 | |
LDU_FT/jonhadfield/creds/generate_add_user_command | LDU_FT | [
"<BEGIN>\n## `create_plan`",
"Determine what changes are required.",
" args:\n existing_users (Users): List of discovered users\n proposed_users (Users): List of proposed users\n purge_undefined (bool): Remove discovered users that have not been defined in proposed users list\n pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_add_user_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_add_user_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Generate command to add a user.
args:
proposed_user (User): User
manage_home: bool
returns:
list: The command string split into shell-like syntax | "Generate command to add a user.\n\n args:\n proposed_user (User): User\n manage_home: bool\n\n returns:\n list: The command string split into shell-like syntax" | 71 | false | jonhadfield/creds | generate_add_user_command | 19,837 | |
LDU_FT/gtaylor/petfinder-api/pet_find | LDU_FT | [
"<BEGIN>\n## `_do_api_call`",
"Convenience method to carry out a standard API call against the\n Petfinder API.",
" :param basestring method: The API method name to call.\n :param dict data: Key/value parameters to send to the API method.\n This varies based on the method.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pet_find API.
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 pet_find API.
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... | pet.find wrapper. Returns a generator of pet record dicts
matching your search criteria.
:rtype: generator
:returns: A generator of pet record dicts.
:raises: :py:exc:`petfinder.exceptions.LimitExceeded` once
you have reached the maximum number of records your credentials
... | "pet.find wrapper. Returns a generator of pet record dicts\n matching your search criteria.\n\n :rtype: generator\n :returns: A generator of pet record dicts.\n :raises: :py:exc:`petfinder.exceptions.LimitExceeded` once\n you have reached the maximum number of records your credent... | 40 | false | gtaylor/petfinder-api | pet_find | 19,838 | |
LDU_FT/jason-weirather/pythologist/get_measured_regions | LDU_FT | [
"<BEGIN>\n## `get_valid_cell_indecies`",
"Return a dataframe of images present with 'valid' being a list of cell indecies that can be included\n<END>",
"<BEGIN>\n## `prune_neighbors`",
"If the CellDataFrame has been subsetted, some of the cell-cell contacts may no longer be part of the the dataset. This prun... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_measured_regions 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_measured_regions 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:
pandas.DataFrame: Output a dataframe with regions and region sizes | "Returns:\n pandas.DataFrame: Output a dataframe with regions and region sizes" | 98 | false | jason-weirather/pythologist | get_measured_regions | 19,839 | |
LDU_FT/libyal/dtfabric/_LinearMapByteStream | LDU_FT | [
"<BEGIN>\n## `Main`",
"The main program function.",
" Returns:\n bool: True if successful or False if not.\n<END>",
"<BEGIN>\n## `CheckDirectory`",
"Validates definition files in a directory.",
" Args:\n path (str): path of the definition file.\n extension (Optional[str]): extension of th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _LinearMapByteStream 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 _LinearMapByteStream API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Maps a data type sequence on a byte stream.
Args:
byte_stream (bytes): byte stream.
byte_offset (Optional[int]): offset into the byte stream where to start.
context (Optional[DataTypeMapContext]): data type map context.
Returns:
tuple[object, ...]: mapped values.
Raises:
Map... | "Maps a data type sequence on a byte stream.\n\n Args:\n byte_stream (bytes): byte stream.\n byte_offset (Optional[int]): offset into the byte stream where to start.\n context (Optional[DataTypeMapContext]): data type map context.\n\n Returns:\n tuple[object, ...]: mapped values.\n\n Raises... | 373 | false | libyal/dtfabric | _LinearMapByteStream | 19,840 | |
LDU_FT/ansible/ansible-container/resolve_role_to_path | LDU_FT | [
"<BEGIN>\n## `to_bytes`",
"Make sure that a string is a byte string",
" :arg obj: An object to make sure is a byte string. In most cases this\n will be either a text string or a byte string. However, with\n ``nonstring='simplerepr'``, this can be used as a traceback-free\n version of `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_role_to_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_role_to_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Given a role definition from a service's list of roles, returns the file path to the role | "Given a role definition from a service's list of roles, returns the file path to the role" | 64 | false | ansible/ansible-container | resolve_role_to_path | 19,841 | |
LDU_FT/benhoff/vexbot/subscribe | LDU_FT | [
"<BEGIN>\n## `main`",
"`kwargs`:",
" `configuration_filepath`: filepath for the `ini` configuration\n<END>",
"<BEGIN>\n## `get_addresses`",
"parses a raw list from zmq to get back the components that are the address\n messages are broken by the addresses in the beginning and then the\n message,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe API.
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 subscribe API.
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... | Subscribe to a publish port. Example:
`vexbot: !subscribe tcp://127.0.0.1:3000` | "Subscribe to a publish port. Example:\n `vexbot: !subscribe tcp://127.0.0.1:3000`" | 68 | false | benhoff/vexbot | subscribe | 19,842 | |
LDU_FT/klen/muffin-babel/get_translations | LDU_FT | [
"<BEGIN>\n## `startup`",
"Initialize a local namespace and setup Jinja2.\n<END>",
"<BEGIN>\n## `get_translations`",
"Load translations for given or configuration domain.",
" :param domain: Messages domain (str)\n :param locale: Locale object\n<END>",
"<BEGIN>\n## `gettext`",
"Translate a s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_translations API.
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_translations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Load translations for given or configuration domain.
:param domain: Messages domain (str)
:param locale: Locale object | "Load translations for given or configuration domain.\n\n :param domain: Messages domain (str)\n :param locale: Locale object" | 16 | false | klen/muffin-babel | get_translations | 19,843 | |
LDU_FT/rpcope1/PythonConfluenceAPI/get_long_tasks | LDU_FT | [
"<BEGIN>\n## `request_patch`",
"Maintains the existing api for Session.request.\n Used by all of the higher level methods, e.g. Session.get.\n The background_callback param allows you to do some processing on the\n response in the background, e.g. call resp.json() so that json parsing\n happens in the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_long_tasks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_long_tasks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns information about all tracked long-running tasks.
:param expand (string): OPTIONAL: A comma separated list of properties to expand on the tasks.
:param start (int): OPTIONAL: The pagination start count.
:param limit (int): OPTIONAL: The pagination return count limit.
:param callb... | "Returns information about all tracked long-running tasks.\n :param expand (string): OPTIONAL: A comma separated list of properties to expand on the tasks.\n :param start (int): OPTIONAL: The pagination start count.\n :param limit (int): OPTIONAL: The pagination return count limit.\n :param ... | 140 | false | rpcope1/PythonConfluenceAPI | get_long_tasks | 19,844 | |
LDU_FT/miquelo/resort/component_list | LDU_FT | [
"<BEGIN>\n## `insert`",
"Build the project.",
"\t\t:param resort.engine.execution.Context context:\n\t\t Current execution context.\n<END>",
"<BEGIN>\n## `load`",
"Load the profile with the given name.",
"\t\t:param str prof_name:\n\t\t Profile name.\n\t\t:rtype:\n\t\t ProfileStub\n\t\t:return:\n\t\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the component_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.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the component_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.
The ex... | List of :class:`ComponentStub` instances for this profile.
:rtype:
list | "List of :class:`ComponentStub` instances for this profile.\n\t\t\n\t\t:rtype:\n\t\t list" | 125 | false | miquelo/resort | component_list | 19,845 | |
LDU_FT/iotile/coretools/build_report | LDU_FT | [
"<BEGIN>\n## `_value_length`",
"Given an integer or list of them, convert it to an array of bytes.\n<END>",
"<BEGIN>\n## `_parse_line`",
"Parse a line in a TileBus file",
" Args:\n line_no (int): The line number for printing useful error messages\n line (string): The line that w... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_report API.
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 build_report API.
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... | Build a report with all of the readings in this streamer.
This method will produce an IOTileReport subclass and, if necessary,
sign it using the passed authentication chain.
Args:
device_id (int): The UUID of the device to generate a report for.
max_size (int): Optional... | "Build a report with all of the readings in this streamer.\n\n This method will produce an IOTileReport subclass and, if necessary,\n sign it using the passed authentication chain.\n\n Args:\n device_id (int): The UUID of the device to generate a report for.\n max_size (int): ... | 4,849 | true | iotile/coretools | build_report | 19,846 | |
LDU_FT/rchatterjee/pwmodels/query | LDU_FT | [
"<BEGIN>\n## `gen_n_random_num`",
"Returns @n @unique random unsigned integers (4 bytes) \\\n between 0 and @MAX_NUM.\n<END>",
"<BEGIN>\n## `sample_following_dist`",
"Samples n passwords following the distribution from the handle\n @handle_iter is an iterator that gives (pw,f) @n is the total\n numbe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Finds the fuzzy matches (within edit distance 1) of w from words | "Finds the fuzzy matches (within edit distance 1) of w from words" | 48 | false | rchatterjee/pwmodels | query | 19,847 | |
LDU_FT/openid/JWTConnect-Python-CryptoJWT/verify | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"Encrypts and authenticates the data provided as well as authenticating\n the associated_data.",
" :param msg: The message to be encrypted\n :param iv: MUST be present, at least 96-bit long\n :param auth_data: Associated data\n :return: The cipher text... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API.
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 verify API.
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 ... | Verifies whether signature is a valid signature for message
:param msg: the message
:type msg: bytes
:param signature: The signature to be verified
:type signature: bytes
:param key: The key
:return: True is the signature is valid otherwise False | "Verifies whether signature is a valid signature for message\n\n :param msg: the message\n :type msg: bytes\n :param signature: The signature to be verified\n :type signature: bytes\n :param key: The key\n :return: True is the signature is valid otherwise False" | 399 | false | openid/JWTConnect-Python-CryptoJWT | verify | 19,848 | |
LDU_FT/jaegertracing/jaeger-client-python/_init_polling | LDU_FT | [
"<BEGIN>\n## `_set_client_id`",
"Method for tracer to set client ID of throttler.\n<END>",
"<BEGIN>\n## `_init_polling`",
"Bootstrap polling for throttler.",
" To avoid spiky traffic from throttler clients, we use a random delay\n before the first poll.\n<END>",
"<BEGIN>\n## `local_ip`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_polling API.
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 _init_polling API.
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... | Bootstrap polling for throttler.
To avoid spiky traffic from throttler clients, we use a random delay
before the first poll. | "Bootstrap polling for throttler.\n\n To avoid spiky traffic from throttler clients, we use a random delay\n before the first poll." | 46 | false | jaegertracing/jaeger-client-python | _init_polling | 19,849 | |
LDU_FT/aloetesting/aloe_webdriver/submit_the_only_form | LDU_FT | [
"<BEGIN>\n## `string_literal`",
"Choose a string literal that can wrap our string.",
" If your string contains a ``\\'`` the result will be wrapped in ``\\\"``.\n If your string contains a ``\\\"`` the result will be wrapped in ``\\'``.",
" Cannot currently handle strings which contain both ``\\\"`` ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit_the_only_form 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 submit_the_only_form API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Look for a form on the page and submit it.
Asserts if more than one form exists. | "Look for a form on the page and submit it.\n\n Asserts if more than one form exists." | 158 | false | aloetesting/aloe_webdriver | submit_the_only_form | 19,850 | |
LDU_FT/uuazed/numerapi/get_stakes | LDU_FT | [
"<BEGIN>\n## `_unzip_file`",
"unzips file located at src_path into destination_path\n<END>",
"<BEGIN>\n## `get_dataset_url`",
"Fetch url of the current dataset.",
" Args:\n tournament (int, optional): ID of the tournament, defaults to 1",
" Returns:\n str: url of the cu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stakes API.
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_stakes API.
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 your stakes.
Returns:
list of dicts: stakes
Each stake is a dict with the following fields:
* confidence (`decimal.Decimal`)
* roundNumber (`int`)
* tournamentId (`int`)
* soc (`decimal.Decimal`)
... | "List all your stakes.\n\n Returns:\n list of dicts: stakes\n\n Each stake is a dict with the following fields:\n\n * confidence (`decimal.Decimal`)\n * roundNumber (`int`)\n * tournamentId (`int`)\n * soc (`decimal.Decimal`)\n ... | 163 | false | uuazed/numerapi | get_stakes | 19,851 | |
LDU_FT/ElementAI/greensim/_bind_and_call_constructor | LDU_FT | [
"<BEGIN>\n## `pause`",
"Pauses the current process indefinitely -- it will require another process to `resume()` it. When this resumption\n happens, the process returns from this function.\n<END>",
"<BEGIN>\n## `advance`",
"Pauses the current process for the given delay (in simulated time). The process wil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bind_and_call_constructor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bind_and_call_constructor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Accesses the __init__ method of a type directly and calls it with *args
This allows the constructors of both superclasses to be called, as described in get_binding.md
This could be done using two calls to super() with a hack based on how Python searches __mro__:
```
super().__init__(r... | "Accesses the __init__ method of a type directly and calls it with *args\n\n This allows the constructors of both superclasses to be called, as described in get_binding.md\n\n This could be done using two calls to super() with a hack based on how Python searches __mro__:\n\n ```\n super().__... | 83 | false | ElementAI/greensim | _bind_and_call_constructor | 19,852 | |
LDU_FT/rpcope1/HackerNewsAPI-Py/get_recent_updates | LDU_FT | [
"<BEGIN>\n## `_make_request`",
"Helper function for making requests\n :param suburl: The suburl to query\n :return: Decoded json object\n<END>",
"<BEGIN>\n## `get_item`",
"Get a dictionary or object with info about the given item number from the Hacker News API.\n Item can be a poll, stor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_recent_updates 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 get_recent_updates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Get the most recent updates on Hacker News
Response dictionary parameters:
"items" -> A list of the most recently update items by item number.
"profiles" -> A list of most recently updated user profiles by user name.
:param raw: (optional): If true, return the raw dictio... | "Get the most recent updates on Hacker News\n\n Response dictionary parameters:\n \"items\" -> A list of the most recently update items by item number.\n \"profiles\" -> A list of most recently updated user profiles by user name.\n\n :param raw: (optional): If true, return the... | 19 | false | rpcope1/HackerNewsAPI-Py | get_recent_updates | 19,853 | |
LDU_FT/richardchien/nonebot/ensure_true | LDU_FT | [
"<BEGIN>\n## `handle_cancellation`",
"If the input is a string of cancellation word, finish the command session.\n<END>",
"<BEGIN>\n## `on_command`",
"Decorator to register a function as a command.",
" :param name: command name (e.g. 'echo' or ('random', 'number'))\n :param aliases: aliases of command... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_true API.
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 ensure_true API.
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... | Validate any object to ensure the result of applying
a boolean function to it is True. | "Validate any object to ensure the result of applying\n a boolean function to it is True." | 105 | false | richardchien/nonebot | ensure_true | 19,854 | |
LDU_FT/svenkreiss/databench/build | LDU_FT | [
"<BEGIN>\n## `color`",
"triangles.",
" Colors:\n - http://paletton.com/#uid=70l150klllletuehUpNoMgTsdcs shade 2\n<END>",
"<BEGIN>\n## `on`",
"Decorator for action handlers.",
" The action name is inferred from the function name.",
" This also decorates the method with `tornado.gen.coroutine`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API.
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 build API.
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... | Run the build command specified in index.yaml. | "Run the build command specified in index.yaml." | 86 | false | svenkreiss/databench | build | 19,855 | |
LDU_FT/BlackEarth/bxml/unnest | LDU_FT | [
"<BEGIN>\n## `tempfile`",
"write the docx to a named tmpfile and return the tmpfile filename\n<END>",
"<BEGIN>\n## `match`",
"decorator that allows us to match by expression or by xpath for each transformation method\n<END>",
"<BEGIN>\n## `get_match`",
"for the given elem, return the @match function that ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unnest API.
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 unnest API.
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 ... | unnest the element from its parent within doc. MUTABLE CHANGES | "unnest the element from its parent within doc. MUTABLE CHANGES" | 91 | false | BlackEarth/bxml | unnest | 19,856 | |
LDU_FT/taskcluster/taskcluster-client.py/websocktunnelToken | LDU_FT | [
"<BEGIN>\n## `ping`",
"Ping Server",
" Respond without doing anything.\n This endpoint is used to check that the service is up.",
" This method is ``stable``\n<END>",
"<BEGIN>\n## `githubWebHookConsumer`",
"Consume GitHub WebHook",
" Capture a GitHub event and publish it via ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the websocktunnelToken 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 websocktunnelToken API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Get a client token for the Websocktunnel service
Get a temporary token suitable for use connecting to a
[websocktunnel](https://github.com/taskcluster/websocktunnel) server.
The resulting token will only be accepted by servers with a matching audience
value. Reaching such a server is ... | "Get a client token for the Websocktunnel service\n\n Get a temporary token suitable for use connecting to a\n [websocktunnel](https://github.com/taskcluster/websocktunnel) server.\n\n The resulting token will only be accepted by servers with a matching audience\n value. Reaching such a ser... | 997 | false | taskcluster/taskcluster-client.py | websocktunnelToken | 19,857 | |
LDU_FT/zkbt/the-friendly-stars/from_cone | LDU_FT | [
"<BEGIN>\n## `from_coordinates`",
"Iniitalize a constellation object.",
" Parameters\n ----------",
" ra, dec, distance, pm_ra_cosdec, pm_dec, radial_velocity\n These must be able to initialize a SkyCoord.\n id : list, array\n Identifications for the entries.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_cone API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_cone API.
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... | Create a Constellation from a cone search of the sky,
characterized by a positional center and a radius from it.
Parameters
----------
center : SkyCoord object, or str
The center around which the query will be made.
If a str, SkyCoord will be resolved with coord.... | "Create a Constellation from a cone search of the sky,\n characterized by a positional center and a radius from it.\n\n Parameters\n ----------\n center : SkyCoord object, or str\n The center around which the query will be made.\n If a str, SkyCoord will be resolved wit... | 52 | false | zkbt/the-friendly-stars | from_cone | 19,858 | |
LDU_FT/cogniteev/docido-python-sdk/truncated_exponential_backoff | LDU_FT | [
"<BEGIN>\n## `to_unicode`",
"Convert input to an `unicode` object.",
" For a `str` object, we'll first try to decode the bytes using the given\n `charset` encoding (or UTF-8 if none is specified), then we fall back to\n the latin1 encoding which might be correct or not, but at least preserves\n the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncated_exponential_backoff 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 truncated_exponential_backoff API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Truncated Exponential Backoff
see https://en.wikipedia.org/wiki/Exponential_backoff | "Truncated Exponential Backoff\n see https://en.wikipedia.org/wiki/Exponential_backoff" | 147 | false | cogniteev/docido-python-sdk | truncated_exponential_backoff | 19,859 | |
LDU_FT/JamesPHoughton/pysd/dict_find | LDU_FT | [
"<BEGIN>\n## `parse`",
"context : <string> 'eqn', 'defn'\n If context is set to equation, lone identifiers will be parsed as calls to elements\n If context is set to definition, lone identifiers will be cleaned and returned.\n<END>",
"<BEGIN>\n## `read_tabular`",
"Reads a vensim ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_find API.
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 dict_find API.
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... | Helper function for looking up directory keys by their values.
This isn't robust to repeated values
Parameters
----------
in_dict : dictionary
A dictionary containing `value`
value : any type
What we wish to find in the dictionary
Returns
-------
key: basestring
... | "Helper function for looking up directory keys by their values.\n This isn't robust to repeated values\n\n Parameters\n ----------\n in_dict : dictionary\n A dictionary containing `value`\n\n value : any type\n What we wish to find in the dictionary\n\n Returns\n -------\n key: ba... | 268 | false | JamesPHoughton/pysd | dict_find | 19,860 | |
LDU_FT/securestate/termineter/serial_disconnect | LDU_FT | [
"<BEGIN>\n## `format_ltime`",
"Return data formatted into a human readable time stamp.",
"\t:param str endianess: The endianess to use when packing values ('>' or '<')\n\t:param int tm_format: The format that the data is packed in, this typically\n\t corresponds with the value in the GEN_CONFIG_TBL (table #0) ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serial_disconnect API.
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 serial_disconnect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Closes the serial connection to the meter and disconnects from the
device. | "Closes the serial connection to the meter and disconnects from the\n\t\tdevice." | 68 | false | securestate/termineter | serial_disconnect | 19,861 | |
LDU_FT/vpelletier/python-libusb1/getPortNumberList | LDU_FT | [
"<BEGIN>\n## `newStruct`",
"Create a ctype structure class based on USB standard field naming\n (type-prefixed).\n<END>",
"<BEGIN>\n## `get_iso_packet_buffer_list`",
"Python-specific helper extracting a list of iso packet buffers.\n<END>",
"<BEGIN>\n## `get_extra`",
"Python-specific helper to access \"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getPortNumberList API.
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 getPortNumberList API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Get the port number of each hub toward device. | "Get the port number of each hub toward device." | 136 | false | vpelletier/python-libusb1 | getPortNumberList | 19,862 | |
LDU_FT/textmagic/textmagic-rest-python/allowed | LDU_FT | [
"<BEGIN>\n## `messages`",
"Fetch messages by given session id.\n An useful synonym for \"messages/search\" command with provided `sessionId` parameter.\n Returns a list of :class:`Message` objects and a pager dict.",
" :Example:",
" messages = client.sessions.messages(1901001)",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allowed API.
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 allowed API.
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 all available sender settings which could be used in "from" parameter of POST messages method.
Returns :class:`Source` object.
:Example:
allowed = client.sources.allowed()
:param country: Return sender settings available in specified country only. Optional. | "Get all available sender settings which could be used in \"from\" parameter of POST messages method.\n Returns :class:`Source` object.\n\n :Example:\n\n allowed = client.sources.allowed()\n\n :param country: Return sender settings available in specified country only. Optional." | 112 | false | textmagic/textmagic-rest-python | allowed | 19,863 | |
LDU_FT/vbwagner/ctypescrypto/seed | LDU_FT | [
"<BEGIN>\n## `digest`",
"Method digest is redefined to return keyed MAC value instead of\n just digest.\n<END>",
"<BEGIN>\n## `bytes`",
"Returns num bytes of cryptographically strong pseudo-random\n bytes. If checkc_result is True, raises error if PRNG is not\n seeded enough\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Seeds random generator with data.
If entropy is not None, it should be floating point(double)
value estimating amount of entropy in the data (in bytes). | "Seeds random generator with data.\n If entropy is not None, it should be floating point(double)\n value estimating amount of entropy in the data (in bytes)." | 119 | false | vbwagner/ctypescrypto | seed | 19,864 | |
LDU_FT/sdispater/poetry/is_installable_dir | LDU_FT | [
"<BEGIN>\n## `path_to_url`",
"Convert a path to a file: URL. The path will be made absolute and have\n quoted path parts.\n<END>",
"<BEGIN>\n## `is_installable_dir`",
"Return True if `path` is a directory containing a setup.py file.\n<END>",
"<BEGIN>\n## `get_requires_for_build_wheel`",
"Returns a lis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_installable_dir 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 is_installable_dir 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... | Return True if `path` is a directory containing a setup.py file. | "Return True if `path` is a directory containing a setup.py file." | 107 | false | sdispater/poetry | is_installable_dir | 19,865 | |
LDU_FT/MediaFire/mediafire-python-open-sdk/file_zip | LDU_FT | [
"<BEGIN>\n## `decode_resumable_upload_bitmap`",
"Decodes bitmap_node to hash of unit_id: is_uploaded",
" bitmap_node -- bitmap node of resumable_upload with\n 'count' number and 'words' containing array\n number_of_units -- number of units we are uploading to\n defi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_zip API.
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 file_zip API.
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... | file/zip
http://www.mediafire.com/developers/core_api/1.3/file/#zip | "file/zip\n\n http://www.mediafire.com/developers/core_api/1.3/file/#zip" | 145 | false | MediaFire/mediafire-python-open-sdk | file_zip | 19,866 | |
LDU_FT/uber/doubles/satisfy_exact_match | LDU_FT | [
"<BEGIN>\n## `set_value`",
"Set the value of the target.",
" :param obj value: The value to set.\n<END>",
"<BEGIN>\n## `patch_class`",
"Create a new class based on the input_class.",
" :param class input_class: The class to patch.\n :rtype class:\n<END>",
"<BEGIN>\n## `clear`",
"Clears a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the satisfy_exact_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the satisfy_exact_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.
T... | Returns a boolean indicating whether or not the mock will accept the provided arguments.
:return: Whether or not the mock accepts the provided arguments.
:rtype: bool | "Returns a boolean indicating whether or not the mock will accept the provided arguments.\n\n :return: Whether or not the mock accepts the provided arguments.\n :rtype: bool" | 171 | false | uber/doubles | satisfy_exact_match | 19,867 | |
LDU_FT/cloudera/cm_api/get_all_users | LDU_FT | [
"<BEGIN>\n## `set_basic_auth`",
"Set up basic auth for the client\n @param username: Login name.\n @param password: Login password.\n @param realm: The authentication realm.\n @return: The current object\n<END>",
"<BEGIN>\n## `execute`",
"Submit an HTTP request.\n @param http_method: GET, POST,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_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 ext... | Get all users.
@param resource_root: The root Resource object
@param view: View to materialize ('full' or 'summary').
@return: A list of ApiUser objects. | "Get all users.\n\n @param resource_root: The root Resource object\n @param view: View to materialize ('full' or 'summary').\n @return: A list of ApiUser objects." | 561 | false | cloudera/cm_api | get_all_users | 19,868 | |
LDU_FT/benhoff/vexbot/send_request | LDU_FT | [
"<BEGIN>\n## `main`",
"`kwargs`:",
" `configuration_filepath`: filepath for the `ini` configuration\n<END>",
"<BEGIN>\n## `get_addresses`",
"parses a raw list from zmq to get back the components that are the address\n messages are broken by the addresses in the beginning and then the\n message,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | address must a list instance. Or a string which will be transformed into a address | "address must a list instance. Or a string which will be transformed into a address" | 68 | false | benhoff/vexbot | send_request | 19,869 | |
LDU_FT/axltxl/m2bk/main | LDU_FT | [
"<BEGIN>\n## `chkstr`",
"Small routine for checking whether a string is empty\n even a string",
" :param s: the string in question\n :param v: variable name\n<END>",
"<BEGIN>\n## `load`",
"Load this driver",
" Note that if either aws_access_key_id or aws_secret_access_key are\n not specifie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | This is the main thread of execution
:param argv: list of command line arguments | "This is the main thread of execution\n\n :param argv: list of command line arguments" | 83 | false | axltxl/m2bk | main | 19,870 | |
LDU_FT/clarkperkins/click-shell/get_invoke | LDU_FT | [
"<BEGIN>\n## `shell`",
"Creates a new :class:`Shell` with a function as callback. This\n works otherwise the same as :func:`command` just that the `cls`\n parameter is set to :class:`Shell`.\n<END>",
"<BEGIN>\n## `get_version`",
"Returns a PEP 440-compliant version number from VERSION.",
" Created... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_invoke API.
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_invoke API.
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 the Cmd main method from the click command
:param command: The click Command object
:return: the do_* method for Cmd
:rtype: function | "Get the Cmd main method from the click command\n :param command: The click Command object\n :return: the do_* method for Cmd\n :rtype: function" | 14 | false | clarkperkins/click-shell | get_invoke | 19,871 | |
LDU_FT/manahl/arctic/_datetime64_index | LDU_FT | [
"<BEGIN>\n## `delete`",
"Delete all chunks for a symbol.",
" Which are, for the moment, fully contained in the passed in\n date_range.",
" Parameters\n ----------\n symbol : `str`\n symbol name for the item\n date_range : `date.DateRange`\n DateR... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _datetime64_index API.
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 _datetime64_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Given a np.recarray find the first datetime64 column | "Given a np.recarray find the first datetime64 column" | 429 | false | manahl/arctic | _datetime64_index | 19,872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.