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/raphaelm/python-fints/_find_highest_supported_command
LDU_FT
[ "<BEGIN>\n## `parse_message`", "Takes a FinTS 3.0 message as byte array, and returns a parsed segment sequence\n<END>", "<BEGIN>\n## `serialize_message`", "Serialize a message (as SegmentSequence, list of FinTS3Segment, or FinTS3Segment) into a byte array\n<END>", "<BEGIN>\n## `terminal_flicker_unix`", "R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_highest_supported_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_highest_supported_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Search the BPD for the highest supported version of a segment.
"Search the BPD for the highest supported version of a segment."
79
false
raphaelm/python-fints
_find_highest_supported_command
37,273
LDU_FT/lvieirajr/mongorest/_get_db
LDU_FT
[ "<BEGIN>\n## `insert`", "Saves the Document to the database if it is valid.\n Returns errors otherwise.\n<END>", "<BEGIN>\n## `update`", "Updates the document with the given _id saved in the collection if it\n is valid.\n Returns errors otherwise.\n<END>", "<BEGIN>\n## `delete`", "Del...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns the connection to the database using the settings. This function should not be called outside of this file. Use db instead.
"Returns the connection to the database using the settings.\n This function should not be called outside of this file.\n Use db instead."
42
false
lvieirajr/mongorest
_get_db
37,274
LDU_FT/gmr/helper/start
LDU_FT
[ "<BEGIN>\n## `operating_system`", "Return a string identifying the operating system the application\n is running on.", " :rtype: str\n<END>", "<BEGIN>\n## `start`", "Daemonize if the process is not already running.\n<END>", "<BEGIN>\n## `gid`", "Return the group id that the daemon will run with", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Important: Do not extend this method, rather redefine Controller.run
"Important:\n\n Do not extend this method, rather redefine Controller.run"
77
false
gmr/helper
start
37,275
LDU_FT/learningequality/ricecooker/construct_channel
LDU_FT
[ "<BEGIN>\n## `_write_to_zip`", "_write_to_zip: Write file to zip\n Args:\n path: (str) where in zip to write file\n contents: (str) contents of file to write\n Returns: None\n<END>", "<BEGIN>\n## `_commit`", "_commit: Adds folder/file to map\n Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct_channel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct_channel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This method is reponsible for creating a `ChannelNode` object from the info in `channel_info` and populating it with TopicNode and ContentNode children.
"This method is reponsible for creating a `ChannelNode` object from the info\n in `channel_info` and populating it with TopicNode and ContentNode children."
364
false
learningequality/ricecooker
construct_channel
37,276
LDU_FT/pydata/xarray/acquire
LDU_FT
[ "<BEGIN>\n## `_infer_coords_and_dims`", "All the logic for creating a new DataArray\n<END>", "<BEGIN>\n## `to_dataset`", "Convert a DataArray to a Dataset.", " Parameters\n ----------\n dim : str, optional\n Name of the dimension on this array along which to split this array\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the acquire API. 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 acquire API. 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...
Acquire a lock, possibly in a non-blocking fashion. Includes backwards compatibility hacks for old versions of Python, dask and dask-distributed.
"Acquire a lock, possibly in a non-blocking fashion.\n\n Includes backwards compatibility hacks for old versions of Python, dask\n and dask-distributed."
2,080
true
pydata/xarray
acquire
37,277
LDU_FT/swimlane/swimlane-python/add
LDU_FT
[ "<BEGIN>\n## `add_record_references`", "Bulk operation to directly add record references without making any additional requests", " Warnings:\n Does not perform any app, record, or target app/record validation", " Args:\n app_id (str): Full App ID string\n record...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Upload a new attachment, and add it to current fields raw data to be persisted on save Can optionally manually set the content_type, will be guessed by provided filename extension and default to application/octet-stream if it cannot be guessed
"Upload a new attachment, and add it to current fields raw data to be persisted on save\n \n Can optionally manually set the content_type, will be guessed by provided filename extension and default to \n application/octet-stream if it cannot be guessed"
273
false
swimlane/swimlane-python
add
37,278
LDU_FT/richardchien/nonebot/load_builtin_plugins
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 load_builtin_plugins 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 load_builtin_plugins API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Load built-in plugins distributed along with "nonebot" package.
"Load built-in plugins distributed along with \"nonebot\" package."
105
false
richardchien/nonebot
load_builtin_plugins
37,279
LDU_FT/vertical-knowledge/ripozo-sqlalchemy/_get_field_python_type
LDU_FT
[ "<BEGIN>\n## `profileit`", "Decorator straight up stolen from stackoverflow\n<END>", "<BEGIN>\n## `_get_fields_for_model`", "Gets all of the fields on the model.", " :param DeclarativeModel model: A SQLAlchemy ORM Model\n :return: A tuple of the fields on the Model corresponding\n to the column...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_field_python_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_field_python_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Gets the python type for the attribute on the model with the name provided. :param Model model: The SqlAlchemy model class. :param unicode name: The column name on the model that you are attempting to get the python type. :return: The python type of the column :rtype...
"Gets the python type for the attribute on the model\n with the name provided.\n\n :param Model model: The SqlAlchemy model class.\n :param unicode name: The column name on the model\n that you are attempting to get the python type.\n :return: The python type of the column\n ...
49
false
vertical-knowledge/ripozo-sqlalchemy
_get_field_python_type
37,280
LDU_FT/dhain/potpy/load_config
LDU_FT
[ "<BEGIN>\n## `inject`", "Inject arguments from context into a callable.", " :param func: The callable to inject arguments into.\n :param \\*\\*kwargs: Specify values to override context items.\n<END>", "<BEGIN>\n## `match`", "Match a string against the template.", " If the string matc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Load a config from a resource file. The resource is found using `pkg_resources.resource_stream()`_, relative to the calling module. See :func:`parse_config` for config file details. :param name: The name of the resource, relative to the calling module. .. _pkg_resources.resource_stream(): http:/...
"Load a config from a resource file.\n\n The resource is found using `pkg_resources.resource_stream()`_,\n relative to the calling module.\n\n See :func:`parse_config` for config file details.\n\n :param name: The name of the resource, relative to the calling module.\n\n .. _pkg_resources.resource_stream...
45
false
dhain/potpy
load_config
37,281
LDU_FT/panosl/django-currencies/get_allcurrencycodes
LDU_FT
[ "<BEGIN>\n## `get_imports`", "See if we have been passed a set of currencies or a setting variable\n or look for settings CURRENCIES or SHOP_CURRENCIES.\n<END>", "<BEGIN>\n## `log`", "Both prints to stdout/stderr and the django.currencies logger\n<END>", "<BEGIN>\n## `check_rates`", "Local helper f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_allcurrencycodes 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_allcurrencycodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return an iterable of distinct 3 character ISO 4217 currency codes
"Return an iterable of distinct 3 character ISO 4217 currency codes"
57
false
panosl/django-currencies
get_allcurrencycodes
37,282
LDU_FT/signetlabdei/sem/query_parameters
LDU_FT
[ "<BEGIN>\n## `configure_and_build`", "Configure and build the ns-3 code.", " Args:\n show_progress (bool): whether or not to display a progress bar\n during compilation.\n optimized (bool): whether to use an optimized build. If False, use\n a standard ....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_parameters API. 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 query_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Asks the user for parameters. If available, proposes some defaults. Args: param_list (list): List of parameters to ask the user for values. defaults (list): A list of proposed defaults. It must be a list of the same length as param_list. A value of None in one element of the ...
"Asks the user for parameters. If available, proposes some defaults.\n\n Args:\n param_list (list): List of parameters to ask the user for values.\n defaults (list): A list of proposed defaults. It must be a list of the\n same length as param_list. A value of None in one element of the\n ...
148
false
signetlabdei/sem
query_parameters
37,283
LDU_FT/pricingassistant/mrq/shutdown_now
LDU_FT
[ "<BEGIN>\n## `group_iter`", "Given an iterator, it returns sub-lists made of n items.\n (except the last that can have len < n)\n<END>", "<BEGIN>\n## `memoize`", "Memoization decorator for a function taking one or more arguments.\n<END>", "<BEGIN>\n## `memoize_single_argument`", "Memoization decorator ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shutdown_now API. 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 shutdown_now API. 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...
Forced shutdown: interrupts all the jobs.
"Forced shutdown: interrupts all the jobs."
123
false
pricingassistant/mrq
shutdown_now
37,284
LDU_FT/trailofbits/protofuzz/get_integers
LDU_FT
[ "<BEGIN>\n## `find_protoc`", "Traverse a path ($PATH by default) to find the protoc compiler\n<END>", "<BEGIN>\n## `from_string`", "Produce a Protobuf module from a string description.\r", " Return the module if successfully compiled, otherwise raise a BadProtobuf\r\n exception.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_integers API. 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_integers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get integers from fuzzdb database bitwidth - The bitwidth that has to contain the integer unsigned - Whether the type is unsigned limit - Limit to |limit| results
"Get integers from fuzzdb database\n\n bitwidth - The bitwidth that has to contain the integer\n unsigned - Whether the type is unsigned\n limit - Limit to |limit| results"
52
false
trailofbits/protofuzz
get_integers
37,285
LDU_FT/python-visualization/folium/parse_options
LDU_FT
[ "<BEGIN>\n## `_get_self_bounds`", "Computes the bounds of the object itself (not including it's children)\n in the form [[lat_min, lon_min], [lat_max, lon_max]].\n<END>", "<BEGIN>\n## `path_options`", "Contains options and constants shared between vector overlays\n (Polygon, Polyline, Circle, Circle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_options API. 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...
Validate the provided kwargs and return options as json string.
"Validate the provided kwargs and return options as json string."
111
false
python-visualization/folium
parse_options
37,286
LDU_FT/williballenthin/python-evtx/unpack_byte
LDU_FT
[ "<BEGIN>\n## `xml_records`", "If the second return value is not None, then it is an\n Exception encountered during parsing. The first return value\n will be the XML string.", " @type filename str\n @rtype: generator of (etree.Element or str), (None or Exception)\n<END>", "<BEGIN>\n## `templat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack_byte API. 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 unpack_byte API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a little-endian unsigned byte from the relative offset. Arguments: - `offset`: The relative offset from the start of the block. Throws: - `OverrunBufferException`
"Returns a little-endian unsigned byte from the relative offset.\n Arguments:\n - `offset`: The relative offset from the start of the block.\n Throws:\n - `OverrunBufferException`"
73
false
williballenthin/python-evtx
unpack_byte
37,287
LDU_FT/SetBased/py-etlt/_detect_line_ending
LDU_FT
[ "<BEGIN>\n## `_split_scheme`", "Splits the scheme and actual expression", " :param str expression: The expression.", " :rtype: str\n<END>", "<BEGIN>\n## `register_scheme`", "Registers a scheme.", " :param str scheme: The scheme.\n :param callable constructor: The SimpleCondit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _detect_line_ending 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 _detect_line_ending 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...
Detects the line ending in the sample data.
"Detects the line ending in the sample data."
155
false
SetBased/py-etlt
_detect_line_ending
37,288
LDU_FT/hkff/FodtlMon/ltlfo2mon
LDU_FT
[ "<BEGIN>\n## `eval`", "This method should be always called by subclasses\n :param valuation\n :param trace\n :return: Arguments evaluation\n<END>", "<BEGIN>\n## `eval`", "This method should be override to return some value\n :param valuation\n :param trace\n :return:\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ltlfo2mon API. 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 ltlfo2mon API. 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...
Run ltlfo2mon :param formula: Formula | ltlfo string formula :param trace: Trace | ltlfo string trace :return:
"Run ltlfo2mon\n :param formula: Formula | ltlfo string formula\n :param trace: Trace | ltlfo string trace\n :return:"
51
false
hkff/FodtlMon
ltlfo2mon
37,289
LDU_FT/codenerix/django-codenerix/get_context_data
LDU_FT
[ "<BEGIN>\n## `get_groups`", "<--------------------------------------- 12 columns ------------------------------------>\n <--- 6 columns ---> <--- 6 columns --->\n ------------------------------------------ ------------------------------------------\n |...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generic list view with validation included and object transfering support
"Generic list view with validation included and object transfering support"
82
false
codenerix/django-codenerix
get_context_data
37,290
LDU_FT/BD2KGenomics/toil-scripts/main
LDU_FT
[ "<BEGIN>\n## `kmer_dag`", "Optionally launches a Spark cluster and then runs ADAM to count k-mers on an\n input file.", " :param job: Toil job\n :param input_file: URL/path to input file to count k-mers on\n :param output_path: URL/path to save k-mer counts at\n :param kmer_length: The length of ...
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 Toil pipeline aligns reads and performs alternative splicing analysis. Please read the README.md located in the same directory for run instructions.
"This Toil pipeline aligns reads and performs alternative splicing analysis.\n\n Please read the README.md located in the same directory for run instructions."
278
false
BD2KGenomics/toil-scripts
main
37,291
LDU_FT/redbridge/molnctrl/main
LDU_FT
[ "<BEGIN>\n## `_create_api_method`", "Create dynamic class methods based on the Cloudmonkey precached_verbs\n<END>", "<BEGIN>\n## `Initialize`", "Initializes the Cloudstack API\n Accepts arguments: \n api_host (localhost)\n api_port (443)\n api_ssl (True)\n ap...
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...
cachemaker.py creates a precache datastore of all available apis of CloudStack and dumps the precache dictionary in an importable python module. This way we cheat on the runtime overhead of completing commands and help docs. This reduces the overall search and cache_miss (computation) complexity from O(...
"cachemaker.py creates a precache datastore of all available apis of\n CloudStack and dumps the precache dictionary in an\n importable python module. This way we cheat on the runtime overhead of\n completing commands and help docs. This reduces the overall search and\n cache_miss (computation) complexity fr...
12
false
redbridge/molnctrl
main
37,292
LDU_FT/Metatab/metatab/add_child
LDU_FT
[ "<BEGIN>\n## `split_term`", "Split a term in to parent and record term components\n :param term: combined term text\n :return: Tuple of parent and record term\n<END>", "<BEGIN>\n## `split_term_lower`", "Like split_term, but also lowercases both parent and record term\n :param term: combin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_child API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_child API. 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...
Add a term to this term's children. Also sets the child term's parent
"Add a term to this term's children. Also sets the child term's parent"
102
false
Metatab/metatab
add_child
37,293
LDU_FT/kragniz/python-etcd3/create_alarm
LDU_FT
[ "<BEGIN>\n## `new_event`", "Wrap a raw gRPC event in a friendlier containing class.", " This picks the appropriate class from one of PutEvent or DeleteEvent and\n returns a new instance.\n<END>", "<BEGIN>\n## `acquire`", "Acquire the lock.", " :params timeout: Maximum time to wait before retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_alarm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_alarm API. 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 an alarm. If no member id is given, the alarm is activated for all the members of the cluster. Only the `no space` alarm can be raised. :param member_id: The cluster member id to create an alarm to. If 0, the alarm is created for all the members ...
"Create an alarm.\n\n If no member id is given, the alarm is activated for all the\n members of the cluster. Only the `no space` alarm can be raised.\n\n :param member_id: The cluster member id to create an alarm to.\n If 0, the alarm is created for all the members\n ...
113
false
kragniz/python-etcd3
create_alarm
37,294
LDU_FT/isambard-uob/ampal/find_ss_regions
LDU_FT
[ "<BEGIN>\n## `write_pdb`", "Writes a pdb file for a list of residues.", " Parameters\n ----------\n residues : list\n List of Residue objects.\n chain_id : str\n String of the chain id, defaults to ' '.\n alt_states : bool, optional\n If true, include all occupancy states of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_ss_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. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_ss_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. The e...
Separates parsed DSSP data into groups of secondary structure. Notes ----- Example: all residues in a single helix/loop/strand will be gathered into a list, then the next secondary structure element will be gathered into a separate list, and so on. Parameters ---------- dssp_residues :...
"Separates parsed DSSP data into groups of secondary structure.\n\n Notes\n -----\n Example: all residues in a single helix/loop/strand will be gathered\n into a list, then the next secondary structure element will be\n gathered into a separate list, and so on.\n\n Parameters\n ----------\n dssp...
84
false
isambard-uob/ampal
find_ss_regions
37,295
LDU_FT/openstack/networking-arista/get_sync_acl_cmds
LDU_FT
[ "<BEGIN>\n## `synchronize`", "Synchronizes Router DB from Neturon DB with EOS.", " Walks through the Neturon Db and ensures that all the routers\n created in Netuton DB match with EOS. After creating appropriate\n routers, it ensures to add interfaces as well.\n Uses idempotent prope...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sync_acl_cmds API. 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_sync_acl_cmds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns the list of commands required synchronize switch ACLs 1. Identify unexpected ACLs and delete them 2. Iterate over expected ACLs a. Add missing ACLs + all rules b. Delete unexpected rules c. Add missing rules
"Returns the list of commands required synchronize switch ACLs\n\n 1. Identify unexpected ACLs and delete them\n 2. Iterate over expected ACLs\n a. Add missing ACLs + all rules\n b. Delete unexpected rules\n c. Add missing rules"
213
false
openstack/networking-arista
get_sync_acl_cmds
37,296
LDU_FT/rochacbruno/dynaconf/delete
LDU_FT
[ "<BEGIN>\n## `init_app`", "kwargs holds initial dynaconf configuration\n<END>", "<BEGIN>\n## `get`", "Gets config from dynaconf variables\n if variables does not exists in dynaconf try getting from\n `app.config` to support runtime settings.\n<END>", "<BEGIN>\n## `object_merge`", "Recursivel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 ...
Delete a single key if specified, or all env if key is none :param obj: settings object :param key: key to delete from store location :return: None
"Delete a single key if specified, or all env if key is none\n :param obj: settings object\n :param key: key to delete from store location\n :return: None"
172
false
rochacbruno/dynaconf
delete
37,297
LDU_FT/ionelmc/python-cogen/recv
LDU_FT
[ "<BEGIN>\n## `run_op`", "Handle the operation:", " * if coro is in STATE_RUNNING, send or throw the given op\r", " * if coro is in STATE_NEED_INIT, call the init function and if it\r\n doesn't return a generator, set STATE_COMPLETED and set the result\r\n to whatever the functi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recv API. 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 recv API. 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...
Receive data from the socket. The return value is a string representing the data received. The amount of data may be less than the ammount specified by _bufsize_.
"Receive data from the socket. The return value is a string\r\n representing the data received. The amount of data may be less than the\r\n ammount specified by _bufsize_."
175
false
ionelmc/python-cogen
recv
37,298
LDU_FT/sdispater/cleo/overwrite
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse the given console command definition into a dict.", " :param expression: The expression to parse\n :type expression: str", " :rtype: dict\n<END>", "<BEGIN>\n## `_parameters`", "Extract all of the parameters from the tokens.", " :param tokens: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overwrite API. 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 overwrite API. 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...
Overwrites the current line. It will not add a new line so use line('') if necessary.
"Overwrites the current line.\n\n It will not add a new line so use line('')\n if necessary."
29
false
sdispater/cleo
overwrite
37,299
LDU_FT/praekeltfoundation/molo/separate_fields
LDU_FT
[ "<BEGIN>\n## `generate_slug`", "Returns a new unique slug. Object must provide a SlugField called slug.\n URL friendly slugs are generated using django.template.defaultfilters'\n slugify. Numbers are added to the end of slugs for uniqueness.", " based on implementation in jmbo.utils\n https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the separate_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the separate_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Non-foreign key fields can be mapped to new article instances directly. Foreign key fields require a bit more work. This method returns a tuple, of the same format: (flat fields, nested fields)
"Non-foreign key fields can be mapped to new article instances\n directly. Foreign key fields require a bit more work.\n This method returns a tuple, of the same format:\n (flat fields, nested fields)"
101
false
praekeltfoundation/molo
separate_fields
37,300
LDU_FT/acutesoftware/virtual-AI-simulator/pick_action_todo
LDU_FT
[ "<BEGIN>\n## `calc_basics`", "calculate various aspects of the structure\n<END>", "<BEGIN>\n## `bld_rafter_deflection`", "calculate rafter deflections - see test_calc_building_design.py for \n Sample values for equations below from Structures II course\n<END>", "<BEGIN>\n## `main`", "Prototype to see h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pick_action_todo API. 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 pick_action_todo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
only for testing and AI - user will usually choose an action Sort of works
"only for testing and AI - user will usually choose an action\n Sort of works"
86
false
acutesoftware/virtual-AI-simulator
pick_action_todo
37,301
LDU_FT/dlintott/gns3-converter/set_qemu_symbol
LDU_FT
[ "<BEGIN>\n## `setup_argparse`", "Setup the argparse argument parser", " :return: instance of argparse\n :rtype: ArgumentParser\n<END>", "<BEGIN>\n## `do_conversion`", "Convert the topology", " :param dict topology_def: Dict containing topology file and snapshot bool.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_qemu_symbol API. 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 set_qemu_symbol API. 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...
Set the appropriate symbol for QEMU Devices
"Set the appropriate symbol for QEMU Devices"
140
false
dlintott/gns3-converter
set_qemu_symbol
37,302
LDU_FT/EUDAT-B2SAFE/B2HANDLE/check_if_username_exists
LDU_FT
[ "<BEGIN>\n## `add_missing_optional_args_with_value_none`", "Adds key-value pairs to the passed dictionary, so that\n afterwards, the dictionary can be used without needing\n to check for KeyErrors.", " If the keys passed as a second argument are not present,\n they are added with None as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_if_username_exists 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 check_if_username_exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Check if the username handles exists. :param username: The username, in the form index:prefix/suffix :raises: :exc:`~b2handle.handleexceptions.HandleNotFoundException` :raises: :exc:`~b2handle.handleexceptions.GenericHandleError` :return: True. If it does not exist, an exception is rais...
"Check if the username handles exists.\n\n :param username: The username, in the form index:prefix/suffix\n :raises: :exc:`~b2handle.handleexceptions.HandleNotFoundException`\n :raises: :exc:`~b2handle.handleexceptions.GenericHandleError`\n :return: True. If it does not exist, an exception i...
168
false
EUDAT-B2SAFE/B2HANDLE
check_if_username_exists
37,303
LDU_FT/arubertoson/maya-launcher/find_applications_on_system
LDU_FT
[ "<BEGIN>\n## `get_system_config_directory`", "Return platform specific config directory.\n<END>", "<BEGIN>\n## `get_version_exec_mapping_from_path`", "Find valid application version from given path object and return\r\n a mapping of version, executable.\n<END>", "<BEGIN>\n## `find_applications_on_system`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_applications_on_system API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_applications_on_system API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Collect maya version from Autodesk PATH if exists, else try looking for custom executable paths from config file.
"Collect maya version from Autodesk PATH if exists, else try looking\r\n for custom executable paths from config file."
21
false
arubertoson/maya-launcher
find_applications_on_system
37,304
LDU_FT/SetBased/py-etlt/get_id
LDU_FT
[ "<BEGIN>\n## `_split_scheme`", "Splits the scheme and actual expression", " :param str expression: The expression.", " :rtype: str\n<END>", "<BEGIN>\n## `register_scheme`", "Registers a scheme.", " :param str scheme: The scheme.\n :param callable constructor: The SimpleCondit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns the technical ID for a natural key at a date or None if the given natural key is not valid. :param T natural_key: The natural key. :param str date: The date in ISO 8601 (YYYY-MM-DD) format. :param T enhancement: Enhancement data of the dimension row. :rtype: int|None
"Returns the technical ID for a natural key at a date or None if the given natural key is not valid.\n\n :param T natural_key: The natural key.\n :param str date: The date in ISO 8601 (YYYY-MM-DD) format.\n :param T enhancement: Enhancement data of the dimension row.\n\n :rtype: int|None"
155
false
SetBased/py-etlt
get_id
37,305
LDU_FT/all-umass/graphs/classify_harmonic
LDU_FT
[ "<BEGIN>\n## `random_graph`", "Random graph generator. Does not generate self-edges.\n out_degree : array-like of ints, controlling the out degree of each vertex.\n<END>", "<BEGIN>\n## `urquhart_graph`", "Urquhart graph: made from the 2 shortest edges of each Delaunay triangle.\n<END>", "<BEGIN>\n## `isoma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the classify_harmonic API. 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 classify_harmonic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Harmonic function method for semi-supervised classification, also known as the Gaussian Mean Fields algorithm. partial_labels: (n,) array of integer labels, -1 for unlabeled. use_CMN : when True, apply Class Mass Normalization From "Semi-Supervised Learning Using Gaussian Fields and Harmonic Functions...
"Harmonic function method for semi-supervised classification,\n also known as the Gaussian Mean Fields algorithm.\n\n partial_labels: (n,) array of integer labels, -1 for unlabeled.\n use_CMN : when True, apply Class Mass Normalization\n\n From \"Semi-Supervised Learning Using Gaussian Fields and Harmonic F...
167
false
all-umass/graphs
classify_harmonic
37,306
LDU_FT/mikeboers/MultiMap/_remove_pairs
LDU_FT
[ "<BEGIN>\n## `_rebuild_key_ids`", "Rebuild the internal key to index mapping.\n<END>", "<BEGIN>\n## `_conform_pair`", "Force a given key/value pair into a certain form.", " Override the _conform_key and _conform_value if you want to change\n the mapping behaviour.\n<END>", "<BEGIN>\n## `geta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_pairs API. 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 _remove_pairs API. 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...
Remove the pairs identified by the given indices into _pairs. Removes the pair, and updates the _key_ids mapping to be accurate. Removing the ids from the _key_ids is your own responsibility. Params: ids_to_remove -- The indices to remove. MUST be sorted.
"Remove the pairs identified by the given indices into _pairs.\n \n Removes the pair, and updates the _key_ids mapping to be accurate.\n Removing the ids from the _key_ids is your own responsibility.\n \n Params:\n ids_to_remove -- The indices to remove. MUST be sorted."
35
false
mikeboers/MultiMap
_remove_pairs
37,307
LDU_FT/smdabdoub/kraken-biom/create_biom_table
LDU_FT
[ "<BEGIN>\n## `tax_fmt`", "Create a string representation of a taxonomic hierarchy (QIIME for now).", " :type tax_lvl: dict\n :param tax_lvl: Keyed on the entries in ranks\n :type end: int\n :param end: The end rank index (0-based indexing). If end == 3\n then the returned string will ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_biom_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_biom_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create a BIOM table from sample counts and taxonomy metadata. :type sample_counts: dict :param sample_counts: A dictionary of dictionaries with the first level keyed on sample ID, and the second level keyed on taxon ID with counts as values. :type taxa: d...
"Create a BIOM table from sample counts and taxonomy metadata.\n\n :type sample_counts: dict\n :param sample_counts: A dictionary of dictionaries with the first level\n keyed on sample ID, and the second level keyed on\n taxon ID with counts as values.\n :type ...
21
false
smdabdoub/kraken-biom
create_biom_table
37,308
LDU_FT/DistrictDataLabs/yellowbrick/size
LDU_FT
[ "<BEGIN>\n## `download`", "Download the dataset from the hosted Yellowbrick data store and save\n it to the location specified by ``get_data_home``. The downloader\n verifies the download completed successfully and safely by comparing\n the expected signature with the SHA 256 signature of the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns the actual size in pixels as set by matplotlib, or the user provided size if available.
"Returns the actual size in pixels as set by matplotlib, or\n the user provided size if available."
1,283
true
DistrictDataLabs/yellowbrick
size
37,309
LDU_FT/Bystroushaak/zeo_connector/_get_db
LDU_FT
[ "<BEGIN>\n## `_get_db`", "Open the connection to the database based on the configuration file.\n<END>", "<BEGIN>\n## `transaction_manager`", "Decorator which wraps whole function into ``with transaction.manager:``.\n<END>", "<BEGIN>\n## `retry_and_reset`", "Decorator used to make sure, that operation on Z...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_db API. 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...
Open the connection to the database based on the configuration file.
"Open the connection to the database based on the configuration file."
11
false
Bystroushaak/zeo_connector
_get_db
37,310
LDU_FT/pavlin-policar/openTSNE/heap_push
LDU_FT
[ "<BEGIN>\n## `has_c_library`", "Check whether a C/C++ library is available on the system to the compiler.", " Parameters\n ----------\n library: str\n The library we want to check for e.g. if we are interested in FFTW3, we\n want to check for `fftw3.h`, so this parameter will be `fftw3`.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the heap_push API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the heap_push API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Push a new element onto the heap. The heap stores potential neighbors for each data point. The ``row`` parameter determines which data point we are addressing, the ``weight`` determines the distance (for heap sorting), the ``index`` is the element to add, and the flag determines whether this is to be co...
"Push a new element onto the heap. The heap stores potential neighbors\n for each data point. The ``row`` parameter determines which data point we\n are addressing, the ``weight`` determines the distance (for heap sorting),\n the ``index`` is the element to add, and the flag determines whether this\n is to ...
181
false
pavlin-policar/openTSNE
heap_push
37,311
LDU_FT/hwmrocker/smtplibaio/auth
LDU_FT
[ "<BEGIN>\n## `read_reply`", "Reads a reply from the server.", " Raises:\n ConnectionResetError: If the connection with the server is lost\n (we can't read any response anymore). Or if the server\n replies without a proper return code.", " Returns:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth API. 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 auth API. 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...
Tries to authenticate user against the SMTP server. Args: username (str): Username to authenticate with. password (str): Password to use along with the given ``username``. Raises: ConnectionResetError: If the connection with the server is unexpectede...
"Tries to authenticate user against the SMTP server.\n\n Args:\n username (str): Username to authenticate with.\n password (str): Password to use along with the given ``username``.\n\n Raises:\n ConnectionResetError: If the connection with the server is\n un...
140
false
hwmrocker/smtplibaio
auth
37,312
LDU_FT/roycoding/slots/best
LDU_FT
[ "<BEGIN>\n## `run`", "Run MAB test with T trials.", " Parameters\n ----------\n trials : int\n Number of trials to run.\n strategy : str\n Name of selected strategy.\n parameters : dict\n Parameters for selected strategy.", " Available...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the best API. 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 best API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return current 'best' choice of bandit. Returns ------- int Index of bandit
"Return current 'best' choice of bandit.\n\n Returns\n -------\n int\n Index of bandit"
55
false
roycoding/slots
best
37,313
LDU_FT/inveniosoftware/invenio-pidstore/register_minter
LDU_FT
[ "<BEGIN>\n## `recid_fetcher`", "Fetch a record's identifiers.", " :param record_uuid: The record UUID.\n :param data: The record metadata.\n :returns: A :data:`invenio_pidstore.fetchers.FetchedPID` instance.\n<END>", "<BEGIN>\n## `get_object`", "Get an object behind persistent identifier.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_minter API. 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 register_minter API. 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...
Register a minter. :param name: Minter name. :param minter: The new minter.
"Register a minter.\n\n :param name: Minter name.\n :param minter: The new minter."
118
false
inveniosoftware/invenio-pidstore
register_minter
37,314
LDU_FT/NICTA/revrand/solve_posdef
LDU_FT
[ "<BEGIN>\n## `fit`", "r\"\"\"\n Learn the parameters of a Bayesian generalized linear model (GLM).", " Parameters\n ----------\n X : ndarray\n (N, d) array input dataset (N samples, d dimensions).\n y : ndarray\n (N,) array targets (N samples)\n li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve_posdef API. 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 solve_posdef API. 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...
Solve the system :math:`A X = b` for :math:`X` where :math:`A` is a positive semi-definite matrix. This first tries cholesky, and if numerically unstable with solve using a truncated SVD (see solve_posdef_svd). The log-determinant of :math:`A` is also returned since it requires minimal overhead. ...
"Solve the system :math:`A X = b` for :math:`X` where :math:`A` is a\n positive semi-definite matrix.\n\n This first tries cholesky, and if numerically unstable with solve using a\n truncated SVD (see solve_posdef_svd).\n\n The log-determinant of :math:`A` is also returned since it requires minimal\n ove...
535
false
NICTA/revrand
solve_posdef
37,315
LDU_FT/openeventdata/mordecai/geoparse
LDU_FT
[ "<BEGIN>\n## `country_list_maker`", "Helper function to return dictionary of countries in {\"country\" : \"iso\"} form.\n<END>", "<BEGIN>\n## `make_skip_list`", "Return hand-defined list of place names to skip and not attempt to geolocate. If users would like to exclude\n country names, this would be the f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the geoparse API. 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 geoparse API. 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...
Main geoparsing function. Text to extracted, resolved entities. Parameters ---------- doc : str or spaCy The document to be geoparsed. Can be either raw text or already spacy processed. In some cases, it makes sense to bulk parse using spacy's .pipe() before sending ...
"Main geoparsing function. Text to extracted, resolved entities.\n\n Parameters\n ----------\n doc : str or spaCy\n The document to be geoparsed. Can be either raw text or already spacy processed.\n In some cases, it makes sense to bulk parse using spacy's .pipe() before sendi...
110
false
openeventdata/mordecai
geoparse
37,316
LDU_FT/svinota/mdns/read_string
LDU_FT
[ "<BEGIN>\n## `to_string`", "String representation with additional information\n<END>", "<BEGIN>\n## `answered_by`", "Returns true if the question is answered by the record\n<END>", "<BEGIN>\n## `reset_ttl`", "Sets this record's TTL and created time to that of\n another record.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Reads a string of a given length from the packet
"Reads a string of a given length from the packet"
67
false
svinota/mdns
read_string
37,317
LDU_FT/RiotGames/cloud-inquisitor/execute_worker
LDU_FT
[ "<BEGIN>\n## `options`", "Returns metadata information required for User Creation\n<END>", "<BEGIN>\n## `run`", "Update the cache of all DNS entries and perform checks", " Args:\n *args: Optional list of arguments\n **kwargs: Optional list of keyword arguments", " Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_worker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_worker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Retrieve a message from the `worker_queue` and process the request. This function will read a single message from the `worker_queue` and load the specified `EntryPoint` and execute the worker with the provided arguments. Upon completion (failure or otherwise) a message is sent to the `status_qu...
"Retrieve a message from the `worker_queue` and process the request.\n\n This function will read a single message from the `worker_queue` and load the specified `EntryPoint`\n and execute the worker with the provided arguments. Upon completion (failure or otherwise) a message is sent\n to the `stat...
693
false
RiotGames/cloud-inquisitor
execute_worker
37,318
LDU_FT/NiklasRosenstein/py-bundler/get_dependency_walker
LDU_FT
[ "<BEGIN>\n## `_get_long_path_name`", "Returns the long path name for a Windows path, i.e. the properly cased\n path of an existing file or directory.\n<END>", "<BEGIN>\n## `get_dependency_walker`", "Checks if `depends.exe` is in the system PATH. If not, it will be downloaded\n and extracted to a temporary d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dependency_walker 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_dependency_walker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Checks if `depends.exe` is in the system PATH. If not, it will be downloaded and extracted to a temporary directory. Note that the file will not be deleted afterwards. Returns the path to the Dependency Walker executable.
"Checks if `depends.exe` is in the system PATH. If not, it will be downloaded\n and extracted to a temporary directory. Note that the file will not be\n deleted afterwards.\n\n Returns the path to the Dependency Walker executable."
18
false
NiklasRosenstein/py-bundler
get_dependency_walker
37,319
LDU_FT/bfontaine/trigrams/_load
LDU_FT
[ "<BEGIN>\n## `save`", "Save the database to a file. If ``output`` is not given, the ``dbfile``\n given in the constructor is used.\n<END>", "<BEGIN>\n## `feed`", "Feed some text to the database, either from a string (``text``) or a\n file (``source``).", " >>> db = TrigramsDB()\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Load the database from its ``dbfile`` if it has one
"Load the database from its ``dbfile`` if it has one"
13
false
bfontaine/trigrams
_load
37,320
LDU_FT/mdgart/sentrylogs/read_file
LDU_FT
[ "<BEGIN>\n## `process_arguments`", "Deal with arguments passed on the command line\n<END>", "<BEGIN>\n## `parse_sentry_configuration`", "Parse Sentry DSN out of an application or Sentry configuration file\n<END>", "<BEGIN>\n## `follow_tail`", "Read (tail and follow) the log file, parse entries and send me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Read the contents of a file located relative to setup.py
"Read the contents of a file located relative to setup.py"
12
false
mdgart/sentrylogs
read_file
37,321
LDU_FT/etcher-be/emiz/parse_na_line
LDU_FT
[ "<BEGIN>\n## `unit_pos_to_spot`", "Translates a unit position to a known parking spot", " Args:\n unit_pos: unit position as Vec2", " Returns: ParkingSpot object\n<END>", "<BEGIN>\n## `_tdec`", "Translates a 4-digit decimal temperature representation", " Ex: 1045 -> -4.5°C 0237 -> 23....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_na_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_na_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Parser for the North American TAF forcast varient
"Parser for the North American TAF forcast varient"
297
false
etcher-be/emiz
parse_na_line
37,322
LDU_FT/lreis2415/PyGeoC/extract_numeric_values_from_string
LDU_FT
[ "<BEGIN>\n## `get_cell_length`", "Get flow direction induced cell length dict.\n Args:\n flow_model: Currently, \"TauDEM\", \"ArcGIS\", and \"Whitebox\" are supported.\n<END>", "<BEGIN>\n## `get_cell_shift`", "Get flow direction induced cell shift dict.\n Args:\n flow_model...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_numeric_values_from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_numeric_values_from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Find numeric values from string, e.g., 1, .7, 1.2, 4e2, 3e-3, -9, etc. Reference: `how-to-extract-a-floating-number-from-a-string-in-python`_ Examples: >>> input_str = '.1 .12 9.1 98.1 1. 12. 1 12' >>> StringClass.extract_numeric_values_from_string(input_str) ...
"Find numeric values from string, e.g., 1, .7, 1.2, 4e2, 3e-3, -9, etc.\n \n Reference: `how-to-extract-a-floating-number-from-a-string-in-python`_\n\n Examples:\n >>> input_str = '.1 .12 9.1 98.1 1. 12. 1 12'\n >>> StringClass.extract_numeric_values_from_string(input_str)\n ...
259
false
lreis2415/PyGeoC
extract_numeric_values_from_string
37,323
LDU_FT/hozn/coilmq/make_dbm
LDU_FT
[ "<BEGIN>\n## `server_from_config`", "Gets a configured L{coilmq.server.StompServer} from specified config.", " If `config` is None, global L{coilmq.config.config} var will be used instead.", " The `server_class` and `additional_kwargs` are primarily hooks for using this method\n from a testing enviro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_dbm API. 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 make_dbm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Creates a DBM queue store, pulling config values from the CoilMQ configuration.
"Creates a DBM queue store, pulling config values from the CoilMQ configuration."
211
false
hozn/coilmq
make_dbm
37,324
LDU_FT/chrisnorman7/confmanager/Show
LDU_FT
[ "<BEGIN>\n## `Show`", "Before we show the frame, we need to add the finishing touches:\n<END>", "<BEGIN>\n## `apply`", "Before self.onOk closes the window, it calls this function to sync the config changes from the GUI back to self.config.\n<END>", "<BEGIN>\n## `displayError`", "Complain about something t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Before we show the frame, we need to add the finishing touches:
"Before we show the frame, we need to add the finishing touches:"
22
false
chrisnorman7/confmanager
Show
37,325
LDU_FT/carsonyl/pypac/download_pac
LDU_FT
[ "<BEGIN>\n## `proxy_urls_from_dns`", "Generate URLs from which to look for a PAC file, based on a hostname.\r\n Fully-qualified hostnames are checked against the Mozilla Public Suffix List to ensure that\r\n generated URLs don't go outside the scope of the organization.\r\n If the fully-qualified hostnam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_pac API. 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 download_pac API. 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...
Try to download a PAC file from one of the given candidate URLs. :param list[str] candidate_urls: URLs that are expected to return a PAC file. Requests are made in order, one by one. :param timeout: Time to wait for host resolution and response for each URL. When a timeout or DNS failure o...
"Try to download a PAC file from one of the given candidate URLs.\r\n\r\n :param list[str] candidate_urls: URLs that are expected to return a PAC file.\r\n Requests are made in order, one by one.\r\n :param timeout: Time to wait for host resolution and response for each URL.\r\n When a timeout or DN...
88
false
carsonyl/pypac
download_pac
37,326
LDU_FT/vladcalin/gemstone/get_configurable_by_name
LDU_FT
[ "<BEGIN>\n## `parse_json_structure`", "Given a raw representation of a json structure, returns the parsed corresponding data\n structure (``JsonRpcRequest`` or ``JsonRpcRequestBatch``)", " :param string_item:\n :return:\n<END>", "<BEGIN>\n## `from_dict`", "Validates a dict instance and transforms i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_configurable_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_configurable_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns the registered configurable with the specified name or ``None`` if no such configurator exists.
"Returns the registered configurable with the specified name or ``None`` if no\n such configurator exists."
107
false
vladcalin/gemstone
get_configurable_by_name
37,327
LDU_FT/seung-lab/cloud-volume/extract_path
LDU_FT
[ "<BEGIN>\n## `decode_kempressed`", "subvol not bytestring since numpy conversion is done inside fpzip extension.\n<END>", "<BEGIN>\n## `bbox2array`", "Convenince method for creating a \n shared memory numpy array based on a CloudVolume\n and Bbox. c.f. sharedmemory.ndarray for information\n on the optional...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
cloudpath: e.g. gs://neuroglancer/DATASET/LAYER/info or s3://...
"cloudpath: e.g. gs://neuroglancer/DATASET/LAYER/info or s3://..."
237
false
seung-lab/cloud-volume
extract_path
37,328
LDU_FT/joeyespo/grip/read_stdin
LDU_FT
[ "<BEGIN>\n## `_get_style_urls`", "Gets the specified resource and parses all style URLs and their\n assets in the form of the specified patterns.\n<END>", "<BEGIN>\n## `_cache_contents`", "Fetches the given URLs and caches their contents\n and their assets in the given directory.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_stdin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_stdin API. 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...
Reads STDIN until the end of input and returns a unicode string.
"Reads STDIN until the end of input and returns a unicode string."
77
false
joeyespo/grip
read_stdin
37,329
LDU_FT/asweigart/pysimplevalidate/validateChoice
LDU_FT
[ "<BEGIN>\n## `_errstr`", "Returns the value str, truncated to MAX_ERROR_STR_LEN characters. If\n it's truncated, the returned value will have '...' on the end.\n<END>", "<BEGIN>\n## `_getStrippedValue`", "Like the strip() string method, except the strip argument describes\n different behavior:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validateChoice API. 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 validateChoice API. 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...
Raises ValidationException if value is not one of the values in choices. Returns the selected choice. Returns the value in choices that was selected, so it can be used inline in an expression: print('You chose ' + validateChoice(your_choice, ['cat', 'dog'])) Note that value itself is not retu...
"Raises ValidationException if value is not one of the values in\n choices. Returns the selected choice.\n\n Returns the value in choices that was selected, so it can be used inline\n in an expression:\n\n print('You chose ' + validateChoice(your_choice, ['cat', 'dog']))\n\n Note that value itself is...
148
false
asweigart/pysimplevalidate
validateChoice
37,330
LDU_FT/cloudnull/turbolift/_cdn
LDU_FT
[ "<BEGIN>\n## `start`", "Return a list of objects from the API for a container.\n<END>", "<BEGIN>\n## `_cdn`", "Retrieve a long list of all files in a container.", " :return final_list, list_count, last_obj:\n<END>", "<BEGIN>\n## `remove_dirs`", "Delete a directory recursively.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cdn API. 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 _cdn API. 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...
Retrieve a long list of all files in a container. :return final_list, list_count, last_obj:
"Retrieve a long list of all files in a container.\n\n :return final_list, list_count, last_obj:"
148
false
cloudnull/turbolift
_cdn
37,331
LDU_FT/xtrementl/focus/error
LDU_FT
[ "<BEGIN>\n## `_new_token`", "Appends new token to token stream.", " `chars`\n List of token characters. Defaults to current token list.\n `line_no`\n Line number for token. Defaults to current line number.\n<END>", "<BEGIN>\n## `_process_string`", "Process...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Similar to `write`, except it writes buffer to error stream. If coloring enabled, adds error coloring. `buf` Data buffer to write. `newline` Append newline character to buffer before writing.
"Similar to `write`, except it writes buffer to error stream.\n If coloring enabled, adds error coloring.\n\n `buf`\n Data buffer to write.\n `newline`\n Append newline character to buffer before writing."
413
false
xtrementl/focus
error
37,332
LDU_FT/rbuffat/pyepw/dbmin_stddev
LDU_FT
[ "<BEGIN>\n## `read`", "Read values.", " Args:\n vals (list): list of strings representing values\n<END>", "<BEGIN>\n## `city`", "Corresponds to IDD Field `city`", " Args:\n value (str): value for IDD Field `city`\n if `value` is None it will not be checke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dbmin_stddev API. 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 dbmin_stddev API. 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...
Corresponds to IDD Field `dbmin_stddev` Standard deviation of extreme annual minimum dry-bulb temperature Args: value (float): value for IDD Field `dbmin_stddev` Unit: C if `value` is None it will not be checked against the specification and i...
"Corresponds to IDD Field `dbmin_stddev`\n Standard deviation of extreme annual minimum dry-bulb temperature\n\n Args:\n value (float): value for IDD Field `dbmin_stddev`\n Unit: C\n if `value` is None it will not be checked against the\n specificati...
675
false
rbuffat/pyepw
dbmin_stddev
37,333
LDU_FT/boronine/discipline/__summary
LDU_FT
[ "<BEGIN>\n## `word`", "This function generates a fake word by creating between two and three\n random syllables and then joining them together.\n<END>", "<BEGIN>\n## `save_object`", "Save an object with Discipline", " Only argument is a Django object. This function saves the object\n (r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __summary API. 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 __summary API. 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...
A plaintext summary of the Action, useful for debugging.
"A plaintext summary of the Action, useful for debugging."
49
false
boronine/discipline
__summary
37,334
LDU_FT/stephantul/somber/load
LDU_FT
[ "<BEGIN>\n## `_calculate_influence`", "Pre-calculate the influence for a given value of sigma.", " The neighborhood has size num_neurons * num_neurons, so for a\n 30 * 30 map, the neighborhood will be size (900, 900).", " Parameters\n ----------\n neighborhood : float\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load a SOM from a JSON file saved with this package.. Parameters ---------- path : str The path to the JSON file. Returns ------- s : cls A som of the specified class.
"Load a SOM from a JSON file saved with this package..\n\n Parameters\n ----------\n path : str\n The path to the JSON file.\n\n Returns\n -------\n s : cls\n A som of the specified class."
123
false
stephantul/somber
load
37,335
LDU_FT/edeposit/marcxml2mods/add_missing_xml_attributes
LDU_FT
[ "<BEGIN>\n## `postprocess_periodical`", "Some basic postprocessing of the periodical publications.", " Args:\n marc_xml (str): Original Aleph record.\n mods (str): XML string generated by XSLT template.\n uuid (str): UUID of the package.\n counter (int): Number of record, is added...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_missing_xml_attributes 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 add_missing_xml_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Add `xmlns` and `ID` attributes to ``<mods:mods>`` tag. Args: dom (HTMLElement): DOM containing whole document. volume_counter (int, default 0): ID of volume.
"Add `xmlns` and `ID` attributes to ``<mods:mods>`` tag.\n\n Args:\n dom (HTMLElement): DOM containing whole document.\n volume_counter (int, default 0): ID of volume."
93
false
edeposit/marcxml2mods
add_missing_xml_attributes
37,336
LDU_FT/Ceasar/staticjinja/_ensure_dir
LDU_FT
[ "<BEGIN>\n## `should_handle`", "Check if an event should be handled.", " An event should be handled if a file in the searchpath was modified.", " :param event_type: a string, representing the type of event", " :param filename: the path to the file that triggered the event.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ensure_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. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ensure_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. The extra...
Ensure the output directory for a template exists.
"Ensure the output directory for a template exists."
71
false
Ceasar/staticjinja
_ensure_dir
37,337
LDU_FT/rgmining/ria/anomalous_score
LDU_FT
[ "<BEGIN>\n## `update`", "Update reviewers' anomalous scores and products' summaries.", " Returns:\n maximum absolute difference between old summary and new one, and\n old anomalous score and new one.\n<END>", "<BEGIN>\n## `anomalous_score`", "Anomalous score of this reviewer.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the anomalous_score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the anomalous_score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Anomalous score of this reviewer. Initial anomalous score is :math:`1 / |R|` where :math:`R` is a set of reviewers.
"Anomalous score of this reviewer.\n\n Initial anomalous score is :math:`1 / |R|`\n where :math:`R` is a set of reviewers."
87
false
rgmining/ria
anomalous_score
37,338
LDU_FT/threeML/astromodels/has_free_parameters
LDU_FT
[ "<BEGIN>\n## `angular_distance_fast`", "Compute angular distance using the Haversine formula. Use this one when you know you will never ask for points at\n their antipodes. If this is not the case, use the angular_distance function which is slower, but works also for\n antipodes.", " :param lon1:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_free_parameters 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 has_free_parameters 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 True or False whether there is any parameter in this source :return:
"Returns True or False whether there is any parameter in this source\n\n :return:"
240
false
threeML/astromodels
has_free_parameters
37,339
LDU_FT/jeffh/describe/filter_traceback
LDU_FT
[ "<BEGIN>\n## `execute`", "Does all the work of running an example.", " This includes:\n - building up the context.\n - capturing stdout & stderr\n - execute before functions\n - run example, catching any exceptions\n - execute after functions\n - record the resul...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_traceback API. 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 filter_traceback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Filtered out all parent stacktraces starting with the given stacktrace that has a given variable name in its globals.
"Filtered out all parent stacktraces starting with the given stacktrace that has\n a given variable name in its globals."
50
false
jeffh/describe
filter_traceback
37,340
LDU_FT/satellogic/telluric/cascaded_union
LDU_FT
[ "<BEGIN>\n## `join`", "This method takes a list of rasters and returns a raster that is constructed of all of them\n<END>", "<BEGIN>\n## `merge_all`", "Merge a list of rasters, cropping by a region of interest.\n There are cases that the roi is not precise enough for this cases one can use,\n the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cascaded_union API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cascaded_union API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Generate a GeoVector from the cascade union of the impute vectors.
"Generate a GeoVector from the cascade union of the impute vectors."
261
false
satellogic/telluric
cascaded_union
37,341
LDU_FT/jwkvam/bowtie/add
LDU_FT
[ "<BEGIN>\n## `notify`", "Notify the client.", " The function passed to ``App.respond`` will get called.\n<END>", "<BEGIN>\n## `validate`", "Check that the key is a string or bytestring.", " That's the only valid type of key.\n<END>", "<BEGIN>\n## `pack`", "Encode ``x`` into msgpack with addi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add a widget to the grid in the next available cell. Searches over columns then rows for available cells. Parameters ---------- components : bowtie._Component A Bowtie widget instance.
"Add a widget to the grid in the next available cell.\n\n Searches over columns then rows for available cells.\n\n Parameters\n ----------\n components : bowtie._Component\n A Bowtie widget instance."
82
false
jwkvam/bowtie
add
37,342
LDU_FT/tk0miya/tk.phpautodoc/p_encaps_var_array_offset
LDU_FT
[ "<BEGIN>\n## `p_top_statement_namespace`", "top_statement : NAMESPACE namespace_name SEMI\n | NAMESPACE LBRACE top_statement_list RBRACE\n | NAMESPACE namespace_name LBRACE top_statement_list RBRACE\n<END>", "<BEGIN>\n## `p_use_declaration`", "use_declaration : namespac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_encaps_var_array_offset 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 p_encaps_var_array_offset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
encaps_var : VARIABLE LBRACKET encaps_var_offset RBRACKET
"encaps_var : VARIABLE LBRACKET encaps_var_offset RBRACKET"
152
false
tk0miya/tk.phpautodoc
p_encaps_var_array_offset
37,343
LDU_FT/alerta/python-alerta-client/dump_netrc
LDU_FT
[ "<BEGIN>\n## `cli`", "Suppress alerts for specified duration based on alert attributes.\n<END>", "<BEGIN>\n## `cli`", "Add group/org/domain/role-to-customer or delete lookup entry.\n<END>", "<BEGIN>\n## `cli`", "Create user or update user details, including password reset.\n<END>", "<BEGIN>\n## `cli`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_netrc API. 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 dump_netrc API. 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...
Dump the class data in the format of a .netrc file.
"Dump the class data in the format of a .netrc file."
30
false
alerta/python-alerta-client
dump_netrc
37,344
LDU_FT/harmsm/PyCmdMessenger/_send_unsigned_int
LDU_FT
[ "<BEGIN>\n## `send`", "Send a command (which may or may not have associated arguments) to an \n arduino using the CmdMessage protocol. The command and any parameters\n should be passed as direct arguments to send. ", " arg_formats is an optional string that specifies the formats to use fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_unsigned_int 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 _send_unsigned_int 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...
Convert a numerical value into an integer, then to a bytes object. Check bounds for unsigned int.
"Convert a numerical value into an integer, then to a bytes object. Check\n bounds for unsigned int."
33
false
harmsm/PyCmdMessenger
_send_unsigned_int
37,345
LDU_FT/spacetelescope/synphot_refactor/check_overlap
LDU_FT
[ "<BEGIN>\n## `overlap_status`", "Check overlap between two arrays.", " Parameters\n ----------\n a, b : array-like\n Arrays to check. Assumed to be in the same unit.", " Returns\n -------\n result : {'full', 'partial', 'none'}\n * 'full' - ``a`` is within or same as ``b``\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_overlap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_overlap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Check for wavelength overlap between two spectra. Only wavelengths where ``self`` throughput is non-zero are considered. Example of full overlap:: |---------- other ----------| |------ self ------| Examples of partial overlap:: |---------- self...
"Check for wavelength overlap between two spectra.\n\n Only wavelengths where ``self`` throughput is non-zero\n are considered.\n\n Example of full overlap::\n\n |---------- other ----------|\n |------ self ------|\n\n Examples of partial overlap::\n\n |--...
519
false
spacetelescope/synphot_refactor
check_overlap
37,346
LDU_FT/jrief/django-websocket-redis/_is_valid_close_code
LDU_FT
[ "<BEGIN>\n## `fetch_message`", "Fetch the first message available for the given ``facility`` and ``audience``, if it has\n been persisted in the Redis datastore.\n The current HTTP ``request`` is used to determine to whom the message belongs.\n A unique string is used to identify the bucket's...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_valid_close_code 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 _is_valid_close_code 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: Whether the returned close code is a valid hybi return code.
":returns: Whether the returned close code is a valid hybi return code."
60
false
jrief/django-websocket-redis
_is_valid_close_code
37,347
LDU_FT/etcher-be/emiz/temperature
LDU_FT
[ "<BEGIN>\n## `unit_pos_to_spot`", "Translates a unit position to a known parking spot", " Args:\n unit_pos: unit position as Vec2", " Returns: ParkingSpot object\n<END>", "<BEGIN>\n## `_tdec`", "Translates a 4-digit decimal temperature representation", " Ex: 1045 -> -4.5°C 0237 -> 23....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temperature API. 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 temperature API. 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...
Formats a temperature element into a string with both C and F values Used for both Temp and Dew Ex: 34°C (93°F)
"Formats a temperature element into a string with both C and F values\n\n Used for both Temp and Dew\n\n Ex: 34°C (93°F)"
297
false
etcher-be/emiz
temperature
37,348
LDU_FT/softwarefactory-project/rdopkg/get_nvr
LDU_FT
[ "<BEGIN>\n## `rdopkg_runner`", "default rdopkg action runner including rdopkg action modules\n<END>", "<BEGIN>\n## `rdopkg`", "rdopkg CLI interface", " Execute rdopkg action with specified arguments and return\n shell friendly exit code.", " This is the default high level way to interact with rdo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nvr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nvr API. 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 NVR string from .spec Name, Version, Release and Epoch
"get NVR string from .spec Name, Version, Release and Epoch"
60
false
softwarefactory-project/rdopkg
get_nvr
37,349
LDU_FT/timothycrosley/jiphy/characters
LDU_FT
[ "<BEGIN>\n## `text_till`", "Returns all text till it encounters the given string (or one of the given strings)\n<END>", "<BEGIN>\n## `text_after`", "Returns all text till it encounters the given string (or one of the given strings)\n<END>", "<BEGIN>\n## `pop`", "removes the current character then moves to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the characters API. 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 characters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns characters at index + number of characters
"Returns characters at index + number of characters"
12
false
timothycrosley/jiphy
characters
37,350
LDU_FT/amanusk/s-tui/_load_config
LDU_FT
[ "<BEGIN>\n## `get_label_scale`", "Dynamically change the scale of the graph (y lable)\n<END>", "<BEGIN>\n## `calculate_bar_widths`", "Return a list of bar widths, one for each bar in data.", " If self.bar_width is None this implementation will stretch\n the bars across the available space spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Uses configurations defined by user to configure sources for display. This should be the only place where sources are initiated This returns a list of sources after configurations are applied
"Uses configurations defined by user to configure sources for display.\n This should be the only place where sources are initiated\n\n This returns a list of sources after configurations are applied"
70
false
amanusk/s-tui
_load_config
37,351
LDU_FT/PlaidWeb/Pushl/get_entry
LDU_FT
[ "<BEGIN>\n## `get_feed`", "Get a feed", " Arguments:", " config -- the configuration\n url -- The URL of the feed", " retval -- a tuple of feed,previous_version,changed\n<END>", "<BEGIN>\n## `archive_namespace`", "Returns the known namespace of the RFC5005 extension, if any\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_entry API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_entry API. 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...
Given an entry URL, return the entry Arguments: config -- the configuration url -- the URL of the entry Returns: 3-tuple of (current, previous, updated)
"Given an entry URL, return the entry\n\n Arguments:\n\n config -- the configuration\n url -- the URL of the entry\n\n Returns: 3-tuple of (current, previous, updated)"
38
false
PlaidWeb/Pushl
get_entry
37,352
LDU_FT/pantsbuild/pants/create_results_dir
LDU_FT
[ "<BEGIN>\n## `load_file_contents`", "Loads config from the given string payloads.", " A handful of seed values will be set to act as if specified in the loaded config file's DEFAULT\n section, and be available for use in substitutions. The caller may override some of these\n seed values.", " :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_results_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 create_results_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...
Ensure that the empty results directory and a stable symlink exist for these versioned targets.
"Ensure that the empty results directory and a stable symlink exist for these versioned targets."
3,372
true
pantsbuild/pants
create_results_dir
37,353
LDU_FT/mulkieran/justbases/roundFractional
LDU_FT
[ "<BEGIN>\n## `xform`", "Get a number as a string.", " :param number: a number\n :type number: list of int\n :param int base: the base in which this number is being represented\n :raises BasesValueError: if config is unsuitable for number\n<END>", "<BEGIN>\n## `_strip_trailing_zeros...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the roundFractional API. 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 roundFractional API. 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...
Round to precision as number of digits after radix. :param Radix value: value to round :param int precision: number of digits in total :param method: rounding method :raises BasesValueError: on bad parameters Precondition: Radix is valid and canonical Complexity: O(len...
"Round to precision as number of digits after radix.\n\n :param Radix value: value to round\n :param int precision: number of digits in total\n :param method: rounding method\n :raises BasesValueError: on bad parameters\n\n Precondition: Radix is valid and canonical\n\n Complex...
127
false
mulkieran/justbases
roundFractional
37,354
LDU_FT/rasbt/biopandas/to_pdb
LDU_FT
[ "<BEGIN>\n## `docstring_to_markdown`", "Convert a Python object's docstring to markdown", " Parameters\n ----------\n docstring : str\n The docstring body.", " Returns\n ----------\n clean_lst : list\n The markdown formatted docstring as lines (str) in a Python list.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_pdb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_pdb API. 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 ...
Write record DataFrames to a PDB file or gzipped PDB file. Parameters ---------- path : str A valid output path for the pdb file records : iterable, default: None A list of PDB record sections in {'ATOM', 'HETATM', 'ANISOU', 'OTHERS'} that are to be ...
"Write record DataFrames to a PDB file or gzipped PDB file.\n\n Parameters\n ----------\n path : str\n A valid output path for the pdb file\n\n records : iterable, default: None\n A list of PDB record sections in\n {'ATOM', 'HETATM', 'ANISOU', 'OTHERS'} that ...
110
false
rasbt/biopandas
to_pdb
37,355
LDU_FT/Loudr/pale/_execute
LDU_FT
[ "<BEGIN>\n## `py_doc_trim`", "Trim a python doc string.", " This example is nipped from https://www.python.org/dev/peps/pep-0257/,\n which describes how to conventionally format and trim docstrings.", " It has been modified to replace single newlines with a space, but leave\n multiple consecutive ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
The top-level execute function for the endpoint. This method is intended to remain as-is, and not be overridden. It gets called by your HTTP framework's route handler, and performs the following actions to process the request: ``authenticate_request`` Validate the Bearer to...
"The top-level execute function for the endpoint.\n\n This method is intended to remain as-is, and not be overridden.\n It gets called by your HTTP framework's route handler, and performs\n the following actions to process the request:\n\n ``authenticate_request``\n Validate the B...
107
false
Loudr/pale
_execute
37,356
LDU_FT/wimglenn/advent-of-code-data/current_day
LDU_FT
[ "<BEGIN>\n## `_get_answer`", "Note: Answers are only revealed after a correct submission. If you've\n have not already solved the puzzle, AocdError will be raised.\n<END>", "<BEGIN>\n## `get_data`", "Get data for day (1-25) and year (>= 2015)\n User's session cookie is needed (puzzle inputs differ b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the current_day API. 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 current_day API. 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...
Most recent day, if it's during the Advent of Code. Happy Holidays! Day 1 is assumed, otherwise.
"Most recent day, if it's during the Advent of Code. Happy Holidays!\n Day 1 is assumed, otherwise."
14
false
wimglenn/advent-of-code-data
current_day
37,357
LDU_FT/Komnomnomnom/swigibpy/reqFundamentalData
LDU_FT
[ "<BEGIN>\n## `placeOrder`", "placeOrder(EClient self, OrderId id, Contract contract, Order order)\n<END>", "<BEGIN>\n## `reqMktDepth`", "reqMktDepth(EClient self, TickerId id, Contract contract, int numRows, TagValueListSPtr const & mktDepthOptions)\n<END>", "<BEGIN>\n## `exerciseOptions`", "exerciseOptio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reqFundamentalData 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 reqFundamentalData 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...
reqFundamentalData(EClientSocketBase self, TickerId reqId, Contract arg3, IBString const & reportType)
"reqFundamentalData(EClientSocketBase self, TickerId reqId, Contract arg3, IBString const & reportType)"
81
false
Komnomnomnom/swigibpy
reqFundamentalData
37,358
LDU_FT/ffalcinelli/pydivert/close
LDU_FT
[ "<BEGIN>\n## `check_filter`", "Checks if the given packet filter string is valid with respect to the filter language.", " The remapped function is WinDivertHelperCheckFilter::", " BOOL WinDivertHelperCheckFilter(\n __in const char *filter,\n __in WINDIVERT_LAYER...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Closes the handle opened by open(). The remapped function is WinDivertClose:: BOOL WinDivertClose( __in HANDLE handle ); For more info on the C call visit: http://reqrypt.org/windivert-doc.html#divert_close
"Closes the handle opened by open().\n\n The remapped function is WinDivertClose::\n\n BOOL WinDivertClose(\n __in HANDLE handle\n );\n\n For more info on the C call visit: http://reqrypt.org/windivert-doc.html#divert_close"
67
false
ffalcinelli/pydivert
close
37,359
LDU_FT/spulec/moto/compare
LDU_FT
[ "<BEGIN>\n## `get_parameters_by_path`", "Implement the get-parameters-by-path-API in the backend.\n<END>", "<BEGIN>\n## `_match_filters`", "Return True if the given parameter matches all the filters\n<END>", "<BEGIN>\n## `list_commands`", "https://docs.aws.amazon.com/systems-manager/latest/APIReference/AP...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare API. 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 compare API. 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...
Compares this type against comparison filters
"Compares this type against comparison filters"
217
false
spulec/moto
compare
37,360
LDU_FT/Jaymon/prom/configure
LDU_FT
[ "<BEGIN>\n## `fields`", "return all the fields and their raw values for this Orm instance. This\n property returns a dict with the field names and their current values", " if you want to control the values for outputting to an api, use .jsonable()\n<END>", "<BEGIN>\n## `create`", "create an in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. 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 configure API. 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...
configure an interface to be used to query a backend you use this function to configure an Interface using a dsn, then you can get that interface using the get_interface() method dsn -- string -- a properly formatted prom dsn, see DsnConnection for how to format the dsn
"configure an interface to be used to query a backend\n\n you use this function to configure an Interface using a dsn, then you can get\n that interface using the get_interface() method\n\n dsn -- string -- a properly formatted prom dsn, see DsnConnection for how to format the dsn"
241
false
Jaymon/prom
configure
37,361
LDU_FT/moble/quaternion/from_rotation_vector
LDU_FT
[ "<BEGIN>\n## `slerp`", "Spherical linear interpolation of rotors", " This function uses a simpler interface than the more fundamental\n `slerp_evaluate` and `slerp_vectorized` functions. The latter\n are fast, being implemented at the C level, but take input `tau`\n instead of time. This function ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_rotation_vector 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 from_rotation_vector API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Convert input 3-vector in axis-angle representation to unit quaternion Parameters ---------- rot: (Nx3) float array Each vector represents the axis of the rotation, with norm proportional to the angle of the rotation in radians. Returns ------- q: array of quaternions U...
"Convert input 3-vector in axis-angle representation to unit quaternion\n\n Parameters\n ----------\n rot: (Nx3) float array\n Each vector represents the axis of the rotation, with norm\n proportional to the angle of the rotation in radians.\n\n Returns\n -------\n q: array of quaternion...
113
false
moble/quaternion
from_rotation_vector
37,362
LDU_FT/drericstrong/pyedna/GetRTFull
LDU_FT
[ "<BEGIN>\n## `write_relationships`", "This module will output the eDNA tags which are used inside each\n calculation.", " If flat=True, data will be written flat, like:\n ADE1CA01, ADE1PI01, ADE1PI02", " If flat=False, data will be written in the non-flat way, like:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetRTFull API. 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 GetRTFull API. 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...
Gets current information about a point configured in a real-time eDNA service, including current value, time, status, description, and units. :param tag_name: fully-qualified (site.service.tag) eDNA tag :return: tuple of: alue, time, status, statusint, description, units
"Gets current information about a point configured in a real-time\r\n eDNA service, including current value, time, status, description,\r\n and units.\r\n\r\n :param tag_name: fully-qualified (site.service.tag) eDNA tag\r\n :return: tuple of: alue, time, status, statusint, description, units"
70
false
drericstrong/pyedna
GetRTFull
37,363
LDU_FT/aparo/pyes/_django_to_es_field
LDU_FT
[ "<BEGIN>\n## `serialize`", "Serialize the search to a structure as passed for a search body.\n<END>", "<BEGIN>\n## `symbol_by_name`", "Get symbol by qualified name.", " The name should be the full dot-separated path to the class::", " modulename.ClassName", " Example::", " celery.c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _django_to_es_field 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 _django_to_es_field 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...
We use this function in value_list and ordering to get the correct fields name
"We use this function in value_list and ordering to get the correct fields name"
350
false
aparo/pyes
_django_to_es_field
37,364
LDU_FT/aleontiev/dj/run
LDU_FT
[ "<BEGIN>\n## `parse_application_name`", "Parse a setup.py file for the name.", " Returns:\n name, or None\n<END>", "<BEGIN>\n## `build`", "Builds the app in the app's environment.", " Only builds if the build is out-of-date and is non-empty.\n Builds in 3 stages: requiremen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run a local command. Examples: $ django run manage.py runserver ...
"Run a local command.\n\n Examples:\n\n $ django run manage.py runserver\n\n ..."
44
false
aleontiev/dj
run
37,365
LDU_FT/robinagist/ezo/info
LDU_FT
[ "<BEGIN>\n## `get_topic_sha3`", "takes an event block and returns a signature for sha3 hashing\n :param event_block:\n :return:\n<END>", "<BEGIN>\n## `info`", "Since this will always respond with height=0, Tendermint\n will resync this app from the begining\n<END>", "<BEGIN>\n## `check_tx`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Since this will always respond with height=0, Tendermint will resync this app from the begining
"Since this will always respond with height=0, Tendermint\n will resync this app from the begining"
45
false
robinagist/ezo
info
37,366
LDU_FT/ytjia/utils-py/almost_eq
LDU_FT
[ "<BEGIN>\n## `class_check_para`", "force check accept and return,\n decorator, @class_check_para(accept=, returns=, mail=)\n :param kw:\n :return:\n<END>", "<BEGIN>\n## `decorator_info`", "Convenience function returns nicely formatted error/warning msg.\n :param f_name:\n :param expected:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the almost_eq API. 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 almost_eq API. 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...
比较两个小数是否几乎相等 当两数差的绝对值小于threshold时认为其相等 :param a: :param b: :param threshold: :return: True or False
"比较两个小数是否几乎相等\n 当两数差的绝对值小于threshold时认为其相等\n :param a:\n :param b:\n :param threshold:\n :return: True or False"
31
false
ytjia/utils-py
almost_eq
37,367
LDU_FT/davebridges/mousedb/dispatch
LDU_FT
[ "<BEGIN>\n## `age`", "Calculates the animals age, relative to the current date (if alive) or the date of death (if not).\n<END>", "<BEGIN>\n## `breeding_male_location_type`", "This attribute defines whether a male's current location is the same as the breeding cage to which it belongs.", " This attri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
This decorator sets this view to have restricted permissions.
"This decorator sets this view to have restricted permissions."
128
false
davebridges/mousedb
dispatch
37,368
LDU_FT/gbowerman/azurerm/create_public_ip
LDU_FT
[ "<BEGIN>\n## `get_rg_from_id`", "get a resource group name from a VMSS ID string\n<END>", "<BEGIN>\n## `get_user_agent`", "User-Agent Header. Sends library identification to Azure endpoint.\n<END>", "<BEGIN>\n## `do_get`", "Do an HTTP GET request and return JSON.", " Args:\n endpoint (str): Az...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_public_ip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_public_ip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Create a public ip address. Args: access_token (str): A valid Azure authentication token. subscription_id (str): Azure subscription id. resource_group (str): Azure resource group name. public_ip_name (str): Name of the new public ip address resource. dns_label (str): DNS lab...
"Create a public ip address.\n\n Args:\n access_token (str): A valid Azure authentication token.\n subscription_id (str): Azure subscription id.\n resource_group (str): Azure resource group name.\n public_ip_name (str): Name of the new public ip address resource.\n dns_label (str):...
605
false
gbowerman/azurerm
create_public_ip
37,369
LDU_FT/kappius/pyheaderfile/write_cell
LDU_FT
[ "<BEGIN>\n## `guess_type`", "Utility function to call classes based on filename extension.\n Just usefull if you are reading the file and don't know file extension.\n You can pass kwargs and these args are passed to class only if they are\n used in class.\n<END>", "<BEGIN>\n## `write`", ":param args:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_cell API. 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 write_cell API. 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...
Writing value in the cell of x+1 and y+1 position :param x: line index :param y: coll index :param value: value to be written :return:
"Writing value in the cell of x+1 and y+1 position\n :param x: line index\n :param y: coll index\n :param value: value to be written\n :return:"
18
false
kappius/pyheaderfile
write_cell
37,370
LDU_FT/Microsoft/ApplicationInsights-Python/synthetic_source
LDU_FT
[ "<BEGIN>\n## `track_pageview`", "Send information about the page viewed in the application (a web page for instance).", " Args:\n name (str). the name of the page that was viewed.\\n\n url (str). the URL of the page that was viewed.\\n\n duration (int). the duration of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the synthetic_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the synthetic_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
The synthetic_source property. Args: value (string). the property value.
"The synthetic_source property.\n \n Args:\n value (string). the property value."
268
false
Microsoft/ApplicationInsights-Python
synthetic_source
37,371
LDU_FT/voidpp/python-tools/is_output_supports_color
LDU_FT
[ "<BEGIN>\n## `get_size`", "- get width and height of console\n - works on linux,os x,windows,cygwin(windows)\n originally retrieved from:\n http://stackoverflow.com/questions/566746/how-to-get-console-window-width-in-python\n<END>", "<BEGIN>\n## `is_output_supports_color`", "Returns True if the ru...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_output_supports_color 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 is_output_supports_color API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns True if the running system's terminal supports color, and False otherwise.
"Returns True if the running system's terminal supports color, and False\n otherwise."
15
false
voidpp/python-tools
is_output_supports_color
37,372