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/moderngl/moderngl/mouse_event_callback
LDU_FT
[ "<BEGIN>\n## `render`", "The render primitive (mode) must be the same as\n the input primitive of the GeometryShader.", " Args:\n mode (int): By default :py:data:`TRIANGLES` will be used.\n vertices (int): The number of vertices to transform.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mouse_event_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mouse_event_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Mouse event callback from glfw. Translates the events forwarding them to :py:func:`cursor_event`. Args: window: The window xpos: viewport x pos ypos: viewport y pos
"Mouse event callback from glfw.\r\n Translates the events forwarding them to :py:func:`cursor_event`.\r\n\r\n Args:\r\n window: The window\r\n xpos: viewport x pos\r\n ypos: viewport y pos"
263
false
moderngl/moderngl
mouse_event_callback
141,673
LDU_FT/mozilla/socorrolib/apply_all_rules
LDU_FT
[ "<BEGIN>\n## `klass_to_pypath`", "when a class is defined within the module that is being executed as\n main, the module name will be specified as '__main__' even though the\n module actually had its own real name. This ends up being very confusing\n to Configman as it tries to refer to a class by its p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_all_rules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_all_rules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
cycle through all rules and apply them all without regard to success or failure returns: True - since success or failure is ignored
"cycle through all rules and apply them all without regard to\n success or failure\n\n returns:\n True - since success or failure is ignored"
155
false
mozilla/socorrolib
apply_all_rules
141,674
LDU_FT/zeromake/aiosqlite3/create_future
LDU_FT
[ "<BEGIN>\n## `wait_closed`", "Wait for closing all pool's connections.\n<END>", "<BEGIN>\n## `_fill_free_pool`", "iterate over free connections and remove timeouted ones\n<END>", "<BEGIN>\n## `create_future`", "Compatibility wrapper for the loop.create_future() call introduced in\n 3.5.2.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_future API. 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 create_future API. 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...
Compatibility wrapper for the loop.create_future() call introduced in 3.5.2.
"Compatibility wrapper for the loop.create_future() call introduced in\n 3.5.2."
18
false
zeromake/aiosqlite3
create_future
141,675
LDU_FT/hhromic/python-oslom-runner/main
LDU_FT
[ "<BEGIN>\n## `run_in_memory`", "Run OSLOM with an in-memory list of edges, return in-memory results.\n<END>", "<BEGIN>\n## `main`", "Main interface function for the command line.\n<END>", "<BEGIN>\n## `get_int_id`", "Get a unique 32 bits signed integer for the given string Id.\n<END>", "<BEGIN>\n## `sto...
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...
Main interface function for the command line.
"Main interface function for the command line."
16
false
hhromic/python-oslom-runner
main
141,676
LDU_FT/OCHA-DAP/hdx-python-api/reorder_resources
LDU_FT
[ "<BEGIN>\n## `validlocations`", "Read valid locations from HDX", " Args:\n configuration (Optional[Configuration]): HDX configuration. Defaults to global configuration.", " Returns:\n List[Dict]: A list of valid locations\n<END>", "<BEGIN>\n## `get_location_from_HDX_code`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reorder_resources API. 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 reorder_resources API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Reorder resources in dataset according to provided list. If only some resource ids are supplied then these are assumed to be first and the other resources will stay in their original order. Args: resource_ids (List[str]): List of resource ids hxl_update (bool): W...
"Reorder resources in dataset according to provided list.\n If only some resource ids are supplied then these are\n assumed to be first and the other resources will stay in\n their original order.\n\n Args:\n resource_ids (List[str]): List of resource ids\n hxl_update (...
513
false
OCHA-DAP/hdx-python-api
reorder_resources
141,677
LDU_FT/thespacedoctor/qubits/random_sn_types_array
LDU_FT
[ "<BEGIN>\n## `setup`", "*setup the workspace in the requested location*", " **Return:**\n - ``None``\n<END>", "<BEGIN>\n## `random_redshift_array`", "*Generate a NumPy array of random distances given a sample number and distance limit*", " **Key Arguments:**\n - ``log`` -- logg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_sn_types_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_sn_types_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
*Generate random supernova types from the weighted distributions set in the simulation settings file* **Key Arguments:** - ``log`` -- logger - ``sampleNumber`` -- the sample number, i.e. array size - ``relativeSNRates`` -- dictionary of the rates - ``pathToOutputPlotDirectory`` -- p...
"*Generate random supernova types from the weighted distributions set in the simulation settings file*\n\n **Key Arguments:**\n - ``log`` -- logger\n - ``sampleNumber`` -- the sample number, i.e. array size\n - ``relativeSNRates`` -- dictionary of the rates\n - ``pathToOutputPlotDirectory...
152
false
thespacedoctor/qubits
random_sn_types_array
141,678
LDU_FT/danielfrg/datasciencebox/salt_ssh_create_dirs
LDU_FT
[ "<BEGIN>\n## `managed`", "Create and install python requirements in a conda enviroment\n pip is installed by default in the new enviroment", " name : path to the enviroment to be created\n packages : None\n single package or list of packages to install i.e. numpy, scipy=0.13.3, pandas\n requi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the salt_ssh_create_dirs 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 salt_ssh_create_dirs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Creates the `salt-ssh` required directory structure
"Creates the `salt-ssh` required directory structure"
45
false
danielfrg/datasciencebox
salt_ssh_create_dirs
141,679
LDU_FT/veripress/veripress/parser
LDU_FT
[ "<BEGIN>\n## `generate_pages_by_file`", "Generates custom pages of 'file' storage type.\n<END>", "<BEGIN>\n## `fix_relative_url`", "Fix post or page relative url to a standard, uniform format.", " :param publish_type: publish type ('post' or 'page')\n :param rel_url: relative url to fix\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Decorate a parser class to register it. :param format_name: standard format name :param ext_names: supported extension name
"Decorate a parser class to register it.\n\n :param format_name: standard format name\n :param ext_names: supported extension name"
109
false
veripress/veripress
parser
141,680
LDU_FT/Kane610/axis/session_callback
LDU_FT
[ "<BEGIN>\n## `session_request`", "Do HTTP/S request and return response as a string.\n<END>", "<BEGIN>\n## `get_event_list`", "Get a dict of supported events from device.\n<END>", "<BEGIN>\n## `_prepare_event`", "Converts event instances to a relevant dictionary.\n<END>", "<BEGIN>\n## `process_raw`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the session_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the session_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Signalling from stream session. Data - new data available for processing. Playing - Connection is healthy. Retry - if there is no connection to device.
"Signalling from stream session.\n\n Data - new data available for processing.\n Playing - Connection is healthy.\n Retry - if there is no connection to device."
55
false
Kane610/axis
session_callback
141,681
LDU_FT/QualiSystems/cloudshell-networking-devices/health_check
LDU_FT
[ "<BEGIN>\n## `create_networking_resource_from_context`", "Creates an instance of Networking Resource by given context\n :param shell_name: Shell Name\n :type shell_name: str\n :param supported_os: list of supported OS\n :type supported_os: list\n :param context: cloudshell.shell.core.driver_context...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the health_check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the health_check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Verify that device is accessible over CLI by sending ENTER for cli session
"Verify that device is accessible over CLI by sending ENTER for cli session"
87
false
QualiSystems/cloudshell-networking-devices
health_check
141,682
LDU_FT/carsonyl/pypac/isInNet
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 isInNet API. 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 isInNet API. 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...
Pattern and mask specification is done the same way as for SOCKS configuration. :param str host: a DNS hostname, or IP address. If a hostname is passed, it will be resolved into an IP address by this function. :param str pattern: an IP address pattern in the dot-separated format :param str mask: ma...
"Pattern and mask specification is done the same way as for SOCKS configuration.\n\n :param str host: a DNS hostname, or IP address.\n If a hostname is passed, it will be resolved into an IP address by this function.\n :param str pattern: an IP address pattern in the dot-separated format\n :param str ma...
88
false
carsonyl/pypac
isInNet
141,683
LDU_FT/arne-cl/discoursegraphs/write
LDU_FT
[ "<BEGIN>\n## `merging_cli`", "simple commandline interface of the merging module.", " This function is called when you use the ``discoursegraphs`` application\n directly on the command line.\n<END>", "<BEGIN>\n## `add_node_ids_as_labels`", "Adds the ID of each node of a discourse graph as a label (an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. 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 write API. 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...
serialize the ExmaraldaFile instance and write it to a file. Parameters ---------- output_filepath : str relative or absolute path to the Exmaralda file to be created
"serialize the ExmaraldaFile instance and write it to a file.\n\n Parameters\n ----------\n output_filepath : str\n relative or absolute path to the Exmaralda file to be created"
846
false
arne-cl/discoursegraphs
write
141,684
LDU_FT/capnproto/pycapnp/cython_enums
LDU_FT
[ "<BEGIN>\n## `localpath`", "construct an absolute path from a list relative to the root pycapnp directory\n<END>", "<BEGIN>\n## `fetch_archive`", "download an archive to a specific location\n<END>", "<BEGIN>\n## `stage_platform_hpp`", "stage platform.hpp into libcapnp sources", " Tries ./configure fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cython_enums API. 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 cython_enums API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
generate `enum: ZMQ_CONST` block for constant_enums.pxi
"generate `enum: ZMQ_CONST` block for constant_enums.pxi"
44
false
capnproto/pycapnp
cython_enums
141,685
LDU_FT/django-extensions/django-extensions/merge_model_instances
LDU_FT
[ "<BEGIN>\n## `_slug_strip`", "Clean up a slug by removing slug separator characters that occur at\n the beginning or end of a slug.", " If an alternate separator is used, it will also replace any instances\n of the default '-' separator with the new separator.\n<END>", "<BEGIN>\n## `to_py...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_model_instances 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 merge_model_instances API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Merge several model instances into one, the `primary_object`. Use this function to merge model objects and migrate all of the related fields from the alias objects the primary object.
"Merge several model instances into one, the `primary_object`.\n Use this function to merge model objects and migrate all of the related\n fields from the alias objects the primary object."
191
false
django-extensions/django-extensions
merge_model_instances
141,686
LDU_FT/christophertbrown/bioscripts/calc_thresholds
LDU_FT
[ "<BEGIN>\n## `six_frame`", "translate each sequence into six reading frames\n<END>", "<BEGIN>\n## `best_model`", "determine the best model: archaea, bacteria, eukarya (best score)\n<END>", "<BEGIN>\n## `check_gaps`", "check for large gaps between alignment windows\n<END>", "<BEGIN>\n## `check_overlap`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_thresholds API. 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 calc_thresholds API. 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...
if thresholds are not specififed, calculate based on the distribution of normalized bit scores
"if thresholds are not specififed, calculate based on the distribution of normalized bit scores"
219
false
christophertbrown/bioscripts
calc_thresholds
141,687
LDU_FT/mayhewj/greenstalk/pause_tube
LDU_FT
[ "<BEGIN>\n## `put`", "Inserts a job into the currently used tube and returns the job ID.", " :param body: The data representing the job.\n :param priority: An integer between 0 and 4,294,967,295 where 0 is the\n most urgent.\n :param delay: The number of seconds to d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pause_tube API. 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 pause_tube API. 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...
Prevents jobs from being reserved from a tube for a period of time. :param tube: The tube to pause. :param delay: The number of seconds to pause the tube for.
"Prevents jobs from being reserved from a tube for a period of time.\n\n :param tube: The tube to pause.\n :param delay: The number of seconds to pause the tube for."
45
false
mayhewj/greenstalk
pause_tube
141,688
LDU_FT/elastic/apm-agent-python/server_inspect_exception
LDU_FT
[ "<BEGIN>\n## `extract_signature`", "Extracts a minimal signature from a given SQL query\n :param sql: the SQL statement\n :return: a string representing the signature\n<END>", "<BEGIN>\n## `_timed_queue_join`", "implementation of Queue.join which takes a 'timeout' argument", " returns True on s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the server_inspect_exception 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 server_inspect_exception API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Called when an exception has been raised in the code run by ZeroRPC
"Called when an exception has been raised in the code run by ZeroRPC"
163
false
elastic/apm-agent-python
server_inspect_exception
141,689
LDU_FT/sirfoga/pyhal/get_documents_in_database
LDU_FT
[ "<BEGIN>\n## `write_dicts_to_csv`", "Saves .csv file with posts data", " :param dicts: Dictionaries with same values\n<END>", "<BEGIN>\n## `write_matrix_to_csv`", "Saves .csv file with data", " :param headers: column names\n :param data: Data\n<END>", "<BEGIN>\n## `write_dicts_to_js...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_documents_in_database 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 get_documents_in_database API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Gets all documents in database :param with_id: True iff each document should also come with its id :return: List of documents in collection in database
"Gets all documents in database\n\n :param with_id: True iff each document should also come with its id\n :return: List of documents in collection in database"
543
false
sirfoga/pyhal
get_documents_in_database
141,690
LDU_FT/Rockhopper-Technologies/enlighten/update
LDU_FT
[ "<BEGIN>\n## `_check_bool`", "Used as an error handler for Windows calls\n Gets last error if call is not successful\n<END>", "<BEGIN>\n## `get_csbi`", "Returns a CONSOLE_SCREEN_BUFFER_INFO structure for the given console or stdout\n<END>", "<BEGIN>\n## `enable_vt_mode`", "Enables virtual terminal proc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Args: incr(int): Amount to increment ``count`` (Default: 1) force(bool): Force refresh even if ``min_delta`` has not been reached Increment progress bar and redraw Progress bar is only redrawn if ``min_delta`` seconds past since the last update
"Args:\n incr(int): Amount to increment ``count`` (Default: 1)\n force(bool): Force refresh even if ``min_delta`` has not been reached\n\n Increment progress bar and redraw\n\n Progress bar is only redrawn if ``min_delta`` seconds past since the last update"
104
false
Rockhopper-Technologies/enlighten
update
141,691
LDU_FT/HDI-Project/RDT/transform
LDU_FT
[ "<BEGIN>\n## `check_data_type`", "Check the type of the transformer and column match.", " Args:\n column_metadata(dict): Metadata of the column.", " Raises a ValueError if the types don't match\n<END>", "<BEGIN>\n## `fit`", "Prepare the transformer to convert data.", " Ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. 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 transform API. 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...
Prepare the transformer to convert data and return the processed table. Args: col(pandas.DataFrame): Data to transform. Returns: pandas.DataFrame
"Prepare the transformer to convert data and return the processed table.\n\n Args:\n col(pandas.DataFrame): Data to transform.\n\n Returns:\n pandas.DataFrame"
154
false
HDI-Project/RDT
transform
141,692
LDU_FT/mjirik/imcut/debug_get_reconstructed_similarity
LDU_FT
[ "<BEGIN>\n## `__msgc_step3_discontinuity_localization`", "Estimate discontinuity in basis of low resolution image segmentation.\n :return: discontinuity in low resolution\n<END>", "<BEGIN>\n## `__multiscale_gc_lo2hi_run`", "Run Graph-Cut segmentation with refinement of low resolution multiscale graph.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug_get_reconstructed_similarity 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 debug_get_reconstructed_similarity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Use actual model to calculate similarity. If no input is given the last image is used. :param data3d: :param voxelsize: :param seeds: :param area_weight: :param hard_constraints: :param return_unariesalt: :return:
"Use actual model to calculate similarity. If no input is given the last image is used.\n :param data3d:\n :param voxelsize:\n :param seeds:\n :param area_weight:\n :param hard_constraints:\n :param return_unariesalt:\n :return:"
119
false
mjirik/imcut
debug_get_reconstructed_similarity
141,693
LDU_FT/firecat53/urlscan/extracthtmlurls
LDU_FT
[ "<BEGIN>\n## `load_tlds`", "Load all legal TLD extensions from assets\n<END>", "<BEGIN>\n## `parse_text_urls`", "Parse a block of text, splitting it into its url and non-url\n components.\n<END>", "<BEGIN>\n## `extract_with_context`", "Extract URL and context from a given chunk.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extracthtmlurls API. 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 extracthtmlurls API. 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...
Extract URLs with context from html type message. Similar to extracturls.
"Extract URLs with context from html type message. Similar to extracturls."
37
false
firecat53/urlscan
extracthtmlurls
141,694
LDU_FT/hapylestat/apputils/tokenize
LDU_FT
[ "<BEGIN>\n## `start`", ":arg max_val Maximum value\n :type max_val int\n<END>", "<BEGIN>\n## `progress`", ":type value int\n :type new_status str\n<END>", "<BEGIN>\n## `stop`", ":arg hide_progress Hide progress bar\n :type hide_progress bool\n :type new_status str\n<END>", "<BEGIN>\n## `dese...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize API. 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 tokenize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Convert input data to tokens :type obj list|set|tuple
"Convert input data to tokens\n\n :type obj list|set|tuple"
54
false
hapylestat/apputils
tokenize
141,695
LDU_FT/nigma/django-easy-pdf/fetch_resources
LDU_FT
[ "<BEGIN>\n## `fetch_resources`", "Retrieves embeddable resource from given ``uri``.", " For now only local resources (images, fonts) are supported.", " :param str uri: path or url to image or font resource\n :returns: path to local resource file.\n :rtype: str\n :raises: :exc:`~easy_pdf.excepti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_resources API. 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 fetch_resources API. 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...
Retrieves embeddable resource from given ``uri``. For now only local resources (images, fonts) are supported. :param str uri: path or url to image or font resource :returns: path to local resource file. :rtype: str :raises: :exc:`~easy_pdf.exceptions.UnsupportedMediaPathException`
"Retrieves embeddable resource from given ``uri``.\n\n For now only local resources (images, fonts) are supported.\n\n :param str uri: path or url to image or font resource\n :returns: path to local resource file.\n :rtype: str\n :raises: :exc:`~easy_pdf.exceptions.UnsupportedMediaPathException`"
24
false
nigma/django-easy-pdf
fetch_resources
141,696
LDU_FT/juju-solutions/charms.reactive/_find_impl
LDU_FT
[ "<BEGIN>\n## `endpoint_from_name`", "The object used for interacting with the named relations, or None.\n<END>", "<BEGIN>\n## `endpoint_from_flag`", "The object used for interacting with relations tied to a flag, or None.\n<END>", "<BEGIN>\n## `relation_factory`", "Get the RelationFactory for the given re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_impl API. 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 _find_impl API. 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...
Find relation implementation based on its role and interface.
"Find relation implementation based on its role and interface."
223
false
juju-solutions/charms.reactive
_find_impl
141,697
LDU_FT/openeventdata/mordecai/get_admin1
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 get_admin1 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_admin1 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Convert a geonames admin1 code to the associated place name. Parameters --------- country_code2: string The two character country code admin1_code: string The admin1 code to be converted. (Admin1 is the highest subnational...
"Convert a geonames admin1 code to the associated place name.\n\n Parameters\n ---------\n country_code2: string\n The two character country code\n admin1_code: string\n The admin1 code to be converted. (Admin1 is the highest\n su...
110
false
openeventdata/mordecai
get_admin1
141,698
LDU_FT/devoperate/chronos/git_tags
LDU_FT
[ "<BEGIN>\n## `git_tags`", "Calls ``git tag -l --sort=-v:refname`` (sorts output) and returns the\n output as a UTF-8 encoded string. Raises a NoGitTagsException if the\n repository doesn't contain any Git tags.\n<END>", "<BEGIN>\n## `git_tag_to_semver`", ":git_tag: A string representation of a Git tag."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the git_tags API. 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 git_tags API. 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...
Calls ``git tag -l --sort=-v:refname`` (sorts output) and returns the output as a UTF-8 encoded string. Raises a NoGitTagsException if the repository doesn't contain any Git tags.
"Calls ``git tag -l --sort=-v:refname`` (sorts output) and returns the\n output as a UTF-8 encoded string. Raises a NoGitTagsException if the\n repository doesn't contain any Git tags."
39
false
devoperate/chronos
git_tags
141,699
LDU_FT/IdentityPython/oidcendpoint/update
LDU_FT
[ "<BEGIN>\n## `client_authentication`", "Deal with client authentication", " :param request: The refresh access token request\n :param auth: Client authentication information\n :param kwargs: Extra keyword arguments\n :return: dictionary containing client id, client authentication met...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Add attribute value assertion to a special session :param sid: Session ID :param kwargs:
"Add attribute value assertion to a special session\n\n :param sid: Session ID\n :param kwargs:"
180
false
IdentityPython/oidcendpoint
update
141,700
LDU_FT/robdmc/crontabs/loop
LDU_FT
[ "<BEGIN>\n## `starting_at`", "Set the starting time for the cron job. If not specified, the starting time will always\n be the beginning of the interval that is current when the cron is started.", " :param datetime_or_str: a datetime object or a string that dateutil.parser can understand\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loop API. 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 loop API. 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...
Main loop for the process. This will run continuously until maxiter
"Main loop for the process. This will run continuously until maxiter"
15
false
robdmc/crontabs
loop
141,701
LDU_FT/TestInABox/stackInABox/base_url
LDU_FT
[ "<BEGIN>\n## `httpretty_callback`", "httpretty request handler.", " converts a call intercepted by httpretty to\n the stack-in-a-box infrastructure", " :param request: request object\n :param uri: the uri of the request\n :param headers: headers for the response", " :returns: tuple - (int,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the base_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the base_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Set the Base URL property, updating all associated services.
"Set the Base URL property, updating all associated services."
124
false
TestInABox/stackInABox
base_url
141,702
LDU_FT/DarkEnergySurvey/ugali/add_column
LDU_FT
[ "<BEGIN>\n## `integrate`", "Calculate the 2D integral of the 1D surface brightness profile \n (i.e, the flux) between rmin and rmax (elliptical radii). ", " Parameters:\n -----------\n rmin : minimum integration radius (deg)\n rmax : maximum integration radius (deg)", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_column API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_column API. 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...
Add a column to a FITS file. ADW: Could this be replaced by a ftool?
"Add a column to a FITS file.\n\n ADW: Could this be replaced by a ftool?"
614
false
DarkEnergySurvey/ugali
add_column
141,703
LDU_FT/coreGreenberet/homematicip-rest-api/activate_vacation
LDU_FT
[ "<BEGIN>\n## `from_json`", "this function will load the functional channel object \r\n from a json object and the given groups \r", " Args:\r\n js(dict): the json object\r\n groups(Iterable[Group]): the groups for referencing\n<END>", "<BEGIN>\n## `download_configuration`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_vacation API. 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 activate_vacation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
activates the vatation mode until the given time Args: endtime(datetime): the time when the vatation mode should automatically be disabled temperature(float): the settemperature during the vacation mode
"activates the vatation mode until the given time\r\n\r\n Args:\r\n endtime(datetime): the time when the vatation mode should automatically be disabled\r\n temperature(float): the settemperature during the vacation mode"
84
false
coreGreenberet/homematicip-rest-api
activate_vacation
141,704
LDU_FT/hobson/pug-dj/find_field_names
LDU_FT
[ "<BEGIN>\n## `instance`", "Creates an EC2 instance from an Ubuntu AMI and configures it as a Django server\n with nginx + gunicorn\n<END>", "<BEGIN>\n## `_run_task`", "Tasks a task from tasks.py and runs through the commands on the server\n<END>", "<BEGIN>\n## `_put_template`", "Same as _put() but it l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_field_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_field_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Use fuzzy string matching to find similar model field names without consulting a synonyms list Returns: list: A list model field names (strings) sorted from most likely to least likely. [] If no similar field names could be found in the indicated model [None] If none found and and `pad_with_n...
"Use fuzzy string matching to find similar model field names without consulting a synonyms list\n\n Returns:\n list: A list model field names (strings) sorted from most likely to least likely.\n [] If no similar field names could be found in the indicated model\n [None] If none found and and `pad_...
300
false
hobson/pug-dj
find_field_names
141,705
LDU_FT/inveniosoftware/invenio-pidrelations/is_last_child
LDU_FT
[ "<BEGIN>\n## `resolve_pid`", "Retrieve the real PID given a fetched PID.", " :param pid: fetched PID to resolve.\n<END>", "<BEGIN>\n## `ordered`", "Order the query result on the relations' indexes.\n<END>", "<BEGIN>\n## `_resolved_pid`", "Resolve self.pid if it is a fetched pid.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_last_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_last_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 ext...
Determine if 'pid' is the latest version of a resource. Resolves True for Versioned PIDs which are the oldest of its siblings. False otherwise, also for Head PIDs.
"Determine if 'pid' is the latest version of a resource.\n\n Resolves True for Versioned PIDs which are the oldest of its siblings.\n False otherwise, also for Head PIDs."
53
false
inveniosoftware/invenio-pidrelations
is_last_child
141,706
LDU_FT/miniconfig/python-openevse-wifi/getVentRequiredEnabled
LDU_FT
[ "<BEGIN>\n## `sendCommand`", "Sends a command through the web interface of the charger and parses the response\n<END>", "<BEGIN>\n## `getStatus`", "Returns the charger's charge status, as a string\n<END>", "<BEGIN>\n## `getChargeTimeElapsed`", "Returns the charge time elapsed (in seconds), or 0 if is not ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getVentRequiredEnabled 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 getVentRequiredEnabled 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 True if enabled, False if disabled
"Returns True if enabled, False if disabled"
32
false
miniconfig/python-openevse-wifi
getVentRequiredEnabled
141,707
LDU_FT/Kronuz/pyScss/apply_extends
LDU_FT
[ "<BEGIN>\n## `mix`", "Mixes together two colors. Specifically, takes the average of each of the\n RGB components, optionally weighted by the given percentage.\n The opacity of the colors is also considered when weighting the components.", " Specifically, takes the average of each of the RGB components,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_extends API. 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 apply_extends API. 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...
Run through the given rules and translate all the pending @extends declarations into real selectors on parent rules. The list is modified in-place and also sorted in dependency order.
"Run through the given rules and translate all the pending @extends\n declarations into real selectors on parent rules.\n\n The list is modified in-place and also sorted in dependency order."
205
false
Kronuz/pyScss
apply_extends
141,708
LDU_FT/CivicSpleen/ambry/parse
LDU_FT
[ "<BEGIN>\n## `_or_join`", "Joins terms using OR operator.", " Args:\n terms (list): terms to join", " Examples:\n self._or_join(['term1', 'term2']) -> 'term1 | term2'", " Returns:\n str\n<END>", "<BEGIN>\n## `search`", "Finds datasets by search phras...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse a string into one of the object number classes.
"Parse a string into one of the object number classes."
1,165
true
CivicSpleen/ambry
parse
141,709
LDU_FT/seung-lab/cloud-volume/start_threads
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 start_threads API. 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 start_threads API. 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...
Terminate existing threads and create a new set if the thread number doesn't match the desired number. Required: n_threads: (int) number of threads to spawn Returns: self
"Terminate existing threads and create a \n new set if the thread number doesn't match\n the desired number.\n\n Required: \n n_threads: (int) number of threads to spawn\n\n Returns: self"
237
false
seung-lab/cloud-volume
start_threads
141,710
LDU_FT/rkargon/pixelsorter/hue
LDU_FT
[ "<BEGIN>\n## `hue`", "Returns the saturation of a pixel.\n Gray pixels have saturation 0.\n :param p: A tuple of (R,G,B) values\n :return: A saturation value between 0 and 360\n<END>", "<BEGIN>\n## `saturation`", "Returns the saturation of a pixel, defined as the ratio of chroma to value.\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hue API. 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 hue API. 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...
Returns the saturation of a pixel. Gray pixels have saturation 0. :param p: A tuple of (R,G,B) values :return: A saturation value between 0 and 360
"Returns the saturation of a pixel.\n Gray pixels have saturation 0.\n :param p: A tuple of (R,G,B) values\n :return: A saturation value between 0 and 360"
79
false
rkargon/pixelsorter
hue
141,711
LDU_FT/kensho-technologies/graphql-compiler/to_match
LDU_FT
[ "<BEGIN>\n## `lower_ir`", "Lower the IR into an IR form that can be represented in Gremlin queries.", " Args:\n ir_blocks: list of IR blocks to lower into Gremlin-compatible form\n query_metadata_table: QueryMetadataTable object containing all metadata collected during\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return a unicode object with the MATCH representation of this expression.
"Return a unicode object with the MATCH representation of this expression."
786
false
kensho-technologies/graphql-compiler
to_match
141,712
LDU_FT/django-import-export/django-import-export/save_m2m
LDU_FT
[ "<BEGIN>\n## `has_import_permission`", "Returns whether a request has import permission.\n<END>", "<BEGIN>\n## `get_import_resource_kwargs`", "Prepares/returns kwargs used when initializing Resource\n<END>", "<BEGIN>\n## `process_import`", "Perform the actual import action (after the user has confirmed th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_m2m API. 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 save_m2m API. 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...
Saves m2m fields. Model instance need to have a primary key value before a many-to-many relationship can be used.
"Saves m2m fields.\n\n Model instance need to have a primary key value before\n a many-to-many relationship can be used."
84
false
django-import-export/django-import-export
save_m2m
141,713
LDU_FT/hatemile/hatemile-for-python/_create_aural_content_element
LDU_FT
[ "<BEGIN>\n## `_get_shortcut_prefix`", "Returns the shortcut prefix of browser.", " :param user_agent: The user agent of browser.\n :type user_agent: str\n :param standart_prefix: The default prefix.\n :type standart_prefix: str\n :return: The shortcut prefix of browser.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_aural_content_element API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_aural_content_element API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Create a element to show the content, only to aural displays. :param content: The text content of element. :type content: str :param data_property_value: The value of custom attribute used to identify the fix. :type data_property_value: str :r...
"Create a element to show the content, only to aural displays.\n\n :param content: The text content of element.\n :type content: str\n :param data_property_value: The value of custom attribute used to\n identify the fix.\n :type data_property_value: str\n ...
202
false
hatemile/hatemile-for-python
_create_aural_content_element
141,714
LDU_FT/tomturner/django-tenants/install_database
LDU_FT
[ "<BEGIN>\n## `get_table_list`", "Returns a list of table names in the current database and schema.\n<END>", "<BEGIN>\n## `get_table_description`", "Returns a description of the table, with the DB-API cursor.description interface.\n<END>", "<BEGIN>\n## `delete`", "Deletes this row. Drops the tenant's schem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_database API. 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 install_database API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Require a PostgreSQL database. :: from fabtools import require require.postgres.database('myapp', owner='dbuser')
"Require a PostgreSQL database.\n\n ::\n\n from fabtools import require\n\n require.postgres.database('myapp', owner='dbuser')"
50
false
tomturner/django-tenants
install_database
141,715
LDU_FT/palantir/typedjsonrpc/from_error
LDU_FT
[ "<BEGIN>\n## `from_error`", "Wraps another Exception in an InternalError.", " :param exc_info: The exception info for the wrapped exception\n :type exc_info: (type, object, traceback)\n :type json_encoder: json.JSONEncoder\n :type debug_url: str | None\n :rtype: InternalError"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extrac...
Wraps another Exception in an InternalError. :param exc_info: The exception info for the wrapped exception :type exc_info: (type, object, traceback) :type json_encoder: json.JSONEncoder :type debug_url: str | None :rtype: InternalError .. versionadded:: 0.1.0 .....
"Wraps another Exception in an InternalError.\n\n :param exc_info: The exception info for the wrapped exception\n :type exc_info: (type, object, traceback)\n :type json_encoder: json.JSONEncoder\n :type debug_url: str | None\n :rtype: InternalError\n\n .. versionadded:: 0.1.0\n...
73
false
palantir/typedjsonrpc
from_error
141,716
LDU_FT/inveniosoftware-attic/invenio-client/_init_browser
LDU_FT
[ "<BEGIN>\n## `_init_browser`", "Update this everytime the CERN SSO login form is refactored.\n<END>", "<BEGIN>\n## `_init_browser`", "Overide in appropriate way to prepare a logged in browser.\n<END>", "<BEGIN>\n## `search`", "Returns records corresponding to the given search query.", " See docst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_browser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_browser API. 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...
Overide in appropriate way to prepare a logged in browser.
"Overide in appropriate way to prepare a logged in browser."
18
false
inveniosoftware-attic/invenio-client
_init_browser
141,717
LDU_FT/andela-sjames/paystack-python/_request
LDU_FT
[ "<BEGIN>\n## `_request`", "Perform a method on a resource.", " Args:\n method: requests.`method`\n resource_uri: resource endpoint\n Raises:\n HTTPError\n Returns:\n JSON Response\n<END>", "<BEGIN>\n## `get`", "Get a resource.", " Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Perform a method on a resource. Args: method: requests.`method` resource_uri: resource endpoint Raises: HTTPError Returns: JSON Response
"Perform a method on a resource.\n\n Args:\n method: requests.`method`\n resource_uri: resource endpoint\n Raises:\n HTTPError\n Returns:\n JSON Response"
16
false
andela-sjames/paystack-python
_request
141,718
LDU_FT/desbma/r128gain/write_oggopus_output_gain
LDU_FT
[ "<BEGIN>\n## `parse_oggopus_output_gain`", "Parse an OggOpus file headers, read and return its output gain, and set file seek position to start of Opus header.\n<END>", "<BEGIN>\n## `write_oggopus_output_gain`", "Write output gain Opus header for a file.", " file must be an object successfully used by pars...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_oggopus_output_gain 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 write_oggopus_output_gain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Write output gain Opus header for a file. file must be an object successfully used by parse_oggopus_output_gain.
"Write output gain Opus header for a file.\n\n file must be an object successfully used by parse_oggopus_output_gain."
14
false
desbma/r128gain
write_oggopus_output_gain
141,719
LDU_FT/neuropsychology/NeuroKit.py/binarize_signal
LDU_FT
[ "<BEGIN>\n## `complexity`", "Computes several chaos/complexity indices of a signal (including entropy, fractal dimensions, Hurst and Lyapunov exponent etc.).", " Parameters\n ----------\n signal : list or array\n List or array of values.\n sampling_rate : int\n Sampling rate (samples/s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the binarize_signal API. 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 binarize_signal API. 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...
Binarize a channel based on a continuous channel. Parameters ---------- signal = array or list The signal channel. treshold = float The treshold value by which to select the events. If "auto", takes the value between the max and the min. cut = str "higher" or "lower", define...
"Binarize a channel based on a continuous channel.\n\n Parameters\n ----------\n signal = array or list\n The signal channel.\n treshold = float\n The treshold value by which to select the events. If \"auto\", takes the value between the max and the min.\n cut = str\n \"higher\" or \...
778
false
neuropsychology/NeuroKit.py
binarize_signal
141,720
LDU_FT/konstantint/matplotlib-venn/make_patch
LDU_FT
[ "<BEGIN>\n## `point_in_circle`", "Returns true if a given point is located inside (or on the border) of a circle.", " >>> point_in_circle((0, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 1), (0, 0), 1)\n False\n<END>", "<BEGIN>\n## `circle_i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_patch API. 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 make_patch API. 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...
Currently only works if all the pieces are Arcgons. In this case returns a multiple-piece path. Otherwise throws an exception.
"Currently only works if all the pieces are Arcgons.\n In this case returns a multiple-piece path. Otherwise throws an exception."
166
false
konstantint/matplotlib-venn
make_patch
141,721
LDU_FT/flyte/xbee-helper/get_supply_voltage
LDU_FT
[ "<BEGIN>\n## `raise_if_error`", "Checks a frame and raises the relevant exception if required.\n<END>", "<BEGIN>\n## `hex_to_int`", "Convert hex string like \"\\x0A\\xE3\" to 2787.\n<END>", "<BEGIN>\n## `adc_to_percentage`", "Convert the ADC raw value to a percentage.\n<END>", "<BEGIN>\n## `convert_adc`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_supply_voltage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_supply_voltage 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...
Fetches the value of %V and returns it as volts.
"Fetches the value of %V and returns it as volts."
25
false
flyte/xbee-helper
get_supply_voltage
141,722
LDU_FT/hyperledger/indy-node/_addAttr
LDU_FT
[ "<BEGIN>\n## `init_domain_ledger`", "This is usually an implementation of Ledger\n<END>", "<BEGIN>\n## `update_txn_with_extra_data`", "All the data of the transaction might not be stored in ledger so the\n extra data that is omitted from ledger needs to be fetched from the\n appropriate data sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _addAttr API. 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 _addAttr API. 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 state trie stores the hash of the whole attribute data at: the did+attribute name if the data is plaintext (RAW) the did+hash(attribute) if the data is encrypted (ENC) If the attribute is HASH, then nothing is stored in attribute store, the trie stores a blank value for the k...
"The state trie stores the hash of the whole attribute data at:\n the did+attribute name if the data is plaintext (RAW)\n the did+hash(attribute) if the data is encrypted (ENC)\n If the attribute is HASH, then nothing is stored in attribute store,\n the trie stores a blank value for ...
109
false
hyperledger/indy-node
_addAttr
141,723
LDU_FT/jupyterhub/kubespawner/options_from_form
LDU_FT
[ "<BEGIN>\n## `make_pod`", "Make a k8s pod specification for running a user notebook.", " Parameters\n ----------\n name:\n Name of pod. Must be unique within the namespace the object is\n going to be created in. Must be a valid DNS label.\n image:\n Image specification - usually...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the options_from_form API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the options_from_form API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
get the option selected by the user on the form This only constructs the user_options dict, it should not actually load any options. That is done later in `.load_user_options()` Args: formdata: user selection returned by the form To access to the value, you can use...
"get the option selected by the user on the form\n\n This only constructs the user_options dict,\n it should not actually load any options.\n That is done later in `.load_user_options()`\n\n Args:\n formdata: user selection returned by the form\n\n To access to the value, y...
98
false
jupyterhub/kubespawner
options_from_form
141,724
LDU_FT/sryza/spark-timeseries/islice
LDU_FT
[ "<BEGIN>\n## `fit_model`", "Fits an EWMA model to a time series. Uses the first point in the time series as a starting\n value. Uses sum squared error as an objective function to optimize to find smoothing parameter\n The model for EWMA is recursively defined as S_t = (1 - a) * X_t + a * S_{t-1}, where\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the islice API. 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 islice API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns a new DateTimeIndex, containing a subslice of the timestamps in this index, as specified by the given integer start and end locations. Parameters ---------- start : int The location of the start of the range, inclusive. end : int The location of t...
"Returns a new DateTimeIndex, containing a subslice of the timestamps in this index,\n as specified by the given integer start and end locations.\n\n Parameters\n ----------\n start : int\n The location of the start of the range, inclusive.\n end : int\n The loca...
137
false
sryza/spark-timeseries
islice
141,725
LDU_FT/gopalkoduri/intonation/find_nearest_index
LDU_FT
[ "<BEGIN>\n## `compute_hist`", "Computes histogram from the pitch data in Pitch object (pitch), and creates\n a Data object (pypeaks).", " :param bins: Refers to number of bins in the histogram, determines the granularity.\n If it is not set, the number of bins which gives the highest granul...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_nearest_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_nearest_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
For a given value, the function finds the nearest value in the array and returns its index.
"For a given value, the function finds the nearest value\n in the array and returns its index."
24
false
gopalkoduri/intonation
find_nearest_index
141,726
LDU_FT/Duke-GCB/DukeDSClient/_create_parser
LDU_FT
[ "<BEGIN>\n## `_create_parser`", "Create a parser hooking up the command methods below to be run when chosen.\n :return: CommandParser parser with commands attached.\n<END>", "<BEGIN>\n## `_check_pypi_version`", "When the version is out of date or we have trouble retrieving it print a error to stderr an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create a parser hooking up the command methods below to be run when chosen. :return: CommandParser parser with commands attached.
"Create a parser hooking up the command methods below to be run when chosen.\n :return: CommandParser parser with commands attached."
440
false
Duke-GCB/DukeDSClient
_create_parser
141,727
LDU_FT/azaghal/pydenticon/_generate_matrix
LDU_FT
[ "<BEGIN>\n## `_get_bit`", "Determines if the n-th bit of passed bytes is 1 or 0.", " Arguments:", " hash_bytes - List of hash byte values for which the n-th bit value\n should be checked. Each element of the list should be an integer from\n 0 to 255.", " Returns:", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generates matrix that describes which blocks should be coloured. Arguments: hash_bytes - List of hash byte values for which the identicon is being generated. Each element of the list should be an integer from 0 to 255. Returns: List of rows, where each element i...
"Generates matrix that describes which blocks should be coloured.\n\n Arguments:\n hash_bytes - List of hash byte values for which the identicon is being\n generated. Each element of the list should be an integer from 0 to\n 255.\n\n Returns:\n List of rows, where each ...
48
false
azaghal/pydenticon
_generate_matrix
141,728
LDU_FT/datadesk/slackdown/_open_list
LDU_FT
[ "<BEGIN>\n## `render`", "Accepts Slack formatted text and returns HTML.\n<END>", "<BEGIN>\n## `_open_list`", "Add an open list tag corresponding to the specification in the\n parser's LIST_TYPES.\n<END>", "<BEGIN>\n## `_close_list`", "Add an close list tag corresponding to the currently open\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _open_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _open_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add an open list tag corresponding to the specification in the parser's LIST_TYPES.
"Add an open list tag corresponding to the specification in the\n parser's LIST_TYPES."
24
false
datadesk/slackdown
_open_list
141,729
LDU_FT/naphatkrit/easyci/get_committed_signatures
LDU_FT
[ "<BEGIN>\n## `get_signature`", "Get the signature of the current state of the repository", " TODO right now `get_signature` is an effectful process in that\n it adds all untracked file to staging. This is the only way to get\n accruate diff on new files. This is ok because we only use it on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_committed_signatures 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_committed_signatures API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Get the list of committed signatures Args: vcs (easyci.vcs.base.Vcs) Returns: list(basestring) - list of signatures
"Get the list of committed signatures\n\n Args:\n vcs (easyci.vcs.base.Vcs)\n\n Returns:\n list(basestring) - list of signatures"
94
false
naphatkrit/easyci
get_committed_signatures
141,730
LDU_FT/ardydedase/pycouchbase/upload
LDU_FT
[ "<BEGIN>\n## `_add_err`", "Sets the error on this MultiResult. Will be ignored if an error is\n already set.\n :param exinfo: Return value from ``sys.exc_info()``\n<END>", "<BEGIN>\n## `_add_bad_rc`", "Sets an error with a bad return code. Handles 'quiet' logic\n :param rc: The error code...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Uploads all the local views from :attr:`VIEW_PATHS` directory to CouchBase server This method **over-writes** all the server-side views with the same named ones coming from :attr:`VIEW_PATHS` folder.
"Uploads all the local views from :attr:`VIEW_PATHS` directory\n to CouchBase server\n\n This method **over-writes** all the server-side views with the same\n named ones coming from :attr:`VIEW_PATHS` folder."
76
false
ardydedase/pycouchbase
upload
141,731
LDU_FT/chop-dbhi/varify-data-warehouse/load_content
LDU_FT
[ "<BEGIN>\n## `read`", "Reads up to size bytes, but always completes the last line.\n<END>", "<BEGIN>\n## `readline`", "The size is ignored since a complete line must be read.\n<END>", "<BEGIN>\n## `process_line`", "Process a single record. This assumes only a single sample output.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Attempts to open the file and read the content.
"Attempts to open the file and read the content."
53
false
chop-dbhi/varify-data-warehouse
load_content
141,732
LDU_FT/dossier/dossier.web/enable_cors
LDU_FT
[ "<BEGIN>\n## `as_multi_dict`", "Coerce a dictionary to a bottle.MultiDict\n<END>", "<BEGIN>\n## `set_query_params`", "Set the query parameters.", " The query parameters should be a dictionary mapping keys to\n strings or lists of strings.", " :param query_params: query parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_cors API. 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 enable_cors API. 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...
Enables Cross Origin Resource Sharing. This makes sure the necessary headers are set so that this web application's routes can be accessed from other origins. :rtype: :class:`WebBuilder`
"Enables Cross Origin Resource Sharing.\n\n This makes sure the necessary headers are set so that this\n web application's routes can be accessed from other origins.\n\n :rtype: :class:`WebBuilder`"
223
false
dossier/dossier.web
enable_cors
141,733
LDU_FT/AntagonistHQ/openprovider.py/resend_approver_email
LDU_FT
[ "<BEGIN>\n## `snake_to_camel`", "Converts a snake_case_string to a camelCaseString.", " >>> snake_to_camel(\"foo_bar_baz\")\n 'fooBarBaz'\n<END>", "<BEGIN>\n## `retrieve_approver_email_list`", "Retrieve the list of allowed approver email addresses.\n<END>", "<BEGIN>\n## `resend_approver_email`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resend_approver_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resend_approver_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Resend the activation email to the approver.
"Resend the activation email to the approver."
38
false
AntagonistHQ/openprovider.py
resend_approver_email
141,734
LDU_FT/opentracing/opentracing-python/activate
LDU_FT
[ "<BEGIN>\n## `activate`", "Make a :class:`~opentracing.Span` instance active.", " :param span: the :class:`~opentracing.Span` that should become active.\n :param finish_on_close: whether *span* should automatically be\n finished when :meth:`Scope.close()` is called.", " :return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate API. 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 activate API. 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...
Make a :class:`~opentracing.Span` instance active. :param span: the :class:`~opentracing.Span` that should become active. :param finish_on_close: whether *span* should automatically be finished when :meth:`Scope.close()` is called. :return: a :class:`~opentracing.Scope` instance to...
"Make a :class:`~opentracing.Span` instance active.\n\n :param span: the :class:`~opentracing.Span` that should become active.\n :param finish_on_close: whether *span* should automatically be\n finished when :meth:`Scope.close()` is called.\n\n :return: a :class:`~opentracing.Scope` inst...
79
false
opentracing/opentracing-python
activate
141,735
LDU_FT/wummel/linkchecker/parse_bookmark_data
LDU_FT
[ "<BEGIN>\n## `start_output`", "Write start of checking info as gml comment.\n<END>", "<BEGIN>\n## `getaddresses`", "Return list of email addresses from given field value.\n<END>", "<BEGIN>\n## `build_url`", "Call super.build_url(), extract list of mail addresses from URL,\n and check their syntax.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_bookmark_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_bookmark_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. T...
Return iterator for bookmarks of the form (url, name, line number). Bookmarks are not sorted.
"Return iterator for bookmarks of the form (url, name, line number).\n Bookmarks are not sorted."
1,377
true
wummel/linkchecker
parse_bookmark_data
141,736
LDU_FT/praekeltfoundation/seed-stage-based-messaging/is_within_limits
LDU_FT
[ "<BEGIN>\n## `is_within_limits`", "Returns True if the difference between date and any value in dates\n is less than or equal to limit.\n<END>", "<BEGIN>\n## `calculate_retry_delay`", "Calculates an exponential backoff for retry attempts with a small\n amount of jitter.\n<END>", "<BEGIN>\n## `run`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_within_limits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_within_limits API. 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 True if the difference between date and any value in dates is less than or equal to limit.
"Returns True if the difference between date and any value in dates\n is less than or equal to limit."
37
false
praekeltfoundation/seed-stage-based-messaging
is_within_limits
141,737
LDU_FT/StorjOld/heartbeat/verify
LDU_FT
[ "<BEGIN>\n## `generate_challenges`", "Generate the specified number of hash challenges.", " :param num: The number of hash challenges we want to generate.\n :param root_seed: Some value that we use to generate our seeds from.\n<END>", "<BEGIN>\n## `meet_challenge`", "Get the SHA256 hash of a s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This returns True if the proof matches the challenge and file state :param proof: the proof that was returned from the server :param chal: the challenge sent to the server :param state: the state of the file, which can be encrypted
"This returns True if the proof matches the challenge and file state\n\n :param proof: the proof that was returned from the server\n :param chal: the challenge sent to the server\n :param state: the state of the file, which can be encrypted"
100
false
StorjOld/heartbeat
verify
141,738
LDU_FT/svenkreiss/databench/emit
LDU_FT
[ "<BEGIN>\n## `color`", "triangles.", " Colors:\n - http://paletton.com/#uid=70l150klllletuehUpNoMgTsdcs shade 2\n<END>", "<BEGIN>\n## `on`", "Decorator for action handlers.", " The action name is inferred from the function name.", " This also decorates the method with `tornado.gen.coroutine`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit API. 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 emit API. 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...
Emit a signal to the frontend. :param str signal: name of the signal :param message: message to send :returns: return value from frontend emit function :rtype: tornado.concurrent.Future
"Emit a signal to the frontend.\n\n :param str signal: name of the signal\n :param message: message to send\n :returns: return value from frontend emit function\n :rtype: tornado.concurrent.Future"
86
false
svenkreiss/databench
emit
141,739
LDU_FT/kodexlab/reliure/argument_from_option
LDU_FT
[ "<BEGIN>\n## `add_field`", "Add a named field to the schema.", " .. Warning:: the field name should not contains spaces and should not\n start with an underscore.", " :param name: name of the new field\n :type name: str\n :param field: type instance for the field \n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the argument_from_option 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 argument_from_option API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Add an argparse argument to a parse from one option of one :class:`Optionable` >>> comp = Optionable() >>> comp.add_option("num", Numeric(default=1, max=12, help="An exemple of option")) >>> parser = argparse.ArgumentParser(prog="PROG") >>> argument_from_option(parser, comp, "num") >>> parser.print...
"Add an argparse argument to a parse from one option of one :class:`Optionable`\n\n >>> comp = Optionable()\n >>> comp.add_option(\"num\", Numeric(default=1, max=12, help=\"An exemple of option\"))\n >>> parser = argparse.ArgumentParser(prog=\"PROG\")\n >>> argument_from_option(parser, comp, \"num\")\n >...
243
false
kodexlab/reliure
argument_from_option
141,740
LDU_FT/eallik/spinoff/steps
LDU_FT
[ "<BEGIN>\n## `deferToGreenletPool`", "Call function using a greenlet from the given pool and return the result as a Deferred\n<END>", "<BEGIN>\n## `deferToGreenlet`", "Call function using a greenlet and return the result as a Deferred\n<END>", "<BEGIN>\n## `callMultipleInGreenlet`", "Call a list of functi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the steps API. 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 steps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns an iterable containing the steps to this `Uri` from the root `Uri`, including the root `Uri`.
"Returns an iterable containing the steps to this `Uri` from the root `Uri`, including the root `Uri`."
60
false
eallik/spinoff
steps
141,741
LDU_FT/aetros/aetros-cli/set_generator_validation_nb
LDU_FT
[ "<BEGIN>\n## `Popen`", "Executes a command using subprocess.Popen and redirects output to AETROS and stdout.\n Parses stdout as well for stdout API calls.", " Use read_line argument to read stdout of command's stdout line by line.\n Use returned process stdin to communicate with the command.", " :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_generator_validation_nb 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 set_generator_validation_nb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
sets self.nb_val_samples which is used in model.fit if input is a generator :param number: :return:
"sets self.nb_val_samples which is used in model.fit if input is a generator\n :param number:\n :return:"
183
false
aetros/aetros-cli
set_generator_validation_nb
141,742
LDU_FT/mrooney/mintapi/get_transactions_json
LDU_FT
[ "<BEGIN>\n## `close`", "Logs out and quits the current web driver/selenium session.\n<END>", "<BEGIN>\n## `request_and_check`", "Performs a request, and checks that the status is OK, and that the\n content-type matches expectations.", " Args:\n url: URL to request\n method: e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transactions_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transactions_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns the raw JSON transaction data as downloaded from Mint. The JSON transaction data includes some additional information missing from the CSV data, such as whether the transaction is pending or completed, but leaves off the year for current year transactions. Warning: In order to ...
"Returns the raw JSON transaction data as downloaded from Mint. The JSON\n transaction data includes some additional information missing from the\n CSV data, such as whether the transaction is pending or completed, but\n leaves off the year for current year transactions.\n\n Warning: In ord...
18
false
mrooney/mintapi
get_transactions_json
141,743
LDU_FT/Autodesk/pyccc/launch
LDU_FT
[ "<BEGIN>\n## `persistent_id`", "Tags objects with a persistent ID, but do NOT emit it\n<END>", "<BEGIN>\n## `open`", "Return file-like object (actually opens the file for this class)\n<END>", "<BEGIN>\n## `_open_tmpfile`", "Open a temporary, unique file in CACHEDIR (/tmp/cyborgcache) by default.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the launch API. 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 launch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create a job on this engine Args: image (str): name of the docker image to launch command (str): shell command to run
"Create a job on this engine\n\n Args:\n image (str): name of the docker image to launch\n command (str): shell command to run"
114
false
Autodesk/pyccc
launch
141,744
LDU_FT/jbarlow83/OCRmyPDF/get_canvas_square_dpi
LDU_FT
[ "<BEGIN>\n## `re_symlink`", "Helper function: relinks soft symbolic link if necessary\n<END>", "<BEGIN>\n## `is_file_writable`", "Intentionally racy test if target is writable.", " We intend to write to the output file if and only if we succeed and\n can replace it atomically. Before doing the OCR wor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_canvas_square_dpi 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_canvas_square_dpi API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get the DPI when we require xres == yres, in Postscript units
"Get the DPI when we require xres == yres, in Postscript units"
195
false
jbarlow83/OCRmyPDF
get_canvas_square_dpi
141,745
LDU_FT/YeoLab/anchor/jsd_df_to_2d
LDU_FT
[ "<BEGIN>\n## `plot_best_worst_fits`", "Violinplots of the highest and lowest scoring of each modality\n<END>", "<BEGIN>\n## `violinplot`", "Wrapper around Seaborn's Violinplot specifically for [0, 1] ranged data", " What's different:\n - bw = 0.2: Sets bandwidth to be small and the same between datase...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsd_df_to_2d API. 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 jsd_df_to_2d API. 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...
Transform a tall JSD dataframe to a square matrix of mean JSDs Parameters ---------- jsd_df : pandas.DataFrame A (n_features, n_phenotypes^2) dataframe of the JSD between each feature between and within phenotypes Returns ------- jsd_2d : pandas.DataFrame A (n_phenotype...
"Transform a tall JSD dataframe to a square matrix of mean JSDs\n\n Parameters\n ----------\n jsd_df : pandas.DataFrame\n A (n_features, n_phenotypes^2) dataframe of the JSD between each\n feature between and within phenotypes\n\n Returns\n -------\n jsd_2d : pandas.DataFrame\n A ...
94
false
YeoLab/anchor
jsd_df_to_2d
141,746
LDU_FT/lpantano/seqcluster/_common
LDU_FT
[ "<BEGIN>\n## `add_exp`", "Function to add the counts for each sample", " :param gr: name of the sample\n :param exp: counts of sample **gr**", " :returns: dict with key,values equally to name,counts.\n<END>", "<BEGIN>\n## `MakeJoint`", "Joint distribution of values from pmf1 and pmf2....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _common API. 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 _common API. 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...
calculate the common % percentage of sequences
"calculate the common % percentage of sequences"
491
false
lpantano/seqcluster
_common
141,747
LDU_FT/carlosp420/primer-designer/insert_taxon_in_new_fasta_file
LDU_FT
[ "<BEGIN>\n## `is_fasta`", "Check if filename is FASTA based on extension", " Return:\n Boolean\n<END>", "<BEGIN>\n## `insert_taxon_in_new_fasta_file`", "primer4clades infers the codon usage table from the taxon names in the\n sequences.", " These names need to be enclosed by square ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_taxon_in_new_fasta_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_taxon_in_new_fasta_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
primer4clades infers the codon usage table from the taxon names in the sequences. These names need to be enclosed by square brackets and be present in the description of the FASTA sequence. The position is not important. I will insert the names in the description in a new FASTA ...
"primer4clades infers the codon usage table from the taxon names in the\n sequences.\n\n These names need to be enclosed by square brackets and be\n present in the description of the FASTA sequence. The position is not\n important. I will insert the names in the description in a new FASTA\n ...
14
false
carlosp420/primer-designer
insert_taxon_in_new_fasta_file
141,748
LDU_FT/trezor/python-trezor/get_nonce
LDU_FT
[ "<BEGIN>\n## `encode_pin`", "Transform correct PIN according to the displayed matrix.\n<END>", "<BEGIN>\n## `address_from_public_key`", "Returns the base32-encoded version of pk_bytes (G...)\n<END>", "<BEGIN>\n## `parse_transaction_bytes`", "Parses base64data into a map with the following keys:\n t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nonce API. 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_nonce API. 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...
Calculate CoSi nonces for given data. These differ from Ed25519 deterministic nonces in that there is a counter appended at end. Returns both the private point `r` and the partial signature `R`. `r` is returned for performance reasons: :func:`sign_with_privkey` takes it as its `nonce` argument so that ...
"Calculate CoSi nonces for given data.\n These differ from Ed25519 deterministic nonces in that there is a counter appended at end.\n\n Returns both the private point `r` and the partial signature `R`.\n `r` is returned for performance reasons: :func:`sign_with_privkey`\n takes it as its `nonce` argument so...
52
false
trezor/python-trezor
get_nonce
141,749
LDU_FT/Netflix-Skunkworks/swag-client/upgrade
LDU_FT
[ "<BEGIN>\n## `create_swag_from_ctx`", "Creates SWAG client from the current context.\n<END>", "<BEGIN>\n## `list_service`", "Retrieve accounts pertaining to named service.\n<END>", "<BEGIN>\n## `migrate`", "Transition from one SWAG schema to another.\n<END>", "<BEGIN>\n## `propagate`", "Transfers SWAG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upgrade API. 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 upgrade API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Transforms data from a v1 format to a v2 format
"Transforms data from a v1 format to a v2 format"
48
false
Netflix-Skunkworks/swag-client
upgrade
141,750
LDU_FT/zengbin93/zb/elapsed
LDU_FT
[ "<BEGIN>\n## `layer_sizes`", "Arguments:\n X -- input dataset of shape (input size, number of examples)\n Y -- labels of shape (output size, number of examples)", " Returns:\n n_x -- the size of the input layer\n n_h -- the size of the hidden layer\n n_y -- the size of the output layer\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elapsed API. 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 elapsed API. 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...
A decorator for calculating time elapsed when execute function
"A decorator for calculating time elapsed when execute function"
101
false
zengbin93/zb
elapsed
141,751
LDU_FT/bastikr/boolean.py/simplify
LDU_FT
[ "<BEGIN>\n## `definition`", "Return a tuple of this algebra defined elements and types as:\n (TRUE, FALSE, NOT, AND, OR, Symbol)\n<END>", "<BEGIN>\n## `parse`", "Return a boolean expression parsed from `expr` either a unicode string\n or tokens iterable.", " Optionally simplify the expr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simplify API. 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 simplify API. 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...
Return a new simplified expression in canonical form from this expression. For simplification of AND and OR fthe ollowing rules are used recursively bottom up: - Associativity (output does not contain same operations nested) - Annihilation - Idempotence - Ide...
"Return a new simplified expression in canonical form from this\n expression.\n\n For simplification of AND and OR fthe ollowing rules are used\n recursively bottom up:\n - Associativity (output does not contain same operations nested)\n - Annihilation\n - Idempotence\n ...
71
false
bastikr/boolean.py
simplify
141,752
LDU_FT/ofek/bit/get_transaction_by_id
LDU_FT
[ "<BEGIN>\n## `currency_to_satoshi`", "Converts a given amount of currency to the equivalent number of\n satoshi. The amount can be either an int, float, or string as long as\n it is a valid input to :py:class:`decimal.Decimal`.", " :param amount: The quantity of currency.\n :param currency: One of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transaction_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transaction_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Gets a raw transaction hex by its transaction id (txid). :param txid: The id of the transaction :type txid: ``str`` :raises ConnectionError: If all API services fail. :rtype: ``string``
"Gets a raw transaction hex by its transaction id (txid).\n\n :param txid: The id of the transaction\n :type txid: ``str``\n :raises ConnectionError: If all API services fail.\n :rtype: ``string``"
71
false
ofek/bit
get_transaction_by_id
141,753
LDU_FT/gmr/rejected/on_consumer_cancelled
LDU_FT
[ "<BEGIN>\n## `active_processes`", "Return a list of all active processes, pruning dead ones", " :rtype: list\n<END>", "<BEGIN>\n## `calculate_stats`", "Calculate the stats data for our process level data.", " :param data: The collected stats data to report on\n :type data: dict\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_consumer_cancelled API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_consumer_cancelled API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Invoked by pika when a ``Basic.Cancel`` or ``Basic.CancelOk`` is received. :param _frame: The Basic.Cancel or Basic.CancelOk frame :type _frame: pika.frame.Frame
"Invoked by pika when a ``Basic.Cancel`` or ``Basic.CancelOk``\n is received.\n\n :param _frame: The Basic.Cancel or Basic.CancelOk frame\n :type _frame: pika.frame.Frame"
368
false
gmr/rejected
on_consumer_cancelled
141,754
LDU_FT/PatrikValkovic/grammpy/_create_rule
LDU_FT
[ "<BEGIN>\n## `reverse_cyk_transforms`", "Reverse transformation made to grammar before CYK.\n Performs following steps:\n - transform from chomsky normal form\n - restore unit rules\n - restore epsilon rules\n :param root: Root node of the parsed tree.\n :return: Restored...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_rule API. 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_rule API. 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 EpsilonRemovedRule. This rule will skip symbol at the `index`. :param rule: Original rule. :param index: Index of symbol that is rewritable to epsilon. :param backtrack: Dictionary where key is nonterminal and value is rule which is next to generate epsilon. :return: EpsilonRemovedRule class with...
"Create EpsilonRemovedRule. This rule will skip symbol at the `index`.\n :param rule: Original rule.\n :param index: Index of symbol that is rewritable to epsilon.\n :param backtrack: Dictionary where key is nonterminal and value is rule which is next to generate epsilon.\n :return: EpsilonRemovedRule class...
126
false
PatrikValkovic/grammpy
_create_rule
141,755
LDU_FT/discogs/python-cas-client/perform_proxy
LDU_FT
[ "<BEGIN>\n## `acquire_auth_token_ticket`", "Acquire an auth token from the CAS server.\n<END>", "<BEGIN>\n## `create_session`", "Create a session record from a service ticket.\n<END>", "<BEGIN>\n## `delete_session`", "Delete a session record associated with a service ticket.\n<END>", "<BEGIN>\n## `get_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perform_proxy API. 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 perform_proxy API. 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...
Fetch a response from the remote CAS `proxy` endpoint.
"Fetch a response from the remote CAS `proxy` endpoint."
30
false
discogs/python-cas-client
perform_proxy
141,756
LDU_FT/wecatch/app-turbo/to_list_str
LDU_FT
[ "<BEGIN>\n## `convert_to_record`", "Wrap mongodb record to a dict record with default value None\n<END>", "<BEGIN>\n## `instance`", "Instantiate a model class according to import path\n args:\n name: class import path like `user.User`\n return:\n model instance\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_list_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_list_str API. 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...
recursively convert list content into string :arg list value: The list that need to be converted. :arg function encode: Function used to encode object.
"recursively convert list content into string\n\n :arg list value: The list that need to be converted.\n :arg function encode: Function used to encode object."
43
false
wecatch/app-turbo
to_list_str
141,757
LDU_FT/mgoral/subconvert/acceptAlias
LDU_FT
[ "<BEGIN>\n## `__parseFormat`", "Actual parser. Please note that time_to is not required to process as not all subtitles\n provide it.\n<END>", "<BEGIN>\n## `createSubtitle`", "Returns a correct 'Subtitle' object from a text given in 'section'. If 'section' cannot\n be parsed, None is returned.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the acceptAlias API. 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 acceptAlias API. 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...
This function should be used as a decorator. Each class method that is decorated will be able to accept alias or original names as a first function positional parameter.
"This function should be used as a decorator. Each class method that is decorated will be able\n to accept alias or original names as a first function positional parameter."
50
false
mgoral/subconvert
acceptAlias
141,758
LDU_FT/cthoyt/onto2nx/aba_onto2nx
LDU_FT
[ "<BEGIN>\n## `parse_owl_rdf`", "Parses an OWL resource that's encoded in OWL/RDF into a NetworkX directional graph", " :param str iri: The location of the OWL resource to be parsed by Ontospy\n :type iri: str\n :rtype: network.DiGraph\n<END>", "<BEGIN>\n## `get_or_create_home_repo`", "Check to make...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aba_onto2nx API. 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 aba_onto2nx API. 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...
Downloads and parse the Allen Brain Atlas ontologies into a network object More information about Allen Brain Atlas API can be found using following links: http://help.brain-map.org/display/api/Atlas+Drawings+and+Ontologies#AtlasDrawingsandOntologies-StructuresAndOntologies http://help.brain-map.org/displa...
"Downloads and parse the Allen Brain Atlas ontologies into a network object\n\n More information about Allen Brain Atlas API can be found using following links:\n http://help.brain-map.org/display/api/Atlas+Drawings+and+Ontologies#AtlasDrawingsandOntologies-StructuresAndOntologies\n http://help.brain-map.org/d...
102
false
cthoyt/onto2nx
aba_onto2nx
141,759
LDU_FT/Yipit/ejson/dumps
LDU_FT
[ "<BEGIN>\n## `deserialize_time`", "Return a time instance based on the values of the data param\n<END>", "<BEGIN>\n## `dumps`", "A wrapper around `json.dumps` that can handle objects that json\n module is not aware.", " This function is aware of a list of custom serializers that can be\n registered...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API. 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 dumps API. 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...
A wrapper around `json.dumps` that can handle objects that json module is not aware. This function is aware of a list of custom serializers that can be registered by the API user, making it possible to convert any kind of object to types that the json library can handle.
"A wrapper around `json.dumps` that can handle objects that json\n module is not aware.\n\n This function is aware of a list of custom serializers that can be\n registered by the API user, making it possible to convert any kind\n of object to types that the json library can handle."
13
false
Yipit/ejson
dumps
141,760
LDU_FT/jordanh/neurio-python/get_local_current_sample
LDU_FT
[ "<BEGIN>\n## `get_token`", "Performs Neurio API token authentication using provided key and secret.", " Note:\n This method is generally not called by hand; rather it is usually\n called as-needed by a Neurio Client object.", " Returns:\n string: the access token\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_local_current_sample 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_local_current_sample API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Gets current sample from *local* Neurio device IP address. This is a static method. It doesn't require a token to authenticate. Note, call get_user_information to determine local Neurio IP addresses. Args: ip (string): address of local Neurio device Returns: dictionary object containing ...
"Gets current sample from *local* Neurio device IP address.\n\n This is a static method. It doesn't require a token to authenticate.\n\n Note, call get_user_information to determine local Neurio IP addresses.\n\n Args:\n ip (string): address of local Neurio device\n\n Returns:\n dictionary object ...
47
false
jordanh/neurio-python
get_local_current_sample
141,761
LDU_FT/sprockets/sprockets.mixins.http/_decode
LDU_FT
[ "<BEGIN>\n## `append_response`", "Append the response to the stack of responses.", " :param tornado.httpclient.HTTPResponse response: The HTTP response\n<END>", "<BEGIN>\n## `body`", "Returns the HTTP response body, deserialized if possible.", " :rtype: mixed\n<END>", "<BEGIN>\n## `links`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode API. 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 _decode API. 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...
Decode bytes to UTF-8 strings as a singe value, list, or dict. :param mixed value: The value to decode :rtype: mixed
"Decode bytes to UTF-8 strings as a singe value, list, or dict.\n\n :param mixed value: The value to decode\n :rtype: mixed"
35
false
sprockets/sprockets.mixins.http
_decode
141,762
LDU_FT/GoogleCloudPlatform/cloud-debug-python/DetermineType
LDU_FT
[ "<BEGIN>\n## `InitializeDebuggeeLabels`", "Initialize debuggee labels from environment variables and flags.", " The caller passes all the flags that the the debuglet got. This function\n will only use the flags used to label the debuggee. Flags take precedence\n over environment variables.", " Deb...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DetermineType API. 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 DetermineType API. 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...
Determines the type of val, returning a "full path" string. For example: DetermineType(5) -> __builtin__.int DetermineType(Foo()) -> com.google.bar.Foo Args: value: Any value, the value is irrelevant as only the type metadata is checked Returns: Type path string. None if type cannot be det...
"Determines the type of val, returning a \"full path\" string.\n\n For example:\n DetermineType(5) -> __builtin__.int\n DetermineType(Foo()) -> com.google.bar.Foo\n\n Args:\n value: Any value, the value is irrelevant as only the type metadata\n is checked\n\n Returns:\n Type path string. None if type...
276
false
GoogleCloudPlatform/cloud-debug-python
DetermineType
141,763
LDU_FT/ajyoon/blur/from_file
LDU_FT
[ "<BEGIN>\n## `with_random_weights`", "Initialize from a list of options with random weights.", " The weights assigned to each object are uniformally random\n integers between ``1`` and ``len(options)``", " Args:\n options (list): The list of options of any type this object\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 from_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 a string from a file and derive a ``Graph`` from it. This is a convenience function for opening a file and passing its contents to ``Graph.from_string()`` (see that for more detail) Args: source (str): the file to read and derive the graph from distance_weights (di...
"Read a string from a file and derive a ``Graph`` from it.\n\n This is a convenience function for opening a file and passing its\n contents to ``Graph.from_string()`` (see that for more detail)\n\n Args:\n source (str): the file to read and derive the graph from\n distance_wei...
235
false
ajyoon/blur
from_file
141,764
LDU_FT/casacore/python-casacore/statistics
LDU_FT
[ "<BEGIN>\n## `fitter`", "Create a sub-fitter.", " The created sub-fitter can be used in the same way as a fitter\n default fitter. This function returns an identification, which has to\n be used in the `fid` argument of subsequent calls. The call can\n specify the standard constructo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the statistics API. 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 statistics API. 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...
Calculate statistics for the image. Statistics are returned in a dict for the given axes. E.g. if axes [0,1] is given in a 3-dim image, the statistics are calculated for each plane along the 3rd axis. By default statistics are calculated for the entire image. `minmaxvalues` can...
"Calculate statistics for the image.\n\n Statistics are returned in a dict for the given axes.\n E.g. if axes [0,1] is given in a 3-dim image, the statistics are\n calculated for each plane along the 3rd axis. By default statistics\n are calculated for the entire image.\n\n `minmaxval...
618
false
casacore/python-casacore
statistics
141,765
LDU_FT/biosignalsnotebooks/biosignalsnotebooks/plotfft
LDU_FT
[ "<BEGIN>\n## `windowing`", "-----\n Brief\n -----\n Function to window the input signal, that return the windowed signal.", " -----------\n Description\n -----------\n Machine learning pipelines usually use features to represent each sample of the input signals.\n In order to extract tho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plotfft API. 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 plotfft API. 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...
----- Brief ----- This functions computes the Fast Fourier Transform of a signal, returning the frequency and magnitude values. ----------- Description ----------- Fast Fourier Transform (FFT) is a method to computationally calculate the Fourier Transform of discrete finite signals. Thi...
"-----\n Brief\n -----\n This functions computes the Fast Fourier Transform of a signal, returning the frequency and magnitude values.\n\n -----------\n Description\n -----------\n Fast Fourier Transform (FFT) is a method to computationally calculate the Fourier Transform of discrete finite\n si...
800
false
biosignalsnotebooks/biosignalsnotebooks
plotfft
141,766
LDU_FT/nabla-c0d3/sslyze/queue_scan_command
LDU_FT
[ "<BEGIN>\n## `do_handshake_with_robot`", "Modified do_handshake() to send a ROBOT payload and return the result.\n<END>", "<BEGIN>\n## `get_client_key_exchange_record`", "A client key exchange record with a hardcoded pre_master_secret, and a valid or invalid padding.\n<END>", "<BEGIN>\n## `get_finished_reco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the queue_scan_command 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 queue_scan_command 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...
Queue a scan command targeting a specific server. Args: server_info: The server's connectivity information. The test_connectivity_to_server() method must have been called first to ensure that the server is online and accessible. scan_command: The scan command to run agai...
"Queue a scan command targeting a specific server.\n\n Args:\n server_info: The server's connectivity information. The test_connectivity_to_server() method must have been\n called first to ensure that the server is online and accessible.\n scan_command: The scan command to ru...
92
false
nabla-c0d3/sslyze
queue_scan_command
141,767
LDU_FT/skelsec/minikerberos/get_key_for_enctype
LDU_FT
[ "<BEGIN>\n## `to_tgt`", "Returns the native format of an AS_REP message and the sessionkey in EncryptionKey native format\n<END>", "<BEGIN>\n## `add_tgt`", "Creates credential object from the TGT and adds to the ccache file\n\t\tThe TGT is basically the native representation of the asn1 encoded AS_REP data th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_key_for_enctype API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_key_for_enctype 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 the encryption key bytes for the enctryption type.
"Returns the encryption key bytes for the enctryption type."
50
false
skelsec/minikerberos
get_key_for_enctype
141,768
LDU_FT/inveniosoftware/invenio-oaiserver/_schema_from_verb
LDU_FT
[ "<BEGIN>\n## `_schema_from_verb`", "Return an instance of schema for given verb.\n<END>", "<BEGIN>\n## `load`", "Deserialize a data structure to an object.\n<END>", "<BEGIN>\n## `make_request_validator`", "Validate arguments in incomming request.\n<END>", "<BEGIN>\n## `from_iso_permissive`", "Parse an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _schema_from_verb API. 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 _schema_from_verb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return an instance of schema for given verb.
"Return an instance of schema for given verb."
78
false
inveniosoftware/invenio-oaiserver
_schema_from_verb
141,769
LDU_FT/googlesamples/assistant-sdk-python/dispatch_command
LDU_FT
[ "<BEGIN>\n## `main`", "File based sample for the Google Assistant API.", " Examples:\n $ python -m audiofileinput -i <input file> -o <output file>\n<END>", "<BEGIN>\n## `process_event`", "Pretty prints events.", " Prints all events that occur with two spaces between each new\n conversation a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch_command API. 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 dispatch_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Dispatch device commands to the appropriate handler.
"Dispatch device commands to the appropriate handler."
72
false
googlesamples/assistant-sdk-python
dispatch_command
141,770
LDU_FT/openvax/varlens/filter
LDU_FT
[ "<BEGIN>\n## `load_from_args`", "Return a Loci object giving the loci specified on the command line.", " If no loci-related arguments are specified, return None. This makes it\n possible to distinguish an empty set of loci, for example due to filters\n removing all loci, from the case where the user di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Apply filters to the pileup elements, and return a new Pileup with the filtered elements removed. Parameters ---------- filters : list of PileupElement -> bool callables A PileupUp element is retained if all filters return True when called on it.
"Apply filters to the pileup elements, and return a new Pileup with the\n filtered elements removed.\n\n Parameters\n ----------\n filters : list of PileupElement -> bool callables\n A PileupUp element is retained if all filters return True when\n called on it."
130
false
openvax/varlens
filter
141,771
LDU_FT/Unity-Technologies/ml-agents/write_summary
LDU_FT
[ "<BEGIN>\n## `get_action`", "Decides actions given observations information, and takes them in environment.\n :param brain_info: A dictionary of brain names and BrainInfo from environment.\n :return: an ActionInfo containing action, memories, values and an object\n to be passed to add experie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 ext...
Saves training statistics to Tensorboard. :param delta_train_start: Time elapsed since training started. :param lesson_num: Current lesson number in curriculum. :param global_step: The number of steps the simulation has been going for
"Saves training statistics to Tensorboard.\n :param delta_train_start: Time elapsed since training started.\n :param lesson_num: Current lesson number in curriculum.\n :param global_step: The number of steps the simulation has been going for"
171
false
Unity-Technologies/ml-agents
write_summary
141,772