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/coinkite/connectrum/send_data
LDU_FT
[ "<BEGIN>\n## `send_data`", "Given an object, encode as JSON and transmit to the server.\n<END>", "<BEGIN>\n## `got_who_reply`", "Server replied to one of our WHO requests, with details.\n<END>", "<BEGIN>\n## `connect`", "Start connection process.\n Destination must be specified in a ServerInfo(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Given an object, encode as JSON and transmit to the server.
"Given an object, encode as JSON and transmit to the server."
30
false
coinkite/connectrum
send_data
22,873
LDU_FT/ModisWorks/modis/download_next_song
LDU_FT
[ "<BEGIN>\n## `success`", "Creates an embed UI containing a hex color message", " Args:\n channel (discord.Channel): The Discord channel to bind the embed to\n image (str): The url of the image to add\n hex_str (str): The hex value", " Returns:\n ui (ui_embed.UI): The embed UI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_next_song 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 download_next_song 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...
Downloads the next song and starts playing it
"Downloads the next song and starts playing it"
278
false
ModisWorks/modis
download_next_song
22,874
LDU_FT/blacktop/virustotal-api/rescan_file
LDU_FT
[ "<BEGIN>\n## `_return_response_and_status_code`", "Output the requests response content or content as json and status code", " :rtype : dict\n :param response: requests response object\n :param json_results: Should return JSON or raw content\n :return: dict containing the response content and/or the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rescan_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rescan_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 extra...
Rescan a previously submitted filed or schedule an scan to be performed in the future. This API allows you to rescan files present in VirusTotal's file store without having to resubmit them, thus saving bandwidth. You only need to know one of the hashes of the file to rescan. :param re...
"Rescan a previously submitted filed or schedule an scan to be performed in the future.\n\n This API allows you to rescan files present in VirusTotal's file store without having to\n resubmit them, thus saving bandwidth. You only need to know one of the hashes of the file\n to rescan.\n\n :p...
89
false
blacktop/virustotal-api
rescan_file
22,875
LDU_FT/ray-project/ray/construct_error_message
LDU_FT
[ "<BEGIN>\n## `_agent_import_failed`", "Returns dummy agent class for if PyTorch etc. is not installed.\n<END>", "<BEGIN>\n## `run`", "Executes training.", " Args:\n run_or_experiment (function|class|str|Experiment): If\n function|class|str, this is the algorithm or model to train.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct_error_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct_error_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Construct a serialized ErrorTableData object. Args: driver_id: The ID of the driver that the error should go to. If this is nil, then the error will go to all drivers. error_type: The type of the error. message: The error message. timestamp: The time of the error. R...
"Construct a serialized ErrorTableData object.\n\n Args:\n driver_id: The ID of the driver that the error should go to. If this is\n nil, then the error will go to all drivers.\n error_type: The type of the error.\n message: The error message.\n timestamp: The time of the error...
1,706
true
ray-project/ray
construct_error_message
22,876
LDU_FT/src-d/modelforge/install_environment
LDU_FT
[ "<BEGIN>\n## `initialize_registry`", "Initialize the registry and the index.", " :param args: :class:`argparse.Namespace` with \"backend\", \"args\", \"force\" and \"log_level\".\n :param backend: Backend which is responsible for working with model files.\n :param log: Logger supplied by supply_backend...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_environment 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 install_environment 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...
Install the packages mentioned in the model's metadata. :param args: :param args: :class:`argparse.Namespace` with "input", "reproduce", "backend", \ "args", "username", "password", "remote_repo" and "log_level". :param backend: Backend which is responsible for working with model files. :p...
"Install the packages mentioned in the model's metadata.\n\n :param args: :param args: :class:`argparse.Namespace` with \"input\", \"reproduce\", \"backend\", \\\n \"args\", \"username\", \"password\", \"remote_repo\" and \"log_level\".\n :param backend: Backend which is responsible for working wi...
118
false
src-d/modelforge
install_environment
22,877
LDU_FT/CTPUG/wafer/zapier_guest_hook
LDU_FT
[ "<BEGIN>\n## `build_object`", "Override django-bakery to skip profiles that raise 404\n<END>", "<BEGIN>\n## `generate_schedule`", "Helper function which creates an ordered list of schedule days\n<END>", "<BEGIN>\n## `get_context_data`", "Allow adding a 'render_description' parameter\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zapier_guest_hook API. 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 zapier_guest_hook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Zapier can POST something like this when tickets are bought: { "ticket_type": "Individual (Regular)", "barcode": "12345678", "email": "demo@example.com" }
"Zapier can POST something like this when tickets are bought:\n {\n\n \"ticket_type\": \"Individual (Regular)\",\n \"barcode\": \"12345678\",\n \"email\": \"demo@example.com\"\n }"
72
false
CTPUG/wafer
zapier_guest_hook
22,878
LDU_FT/aalireza/SimpleAudioIndexer/_index_audio_cmu
LDU_FT
[ "<BEGIN>\n## `set_username_ibm`", "Parameters\n ----------\n username_ibm : str", " Raises\n ------\n Exception\n If mode is not `ibm`\n<END>", "<BEGIN>\n## `set_password_ibm`", "Parameters\n ----------\n password_ibm : str", " Raises\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _index_audio_cmu API. 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 _index_audio_cmu API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Indexes audio with pocketsphinx. Beware that the output would not be sufficiently accurate. Use this only if you don't want to upload your files to IBM. Parameters ----------- basename : str, optional A specific basename to be indexed and is placed in src_dir ...
"Indexes audio with pocketsphinx. Beware that the output would not be\n sufficiently accurate. Use this only if you don't want to upload your\n files to IBM.\n\n Parameters\n -----------\n basename : str, optional\n A specific basename to be indexed and is placed in src_dir...
159
false
aalireza/SimpleAudioIndexer
_index_audio_cmu
22,879
LDU_FT/daknuett/py_register_machine2/dereference_run
LDU_FT
[ "<BEGIN>\n## `int_to_bytes`", ".. _int_to_bytes:", "\tConverts the ``int`` ``int_`` to a ``bytes`` object.\n\t``len(result) == width``.", "\tIf ``width`` is None, a number of bytes that is able to hold the\n\tnumber is choosen, depending on ``int_.bit_length()``.", "\tSee also: bytes_to_int_\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dereference_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dereference_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
.. _dereference_run: Converts the commands to opcodes and inserts the (relative or static) references.
".. _dereference_run:\n\n\t\tConverts the commands to opcodes and inserts the (relative or static) references."
154
false
daknuett/py_register_machine2
dereference_run
22,880
LDU_FT/DinoTools/python-overpy/from_json
LDU_FT
[ "<BEGIN>\n## `_handle_remark_msg`", "Try to parse the message provided with the remark tag or element.", " :param str msg: The message\n :raises overpy.exception.OverpassRuntimeError: If message starts with 'runtime error:'\n :raises overpy.exception.OverpassRuntimeRemark: If message starts...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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. The extract...
Create new Relation element from JSON data :param data: Element data from JSON :type data: Dict :param result: The result this element belongs to :type result: overpy.Result :return: New instance of Relation :rtype: overpy.Relation :raises overpy.exception.Elemen...
"Create new Relation element from JSON data\n\n :param data: Element data from JSON\n :type data: Dict\n :param result: The result this element belongs to\n :type result: overpy.Result\n :return: New instance of Relation\n :rtype: overpy.Relation\n :raises overpy.excepti...
119
false
DinoTools/python-overpy
from_json
22,881
LDU_FT/pystorm/pystorm/send_message
LDU_FT
[ "<BEGIN>\n## `emit`", "Emit a spout Tuple message.", " :param tup: the Tuple to send to Storm, should contain only\n JSON-serializable data.\n :type tup: list or tuple\n :param tup_id: the ID for the Tuple. Leave this blank for an\n unreliable emit.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Serialize a message dictionary and write it to the output stream.
"Serialize a message dictionary and write it to the output stream."
103
false
pystorm/pystorm
send_message
22,882
LDU_FT/juju/theblues/update_wallet
LDU_FT
[ "<BEGIN>\n## `list_models`", "Get the logged in user's models from the JIMM controller.", " @param macaroons The discharged JIMM macaroons.\n @return The json decoded list of environments.\n<END>", "<BEGIN>\n## `make_request`", "Make a request with the provided data.", " @param url The ur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_wallet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_wallet API. 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...
Update a wallet with a new limit. @param the name of the wallet. @param the new value of the limit. @return a success string from the plans server. @raise ServerError via make_request.
"Update a wallet with a new limit.\n\n @param the name of the wallet.\n @param the new value of the limit.\n @return a success string from the plans server.\n @raise ServerError via make_request."
141
false
juju/theblues
update_wallet
22,883
LDU_FT/uuazed/numerapi/get_submission_ids
LDU_FT
[ "<BEGIN>\n## `_unzip_file`", "unzips file located at src_path into destination_path\n<END>", "<BEGIN>\n## `get_dataset_url`", "Fetch url of the current dataset.", " Args:\n tournament (int, optional): ID of the tournament, defaults to 1", " Returns:\n str: url of the cu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_submission_ids 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_submission_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get dict with username->submission_id mapping. Args: tournament (int): ID of the tournament (optional, defaults to 1) Returns: dict: username->submission_id mapping, string->string Example: >>> NumerAPI().get_submission_ids() {'1337ai': '93c4685...
"Get dict with username->submission_id mapping.\n\n Args:\n tournament (int): ID of the tournament (optional, defaults to 1)\n\n Returns:\n dict: username->submission_id mapping, string->string\n\n Example:\n >>> NumerAPI().get_submission_ids()\n {'1337ai...
163
false
uuazed/numerapi
get_submission_ids
22,884
LDU_FT/DS-100/nb-to-gradescope/convert
LDU_FT
[ "<BEGIN>\n## `convert`", "Public method that exports nb to PDF and pads all the questions.", " If num_questions is specified, will also check the final PDF for missing\n questions.", " If the output font size is too small/large, increase or decrease the zoom\n argument until the size looks correct...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Public method that exports nb to PDF and pads all the questions. If num_questions is specified, will also check the final PDF for missing questions. If the output font size is too small/large, increase or decrease the zoom argument until the size looks correct. If solution=True, we'll export solu...
"Public method that exports nb to PDF and pads all the questions.\n\n If num_questions is specified, will also check the final PDF for missing\n questions.\n\n If the output font size is too small/large, increase or decrease the zoom\n argument until the size looks correct.\n\n If solution=True, we'll ex...
24
false
DS-100/nb-to-gradescope
convert
22,885
LDU_FT/darothen/xbpch/copy_from_model
LDU_FT
[ "<BEGIN>\n## `from_model`", "Define a grid using the specifications of a given model.", " Parameters\n ----------\n model_name : string\n Name the model (see :func:`get_supported_models` for available\n model names).\n Supports multiple formats (e.g., 'GEOS5...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_from_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_from_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Set-up a user-defined grid using specifications of a reference grid model. Parameters ---------- model_name : string name of the user-defined grid model. reference : string or :class:`CTMGrid` instance Name of the reference model (see :func:`get_supported...
"Set-up a user-defined grid using specifications of a reference\n grid model.\n\n Parameters\n ----------\n model_name : string\n name of the user-defined grid model.\n reference : string or :class:`CTMGrid` instance\n Name of the reference model (see :func:`get_...
122
false
darothen/xbpch
copy_from_model
22,886
LDU_FT/ejeschke/ginga/pi_zoom
LDU_FT
[ "<BEGIN>\n## `set_figure`", "Call this with the matplotlib Figure() object.\n<END>", "<BEGIN>\n## `render_image1`", "Render the image represented by (rgbobj) at dst_x, dst_y\n in the pixel space.", " NOTE: this version uses a Figure.FigImage to render the image.\n<END>", "<BEGIN>\n## `render...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pi_zoom API. 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 pi_zoom API. 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...
Zoom and/or rotate the viewer by a pinch gesture. (the back end must support gestures)
"Zoom and/or rotate the viewer by a pinch gesture.\n (the back end must support gestures)"
1,455
true
ejeschke/ginga
pi_zoom
22,887
LDU_FT/solocompt/plugs-mail/validate_context
LDU_FT
[ "<BEGIN>\n## `validate_context`", "Make sure there are no duplicate context objects\n or we might end up with switched data", " Converting the tuple to a set gets rid of the\n eventual duplicate objects, comparing the length\n of the original tuple and set tells us if we\n hav...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_context API. 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 validate_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Make sure there are no duplicate context objects or we might end up with switched data Converting the tuple to a set gets rid of the eventual duplicate objects, comparing the length of the original tuple and set tells us if we have duplicates in the tuple or not
"Make sure there are no duplicate context objects\n or we might end up with switched data\n\n Converting the tuple to a set gets rid of the\n eventual duplicate objects, comparing the length\n of the original tuple and set tells us if we\n have duplicates in the tuple or not"
28
false
solocompt/plugs-mail
validate_context
22,888
LDU_FT/summa-tx/riemann/p2wsh_input_and_witness
LDU_FT
[ "<BEGIN>\n## `addsalt`", "adds a salt to the hash function (OPTIONAL)\n should be called AFTER Init, and BEFORE update\n salt: a bytestring, length determined by hashbitlen.\n if not of sufficient length, the bytestring\n will be assumed to be a big endia...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p2wsh_input_and_witness 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 p2wsh_input_and_witness API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Outpoint, str, str, int -> (TxIn, InputWitness) Create a signed witness TxIn and InputWitness from a p2wsh prevout
"Outpoint, str, str, int -> (TxIn, InputWitness)\n Create a signed witness TxIn and InputWitness from a p2wsh prevout"
132
false
summa-tx/riemann
p2wsh_input_and_witness
22,889
LDU_FT/openvax/varlens/merge
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 merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return a new PileupCollection that is the union of self and the other specified collections.
"Return a new PileupCollection that is the union of self and the other\n specified collections."
130
false
openvax/varlens
merge
22,890
LDU_FT/spyder-ide/conda-manager/_repo_url_to_path
LDU_FT
[ "<BEGIN>\n## `get_package_versions`", "Gives all the compatible package canonical name", " name : str\n Name of the package\n<END>", "<BEGIN>\n## `closing_plugin`", "Perform actions before parent main window is closed.\n<END>", "<BEGIN>\n## `get_conf_path`", "Return absolute path for c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _repo_url_to_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _repo_url_to_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Convert a `repo` url to a file path for local storage.
"Convert a `repo` url to a file path for local storage."
160
false
spyder-ide/conda-manager
_repo_url_to_path
22,891
LDU_FT/mozilla/socorrolib/load_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 load_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 extrac...
cycle through a collection of Transform rule tuples loading them into the TransformRuleSystem
"cycle through a collection of Transform rule tuples loading them\n into the TransformRuleSystem"
155
false
mozilla/socorrolib
load_rules
22,892
LDU_FT/inveniosoftware/invenio-records-rest/add_link_header
LDU_FT
[ "<BEGIN>\n## `build_default_endpoint_prefixes`", "Build the default_endpoint_prefixes map.\n<END>", "<BEGIN>\n## `obj_or_import_string`", "Import string or return object.", " :params value: Import path or class object to instantiate.\n :params default: Default object to return if the import fails.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_link_header API. 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 add_link_header API. 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...
Add a Link HTTP header to a REST response. :param response: REST response instance :param links: Dictionary of links
"Add a Link HTTP header to a REST response.\n\n :param response: REST response instance\n :param links: Dictionary of links"
165
false
inveniosoftware/invenio-records-rest
add_link_header
22,893
LDU_FT/gpagliuca/pyfas/__profile_definition
LDU_FT
[ "<BEGIN>\n## `extract_geometry`", "It adds to self.geometries a specific geometry as (x, y)\n<END>", "<BEGIN>\n## `to_excel`", "Dump all the data to excel, fname and path can be passed as args\n<END>", "<BEGIN>\n## `PI_read`", "Read function for PI server. It has to be executed by python 32 bit.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __profile_definition 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 __profile_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Prepare the profiles extraction from a specific profile
"Prepare the profiles extraction from a specific profile"
32
false
gpagliuca/pyfas
__profile_definition
22,894
LDU_FT/FNNDSC/pfmisc/treeRecurse
LDU_FT
[ "<BEGIN>\n## `authorizeClientRequest`", "Checks the authorization permissions of the bearer token passed, and determines whether the sender is permitted to make the request housed in the payload.\n Usage:\n request = The header object from pfioh, or the whole request from pman. This is parsed fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the treeRecurse API. 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 treeRecurse API. 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 walk through the C_stree, starting from node <astr_startPath> and using the internal l_allPaths space as verifier. To self-discover tree structure based on internal node links, use treeExplore() instead. The <afunc_nodeEval> is a function that is...
"Recursively walk through the C_stree, starting from node\n <astr_startPath> and using the internal l_allPaths space\n as verifier.\n\n To self-discover tree structure based on internal node links,\n use treeExplore() instead.\n\n The <afunc_nodeEval> is a function...
165
false
FNNDSC/pfmisc
treeRecurse
22,895
LDU_FT/trailofbits/protofuzz/get
LDU_FT
[ "<BEGIN>\n## `find_protoc`", "Traverse a path ($PATH by default) to find the protoc compiler\n<END>", "<BEGIN>\n## `from_string`", "Produce a Protobuf module from a string description.\r", " Return the module if successfully compiled, otherwise raise a BadProtobuf\r\n exception.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. 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 get API. 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...
Retrieve the most recent value generated
"Retrieve the most recent value generated"
52
false
trailofbits/protofuzz
get
22,896
LDU_FT/broadinstitute/fiss/_nonempty_project
LDU_FT
[ "<BEGIN>\n## `_set_session`", "Sets global __SESSION and __USER_ID if they haven't been set\n<END>", "<BEGIN>\n## `_fiss_agent_header`", "Return request headers for fiss.\n Inserts FISS as the User-Agent.\n Initializes __SESSION if it hasn't been set.", " Args:\n headers (dict): Incl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _nonempty_project API. 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 _nonempty_project API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Argparse validator for ensuring a workspace is provided
"Argparse validator for ensuring a workspace is provided"
375
false
broadinstitute/fiss
_nonempty_project
22,897
LDU_FT/laplacesdemon/django-social-friends-finder/fetch_friends
LDU_FT
[ "<BEGIN>\n## `fetch_friends`", "fetches the friends from twitter using the\n information on django-social-auth models\n user is an instance of UserSocialAuth", " Returns:\n collection of friend objects fetched from facebook\n<END>", "<BEGIN>\n## `fetch_friend_ids`", "fethces ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_friends API. 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 fetch_friends API. 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...
fethces friends from VKontakte using the access_token fethched by django-social-auth. Note - user isn't a user - it's a UserSocialAuth if using social auth, or a SocialAccount if using allauth Returns: collection of friend objects fetched from VKontakte
"fethces friends from VKontakte using the access_token\n fethched by django-social-auth.\n\n Note - user isn't a user - it's a UserSocialAuth if using social auth, or a SocialAccount if using allauth\n\n Returns:\n collection of friend objects fetched from VKontakte"
35
false
laplacesdemon/django-social-friends-finder
fetch_friends
22,898
LDU_FT/astooke/gtimer/reset
LDU_FT
[ "<BEGIN>\n## `start`", "Mark the start of timing, overwriting the automatic start data written on\n import, or the automatic start at the beginning of a subdivision.", " Notes:\n Backdating: For subdivisions only. Backdate time must be in the past\n but more recent than the latest stamp in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. 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 reset API. 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...
Reset the timer at the current level in the hierarchy (i.e. might or might not be the root). Notes: Erases timing data but preserves relationship to the hierarchy. If the current timer level was not previously stopped, any timing data from this timer (including subdivisions) will be di...
"Reset the timer at the current level in the hierarchy (i.e. might or\n might not be the root).\n\n Notes:\n Erases timing data but preserves relationship to the hierarchy. If the\n current timer level was not previously stopped, any timing data from this\n timer (including subdivisions) wil...
137
false
astooke/gtimer
reset
22,899
LDU_FT/nschloe/pygmsh/symmetry
LDU_FT
[ "<BEGIN>\n## `add_circle`", "Add circle in the :math:`x`-:math:`y`-plane.\n<END>", "<BEGIN>\n## `extrude`", "Extrusion (translation + rotation) of any entity along a given\n translation_axis, around a given rotation_axis, about a given angle. If\n one of the entities is not provided, this method...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symmetry API. 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 symmetry API. 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...
Transforms all elementary entities symmetrically to a plane. The vector should contain four expressions giving the coefficients of the plane's equation.
"Transforms all elementary entities symmetrically to a plane. The vector\n should contain four expressions giving the coefficients of the plane's equation."
37
false
nschloe/pygmsh
symmetry
22,900
LDU_FT/equinor/segyio/resample
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new segy file.", " Create a new segy file with the geometry and properties given by `spec`.\n This enables creating SEGY files from your data. The created file supports\n all segyio modes, but has an emphasis on writing. The spec must be\n complete, otherwise an exc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resample API. 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 resample API. 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...
Resample a file Resample all data traces, and update the file handle to reflect the new sample rate. No actual samples (data traces) are modified, only the header fields and interpretation. By default, the rate and the delay are in millseconds - if you need higher resolution, passing micro=True in...
"Resample a file\n\n Resample all data traces, and update the file handle to reflect the new\n sample rate. No actual samples (data traces) are modified, only the header\n fields and interpretation.\n\n By default, the rate and the delay are in millseconds - if you need higher\n resolution, passing micro...
250
false
equinor/segyio
resample
22,901
LDU_FT/hobson/pug-invest/get_symbols_from_list
LDU_FT
[ "<BEGIN>\n## `log_loss`", "Log of the loss (error) summed over all entries", " The negative of the logarithm of the frequency (probability) of the predicted\n label given the true binary label for a category.", " Arguments:\n predicted (np.array of float): 2-D table of probabilities for each\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_symbols_from_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_symbols_from_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. ...
Retrieve a named (symbol list name) list of strings (symbols) If you've installed the QSTK Quantitative analysis toolkit `get_symbols_from_list('sp5002012')` will produce a list of the symbols that were members of the S&P 500 in 2012. Otherwise an import error exception will be raised. ...
"Retrieve a named (symbol list name) list of strings (symbols)\n\n If you've installed the QSTK Quantitative analysis toolkit\n `get_symbols_from_list('sp5002012')` will produce a list of the symbols that\n were members of the S&P 500 in 2012.\n Otherwise an import error exception will be raised.\n ...
205
false
hobson/pug-invest
get_symbols_from_list
22,902
LDU_FT/agermanidis/autosub/find_speech_regions
LDU_FT
[ "<BEGIN>\n## `srt_formatter`", "Serialize a list of subtitles according to the SRT format, with optional time padding.\n<END>", "<BEGIN>\n## `vtt_formatter`", "Serialize a list of subtitles according to the VTT format, with optional time padding.\n<END>", "<BEGIN>\n## `json_formatter`", "Serialize a list ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_speech_regions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_speech_regions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Perform voice activity detection on a given audio file.
"Perform voice activity detection on a given audio file."
14
false
agermanidis/autosub
find_speech_regions
22,903
LDU_FT/rpkilby/SurveyGizmo/default_52xhandler
LDU_FT
[ "<BEGIN>\n## `filter`", "Add a query filter to be applied to the next API list call for this resource.\n :param field: Field name to filter by\n :type field: str\n :param operator: Operator value\n :type operator: str\n :param value: Value of filter\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_52xhandler 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 default_52xhandler 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...
Default 52x handler that loops every second until a non 52x response is received. :param response: The response of the last executed api request. :param resource: The resource of the last executed api request. :param url: The url of the last executed api request sans encoded query parameters. :param par...
"Default 52x handler that loops every second until a non 52x response is received.\n :param response: The response of the last executed api request.\n :param resource: The resource of the last executed api request.\n :param url: The url of the last executed api request sans encoded query parameters.\n :para...
15
false
rpkilby/SurveyGizmo
default_52xhandler
22,904
LDU_FT/bsmurphy/PyKrige/score
LDU_FT
[ "<BEGIN>\n## `make_benchark`", "Compute the benchmarks for Ordianry Kriging ", " Parameters\n ----------\n n_train : int\n number of points in the training set\n n_test : int\n number of points in the test set\n n_dim : int\n number of dimensions (default=2)", " Returns\n -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Overloading default regression score method Parameters ---------- p: ndarray (Ns, d) array of predictor variables (Ns samples, d dimensions) for regression x: ndarray ndarray of (x, y) points. Needs to be a (Ns, 2) array corresponding to t...
"Overloading default regression score method\n\n Parameters\n ----------\n p: ndarray\n (Ns, d) array of predictor variables (Ns samples, d dimensions)\n for regression\n x: ndarray\n ndarray of (x, y) points. Needs to be a (Ns, 2) array\n correspo...
150
false
bsmurphy/PyKrige
score
22,905
LDU_FT/OpenGov/og-python-utils/recursive_iter
LDU_FT
[ "<BEGIN>\n## `build_default_logger`", "Generates a logger that outputs messages in the same format as default Flask applications.\n<END>", "<BEGIN>\n## `debug_generate`", "Used for efficient debug logging, where the actual message isn't evaluated unless it\r\n will actually be accepted by the logger.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recursive_iter API. 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 recursive_iter API. 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...
Walks nested list-like elements as though they were sequentially available recursive_iter([[1,2], 3]) # => 1, 2, 3
"Walks nested list-like elements as though they were sequentially available\r\n\r\n recursive_iter([[1,2], 3])\r\n # => 1, 2, 3"
43
false
OpenGov/og-python-utils
recursive_iter
22,906
LDU_FT/thombashi/SimpleSQLite/validate_sqlite_table_name
LDU_FT
[ "<BEGIN>\n## `set_log_level`", "Set logging level of this module. Using\n `logbook <https://logbook.readthedocs.io/en/stable/>`__ module for logging.", " :param int log_level:\n One of the log level of\n `logbook <https://logbook.readthedocs.io/en/stable/api/base.html>`__.\n Disabled ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_sqlite_table_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_sqlite_table_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
:param str name: Name to validate. :raises pathvalidate.NullNameError: If the ``name`` is empty. :raises pathvalidate.InvalidCharError: If the ``name`` includes unprintable character(s). :raises pathvalidate.InvalidReservedNameError: |raises_sqlite_keywords| And invalid as a table na...
":param str name: Name to validate.\n :raises pathvalidate.NullNameError: If the ``name`` is empty.\n :raises pathvalidate.InvalidCharError:\n If the ``name`` includes unprintable character(s).\n :raises pathvalidate.InvalidReservedNameError:\n |raises_sqlite_keywords|\n And invalid as a t...
185
false
thombashi/SimpleSQLite
validate_sqlite_table_name
22,907
LDU_FT/etesync/radicale_storage_etesync/last_modified
LDU_FT
[ "<BEGIN>\n## `discover`", "Discover a list of collections under the given ``path``.", " If ``depth`` is \"0\", only the actual object under ``path`` is\n returned.", " If ``depth`` is anything but \"0\", it is considered as \"1\" and direct\n children are included in the result.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last_modified API. 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 last_modified API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get the HTTP-datetime of when the collection was modified.
"Get the HTTP-datetime of when the collection was modified."
33
false
etesync/radicale_storage_etesync
last_modified
22,908
LDU_FT/inveniosoftware/invenio-oaiserver/remove_record
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 remove_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_record API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Remove a record from the OAISet. :param record: Record to be removed. :type record: `invenio_records.api.Record` or derivative.
"Remove a record from the OAISet.\n\n :param record: Record to be removed.\n :type record: `invenio_records.api.Record` or derivative."
78
false
inveniosoftware/invenio-oaiserver
remove_record
22,909
LDU_FT/openstates/billy/match
LDU_FT
[ "<BEGIN>\n## `decimal_format`", "Format a decimal.Decimal like to 2 decimal places.\n<END>", "<BEGIN>\n## `notification_preference`", "Display two radio buttons for turning notifications on or off.\n The default value is is have alerts_on = True.\n<END>", "<BEGIN>\n## `committee_object`", "If the commi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
If this matcher has uniquely seen a matching name, return its value. Otherwise, return None. If chamber is set then the search will be limited to legislators with matching chamber. If chamber is None then the search will be cross-chamber.
"If this matcher has uniquely seen a matching name, return its\n value. Otherwise, return None.\n\n If chamber is set then the search will be limited to legislators\n with matching chamber. If chamber is None then the search\n will be cross-chamber."
168
false
openstates/billy
match
22,910
LDU_FT/JensAstrup/pyOutlook/parent_folder
LDU_FT
[ "<BEGIN>\n## `auto_reply_message`", "The account's Internal auto reply message. Setting the value will change the auto reply message of the\n account, automatically setting the status to enabled (but not altering the schedule).\n<END>", "<BEGIN>\n## `set_auto_reply`", "Set an automatic reply for the a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parent_folder API. 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 parent_folder API. 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...
Returns the :class:`Folder <pyOutlook.core.folder.Folder>` this message is in >>> account = OutlookAccount('') >>> message = account.get_messages()[0] >>> message.parent_folder Inbox >>> message.parent_folder.unread_count 19 Returns: :cla...
"Returns the :class:`Folder <pyOutlook.core.folder.Folder>` this message is in\n\n >>> account = OutlookAccount('')\n >>> message = account.get_messages()[0]\n >>> message.parent_folder\n Inbox\n >>> message.parent_folder.unread_count\n 19\n\n Ret...
99
false
JensAstrup/pyOutlook
parent_folder
22,911
LDU_FT/rochacbruno/dynaconf/ensure_a_list
LDU_FT
[ "<BEGIN>\n## `init_app`", "kwargs holds initial dynaconf configuration\n<END>", "<BEGIN>\n## `get`", "Gets config from dynaconf variables\n if variables does not exists in dynaconf try getting from\n `app.config` to support runtime settings.\n<END>", "<BEGIN>\n## `object_merge`", "Recursivel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_a_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_a_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 ext...
Ensure data is a list or wrap it in a list
"Ensure data is a list or wrap it in a list"
172
false
rochacbruno/dynaconf
ensure_a_list
22,912
LDU_FT/Robpol86/etaprogress/_calculate
LDU_FT
[ "<BEGIN>\n## `terminal_width`", "Returns the terminal's width (number of character columns).\n<END>", "<BEGIN>\n## `get_remaining_width`", "Returns the number of characters available if sample string were to be printed in the terminal.", " Positional arguments:\n sample_string -- gets the length of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate API. 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 _calculate API. 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...
Perform the ETA and rate calculation. Two linear lines are used to calculate the ETA: the linear regression (line through a scatter-plot), and the fitted line (a line that runs through the latest data point in _timing_data but parallel to the linear regression line). As the percentage ...
"Perform the ETA and rate calculation.\n\n Two linear lines are used to calculate the ETA: the linear regression (line through a scatter-plot), and the\n fitted line (a line that runs through the latest data point in _timing_data but parallel to the linear\n regression line).\n\n As the perc...
76
false
Robpol86/etaprogress
_calculate
22,913
LDU_FT/last-partizan/pytils/slugify
LDU_FT
[ "<BEGIN>\n## `choose_plural`", "Choose proper form for plural.", " Value is a amount, parameters are forms of noun.\n Forms are variants for 1, 2, 5 nouns. It may be tuple\n of elements, or string where variants separates each other\n by comma.", " Examples::\n {{ some_int|choose_plural:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slugify API. 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 slugify API. 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...
Prepare string for slug (i.e. URL or file/dir name) @param in_string: input string @type in_string: C{basestring} @return: slug-string @rtype: C{str} @raise ValueError: if in_string is C{str}, but it isn't ascii
"Prepare string for slug (i.e. URL or file/dir name)\n\n @param in_string: input string\n @type in_string: C{basestring}\n\n @return: slug-string\n @rtype: C{str}\n\n @raise ValueError: if in_string is C{str}, but it isn't ascii"
134
false
last-partizan/pytils
slugify
22,914
LDU_FT/jorgenschaefer/elpy/get_refactor_options
LDU_FT
[ "<BEGIN>\n## `get_pydoc_completions`", "Get possible completions for modulename for pydoc.", " Returns a list of possible values to be passed to pydoc.\n<END>", "<BEGIN>\n## `get_modules`", "Return a list of modules and packages under modulename.", " If modulename is not given, return a list of all ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_refactor_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_refactor_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return a list of options for refactoring at the given position. If `end` is also given, refactoring on a region is assumed. Each option is a dictionary of key/value pairs. The value of the key 'name' is the one to be used for get_changes. The key 'args' contains a list of additional a...
"Return a list of options for refactoring at the given position.\n\n If `end` is also given, refactoring on a region is assumed.\n\n Each option is a dictionary of key/value pairs. The value of\n the key 'name' is the one to be used for get_changes.\n\n The key 'args' contains a list of addi...
97
false
jorgenschaefer/elpy
get_refactor_options
22,915
LDU_FT/kwikteam/phy/_probe_positions
LDU_FT
[ "<BEGIN>\n## `set_state`", "Set the view state.", " The passed object is the persisted `self.state` bunch.", " May be overriden.\n<END>", "<BEGIN>\n## `_fullname`", "Return the fully-qualified name of a function.\n<END>", "<BEGIN>\n## `_get_default_grid`", "In the grid specification, 0 c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _probe_positions API. 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 _probe_positions API. 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 the positions of a probe channel group.
"Return the positions of a probe channel group."
346
false
kwikteam/phy
_probe_positions
22,916
LDU_FT/QuantEcon/QuantEcon.py/_populate_tournament_payoff_array1
LDU_FT
[ "<BEGIN>\n## `backward_induction`", "r\"\"\"\n Solve by backward induction a :math:`T`-period finite horizon\n discrete dynamic program with stationary reward and transition\n probability functions :math:`r` and :math:`q` and discount factor\n :math:`\\beta \\in [0, 1]`.", " The optimal value fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _populate_tournament_payoff_array1 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 _populate_tournament_payoff_array1 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Populate `payoff_array` with the payoff values for player 1 in the tournament game. Parameters ---------- payoff_array : ndarray(float, ndim=2) ndarray of shape (m, n), where m = n choose k, prefilled with zeros. Modified in place. k : scalar(int) Size of the subsets of node...
"Populate `payoff_array` with the payoff values for player 1 in the\n tournament game.\n\n Parameters\n ----------\n payoff_array : ndarray(float, ndim=2)\n ndarray of shape (m, n), where m = n choose k, prefilled with\n zeros. Modified in place.\n k : scalar(int)\n Size of the subse...
1,292
true
QuantEcon/QuantEcon.py
_populate_tournament_payoff_array1
22,917
LDU_FT/veripress/veripress/to_datetime
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 to_datetime API. 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_datetime API. 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...
Convert a date object to a datetime object, or return as it is if it's not a date object. :param date_or_datetime: date or datetime object :return: a datetime object
"Convert a date object to a datetime object,\n or return as it is if it's not a date object.\n\n :param date_or_datetime: date or datetime object\n :return: a datetime object"
109
false
veripress/veripress
to_datetime
22,918
LDU_FT/exekias/droplet/make_password
LDU_FT
[ "<BEGIN>\n## `install`", "Installation procedure, it writes basic smb.conf and uses samba-tool to\n provision the domain\n<END>", "<BEGIN>\n## `stop_other_daemons`", "Stop services already provided by main samba daemon\n<END>", "<BEGIN>\n## `set_euid`", "Set settings.DROPLET_USER effective UID for ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_password API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_password API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Generate and return a random password :param length: Desired length :param chars: Character set to use
"Generate and return a random password\n\n :param length: Desired length\n :param chars: Character set to use"
66
false
exekias/droplet
make_password
22,919
LDU_FT/dropbox/stone/_generate_validator
LDU_FT
[ "<BEGIN>\n## `generic_type_name`", "Return a descriptive type name that isn't Python specific. For example, an\n int type will return 'integer' rather than 'int'.\n<END>", "<BEGIN>\n## `doc_unwrap`", "Applies two transformations to raw_doc:\n 1. N consecutive newlines are converted into N-1 newlines.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_validator 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 _generate_validator 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...
Emits validator if data type has associated validator.
"Emits validator if data type has associated validator."
613
false
dropbox/stone
_generate_validator
22,920
LDU_FT/cogeotiff/rio-tiler/tile_read
LDU_FT
[ "<BEGIN>\n## `_meters_per_pixel`", "Return the pixel resolution for a given mercator tile zoom and lattitude.", " Parameters\n ----------\n zoom: int\n Mercator zoom level\n lat: float, optional\n Latitude in decimal degree (default: 0)\n tilesize: int, optional\n Mercator ti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tile_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tile_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Read data and mask. Attributes ---------- source : str or rasterio.io.DatasetReader input file path or rasterio.io.DatasetReader object bounds : list Mercator tile bounds (left, bottom, right, top) tilesize : int Output image size kwargs: dict, optional These wil...
"Read data and mask.\n\n Attributes\n ----------\n source : str or rasterio.io.DatasetReader\n input file path or rasterio.io.DatasetReader object\n bounds : list\n Mercator tile bounds (left, bottom, right, top)\n tilesize : int\n Output image size\n kwargs: dict, optional\n ...
137
false
cogeotiff/rio-tiler
tile_read
22,921
LDU_FT/Dynatrace/OneAgent-SDK-for-Python/sdkopts_from_commandline
LDU_FT
[ "<BEGIN>\n## `end`", "Ends the tracer.", " May be called in any state. Transitions the state to ended and releases\n any SDK resources owned by this tracer (this includes only internal\n resources, things like passed-in\n :class:`oneagent.common.DbInfoHandle` need to be released manu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sdkopts_from_commandline 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 sdkopts_from_commandline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Creates a SDK option list for use with the :code:`sdkopts` parameter of :func:`.initialize` from a list :code:`argv` of command line parameters. An element in :code:`argv` is treated as an SDK option if starts with :code:`prefix`. The return value of this function will then contain the remainder of tha...
"Creates a SDK option list for use with the :code:`sdkopts` parameter of\n :func:`.initialize` from a list :code:`argv` of command line parameters.\n\n An element in :code:`argv` is treated as an SDK option if starts with\n :code:`prefix`. The return value of this function will then contain the\n remainder ...
85
false
Dynatrace/OneAgent-SDK-for-Python
sdkopts_from_commandline
22,922
LDU_FT/alerta/python-alerta-client/cli
LDU_FT
[ "<BEGIN>\n## `cli`", "Suppress alerts for specified duration based on alert attributes.\n<END>", "<BEGIN>\n## `cli`", "Add group/org/domain/role-to-customer or delete lookup entry.\n<END>", "<BEGIN>\n## `cli`", "Create user or update user details, including password reset.\n<END>", "<BEGIN>\n## `cli`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API. 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 cli API. 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...
Authenticate using Azure, Github, Gitlab, Google OAuth2, OpenID or Basic Auth username/password instead of using an API key.
"Authenticate using Azure, Github, Gitlab, Google OAuth2, OpenID or\n Basic Auth username/password instead of using an API key."
30
false
alerta/python-alerta-client
cli
22,923
LDU_FT/iterative/dvc/_makedirs
LDU_FT
[ "<BEGIN>\n## `_get_remote`", "The config file is stored in a way that allows you to have a\n cache for each remote.", " This is needed when specifying external outputs\n (as they require you to have an external cache location).", " Imagine a config file like the following:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _makedirs API. 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 _makedirs API. 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...
Source: https://github.com/python/cpython/blob/ 3ce3dea60646d8a5a1c952469a2eb65f937875b3/Lib/os.py#L196-L226
"Source: https://github.com/python/cpython/blob/\n 3ce3dea60646d8a5a1c952469a2eb65f937875b3/Lib/os.py#L196-L226"
269
false
iterative/dvc
_makedirs
22,924
LDU_FT/yunojuno/elasticsearch-django/fetch_search_document
LDU_FT
[ "<BEGIN>\n## `execute_search`", "Create a new SearchQuery instance and execute a search against ES.", " Args:\n search: elasticsearch.search.Search object, that internally contains\n the connection and query; this is the query that is executed. All\n we are doing is logging the i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_search_document 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 fetch_search_document API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Fetch the object's document from a search index by id.
"Fetch the object's document from a search index by id."
124
false
yunojuno/elasticsearch-django
fetch_search_document
22,925
LDU_FT/davidmcclure/textplot/build_graph
LDU_FT
[ "<BEGIN>\n## `build_graph`", "Tokenize a text, index a term matrix, and build out a graph.", " Args:\n path (str): The file path.\n term_depth (int): Consider the N most frequent terms.\n skim_depth (int): Connect each word to the N closest siblings.\n d_weights (bool): If true, g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_graph API. 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 build_graph API. 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...
Tokenize a text, index a term matrix, and build out a graph. Args: path (str): The file path. term_depth (int): Consider the N most frequent terms. skim_depth (int): Connect each word to the N closest siblings. d_weights (bool): If true, give "close" nodes low weights. Returns:...
"Tokenize a text, index a term matrix, and build out a graph.\n\n Args:\n path (str): The file path.\n term_depth (int): Consider the N most frequent terms.\n skim_depth (int): Connect each word to the N closest siblings.\n d_weights (bool): If true, give \"close\" nodes low weights.\n\n ...
71
false
davidmcclure/textplot
build_graph
22,926
LDU_FT/HDI-Project/mit-d3m/_get_learning_data_path
LDU_FT
[ "<BEGIN>\n## `build_config`", "root@d3m-example-pod:/# cat /input/185_baseball/test_config.json\n {\n \"problem_schema\": \"/input/TEST/problem_TEST/problemDoc.json\",\n \"problem_root\": \"/input/TEST/problem_TEST\",\n \"dataset_schema\": \"/input/TEST/dataset_TEST/datasetDoc.json\",\n \"t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_learning_data_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_learning_data_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Returns the path of learningData.csv in a dataset
"Returns the path of learningData.csv in a dataset"
15
false
HDI-Project/mit-d3m
_get_learning_data_path
22,927
LDU_FT/HDI-Project/BTB/bandit
LDU_FT
[ "<BEGIN>\n## `tune_pipeline`", "Tunes a specified pipeline with the\n specified tuner for TUNING_BUDGET_PER_ITER (3) iterations.", " Params:\n X: np.array of X training data\n y: np.array of y training data\n X_val: np.array of X validation data\n y_val: np.array of y validatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bandit API. 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 bandit API. 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 ...
Multi-armed bandit method which chooses the arm for which the upper confidence bound (UCB) of expected reward is greatest. If there are multiple arms with the same UCB1 index, then one is chosen at random. An explanation is here: https://www.cs.bham.ac.uk/internal/courses/robot...
"Multi-armed bandit method which chooses the arm for which the upper\n confidence bound (UCB) of expected reward is greatest.\n\n If there are multiple arms with the same UCB1 index, then one is chosen\n at random.\n\n An explanation is here:\n https://www.cs.bham.ac.uk/internal/cours...
75
false
HDI-Project/BTB
bandit
22,928
LDU_FT/rflamary/POT/make_data_classif
LDU_FT
[ "<BEGIN>\n## `plot1D_mat`", "Plot matrix M with the source and target 1D distribution", " Creates a subplot with the source distribution a on the left and\n target distribution b on the tot. The matrix M is shown in between.", " Parameters\n ----------\n a : np.array, shape (na,)\n Sour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_data_classif API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_data_classif API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
dataset generation for classification problems Parameters ---------- dataset : str type of classification problem (see code) n : int number of training samples nz : float noise level (>0) random_state : int, RandomState instance or None, optional (default=None) ...
"dataset generation for classification problems\n\n Parameters\n ----------\n\n dataset : str\n type of classification problem (see code)\n n : int\n number of training samples\n nz : float\n noise level (>0)\n random_state : int, RandomState instance or None, optional (default=No...
711
false
rflamary/POT
make_data_classif
22,929
LDU_FT/delfick/nose-of-yeti/forced_insert
LDU_FT
[ "<BEGIN>\n## `normalise_key`", "Make sure key is a valid python attribute\n<END>", "<BEGIN>\n## `use_options`", "If extractor isn't specified, then just update self.values with options.", " Otherwise update values with whatever the result of calling extractor with\n our template and th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forced_insert API. 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 forced_insert API. 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...
Insert tokens if self.insert_till hasn't been reached yet Will respect self.inserted_line and make sure token is inserted before it Returns True if it appends anything or if it reached the insert_till token
"Insert tokens if self.insert_till hasn't been reached yet\n Will respect self.inserted_line and make sure token is inserted before it\n Returns True if it appends anything or if it reached the insert_till token"
59
false
delfick/nose-of-yeti
forced_insert
22,930
LDU_FT/ChristianKuehnel/btlewrap/extract_notification_payload
LDU_FT
[ "<BEGIN>\n## `wrap_exception`", "Decorator to wrap pygatt exceptions into BluetoothBackendException.\n<END>", "<BEGIN>\n## `wrap_exception`", "Decorator to wrap BTLEExceptions into BluetoothBackendException.\n<END>", "<BEGIN>\n## `read_handle`", "Read a handle from the device.", " You must be con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_notification_payload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_notification_payload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Processes the raw output from Gatttool stripping the first line and the 'Notification handle = 0x000e value: ' from each line @param: process_output - the raw output from a listen commad of GattTool which may look like this: Characteristic value was written successfully ...
"Processes the raw output from Gatttool stripping the first line and the\n 'Notification handle = 0x000e value: ' from each line\n @param: process_output - the raw output from a listen commad of GattTool\n which may look like this:\n Characteristic value was written successfully\n ...
27
false
ChristianKuehnel/btlewrap
extract_notification_payload
22,931
LDU_FT/networks-lab/metaknowledge/getCitations
LDU_FT
[ "<BEGIN>\n## `readGraph`", "Reads the files given by _edgeList_ and _nodeList_ and creates a networkx graph for the files.", " This is designed only for the files produced by metaknowledge and is meant to be the reverse of [writeGraph()](#metaknowledge.graphHelpers.writeGraph), if this does not produce the d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCitations API. 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 getCitations API. 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...
Creates a pandas ready dict with each row a different citation and columns containing the original string, year, journal and author's name. There are also options to filter the output citations with _field_ and _values_ # Parameters _field_ : `optional str` > Default `None`, if given...
"Creates a pandas ready dict with each row a different citation and columns containing the original string, year, journal and author's name.\n\n There are also options to filter the output citations with _field_ and _values_\n\n # Parameters\n\n _field_ : `optional str`\n\n > Default `None`,...
1,149
true
networks-lab/metaknowledge
getCitations
22,932
LDU_FT/maartenbreddels/ipyvolume/transfer_function
LDU_FT
[ "<BEGIN>\n## `volshow`", "Deprecated: please use ipyvolume.quickvolshow or use the ipyvolume.pylab interface.\n<END>", "<BEGIN>\n## `quickvolshow`", "Visualize a 3d array using volume rendering.", " :param data: 3d numpy array\n :param lighting: boolean, to use lighting or not, if set to false, lighti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transfer_function API. 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 transfer_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create a transfer function, see volshow.
"Create a transfer function, see volshow."
141
false
maartenbreddels/ipyvolume
transfer_function
22,933
LDU_FT/dpa-newslab/livebridge/get_last_updated
LDU_FT
[ "<BEGIN>\n## `_db`", "Database client for accessing storage.", " :returns: :class:`livebridge.storages.base.BaseStorage`\n<END>", "<BEGIN>\n## `filter_new_posts`", "Filters ist of post_id for new ones.", " :param source_id: id of the source\n :type string:\n :param post_ids:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_updated API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_updated API. 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 latest update-timestamp from storage for source. :param source_id: id of the source (source_id, ticker_id, blog_id pp) :type string: :returns: :py:class:`datetime.datetime` object of latest update datetime in db.
"Returns latest update-timestamp from storage for source.\n\n :param source_id: id of the source (source_id, ticker_id, blog_id pp)\n :type string:\n :returns: :py:class:`datetime.datetime` object of latest update datetime in db."
21
false
dpa-newslab/livebridge
get_last_updated
22,934
LDU_FT/dw/mitogen/get_subclasses
LDU_FT
[ "<BEGIN>\n## `setup`", "Install handlers for Mitogen loggers to redirect them into the Ansible\n display framework. Ansible installs its own logging framework handlers when\n C.DEFAULT_LOG_PATH is set, therefore disable propagation for our handlers.\n<END>", "<BEGIN>\n## `dict_diff`", "Return a dict rep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subclasses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subclasses API. 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...
Rather than statically import every interesting subclass, forcing it all to be transferred and potentially disrupting the debugged environment, enumerate only those loaded in memory. Also returns the original class.
"Rather than statically import every interesting subclass, forcing it all to\n be transferred and potentially disrupting the debugged environment,\n enumerate only those loaded in memory. Also returns the original class."
843
false
dw/mitogen
get_subclasses
22,935
LDU_FT/pre-commit/pre-commit/rmtree
LDU_FT
[ "<BEGIN>\n## `_shuffled`", "Deterministically shuffle identically under both py2 + py3.\n<END>", "<BEGIN>\n## `envcontext`", "In this context, `os.environ` is modified according to `patch`.", " `patch` is an iterable of 2-tuples (key, value):\n `key`: string\n `value`:\n - string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rmtree API. 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 rmtree API. 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 ...
On windows, rmtree fails for readonly dirs.
"On windows, rmtree fails for readonly dirs."
54
false
pre-commit/pre-commit
rmtree
22,936
LDU_FT/timothydmorton/VESPA/apply_cc
LDU_FT
[ "<BEGIN>\n## `from_df`", "Builds TripleOrbitPopulation from DataFrame", " ``DataFrame`` objects must be of appropriate form to pass\n to :func:`OrbitPopulation.from_df`.", " :param df_long, df_short:\n :class:`pandas.DataFrame` objects to pass to\n :func:`OrbitPopula...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_cc API. 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 apply_cc API. 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...
Applies contrast curve constraint to each population See :func:`vespa.stars.StarPopulation.apply_cc`; all arguments passed to that function for each population.
"Applies contrast curve constraint to each population\n\n See :func:`vespa.stars.StarPopulation.apply_cc`;\n all arguments passed to that function for each population."
495
false
timothydmorton/VESPA
apply_cc
22,937
LDU_FT/wtsi-hgi/consul-lock/validate_session_ttl
LDU_FT
[ "<BEGIN>\n## `get_consul_configuration_from_environment`", "Gets configuration on how to connect to Consul from the environment.\n :return: the configuration derived from the environment\n :raises KeyError: if a required environment variable has not been set\n<END>", "<BEGIN>\n## `create_logger`", "Crea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_session_ttl 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 validate_session_ttl API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Validates the given session timeout, raising a `ValueError` if it is invalid. :param session_timeout_in_seconds: the timeout to validate :raises InvalidSessionTtlValueError: if the timeout is invalid
"Validates the given session timeout, raising a `ValueError` if it is invalid.\n :param session_timeout_in_seconds: the timeout to validate\n :raises InvalidSessionTtlValueError: if the timeout is invalid"
55
false
wtsi-hgi/consul-lock
validate_session_ttl
22,938
LDU_FT/TrainerDex/TrainerDex.py/discord_to_users
LDU_FT
[ "<BEGIN>\n## `request_status`", "Returns a formatted string about the status, useful for logging.", "\targs:\n\tr - takes requests.models.Response\n<END>", "<BEGIN>\n## `level_parser`", "Takes either xp OR level and returns the value for the other\n<END>", "<BEGIN>\n## `filter_trainers`", "Expects an in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discord_to_users API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discord_to_users API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
expects a list of discord.py user objects returns a list of TrainerDex.py user objects
"expects a list of discord.py user objects\n\t\treturns a list of TrainerDex.py user objects"
24
false
TrainerDex/TrainerDex.py
discord_to_users
22,939
LDU_FT/rytilahti/python-songpal/listen_all_notifications
LDU_FT
[ "<BEGIN>\n## `make`", "Create a container.", " Reports extra keys as well as missing ones.\n Thanks to habnabit for the idea!\n<END>", "<BEGIN>\n## `create_post_request`", "Call the given method over POST.", " :param method: Name of the method\n :param params: dict of parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listen_all_notifications 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 listen_all_notifications API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Enable all exposed notifications. :param callback: Callback to call when a notification is received.
"Enable all exposed notifications.\n\n :param callback: Callback to call when a notification is received."
86
false
rytilahti/python-songpal
listen_all_notifications
22,940
LDU_FT/klmitch/appathy/wsgi_extend
LDU_FT
[ "<BEGIN>\n## `_translators`", "Decorator which associates a set of translators (serializers or\n deserializers) with a given method. The `attr` parameter\n identifies which attribute is being updated.\n<END>", "<BEGIN>\n## `register_types`", "Register a short name for one or more content types.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wsgi_extend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wsgi_extend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Extends a controller by registering another controller as an extension of it. All actions defined on the extension controller have routes generated for them (only if none already exist) and are made actions of this controller; all extensions defined on the extension controller are added...
"Extends a controller by registering another controller as an\n extension of it. All actions defined on the extension\n controller have routes generated for them (only if none\n already exist) and are made actions of this controller; all\n extensions defined on the extension controller are ...
48
false
klmitch/appathy
wsgi_extend
22,941
LDU_FT/agoragames/kairos/_calc_keys
LDU_FT
[ "<BEGIN>\n## `_resolve_time`", "Resolve the time in seconds of a configuration value.\n<END>", "<BEGIN>\n## `step_size`", "Return the time in seconds of a step. If a begin and end timestamp,\n return the time in seconds between them after adjusting for what buckets\n they alias to. If t1 and t0 resolve ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calc_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calc_keys API. 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 keys given a stat name and timestamp.
"Calculate keys given a stat name and timestamp."
74
false
agoragames/kairos
_calc_keys
22,942
LDU_FT/flashingpumpkin/django-socialregistration/get_access_token
LDU_FT
[ "<BEGIN>\n## `get_next`", "Returns a url to redirect to after the login / signup.\n<END>", "<BEGIN>\n## `create_profile`", "Create a profile model.", " :param user: A user object\n :param save: If this is set, the profile will\n be saved to DB straight away\n :type save: bool...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_token API. 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 the memoized access token or go out and fetch one.
"Return the memoized access token or go out and fetch one."
72
false
flashingpumpkin/django-socialregistration
get_access_token
22,943
LDU_FT/qntm/greenery/copy
LDU_FT
[ "<BEGIN>\n## `null`", "An FSM accepting nothing (not even the empty string). This is\n\t\tdemonstrates that this is possible, and is also extremely useful\n\t\tin some situations\n<END>", "<BEGIN>\n## `parallel`", "Crawl several FSMs in parallel, mapping the states of a larger meta-FSM.\n\t\tTo determine whet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. 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 copy API. 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...
For completeness only, since `set.copy()` also exists. FSM objects are immutable, so I can see only very odd reasons to need this.
"For completeness only, since `set.copy()` also exists. FSM objects are\n\t\t\timmutable, so I can see only very odd reasons to need this."
63
false
qntm/greenery
copy
22,944
LDU_FT/ReadabilityHoldings/python-readability-api/get_confidence
LDU_FT
[ "<BEGIN>\n## `cast_datetime_filter`", "Cast a datetime filter value.", " :param value: string representation of a value that needs to be casted to\n a `datetime` object.\n<END>", "<BEGIN>\n## `filter_args_to_dict`", "Cast and validate filter args.", " :param filter_dict: Filter kwargs\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_confidence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_confidence API. 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...
Send a GET request to the `confidence` endpoint of the Parser API. Note that either the `url` or `article_id` param should be passed. :param url (optional): The url of an article whose content is wanted. :param article_id (optional): The id of an article in the Readability system w...
"Send a GET request to the `confidence` endpoint of the Parser API.\n\n Note that either the `url` or `article_id` param should be passed.\n\n :param url (optional): The url of an article whose content is wanted.\n :param article_id (optional): The id of an article in the Readability\n s...
83
false
ReadabilityHoldings/python-readability-api
get_confidence
22,945
LDU_FT/bninja/pilo/_validate
LDU_FT
[ "<BEGIN>\n## `reset`", "Used if you need to recursively parse forms.\n<END>", "<BEGIN>\n## `rewind`", "Used if you need to rewind stack to a particular frame.", " :param predicate: Callable used to stop unwind, e.g.:", " .. code::", " def stop(frame):\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate API. 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 _validate API. 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...
Predicate used to determine if a computed value is valid, True, or not, False.
"Predicate used to determine if a computed value is valid, True, or\n not, False."
25
false
bninja/pilo
_validate
22,946
LDU_FT/log2timeline/dfwinreg/GetSubkeyByIndex
LDU_FT
[ "<BEGIN>\n## `_CheckKeyPath`", "Checks the key path find specification.", " Args:\n registry_key (WinRegistryKey): Windows Registry key.\n search_depth (int): number of key path segments to compare.", " Returns:\n bool: True if the Windows Registry key matches the find specification,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetSubkeyByIndex API. 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 GetSubkeyByIndex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Retrieves a subkey by index. Args: index (int): index of the subkey. Returns: WinRegistryKey: Windows Registry subkey or None if not found. Raises: IndexError: if the index is out of bounds.
"Retrieves a subkey by index.\n\n Args:\n index (int): index of the subkey.\n\n Returns:\n WinRegistryKey: Windows Registry subkey or None if not found.\n\n Raises:\n IndexError: if the index is out of bounds."
199
false
log2timeline/dfwinreg
GetSubkeyByIndex
22,947
LDU_FT/RPi-Distro/python-gpiozero/backward
LDU_FT
[ "<BEGIN>\n## `toggle`", "Toggle all the output devices. For each device, if it's on, turn it\n off; if it's off, turn it on.\n<END>", "<BEGIN>\n## `on`", "If no arguments are specified, turn all the LEDs on. If arguments are\n specified, they must be the indexes of the LEDs you wish to turn on.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backward API. 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 backward API. 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...
Drive the motor backwards. :param float speed: The speed at which the motor should turn. Can be any value between 0 (stopped) and the default 1 (maximum speed).
"Drive the motor backwards.\n\n :param float speed:\n The speed at which the motor should turn. Can be any value between\n 0 (stopped) and the default 1 (maximum speed)."
291
false
RPi-Distro/python-gpiozero
backward
22,948
LDU_FT/Parsl/libsubmit/submit
LDU_FT
[ "<BEGIN>\n## `_status`", "Internal: Do not call. Returns the status list for a list of job_ids", " Args:\n self", " Returns:\n [status...] : Status list of all jobs\n<END>", "<BEGIN>\n## `submit`", "Submits the command onto an Local Resource Manager job of blocksize...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit API. 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 submit API. 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 ...
The submit method takes the command string to be executed upon instantiation of a resource most often to start a pilot. Args : - command (str) : The bash command string to be executed. - blocksize (int) : Blocksize to be requested KWargs: - job_name (str)...
"The submit method takes the command string to be executed upon\n instantiation of a resource most often to start a pilot.\n\n Args :\n - command (str) : The bash command string to be executed.\n - blocksize (int) : Blocksize to be requested\n\n KWargs:\n - job_n...
99
false
Parsl/libsubmit
submit
22,949
LDU_FT/nkmathew/yasi-sexp-indenter/trim
LDU_FT
[ "<BEGIN>\n## `parse_options`", "Reads command-line arguments", " >>> parse_options('--indent-comments')\n<END>", "<BEGIN>\n## `read_file`", "read_file(fname : str) -> str", " >>> read_file(r'C:\\\\mine\\\\test.lisp')\n r'(print \"No, no, there\\'s \\\\r\\\\nlife in him!. \")\\\\r\\\\n\\\\r\\\\n'"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trim API. 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 trim API. 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...
trim(string : str) -> str Uses every usefull hack to try and reduce extra whitespace without messing with character literals
"trim(string : str) -> str\n\n Uses every usefull hack to try and reduce extra whitespace without\n messing with character literals"
73
false
nkmathew/yasi-sexp-indenter
trim
22,950
LDU_FT/fopina/tgbotplug/send_location
LDU_FT
[ "<BEGIN>\n## `print_commands`", "utility method to print commands\n and descriptions for @BotFather\n<END>", "<BEGIN>\n## `send_message`", "Use this method to send text messages.", " :param chat_id: Unique identifier for the message recipient — User or GroupChat id\n :param text: Text of the me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_location API. 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 send_location API. 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...
Use this method to send point on the map. :param chat_id: Unique identifier for the message recipient — User or GroupChat id :param latitude: Latitude of location. :param longitude: Longitude of location. :param reply_to_message_id: If the message is a reply, ID of the original message :param reply...
"Use this method to send point on the map.\n\n :param chat_id: Unique identifier for the message recipient — User or GroupChat id\n :param latitude: Latitude of location.\n :param longitude: Longitude of location.\n :param reply_to_message_id: If the message is a reply, ID of the original message\n :para...
41
false
fopina/tgbotplug
send_location
22,951
LDU_FT/dwwkelly/note/verify
LDU_FT
[ "<BEGIN>\n## `check_auth`", "This function is called to check if a username /\n password combination is valid.\n<END>", "<BEGIN>\n## `scrubID`", ":param ID: An ID that can be of various types, this is very kludgy\n :returns: An integer ID\n<END>", "<BEGIN>\n## `which`", ":param bin_name: the nam...
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 ...
:desc: Verifies the integrity of the database, specifically checks the values for unusedIDs and currentMax :returns: A boolean indicating whether the database is valid or not :rval: bool
":desc: Verifies the integrity of the database, specifically checks\n the values for unusedIDs and currentMax\n :returns: A boolean indicating whether the database is valid or\n not\n :rval: bool"
46
false
dwwkelly/note
verify
22,952
LDU_FT/gmichaeljaison/cv-utils/multi_feat_match
LDU_FT
[ "<BEGIN>\n## `match_one`", "Match template and find exactly one match in the Image using specified features.", " :param template: Template Image\n :param image: Search Image\n :param options: Options include\n - features: List of options for each feature\n :return: (Box, Score) Bounding box o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_feat_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_feat_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 ...
Match template and image by extracting multiple features (specified) from it. :param template: Template image :param image: Search image :param options: Options include - features: List of options for each feature :return:
"Match template and image by extracting multiple features (specified) from it.\n\n :param template: Template image\n :param image: Search image\n :param options: Options include\n - features: List of options for each feature\n :return:"
91
false
gmichaeljaison/cv-utils
multi_feat_match
22,953
LDU_FT/carta/ldap_tools/add
LDU_FT
[ "<BEGIN>\n## `create`", "Create an LDAP Group.", " Raises:\n ldap3.core.exceptions.LDAPNoSuchObjectResult:\n an object involved with the request is missing", " ldap3.core.exceptions.LDAPEntryAlreadyExistsResult:\n the entity being created already exis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add SSH public key to a user's profile. Args: username: Username to attach SSH public key to filename: Filename containing keys to add (optional) Raises: ldap3.core.exceptions.LDAPNoSuchAttributeResult: ldapPublicKey isn't attached to objectClass
"Add SSH public key to a user's profile.\n\n Args:\n username: Username to attach SSH public key to\n filename: Filename containing keys to add (optional)\n\n Raises:\n ldap3.core.exceptions.LDAPNoSuchAttributeResult:\n ldapPublicKey isn't attached to object...
65
false
carta/ldap_tools
add
22,954
LDU_FT/dropbox/stone/validate
LDU_FT
[ "<BEGIN>\n## `generic_type_name`", "Return a descriptive type name that isn't Python specific. For example, an\n int type will return 'integer' rather than 'int'.\n<END>", "<BEGIN>\n## `doc_unwrap`", "Applies two transformations to raw_doc:\n 1. N consecutive newlines are converted into N-1 newlines.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. 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 validate API. 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...
For a val to pass validation, it must have a _tag set. This assumes that the object validated that _tag is a valid tag, and that any associated value has also been validated.
"For a val to pass validation, it must have a _tag set. This assumes\n that the object validated that _tag is a valid tag, and that any\n associated value has also been validated."
613
false
dropbox/stone
validate
22,955
LDU_FT/eternnoir/pyTelegramBotAPI/register_for_reply_by_message_id
LDU_FT
[ "<BEGIN>\n## `split_string`", "Splits one string into multiple strings, with a maximum amount of `chars_per_string` characters per string.\n This is very useful for splitting one giant message into multiples.", " :param text: The text to split\n :param chars_per_string: The number of characters per lin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_for_reply_by_message_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_for_reply_by_message_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Registers a callback function to be notified when a reply to `message` arrives. Warning: In case `callback` as lambda function, saving reply handlers will not work. :param message_id: The id of the message for which we are awaiting a reply. :param callback: The callback function to be call...
"Registers a callback function to be notified when a reply to `message` arrives.\n\n Warning: In case `callback` as lambda function, saving reply handlers will not work.\n\n :param message_id: The id of the message for which we are awaiting a reply.\n :param callback: The callback function to b...
187
false
eternnoir/pyTelegramBotAPI
register_for_reply_by_message_id
22,956
LDU_FT/CyberZHG/keras-word-char-embd/get_word_list_eng
LDU_FT
[ "<BEGIN>\n## `update_dicts`", "Add new sentence to generate dictionaries.", " :param sentence: A list of strings representing the sentence.\n<END>", "<BEGIN>\n## `set_dicts`", "Set with custom dictionaries.", " :param word_dict: The word dictionary.\n :param char_dict: The character d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_word_list_eng API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_word_list_eng API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
A naive function that extracts English words from raw texts. :param text: The raw text. :return words: A list of strings.
"A naive function that extracts English words from raw texts.\n\n :param text: The raw text.\n :return words: A list of strings."
39
false
CyberZHG/keras-word-char-embd
get_word_list_eng
22,957
LDU_FT/aio-libs/janus/full
LDU_FT
[ "<BEGIN>\n## `task_done`", "Indicate that a formerly enqueued task is complete.", " Used by Queue consumer threads. For each get() used to fetch a task,\n a subsequent call to task_done() tells the queue that the processing\n on the task is complete.", " If a join() is currently b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full API. 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 full API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return True if there are maxsize items in the queue. Note: if the Queue was initialized with maxsize=0 (the default), then full() is never True.
"Return True if there are maxsize items in the queue.\n\n Note: if the Queue was initialized with maxsize=0 (the default),\n then full() is never True."
40
false
aio-libs/janus
full
22,958
LDU_FT/gagneurlab/concise/gradient_pred
LDU_FT
[ "<BEGIN>\n## `best_kmers`", "Find best k-mers for CONCISE initialization.", " Args:\n dt (pd.DataFrame): Table containing response variable and sequence.\n response (str): Name of the column used as the reponse variable.\n sequence (str): Name of the column storing the DNA/RNA sequences....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gradient_pred API. 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 gradient_pred API. 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...
Gradient-based (saliency) variant effect prediction Based on the idea of [saliency maps](https://arxiv.org/pdf/1312.6034.pdf) the gradient-based prediction of variant effects uses the `gradient` function of the Keras backend to estimate the importance of a variant for a given output. This value is then mul...
"Gradient-based (saliency) variant effect prediction\n\n Based on the idea of [saliency maps](https://arxiv.org/pdf/1312.6034.pdf) the gradient-based prediction of\n variant effects uses the `gradient` function of the Keras backend to estimate the importance of a variant\n for a given output. This value is the...
311
false
gagneurlab/concise
gradient_pred
22,959
LDU_FT/ianepperson/pyredminews/find_all_item_classes
LDU_FT
[ "<BEGIN>\n## `journals`", "Retrieve journals attribute for this very Issue\n<END>", "<BEGIN>\n## `save`", "Save all changes back to Redmine with optional notes.\n<END>", "<BEGIN>\n## `set_status`", "Save all changes and set to the given new_status\n<END>", "<BEGIN>\n## `_objectify`", "Return an object...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_all_item_classes 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 find_all_item_classes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Finds and stores a reference to all Redmine_Item subclasses for later use.
"Finds and stores a reference to all Redmine_Item subclasses for later use."
45
false
ianepperson/pyredminews
find_all_item_classes
22,960
LDU_FT/quantumlib/Cirq/pauli_expansion
LDU_FT
[ "<BEGIN>\n## `_absorb_z_into_w`", "Absorbs a Z^t gate into a W(a) flip.", " [Where W(a) is shorthand for PhasedX(phase_exponent=a).]", " Uses the following identity:\n ───W(a)───Z^t───\n ≡ ───W(a)───────────Z^t/2──────────Z^t/2─── (split Z)\n ≡ ───W(a)───W(a)───Z^-t/2───W(a)───Z^t/2...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pauli_expansion API. 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 pauli_expansion API. 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...
Returns coefficients of the expansion of val in the Pauli basis. Args: val: The value whose Pauli expansion is to returned. default: Determines what happens when `val` does not have methods that allow Pauli expansion to be obtained (see below). If set, the value is returned ...
"Returns coefficients of the expansion of val in the Pauli basis.\n\n Args:\n val: The value whose Pauli expansion is to returned.\n default: Determines what happens when `val` does not have methods that\n allow Pauli expansion to be obtained (see below). If set, the value\n is re...
1,764
true
quantumlib/Cirq
pauli_expansion
22,961
LDU_FT/praekeltfoundation/molo/get_image_hash
LDU_FT
[ "<BEGIN>\n## `generate_slug`", "Returns a new unique slug. Object must provide a SlugField called slug.\n URL friendly slugs are generated using django.template.defaultfilters'\n slugify. Numbers are added to the end of slugs for uniqueness.", " based on implementation in jmbo.utils\n https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_image_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_image_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns an MD5 hash of the image file Handles images stored locally and on AWS I know this code is ugly. Please don't ask. The rabbit hole is deep.
"Returns an MD5 hash of the image file\n\n Handles images stored locally and on AWS\n\n I know this code is ugly.\n Please don't ask.\n The rabbit hole is deep."
101
false
praekeltfoundation/molo
get_image_hash
22,962
LDU_FT/dddomodossola/remi/set_viewbox
LDU_FT
[ "<BEGIN>\n## `add_coord`", "Adds a coord to the polyline and creates another circle\n<END>", "<BEGIN>\n## `set_stroke`", "Sets the stroke properties.\r", " Args:\r\n width (int): stroke width\r\n color (str): stroke color\n<END>", "<BEGIN>\n## `add_arrow_coord`", "Determine ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_viewbox API. 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 set_viewbox API. 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...
Sets the origin and size of the viewbox, describing a virtual view area. Args: x (int): x coordinate of the viewbox origin y (int): y coordinate of the viewbox origin w (int): width of the viewbox h (int): height of the viewbox
"Sets the origin and size of the viewbox, describing a virtual view area.\n\n Args:\n x (int): x coordinate of the viewbox origin\n y (int): y coordinate of the viewbox origin\n w (int): width of the viewbox\n h (int): height of the viewbox"
195
false
dddomodossola/remi
set_viewbox
22,963
LDU_FT/KeplerGO/K2fov/generateVectors
LDU_FT
[ "<BEGIN>\n## `angSepVincenty`", "Vincenty formula for distances on a sphere\n<END>", "<BEGIN>\n## `parse_file`", "Parse a comma-separated file with columns \"ra,dec,magnitude\".\n<END>", "<BEGIN>\n## `K2onSilicon`", "Checks whether targets are on silicon during a given campaign.", " This function wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generateVectors API. 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 generateVectors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Convert the known ra/decs of the channel corners into unit vectors. This code creates the conents of the function loadOriginVectors() (below)
"Convert the known ra/decs of the channel corners\n into unit vectors. This code creates the conents of the\n function loadOriginVectors() (below)"
185
false
KeplerGO/K2fov
generateVectors
22,964
LDU_FT/hover2pi/svo_filters/wave
LDU_FT
[ "<BEGIN>\n## `color_gen`", "Color generator for Bokeh plots", " Parameters\n ----------\n colormap: str, sequence\n The name of the color map", " Returns\n -------\n generator\n A generator for the color palette\n<END>", "<BEGIN>\n## `filters`", "Get a list of the available...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wave API. 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 wave API. 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...
A setter for the wavelength Parameters ---------- wavelength: astropy.units.quantity.Quantity The array with units
"A setter for the wavelength\n\n Parameters\n ----------\n wavelength: astropy.units.quantity.Quantity\n The array with units"
63
false
hover2pi/svo_filters
wave
22,965
LDU_FT/memphis-iis/GLUDB/save
LDU_FT
[ "<BEGIN>\n## `read_rec`", "Generator that yields keyed recs from store.\n<END>", "<BEGIN>\n## `set_db_application_prefix`", "Set the global app prefix and separator.\n<END>", "<BEGIN>\n## `find_by_index`", "Find records matching index query - defer to backend.\n<END>", "<BEGIN>\n## `_auto_init`", "Our...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. 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 save API. 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...
Save current instance - as per the gludb spec.
"Save current instance - as per the gludb spec."
57
false
memphis-iis/GLUDB
save
22,966
LDU_FT/invinst/ResponseBot/destroy_list
LDU_FT
[ "<BEGIN>\n## `load_config_file`", "Parse configuration file and get config values.\n<END>", "<BEGIN>\n## `load_config_from_cli_arguments`", "Get config values of passed in CLI options.", " :param dict kwargs: CLI options\n<END>", "<BEGIN>\n## `validate_configs`", "Check that required config are s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy_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 extr...
Destroy a list :param list_id: list ID number :return: The destroyed list object :rtype: :class:`~responsebot.models.List`
"Destroy a list\n\n :param list_id: list ID number\n :return: The destroyed list object\n :rtype: :class:`~responsebot.models.List`"
99
false
invinst/ResponseBot
destroy_list
22,967
LDU_FT/carsongee/flask-htpasswd/generate_token
LDU_FT
[ "<BEGIN>\n## `init_app`", "Find and configure the user database from specified file\n<END>", "<BEGIN>\n## `check_basic_auth`", "This function is called to check if a username /\n password combination is valid via the htpasswd file.\n<END>", "<BEGIN>\n## `generate_token`", "assumes user exists in ht...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_token API. 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 generate_token API. 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...
assumes user exists in htpasswd file. Return the token for the given user by signing a token of the username and a hash of the htpasswd string.
"assumes user exists in htpasswd file.\n\n Return the token for the given user by signing a token of\n the username and a hash of the htpasswd string."
15
false
carsongee/flask-htpasswd
generate_token
22,968
LDU_FT/inspirehep/inspire-json-merger/filter_curated_references
LDU_FT
[ "<BEGIN>\n## `scan_author_string_for_phrases`", "Scan a name string and output an object representing its structure.\n Example:\n Sample output for the name 'Jingleheimer Schmitt, John Jacob, XVI.' is::\n {\n 'TOKEN_TAG_LIST' : ['lastnames', 'nonlastnames', 'titles', 'raw'],\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_curated_references 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 filter_curated_references API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Remove references from either ``head`` or ``update`` depending on curation. If references have been curated, then it removes all references from the update to keep the existing ones. Otherwise, it removes all references from the head to force replacement with the update ones. Args: root (pmap)...
"Remove references from either ``head`` or ``update`` depending on curation.\n\n If references have been curated, then it removes all references from the\n update to keep the existing ones. Otherwise, it removes all references from\n the head to force replacement with the update ones.\n\n Args:\n roo...
32
false
inspirehep/inspire-json-merger
filter_curated_references
22,969
LDU_FT/cloudnull/cloudlib/mkdir_p
LDU_FT
[ "<BEGIN>\n## `getLogger`", "Return a logger from a given name.", " If the name does not have a log handler, this will create one for it based\n on the module name which will log everything to a log file in a location\n the executing user will have access to.", " :param name: ``str``\n :return: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mkdir_p API. 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 mkdir_p API. 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...
Python implementation of `mkdir -p <path>` :param path: ``str``
"Python implementation of `mkdir -p <path>`\n\n :param path: ``str``"
136
false
cloudnull/cloudlib
mkdir_p
22,970
LDU_FT/ilevkivskyi/typing_inspect/is_tuple_type
LDU_FT
[ "<BEGIN>\n## `_gorg`", "This function exists for compatibility with old typing versions.\n<END>", "<BEGIN>\n## `is_callable_type`", "Test if the type is a generic callable type, including subclasses\n excluding non-generic types and callables.\n Examples::", " is_callable_type(int) == False\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_tuple_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_tuple_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Test if the type is a generic tuple type, including subclasses excluding non-generic classes. Examples:: is_tuple_type(int) == False is_tuple_type(tuple) == False is_tuple_type(Tuple) == True is_tuple_type(Tuple[str, int]) == True class MyClass(Tuple[str, int]): ...
"Test if the type is a generic tuple type, including subclasses excluding\n non-generic classes.\n Examples::\n\n is_tuple_type(int) == False\n is_tuple_type(tuple) == False\n is_tuple_type(Tuple) == True\n is_tuple_type(Tuple[str, int]) == True\n class MyClass(Tuple[str, int]):...
36
false
ilevkivskyi/typing_inspect
is_tuple_type
22,971
LDU_FT/cloudsmith-io/cloudsmith-cli/delete
LDU_FT
[ "<BEGIN>\n## `convert`", "Take a path with $HOME variables and resolve it to full path.\n<END>", "<BEGIN>\n## `make_user_agent`", "Get a suitable user agent for identifying the CLI process.\n<END>", "<BEGIN>\n## `pretty_print_list_info`", "Pretty print list info, with pagination, for user display.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete a package from a repository. - OWNER/REPO/PACKAGE: Specify the OWNER namespace (i.e. user or org), the REPO name where the package is stored, and the PACKAGE name (slug) of the package itself. All separated by a slash. Example: 'your-org/awesome-repo/better-pkg'.
"Delete a package from a repository.\n\n - OWNER/REPO/PACKAGE: Specify the OWNER namespace (i.e. user or org), the\n REPO name where the package is stored, and the PACKAGE name (slug) of the\n package itself. All separated by a slash.\n\n Example: 'your-org/awesome-repo/better-pkg'."
214
false
cloudsmith-io/cloudsmith-cli
delete
22,972