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/OCR-D/core/page_from_image
LDU_FT
[ "<BEGIN>\n## `xmllint_format`", "Pretty-print XML like ``xmllint`` does.", " Arguments:\n xml (string): Serialized XML\n<END>", "<BEGIN>\n## `download_to_directory`", "Download a file to the workspace.", " Early Shortcut: If url is a file://-URL and that file is already in the directory, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the page_from_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the page_from_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Create `OcrdPage </../../ocrd_models/ocrd_models.ocrd_page.html>`_ from an `OcrdFile </../../ocrd_models/ocrd_models.ocrd_file.html>`_ representing an image (i.e. should have ``mimetype`` starting with ``image/``). Arguments: * input_file (OcrdFile):
"Create `OcrdPage </../../ocrd_models/ocrd_models.ocrd_page.html>`_\n from an `OcrdFile </../../ocrd_models/ocrd_models.ocrd_file.html>`_\n representing an image (i.e. should have ``mimetype`` starting with ``image/``).\n\n Arguments:\n * input_file (OcrdFile):"
176
false
OCR-D/core
page_from_image
34,073
LDU_FT/polyaxon/polyaxon-schemas/get_value
LDU_FT
[ "<BEGIN>\n## `get_value`", "Helper for pulling a keyed value off various types of objects\n<END>", "<BEGIN>\n## `_handle_load_unknown`", "Preserve unknown keys during deserialization.\n<END>", "<BEGIN>\n## `_handle_dump_unknown`", "Preserve unknown keys during deserialization.\n<END>", "<BEGIN>\n## `val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Helper for pulling a keyed value off various types of objects
"Helper for pulling a keyed value off various types of objects"
16
false
polyaxon/polyaxon-schemas
get_value
34,074
LDU_FT/openatx/facebook-wda/tap_hold
LDU_FT
[ "<BEGIN>\n## `urljoin`", "The default urlparse.urljoin behavior look strange\n Standard urlparse.urljoin('http://a.com/foo', '/bar')\n Expect: http://a.com/foo/bar\n Actually: http://a.com/bar", " This function fix that.\n<END>", "<BEGIN>\n## `wait_ready`", "wait until WDA back to normal", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tap_hold API. 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 tap_hold API. 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...
Tap and hold for a moment Args: - x, y(int): position - duration(float): seconds of hold time [[FBRoute POST:@"/wda/touchAndHold"] respondWithTarget:self action:@selector(handleTouchAndHoldCoordinate:)],
"Tap and hold for a moment\n\n Args:\n - x, y(int): position\n - duration(float): seconds of hold time\n\n [[FBRoute POST:@\"/wda/touchAndHold\"] respondWithTarget:self action:@selector(handleTouchAndHoldCoordinate:)],"
68
false
openatx/facebook-wda
tap_hold
34,075
LDU_FT/echinopsii/net.echinopsii.ariane.community.cli.python3/remove
LDU_FT
[ "<BEGIN>\n## `find_location`", "find the location according location id (prioritary) or location name\n :param loc_id: the location id\n :param loc_name: the location name\n :return: found location or None if not found\n<END>", "<BEGIN>\n## `json_2_location`", "transform JSON obj coming f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
remove this object from Ariane server :return: null if successfully removed else self
"remove this object from Ariane server\n :return: null if successfully removed else self"
303
false
echinopsii/net.echinopsii.ariane.community.cli.python3
remove
34,076
LDU_FT/panosl/django-currencies/currency_context
LDU_FT
[ "<BEGIN>\n## `get_imports`", "See if we have been passed a set of currencies or a setting variable\n or look for settings CURRENCIES or SHOP_CURRENCIES.\n<END>", "<BEGIN>\n## `log`", "Both prints to stdout/stderr and the django.currencies logger\n<END>", "<BEGIN>\n## `check_rates`", "Local helper f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the currency_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 currency_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 ...
Use instead of context processor Context variables are only valid within the block scope
"Use instead of context processor\n Context variables are only valid within the block scope"
57
false
panosl/django-currencies
currency_context
34,077
LDU_FT/nats-io/python-nats/_process_ping
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses the wire protocol from NATS for the client\n and dispatches the subscription callbacks.\n<END>", "<BEGIN>\n## `connect`", "Establishes a connection to a NATS server.", " Examples:", " # Configure pool of NATS servers.\n nc = nats.io.client.Cli...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_ping API. 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 _process_ping API. 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...
The server will be periodically sending a PING, and if the the client does not reply a PONG back a number of times, it will close the connection sending an `-ERR 'Stale Connection'` error.
"The server will be periodically sending a PING, and if the the client\n does not reply a PONG back a number of times, it will close the connection\n sending an `-ERR 'Stale Connection'` error."
62
false
nats-io/python-nats
_process_ping
34,078
LDU_FT/Robpol86/etaprogress/rate_unstable
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 rate_unstable API. 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 rate_unstable API. 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 an unstable rate based on the last two entries in the timing data. Less intensive to compute.
"Returns an unstable rate based on the last two entries in the timing data. Less intensive to compute."
76
false
Robpol86/etaprogress
rate_unstable
34,079
LDU_FT/CloudGenix/sdk-python/quick_str_input
LDU_FT
[ "<BEGIN>\n## `jdout`", "JD Output function. Does quick pretty printing of a CloudGenix Response body. This function returns a string\n instead of directly printing content.", " **Parameters:**", " - **api_response:** A CloudGenix-attribute extended `requests.Response` object", " **Returns:**...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quick_str_input API. 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 quick_str_input API. 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...
Function to display a quick question for text input. **Parameters:** - **prompt:** Text / question to display - **default_value:** Default value for no entry **Returns:** text_type() or default_value.
"Function to display a quick question for text input.\n\n **Parameters:**\n\n - **prompt:** Text / question to display\n - **default_value:** Default value for no entry\n\n **Returns:** text_type() or default_value."
153
false
CloudGenix/sdk-python
quick_str_input
34,080
LDU_FT/all-umass/graphs/circle_tear
LDU_FT
[ "<BEGIN>\n## `random_graph`", "Random graph generator. Does not generate self-edges.\n out_degree : array-like of ints, controlling the out degree of each vertex.\n<END>", "<BEGIN>\n## `urquhart_graph`", "Urquhart graph: made from the 2 shortest edges of each Delaunay triangle.\n<END>", "<BEGIN>\n## `isoma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the circle_tear API. 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 circle_tear API. 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...
Circular graph tearing. spanning_tree: one of {'mst', 'spt'} cycle_len_thresh: int, length of longest allowable cycle spt_idx: int, start vertex for shortest_path_subtree, random if None From "How to project 'circular' manifolds using geodesic distances?" by Lee & Verleysen, ESANN 2004. See...
"Circular graph tearing.\n\n spanning_tree: one of {'mst', 'spt'}\n cycle_len_thresh: int, length of longest allowable cycle\n spt_idx: int, start vertex for shortest_path_subtree, random if None\n\n From \"How to project 'circular' manifolds using geodesic distances?\"\n by Lee & Verleysen, ESANN 2004...
167
false
all-umass/graphs
circle_tear
34,081
LDU_FT/opennode/waldur-core/process
LDU_FT
[ "<BEGIN>\n## `subfield_get`", "Verbatim copy from:\n https://github.com/django/django/blob/1.9.13/django/db/models/fields/subclassing.py#L38\n<END>", "<BEGIN>\n## `_preprocess_kwargs`", "Replace generic key related attribute with filters by object_id and content_type fields\n<END>", "<BEGIN>\n## `list`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process API. 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 process API. 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...
Send events as push notification via Google Cloud Messaging. Expected settings as follows: # https://developers.google.com/mobile/add WALDUR_CORE['GOOGLE_API'] = { 'NOTIFICATION_TITLE': "Waldur notification", 'Android': { ...
"Send events as push notification via Google Cloud Messaging.\n Expected settings as follows:\n\n # https://developers.google.com/mobile/add\n WALDUR_CORE['GOOGLE_API'] = {\n 'NOTIFICATION_TITLE': \"Waldur notification\",\n 'Android': {\n ...
526
false
opennode/waldur-core
process
34,082
LDU_FT/soldag/python-pwmled/_set_pwm
LDU_FT
[ "<BEGIN>\n## `_get_pwm_values`", "Get the pwm values for a specific state of the led.", " If a state argument is omitted, current value is used.", " :param brightness: The brightness of the state.\n :param color: The color of the state.\n :return: The pwm values.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_pwm API. 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 _set_pwm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Set pwm values on the controlled pins. :param raw_values: Raw values to set (0-255).
"Set pwm values on the controlled pins.\n\n :param raw_values: Raw values to set (0-255)."
73
false
soldag/python-pwmled
_set_pwm
34,083
LDU_FT/MAVENSDC/PyTplot/get_data
LDU_FT
[ "<BEGIN>\n## `del_data`", "This function will delete tplot variables that are already stored in memory. ", " Parameters:\n name : str \n Name of the tplot variable to be deleted. If no name is provided, then \n all tplot variables will be deleted. ", " Returns:\n N...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
This function extracts the data from the Tplot Variables stored in memory. Parameters: name : str Name of the tplot variable Returns: time_val : pandas dataframe index data_val : list Examples: >>> # Retrieve the data from Variable 1...
"This function extracts the data from the Tplot Variables stored in memory. \n \n Parameters:\n name : str \n Name of the tplot variable\n \n Returns:\n time_val : pandas dataframe index\n data_val : list\n \n Examples:\n >>> # Retrieve the data fro...
155
false
MAVENSDC/PyTplot
get_data
34,084
LDU_FT/kirbs-/svm/download_source
LDU_FT
[ "<BEGIN>\n## `build_from_source`", "Builds specified Spark version from source.\n :param version:\n :param kwargs:\n :return: (Integer) Status code of build/mvn command.\n<END>", "<BEGIN>\n## `chmod_add_excute`", "Adds execute permission to file.\n :param filename:\n :return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Download Spark version. Uses same name as release tag without the leading 'v'. :param version: Version number to download. :return: None
"Download Spark version. Uses same name as release tag without the leading 'v'.\n :param version: Version number to download.\n :return: None"
12
false
kirbs-/svm
download_source
34,085
LDU_FT/NaturalHistoryMuseum/pylibdmtx/_pixel_data
LDU_FT
[ "<BEGIN>\n## `load_libdmtx`", "Loads the libdmtx shared library.", " Populates the globals LIBDMTX and EXTERNAL_DEPENDENCIES.\n<END>", "<BEGIN>\n## `libdmtx_function`", "Returns a foreign function exported by `libdmtx`.", " Args:\n fname (:obj:`str`): Name of the exported function as string.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pixel_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pixel_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 extra...
Returns (pixels, width, height, bpp) Returns: :obj: `tuple` (pixels, width, height, bpp)
"Returns (pixels, width, height, bpp)\n\n Returns:\n :obj: `tuple` (pixels, width, height, bpp)"
42
false
NaturalHistoryMuseum/pylibdmtx
_pixel_data
34,086
LDU_FT/jgm/pandocfilters/get_filename4code
LDU_FT
[ "<BEGIN>\n## `get_filename4code`", "Generate filename based on content", " The function ensures that the (temporary) directory exists, so that the\n file can be written.", " Example:\n filename = get_filename4code(\"myfilter\", code)\n<END>", "<BEGIN>\n## `get_caption`", "get caption from ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_filename4code API. 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_filename4code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Generate filename based on content The function ensures that the (temporary) directory exists, so that the file can be written. Example: filename = get_filename4code("myfilter", code)
"Generate filename based on content\n\n The function ensures that the (temporary) directory exists, so that the\n file can be written.\n\n Example:\n filename = get_filename4code(\"myfilter\", code)"
30
false
jgm/pandocfilters
get_filename4code
34,087
LDU_FT/pyvisa/pyvisa-sim/read
LDU_FT
[ "<BEGIN>\n## `_get_triplet`", "Return a triplet from a dialogue dictionary.", " :param dd: Dialogue dictionary.\n :type dd: Dict[str, str]\n :return: (query, response, error response)\n :rtype: (str, str | NoResponse, str | NoResponse)\n<END>", "<BEGIN>\n## `_load`", "YAML Parse a file or str an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Reads data from device or interface synchronously. Corresponds to viRead function of the VISA library. :param session: Unique logical identifier to a session. :param count: Number of bytes to be read. :return: data read, return value of the library call. :rtype: bytes, :class:`...
"Reads data from device or interface synchronously.\n\n Corresponds to viRead function of the VISA library.\n\n :param session: Unique logical identifier to a session.\n :param count: Number of bytes to be read.\n :return: data read, return value of the library call.\n :rtype: bytes, ...
85
false
pyvisa/pyvisa-sim
read
34,088
LDU_FT/wavefrontHQ/python-client/add_event_tag
LDU_FT
[ "<BEGIN>\n## `display`", "Sets the display of this Message.", " The form of display for this message # noqa: E501", " :param display: The display of this Message. # noqa: E501\n :type: str\n<END>", "<BEGIN>\n## `scope`", "Sets the scope of this Message.", " The audience sco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_event_tag API. 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 add_event_tag API. 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...
Add a tag to a specific event # noqa: E501 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.add_event_tag(id, tag_value, async_req=True) >>> result = thread.get() :...
"Add a tag to a specific event # noqa: E501\n\n # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.add_event_tag(id, tag_value, async_req=True)\n >>> result = thread.get()\n\n...
954
false
wavefrontHQ/python-client
add_event_tag
34,089
LDU_FT/biocore/burrito-fillings/_derive_log_path
LDU_FT
[ "<BEGIN>\n## `raxml_alignment`", "Run raxml on alignment object", " align_obj: Alignment object\n params: you can set any params except -w and -n", " returns: tuple (phylonode,\n parsimonyphylonode,\n log likelihood,\n total exec time)\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _derive_log_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 _derive_log_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 ...
Guess logfile path produced by Mothur This method checks the working directory for log files generated by Mothur. It will raise an ApplicationError if no log file can be found. Mothur generates log files named in a nondeterministic way, using the current time. We return the l...
"Guess logfile path produced by Mothur\n\n This method checks the working directory for log files\n generated by Mothur. It will raise an ApplicationError if no\n log file can be found.\n\n Mothur generates log files named in a nondeterministic way,\n using the current time. We retu...
618
false
biocore/burrito-fillings
_derive_log_path
34,090
LDU_FT/rbaier/python-urltools/normalize_query
LDU_FT
[ "<BEGIN>\n## `_get_public_suffix_list`", "Return a set containing all Public Suffixes.", " If the env variable PUBLIC_SUFFIX_LIST does not point to a local copy of the\n public suffix list it is downloaded into memory each time urltools is\n imported.\n<END>", "<BEGIN>\n## `normalize`", "Normalize ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Normalize query: sort params by name, remove params without value. >>> normalize_query('z=3&y=&x=1') 'x=1&z=3'
"Normalize query: sort params by name, remove params without value.\n\n >>> normalize_query('z=3&y=&x=1')\n 'x=1&z=3'"
37
false
rbaier/python-urltools
normalize_query
34,091
LDU_FT/projectatomic/atomic-reactor/run
LDU_FT
[ "<BEGIN>\n## `_build`", "build image from provided build_args", " :return: BuildResults\n<END>", "<BEGIN>\n## `_load_results`", "load results from recent build", " :return: BuildResults\n<END>", "<BEGIN>\n## `commit_buildroot`", "create image from buildroot", " :return:\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
create container from provided image and start it for more info, see documentation of REST API calls: * containers/{}/start * container/create :param image: ImageName or string, name or id of the image :param command: str :param create_kwargs: dict, kwargs for docker....
"create container from provided image and start it\n\n for more info, see documentation of REST API calls:\n * containers/{}/start\n * container/create\n\n :param image: ImageName or string, name or id of the image\n :param command: str\n :param create_kwargs: dict, kwargs fo...
440
false
projectatomic/atomic-reactor
run
34,092
LDU_FT/agschwender/pilbox/save
LDU_FT
[ "<BEGIN>\n## `color_hex_to_dec_tuple`", "Converts a color from hexadecimal to decimal tuple, color can be in\n the following formats: 3-digit RGB, 4-digit ARGB, 6-digit RGB and\n 8-digit ARGB.\n<END>", "<BEGIN>\n## `region`", "Selects a sub-region of the image using the supplied rectangle,\n ...
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...
Returns a buffer to the image for saving, supports the following optional keyword arguments: format - The format to save as: see Image.FORMATS optimize - The image file size should be optimized preserve_exif - Preserve the Exif information in JPEGs progressive - The output shoul...
"Returns a buffer to the image for saving, supports the\n following optional keyword arguments:\n\n format - The format to save as: see Image.FORMATS\n optimize - The image file size should be optimized\n preserve_exif - Preserve the Exif information in JPEGs\n progressive - The outpu...
17
false
agschwender/pilbox
save
34,093
LDU_FT/yeraydiazdiaz/lunr.py/step5
LDU_FT
[ "<BEGIN>\n## `get_nltk_builder`", "Returns a builder with stemmers for all languages added to it.", " Args:\n languages (list): A list of supported languages.\n<END>", "<BEGIN>\n## `register_languages`", "Register all supported languages to ensure compatibility.\n<END>", "<BEGIN>\n## `Tokenizer`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step5 API. 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 step5 API. 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...
step5() removes a final -e if m() > 1, and changes -ll to -l if m() > 1.
"step5() removes a final -e if m() > 1, and changes -ll to -l if\n m() > 1."
128
false
yeraydiazdiaz/lunr.py
step5
34,094
LDU_FT/annayqho/TheCannon/load_ref_spectra
LDU_FT
[ "<BEGIN>\n## `gen_cannon_grad_spec`", "Generate Cannon gradient spectra", " Parameters\n ----------\n labels: default values for [teff, logg, feh, cfe, nfe, afe, ak]\n choose: val of cfe or nfe, whatever you're varying\n low: lowest val of cfe or nfe, whatever you're varying\n high: highest va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_ref_spectra API. 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 load_ref_spectra API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Pull out wl, flux, ivar from files of training spectra
"Pull out wl, flux, ivar from files of training spectra"
188
false
annayqho/TheCannon
load_ref_spectra
34,095
LDU_FT/googleapis/gax-python/create_error
LDU_FT
[ "<BEGIN>\n## `fill`", "Add the metrics headers known to GAX.", " Return an OrderedDict with all of the metrics headers provided to\n this function, as well as the metrics known to GAX (such as its own\n version, the GRPC version, etc.).\n<END>", "<BEGIN>\n## `stringify`", "Convert the provided metr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Creates a ``GaxError`` or subclass. Attributes: msg (string): describes the error that occurred. cause (Exception, optional): the exception raised by a lower layer of the RPC stack (for example, gRPC) that caused this exception, or None if this exception originated in GAX. ...
"Creates a ``GaxError`` or subclass.\n\n Attributes:\n msg (string): describes the error that occurred.\n cause (Exception, optional): the exception raised by a lower\n layer of the RPC stack (for example, gRPC) that caused this\n exception, or None if this exception originated in...
161
false
googleapis/gax-python
create_error
34,096
LDU_FT/ausaki/subfinder/_parse_downloadcount
LDU_FT
[ "<BEGIN>\n## `_gen_subname`", "generate filename of subtitles\n :TODO: fix the conflict of subname\n<END>", "<BEGIN>\n## `_compute_video_hash`", "compute videofile's hash\n reference: https://docs.google.com/document/d/1w5MCBO61rKQ6hI5m9laJLWse__yTYdRugpVyz4RzrmM/preview\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_downloadcount 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 _parse_downloadcount API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
parse download count text format maybe: - pure number: 1000 - number + unit: 1万
"parse download count\n text format maybe:\n - pure number: 1000\n - number + unit: 1万"
26
false
ausaki/subfinder
_parse_downloadcount
34,097
LDU_FT/Karaage-Cluster/python-tldap/escape_filter_chars
LDU_FT
[ "<BEGIN>\n## `check_password`", "Check a plaintext password against a hashed password.\n<END>", "<BEGIN>\n## `reset`", "Reset transaction back to original state, discarding all\n uncompleted transactions.\n<END>", "<BEGIN>\n## `_cache_get_for_dn`", "Object state is cached. When an update is require...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the escape_filter_chars 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 escape_filter_chars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Replace all special characters found in assertion_value by quoted notation. escape_mode If 0 only special chars mentioned in RFC 4515 are escaped. If 1 all NON-ASCII chars are escaped. If 2 all chars are escaped.
"Replace all special characters found in assertion_value\n by quoted notation.\n\n escape_mode\n If 0 only special chars mentioned in RFC 4515 are escaped.\n If 1 all NON-ASCII chars are escaped.\n If 2 all chars are escaped."
151
false
Karaage-Cluster/python-tldap
escape_filter_chars
34,098
LDU_FT/masfaraud/BMSpy/PartialDynamicSystem
LDU_FT
[ "<BEGIN>\n## `_AddInput`", "Add one more variable as an input of the block", " :param variable: variable (or signal as it is also a variable)\n<END>", "<BEGIN>\n## `_AddOutput`", "Add one more variable as an output of the block", " :param variable: variable (or signal as it is also a var...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the PartialDynamicSystem 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 PartialDynamicSystem 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 dynamical system blocks associated to output variable
"returns dynamical system blocks associated to output variable"
39
false
masfaraud/BMSpy
PartialDynamicSystem
34,099
LDU_FT/deschler/django-modeltranslation/append_fallback
LDU_FT
[ "<BEGIN>\n## `autodiscover`", "Auto-discover INSTALLED_APPS translation.py modules and fail silently when\n not present. This forces an import on them to register.\n Also import explicit modules.\n<END>", "<BEGIN>\n## `register`", "Registers the given model(s) with the given translation options.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_fallback API. 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 append_fallback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
If translated field is encountered, add also all its fallback fields. Returns tuple: (set_of_new_fields_to_use, set_of_translated_field_names)
"If translated field is encountered, add also all its fallback fields.\n Returns tuple: (set_of_new_fields_to_use, set_of_translated_field_names)"
122
false
deschler/django-modeltranslation
append_fallback
34,100
LDU_FT/colab/colab-superarchives-plugin/get_emails
LDU_FT
[ "<BEGIN>\n## `update_score`", "Update the relevance score for this thread.", " The score is calculated with the following variables:", " * vote_weight: 100 - (minus) 1 for each 3 days since\n voted with minimum of 5.\n * replies_weight: 300 - (minus) 1 for each 3 days since\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_emails API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_emails API. 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...
Generator function that get the emails from each mailing list dump dirctory. If `all` is set to True all the emails in the mbox will be imported if not it will just resume from the last message previously imported. The lists set in `exclude_lists` won't be imported. Yield: A tup...
"Generator function that get the emails from each mailing\n list dump dirctory. If `all` is set to True all the emails in the\n mbox will be imported if not it will just resume from the last\n message previously imported. The lists set in `exclude_lists`\n won't be imported.\n\n Yield...
22
false
colab/colab-superarchives-plugin
get_emails
34,101
LDU_FT/jaegertracing/jaeger-client-python/finish
LDU_FT
[ "<BEGIN>\n## `_set_client_id`", "Method for tracer to set client ID of throttler.\n<END>", "<BEGIN>\n## `_init_polling`", "Bootstrap polling for throttler.", " To avoid spiky traffic from throttler clients, we use a random delay\n before the first poll.\n<END>", "<BEGIN>\n## `local_ip`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finish API. 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 finish API. 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 ...
Indicate that the work represented by this span has been completed or terminated, and is ready to be sent to the Reporter. If any tags / logs need to be added to the span, it should be done before calling finish(), otherwise they may be ignored. :param finish_time: an explicit Span fin...
"Indicate that the work represented by this span has been completed\n or terminated, and is ready to be sent to the Reporter.\n\n If any tags / logs need to be added to the span, it should be done\n before calling finish(), otherwise they may be ignored.\n\n :param finish_time: an explicit S...
46
false
jaegertracing/jaeger-client-python
finish
34,102
LDU_FT/django-json-api/django-rest-framework-json-api/parse
LDU_FT
[ "<BEGIN>\n## `get_field_names`", "We override the parent to omit explicity defined meta fields (such\n as SerializerMethodFields) from the list of declared fields\n<END>", "<BEGIN>\n## `to_representation`", "Object instance -> Dict of primitive datatypes.\n<END>", "<BEGIN>\n## `remove_invalid_fields`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parses the incoming bytestream as JSON and returns the resulting data
"Parses the incoming bytestream as JSON and returns the resulting data"
74
false
django-json-api/django-rest-framework-json-api
parse
34,103
LDU_FT/cqparts/cqparts/solver
LDU_FT
[ "<BEGIN>\n## `register_exporter`", "Register an exporter to use for a :class:`Part <cqparts.Part>`,\n :class:`Assembly <cqparts.Assembly>`, or both\n (with :class:`Component <cqparts.Component>`).", " Registration is necessary to use with\n :meth:`Component.exporter() <cqparts.Component.exporter>`."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solver API. 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 solver API. 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 ...
Solve constraints. Solutions pair :class:`Constraint <cqparts.constraint.Constraint>` instances with their suitable :class:`CoordSystem <cqparts.utils.geometry.CoordSystem>` world coordinates. :param constraints: constraints to solve :type constraints: iterable of :class:`Constraint <cqparts.constraint...
"Solve constraints. Solutions pair :class:`Constraint <cqparts.constraint.Constraint>`\n instances with their suitable :class:`CoordSystem <cqparts.utils.geometry.CoordSystem>`\n world coordinates.\n\n :param constraints: constraints to solve\n :type constraints: iterable of :class:`Constraint <cqparts.cons...
377
false
cqparts/cqparts
solver
34,104
LDU_FT/SmileyChris/easy-thumbnails/read_files
LDU_FT
[ "<BEGIN>\n## `default`", "Easy-thumbnails' default name processor.", " For example: ``source.jpg.100x100_q80_crop_upscale.jpg``\n<END>", "<BEGIN>\n## `alias`", "Generate filename based on thumbnail alias name (option ``THUMBNAIL_ALIASES``).", " For example: ``source.jpg.medium_large.jpg``\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_files API. 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...
Output the contents of one or more files to a single concatenated string.
"Output the contents of one or more files to a single concatenated string."
218
false
SmileyChris/easy-thumbnails
read_files
34,105
LDU_FT/improbable-research/keanu/Dirichlet
LDU_FT
[ "<BEGIN>\n## `BooleanSlice`", "Takes the slice along a given dimension and index of a vertex", " :param input_vertex: the input vertex\n :param dimension: the dimension to extract along\n :param index: the index of extraction\n<END>", "<BEGIN>\n## `BooleanTake`", "A vertex that extracts a scalar at...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Dirichlet API. 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 Dirichlet API. 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...
Matches a vector of concentration values to a Dirichlet distribution :param concentration: the concentration values of the dirichlet
"Matches a vector of concentration values to a Dirichlet distribution\n \n :param concentration: the concentration values of the dirichlet"
185
false
improbable-research/keanu
Dirichlet
34,106
LDU_FT/SectorLabs/django-localized-fields/deconstruct
LDU_FT
[ "<BEGIN>\n## `save`", "Saves this model instance to the database.\n<END>", "<BEGIN>\n## `to_python`", "Converts the value from a database value into a Python value.\n<END>", "<BEGIN>\n## `get_prep_value`", "Gets the value in a format to store into the database.\n<END>", "<BEGIN>\n## `formfield`", "Get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deconstruct API. 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 deconstruct API. 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...
Deconstructs this value into a primitive type. Returns: A dictionary with all the localized values contained in this instance.
"Deconstructs this value into a primitive type.\n\n Returns:\n A dictionary with all the localized values\n contained in this instance."
117
false
SectorLabs/django-localized-fields
deconstruct
34,107
LDU_FT/inveniosoftware/invenio-collections/reverse_collections
LDU_FT
[ "<BEGIN>\n## `query`", "Parse query string using given grammar.", " :returns: AST that represents the query in the given grammar.\n<END>", "<BEGIN>\n## `index`", "Query Elasticsearch using \"collection\" param in query string.\n<END>", "<BEGIN>\n## `apply`", "Enhance the query restricting not per...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse_collections 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 reverse_collections 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...
Reverse colections field to custom MARC tag 980.
"Reverse colections field to custom MARC tag 980."
33
false
inveniosoftware/invenio-collections
reverse_collections
34,108
LDU_FT/EntilZha/PyFunctional/sorted_t
LDU_FT
[ "<BEGIN>\n## `name`", "Retrieve a pretty name for the function\n :param function: function to get name from\n :return: pretty name\n<END>", "<BEGIN>\n## `map_t`", "Transformation for Sequence.map\n :param func: map function\n :return: transformation\n<END>", "<BEGIN>\n## `starmap_t`", "Transfo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sorted_t API. 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 sorted_t API. 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...
Transformation for Sequence.sorted :param key: key to sort by :param reverse: reverse or not :return: transformation
"Transformation for Sequence.sorted\n :param key: key to sort by\n :param reverse: reverse or not\n :return: transformation"
249
false
EntilZha/PyFunctional
sorted_t
34,109
LDU_FT/jelmer/python-fastimport/push_line
LDU_FT
[ "<BEGIN>\n## `check_path`", "Check that a path is legal.", " :return: the path if all is OK\n :raise ValueError: if the path is illegal\n<END>", "<BEGIN>\n## `format_path`", "Format a path in utf8, quoting it if necessary.\n<END>", "<BEGIN>\n## `format_who_when`", "Format a tuple of name,email,sec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Push line back onto the line buffer. :param line: the line with no trailing newline
"Push line back onto the line buffer.\n\n :param line: the line with no trailing newline"
100
false
jelmer/python-fastimport
push_line
34,110
LDU_FT/ethereum/web3.py/prepare_transaction
LDU_FT
[ "<BEGIN>\n## `solidityKeccak`", "Executes keccak256 exactly as Solidity does.\n Takes list of abi_types as inputs -- `[uint24, int8[], bool]`\n and list of corresponding values -- `[20, [-1, 5, 0], True]`\n<END>", "<BEGIN>\n## `gas_price_strategy_middleware`", "Includes a gas price using the ga...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_transaction 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 prepare_transaction 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...
:parameter `is_function_abi` is used to distinguish function abi from contract abi Returns a dictionary of the transaction that could be used to call this TODO: make this a public API TODO: add new prepare_deploy_transaction API
":parameter `is_function_abi` is used to distinguish function abi from contract abi\n Returns a dictionary of the transaction that could be used to call this\n TODO: make this a public API\n TODO: add new prepare_deploy_transaction API"
268
false
ethereum/web3.py
prepare_transaction
34,111
LDU_FT/EnergieID/smappy/off_command_control
LDU_FT
[ "<BEGIN>\n## `authenticated`", "Decorator to check if Smappee's access token has expired.\n If it has, use the refresh token to request a new access token\n<END>", "<BEGIN>\n## `urljoin`", "Join terms together with forward slashes", " Parameters\n ----------\n parts", " Returns\n -------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the off_command_control 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 off_command_control 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...
Parameters ---------- val_id : str Returns ------- requests.Response
"Parameters\n ----------\n val_id : str\n\n Returns\n -------\n requests.Response"
87
false
EnergieID/smappy
off_command_control
34,112
LDU_FT/thiagopbueno/tf-rddlsim/_dtype
LDU_FT
[ "<BEGIN>\n## `interm_size`", "Returns the MDP intermediate state size.\n<END>", "<BEGIN>\n## `output_size`", "Returns the simulation cell output size.\n<END>", "<BEGIN>\n## `_dtype`", "Converts `tensor` to tf.float32 datatype if needed.\n<END>", "<BEGIN>\n## `timesteps`", "Returns the input tensor for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dtype API. 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 _dtype API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Converts `tensor` to tf.float32 datatype if needed.
"Converts `tensor` to tf.float32 datatype if needed."
64
false
thiagopbueno/tf-rddlsim
_dtype
34,113
LDU_FT/jbarlow83/OCRmyPDF/get_palette_pdf_string
LDU_FT
[ "<BEGIN>\n## `re_symlink`", "Helper function: relinks soft symbolic link if necessary\n<END>", "<BEGIN>\n## `is_file_writable`", "Intentionally racy test if target is writable.", " We intend to write to the output file if and only if we succeed and\n can replace it atomically. Before doing the OCR wor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_palette_pdf_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_palette_pdf_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns palette pre-formatted for use in PDF
"Returns palette pre-formatted for use in PDF"
195
false
jbarlow83/OCRmyPDF
get_palette_pdf_string
34,114
LDU_FT/ECESeniorDesign/lazy_record/connect_db
LDU_FT
[ "<BEGIN>\n## `does_not_mutate`", "Prevents methods from mutating the receiver\n<END>", "<BEGIN>\n## `find_by`", "Find first record subject to restrictions in +kwargs+, raising\n RecordNotFound if no such record exists.\n<END>", "<BEGIN>\n## `first`", "Returns the first record in the query (sorting ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Connect Repo to a database with path +database+ so all instances can interact with the database.
"Connect Repo to a database with path +database+ so all instances can\n interact with the database."
78
false
ECESeniorDesign/lazy_record
connect_db
34,115
LDU_FT/occrp-attic/exactitude/clean
LDU_FT
[ "<BEGIN>\n## `clean`", "The classic: date parsing, every which way.\n<END>", "<BEGIN>\n## `fuzzy_date_parser`", "Thin wrapper around ``parsedatetime`` and ``dateutil`` modules.\n Since there's no upstream suppport for multiple locales, this wrapper\n exists.\n :param str text: Text to par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. 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 clean API. 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...
The classic: date parsing, every which way.
"The classic: date parsing, every which way."
34
false
occrp-attic/exactitude
clean
34,116
LDU_FT/bioidiap/bob.ip.facedetect/add_image
LDU_FT
[ "<BEGIN>\n## `add`", "Adds a new strong classifier with the given threshold to the cascade.", " **Parameters:**", " classifier : :py:class:`bob.learn.boosting.BoostedMachine`\n A strong classifier to add", " ``threshold`` : float\n The classification threshold for this cascade step", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Adds an image and its bounding boxes to the current list of files The bounding boxes are automatically estimated based on the given annotations. **Parameters:** ``image_path`` : str The file name of the image, including its full path ``annotations`` : [dict] A list of annotations, i.e., ...
"Adds an image and its bounding boxes to the current list of files\n\n The bounding boxes are automatically estimated based on the given annotations.\n\n **Parameters:**\n\n ``image_path`` : str\n The file name of the image, including its full path\n\n ``annotations`` : [dict]\n A list of annotati...
246
false
bioidiap/bob.ip.facedetect
add_image
34,117
LDU_FT/fictorial/pygameui/get_dict_for_class
LDU_FT
[ "<BEGIN>\n## `value_for_keypath`", "Get value from walking key path with start object obj.\n<END>", "<BEGIN>\n## `set_value_for_keypath`", "Set attribute value new_value at key path of start object obj.\n<END>", "<BEGIN>\n## `view_for_image_named`", "Create an ImageView for the given image.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dict_for_class 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_dict_for_class 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...
The style dict for a given class and state. This collects the style attributes from parent classes and the class of the given object and gives precedence to values thereof to the children. The state attribute of the view instance is taken as the current state if state is None. ...
"The style dict for a given class and state.\n\n This collects the style attributes from parent classes\n and the class of the given object and gives precedence\n to values thereof to the children.\n\n The state attribute of the view instance is taken as\n the current state if state i...
53
false
fictorial/pygameui
get_dict_for_class
34,118
LDU_FT/uw-it-aca/uw-restclients-nws/delete_message_type
LDU_FT
[ "<BEGIN>\n## `get_endpoint_by_subscriber_id_and_protocol`", "Get an endpoint by subscriber_id and protocol\n<END>", "<BEGIN>\n## `get_endpoints_by_subscriber_id`", "Search for all endpoints by a given subscriber\n<END>", "<BEGIN>\n## `resend_sms_endpoint_verification`", "Calls NWS function to resend verif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_message_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_message_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. T...
Delete an existing message type :param message_type_id: is the id of the message type the client wants to delete
"Delete an existing message type\n :param message_type_id: is the id of the message type the\n client wants to delete"
44
false
uw-it-aca/uw-restclients-nws
delete_message_type
34,119
LDU_FT/gagneurlab/concise/as_df
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 as_df API. 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 as_df API. 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 pd.DataFrame view of the whole experiment
"Return a pd.DataFrame view of the whole experiment"
311
false
gagneurlab/concise
as_df
34,120
LDU_FT/nigma/django-easy-pdf/get_pdf_response
LDU_FT
[ "<BEGIN>\n## `fetch_resources`", "Retrieves embeddable resource from given ``uri``.", " For now only local resources (images, fonts) are supported.", " :param str uri: path or url to image or font resource\n :returns: path to local resource file.\n :rtype: str\n :raises: :exc:`~easy_pdf.excepti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pdf_response API. 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_pdf_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Renders PDF document and prepares response. :returns: Django HTTP response :rtype: :class:`django.http.HttpResponse`
"Renders PDF document and prepares response.\n\n :returns: Django HTTP response\n :rtype: :class:`django.http.HttpResponse`"
24
false
nigma/django-easy-pdf
get_pdf_response
34,121
LDU_FT/ttinies/sc2gameLobby/load
LDU_FT
[ "<BEGIN>\n## `addNew`", "Add a new version record to the database to be tracked\n VERSION RECORD EXAMPLE:\n \"base-version\": 55505, \n \"data-hash\": \"60718A7CA50D0DF42987A30CF87BCB80\", \n \"fixed-hash\": \"0189B2804E2F6BA4C4591222089E63B2\", \n \"label\": \"3.16\", \n \"r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
expect that the data file has already been established
"expect that the data file has already been established"
76
false
ttinies/sc2gameLobby
load
34,122
LDU_FT/thefactory/marathon-python/kill_tasks
LDU_FT
[ "<BEGIN>\n## `_parse_response`", "Parse a Marathon response into an object or list of objects.\n<END>", "<BEGIN>\n## `create_app`", "Create and start an app.", " :param str app_id: application ID\n :param :class:`marathon.models.app.MarathonApp` app: the application to create\n :param b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kill_tasks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kill_tasks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Kill all tasks belonging to app. :param str app_id: application ID :param bool scale: if true, scale down the app by the number of tasks killed :param str host: if provided, only terminate tasks on this Mesos slave :param int batch_size: if non-zero, terminate tasks in groups of this si...
"Kill all tasks belonging to app.\n\n :param str app_id: application ID\n :param bool scale: if true, scale down the app by the number of tasks killed\n :param str host: if provided, only terminate tasks on this Mesos slave\n :param int batch_size: if non-zero, terminate tasks in groups of t...
146
false
thefactory/marathon-python
kill_tasks
34,123
LDU_FT/idlesign/django-sitemessage/handle_mark_read_request
LDU_FT
[ "<BEGIN>\n## `_build_message`", "Constructs a MIME message from message and dispatch models.\n<END>", "<BEGIN>\n## `schedule_email`", "Schedules an email message for delivery.", " :param dict, str message: str or dict: use str for simple text email;\n dict - to compile email from a template (defau...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_mark_read_request 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 handle_mark_read_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Handles a request to mark a message as read. :param Request request: Request instance :param Message message: Message model instance :param Dispatch dispatch: Dispatch model instance :param bool hash_is_valid: Flag indicating that user supplied request signature is correct :para...
"Handles a request to mark a message as read.\n\n :param Request request: Request instance\n :param Message message: Message model instance\n :param Dispatch dispatch: Dispatch model instance\n :param bool hash_is_valid: Flag indicating that user supplied request signature is correct\n ...
137
false
idlesign/django-sitemessage
handle_mark_read_request
34,124
LDU_FT/mar10/pyftpsync/on_conflict
LDU_FT
[ "<BEGIN>\n## `match_path`", "Return True if `path` matches `match` and `exclude` options.\n<END>", "<BEGIN>\n## `_compare_file`", "Byte compare two files (early out on first difference).\n<END>", "<BEGIN>\n## `_tick`", "Write progress info and move cursor to beginning of line.\n<END>", "<BEGIN>\n## `_sy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_conflict API. 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 on_conflict API. 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...
Return False to prevent visiting of children.
"Return False to prevent visiting of children."
122
false
mar10/pyftpsync
on_conflict
34,125
LDU_FT/IdentityPython/pysaml2/supported_entity_categories
LDU_FT
[ "<BEGIN>\n## `add_vo_information_about_user`", "Add information to the knowledge I have about the user. This is\n for Virtual organizations.", " :param name_id: The subject identifier\n :return: A possibly extended knowledge.\n<END>", "<BEGIN>\n## `create_authn_request`", "Creates an au...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the supported_entity_categories API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the supported_entity_categories API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Get a list of entity category support for an entity id. :param entity_id: Entity id :return: Entity category support :type entity_id: string :rtype: [string]
"Get a list of entity category support for an entity id.\n\n :param entity_id: Entity id\n :return: Entity category support\n\n :type entity_id: string\n :rtype: [string]"
738
false
IdentityPython/pysaml2
supported_entity_categories
34,126
LDU_FT/asweigart/pysimplevalidate/validateURL
LDU_FT
[ "<BEGIN>\n## `_errstr`", "Returns the value str, truncated to MAX_ERROR_STR_LEN characters. If\n it's truncated, the returned value will have '...' on the end.\n<END>", "<BEGIN>\n## `_getStrippedValue`", "Like the strip() string method, except the strip argument describes\n different behavior:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validateURL API. 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 validateURL API. 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...
Raises ValidationException if value is not a URL. Returns the value argument. The "http" or "https" protocol part of the URL is optional. * value (str): The value being validated as a URL. * blank (bool): If True, a blank string will be accepted. Defaults to False. * strip (bool, str, None): If N...
"Raises ValidationException if value is not a URL.\n Returns the value argument.\n\n The \"http\" or \"https\" protocol part of the URL is optional.\n\n * value (str): The value being validated as a URL.\n * blank (bool): If True, a blank string will be accepted. Defaults to False.\n * strip (bool, str,...
148
false
asweigart/pysimplevalidate
validateURL
34,127
LDU_FT/mbr/simplekv/delete
LDU_FT
[ "<BEGIN>\n## `delete`", "Implementation of :meth:`~simplekv.KeyValueStore.delete`.", " If an exception occurs in either the cache or backing store, all are\n passing on.\n<END>", "<BEGIN>\n## `get`", "Implementation of :meth:`~simplekv.KeyValueStore.get`.", " If a cache miss occurs, t...
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 ...
Implementation of :meth:`~simplekv.KeyValueStore.delete`. If an exception occurs in either the cache or backing store, all are passing on.
"Implementation of :meth:`~simplekv.KeyValueStore.delete`.\n\n If an exception occurs in either the cache or backing store, all are\n passing on."
86
false
mbr/simplekv
delete
34,128
LDU_FT/delicb/mvvm/unsubscribe
LDU_FT
[ "<BEGIN>\n## `instance`", "Returns existing instance of messenger. If one does not exist it will\n be created and returned.", " :param int interval:\n Number of miliseconds that represents interval when messages will\n be processed.\n Note that this parameter will ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsubscribe API. 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 unsubscribe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Removes handler from message listeners. :param str message: Name of message to unsubscribe handler from. :param callable handler: Callable that should be removed as handler for `message`.
"Removes handler from message listeners.\n\n :param str message:\n Name of message to unsubscribe handler from.\n\n :param callable handler:\n Callable that should be removed as handler for `message`."
21
false
delicb/mvvm
unsubscribe
34,129
LDU_FT/toumorokoshi/sprinter/__calculate_order
LDU_FT
[ "<BEGIN>\n## `whitespace_smart_split`", "Split a command by whitespace, taking care to not split on\n whitespace within quotes.", " >>> whitespace_smart_split(\"test this \\\\\\\"in here\\\\\\\" again\")\n ['test', 'this', '\"in here\"', 'again']\n<END>", "<BEGIN>\n## `sync`", "execute the steps re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __calculate_order API. 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 __calculate_order API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Determine a valid ordering of the nodes in which a node is not called before all of it's dependencies. Raise an error if there is a cycle, or nodes are missing.
"Determine a valid ordering of the nodes in which a node is not called before all of it's dependencies.\n\n Raise an error if there is a cycle, or nodes are missing."
150
false
toumorokoshi/sprinter
__calculate_order
34,130
LDU_FT/lordmauve/lepton/reset_ball
LDU_FT
[ "<BEGIN>\n## `run_ahead`", "Run the particle system for the specified time frame at the\n specified framerate to move time forward as quickly as possible.\n Useful for \"warming up\" the particle system to reach a steady-state\n before anything is drawn or to simply \"skip ahead\" in time.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_ball API. 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 reset_ball API. 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...
reset ball to set location on the screen
"reset ball to set location on the screen"
35
false
lordmauve/lepton
reset_ball
34,131
LDU_FT/yt-project/unyt/_auto_positive_symbol
LDU_FT
[ "<BEGIN>\n## `uconcatenate`", "Concatenate a sequence of arrays.", " This wrapper around numpy.concatenate preserves units. All input arrays\n must have the same units. See the documentation of numpy.concatenate for\n full details.", " Examples\n --------\n >>> from unyt import cm\n >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _auto_positive_symbol API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _auto_positive_symbol API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Inserts calls to ``Symbol`` for undefined variables. Passes in positive=True as a keyword argument. Adapted from sympy.sympy.parsing.sympy_parser.auto_symbol
"Inserts calls to ``Symbol`` for undefined variables.\n Passes in positive=True as a keyword argument.\n Adapted from sympy.sympy.parsing.sympy_parser.auto_symbol"
236
false
yt-project/unyt
_auto_positive_symbol
34,132
LDU_FT/ooici/elasticpy/query_string
LDU_FT
[ "<BEGIN>\n## `ids`", "http://www.elasticsearch.org/guide/reference/query-dsl/ids-filter.html\nFilters documents that only have the provided ids. Note, this filter does not require the _id field to be indexed since it works using the _uid field.\n<END>", "<BEGIN>\n## `geo_bounding_box`", "http://www.elasticsea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
http://www.elasticsearch.org/guide/reference/query-dsl/query-string-query.html A query that uses a query parser in order to parse its content. > query = ElasticQuery().query_string('this AND that OR thus', default_field='content')
"http://www.elasticsearch.org/guide/reference/query-dsl/query-string-query.html\n A query that uses a query parser in order to parse its content.\n\n > query = ElasticQuery().query_string('this AND that OR thus', default_field='content')"
89
false
ooici/elasticpy
query_string
34,133
LDU_FT/Kaggle/kaggle-api/competition_submit
LDU_FT
[ "<BEGIN>\n## `language`", "Sets the language of this KernelPushRequest.", " The language that the kernel is written in # noqa: E501", " :param language: The language of this KernelPushRequest. # noqa: E501\n :type: str\n<END>", "<BEGIN>\n## `kernel_type`", "Sets the kernel_type of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the competition_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the competition_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. Th...
submit a competition! Parameters ========== file_name: the competition metadata file message: the submission description competition: the competition name quiet: suppress verbose output (default is False)
"submit a competition!\n\n Parameters\n ==========\n file_name: the competition metadata file\n message: the submission description\n competition: the competition name\n quiet: suppress verbose output (default is False)"
304
false
Kaggle/kaggle-api
competition_submit
34,134
LDU_FT/xolox/python-rotate-backups/apply_rotation_scheme
LDU_FT
[ "<BEGIN>\n## `main`", "Command line interface for the ``rotate-backups`` program.\n<END>", "<BEGIN>\n## `coerce_location`", "Coerce a string to a :class:`Location` object.", " :param value: The value to coerce (a string or :class:`Location` object).\n :param options: Any keyword arguments are passed o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_rotation_scheme 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 apply_rotation_scheme API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Apply the user defined rotation scheme to the result of :func:`group_backups()`. :param backups_by_frequency: A :class:`dict` in the format generated by :func:`group_backups()`. :param most_recent_backup: The :class:`~datetime.datetime` of the most ...
"Apply the user defined rotation scheme to the result of :func:`group_backups()`.\n\n :param backups_by_frequency: A :class:`dict` in the format generated by\n :func:`group_backups()`.\n :param most_recent_backup: The :class:`~datetime.datetime` of the most\n ...
55
false
xolox/python-rotate-backups
apply_rotation_scheme
34,135
LDU_FT/standage/tag/source
LDU_FT
[ "<BEGIN>\n## `accession`", "Parse accession number from commonly supported formats.", " If the defline does not match one of the following formats, the entire\n description (sans leading caret) will be returned.", " * >gi|572257426|ref|XP_006607122.1|\n * >gnl|Tcas|XP_008191512.1\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
When modifying source, also update children with matching source.
"When modifying source, also update children with matching source."
114
false
standage/tag
source
34,136
LDU_FT/miguelgrinberg/Flask-SocketIO/on_error
LDU_FT
[ "<BEGIN>\n## `emit`", "Emit a SocketIO event.", " This function emits a SocketIO event to one or more connected clients. A\n JSON blob can be attached to the event as payload. This is a function that\n can only be called from a SocketIO event handler, as in obtains some\n information from the curren...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Decorator to define a custom error handler for SocketIO events. This decorator can be applied to a function that acts as an error handler for a namespace. This handler will be invoked when a SocketIO event handler raises an exception. The handler function must accept one argument, which...
"Decorator to define a custom error handler for SocketIO events.\n\n This decorator can be applied to a function that acts as an error\n handler for a namespace. This handler will be invoked when a SocketIO\n event handler raises an exception. The handler function must accept one\n argument,...
87
false
miguelgrinberg/Flask-SocketIO
on_error
34,137
LDU_FT/StorjOld/pyp2p/sequential_connect
LDU_FT
[ "<BEGIN>\n## `set_keep_alive`", "This function instructs the TCP socket to send a heart beat every n\n seconds to detect dead connections. It's the TCP equivalent of the\n IRC ping-pong protocol and allows for better cleanup / detection\n of dead TCP connections.", " It activates aft...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sequential_connect 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 sequential_connect 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...
Sequential connect is designed to return a connection to the Rendezvous Server but it does so in a way that the local port ranges (both for the server and used for subsequent hole punching) are allocated sequentially and predictably. This is because Delta+1 type NATs only preserve th...
"Sequential connect is designed to return a connection to the\r\n Rendezvous Server but it does so in a way that the local port\r\n ranges (both for the server and used for subsequent hole\r\n punching) are allocated sequentially and predictably. This is\r\n because Delta+1 type NATs only pr...
88
false
StorjOld/pyp2p
sequential_connect
34,138
LDU_FT/mogproject/mog-commons-python/to_unicode
LDU_FT
[ "<BEGIN>\n## `_detect_encoding`", "Detect the default encoding for the terminal's output.\n :return: string: encoding string\n<END>", "<BEGIN>\n## `_get_restore_function`", "Return the binary function for restoring terminal attributes.\n :return: function (signal, frame) => None:\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_unicode API. 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 to_unicode API. 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...
Make unicode string from any value :param s: :param encoding: :param errors: :return: unicode
"Make unicode string from any value\n :param s:\n :param encoding:\n :param errors:\n :return: unicode"
49
false
mogproject/mog-commons-python
to_unicode
34,139
LDU_FT/ubccr/pinky/rotate
LDU_FT
[ "<BEGIN>\n## `draw`", "(molecule)->canonical representation of a molecule\n Well, it's only canonical if the atom symorders are\n canonical, otherwise it's arbitrary.", " atoms must have a symorder attribute\n bonds must have a equiv_class attribute\n<END>", "<BEGIN>\n## `getPyroleLikeAtoms`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rotate API. 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 rotate API. 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 ...
(atom)->start the cycle at position atom, assumes that atom is in the cycle
"(atom)->start the cycle at position atom, assumes\n that atom is in the cycle"
63
false
ubccr/pinky
rotate
34,140
LDU_FT/mommermi/callhorizons/export2pyephem
LDU_FT
[ "<BEGIN>\n## `_char2int`", "translate characters to integer values (upper and lower case)\n<END>", "<BEGIN>\n## `parse_comet`", "Parse `targetname` as if it were a comet.", " :return: (string or None, int or None, string or None);\n The designation, number and prefix, and name of the comet a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export2pyephem API. 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 export2pyephem API. 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...
Call JPL HORIZONS website to obtain orbital elements based on the provided targetname, epochs, and center code and create a PyEphem (http://rhodesmill.org/pyephem/) object. This function requires PyEphem to be installed. :param center: str; center body (default: 500@10 = Sun)...
"Call JPL HORIZONS website to obtain orbital elements based on the\n provided targetname, epochs, and center code and create a\n PyEphem (http://rhodesmill.org/pyephem/) object. This function\n requires PyEphem to be installed.\n\n :param center: str;\n center body (default: 500@10...
40
false
mommermi/callhorizons
export2pyephem
34,141
LDU_FT/jgorset/fandjango/process_response
LDU_FT
[ "<BEGIN>\n## `facebook_authorization_required`", "Require the user to authorize the application.", " :param redirect_uri: A string describing an URL to redirect to after authorization is complete.\n If ``None``, redirects to the current URL in the Facebook canvas\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_response API. 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 process_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Set compact P3P policies and save signed request to cookie. P3P is a WC3 standard (see http://www.w3.org/TR/P3P/), and although largely ignored by most browsers it is considered by IE before accepting third-party cookies (ie. cookies set by documents in iframes). If they are not set correctly, ...
"Set compact P3P policies and save signed request to cookie.\n\n P3P is a WC3 standard (see http://www.w3.org/TR/P3P/), and although largely ignored by most\n browsers it is considered by IE before accepting third-party cookies (ie. cookies set by\n documents in iframes). If they are not set correc...
34
false
jgorset/fandjango
process_response
34,142
LDU_FT/astropy/photutils/get_areas
LDU_FT
[ "<BEGIN>\n## `_move_tuple_axes_first`", "Bottleneck can only take integer axis, not tuple, so this function\n takes all the axes to be operated on and combines them into the\n first dimension of the array so that we can then use axis=0\n<END>", "<BEGIN>\n## `_nanmean`", "Bottleneck nanmean function that...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_areas API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_areas API. 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...
The areas (in pixel**2) of the regions for the input labels. Parameters ---------- labels : int, 1D array-like (int) The label(s) for which to return areas. Label must be non-zero. Returns ------- areas : `~numpy.ndarray` The areas o...
"The areas (in pixel**2) of the regions for the input labels.\n\n Parameters\n ----------\n labels : int, 1D array-like (int)\n The label(s) for which to return areas. Label must be\n non-zero.\n\n Returns\n -------\n areas : `~numpy.ndarray`\n ...
1,397
true
astropy/photutils
get_areas
34,143
LDU_FT/aalireza/SimpleAudioIndexer/_staging_step
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 _staging_step API. 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 _staging_step API. 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...
Checks the size of audio file, splits it if it's needed to manage api limit and then moves to `staged` directory while appending `*` to the end of the filename for self.split_audio_by_duration to replace it by a number. Parameters ---------- basename : str A ...
"Checks the size of audio file, splits it if it's needed to manage api\n limit and then moves to `staged` directory while appending `*` to\n the end of the filename for self.split_audio_by_duration to replace\n it by a number.\n\n Parameters\n ----------\n basename : str\n ...
159
false
aalireza/SimpleAudioIndexer
_staging_step
34,144
LDU_FT/romanorac/discomll/mdl_nominal
LDU_FT
[ "<BEGIN>\n## `random_init_map`", "Assign datapoint `e` randomly to one of the `k` clusters.\n<END>", "<BEGIN>\n## `estimate_map`", "Find the cluster `i` that is closest to the datapoint `e`.\n<END>", "<BEGIN>\n## `estimate_reduce`", "Estimate the cluster centers for each cluster.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mdl_nominal API. 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 mdl_nominal API. 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...
Function calculates minimum description length for discrete features. If feature is continuous it is firstly discretized. x: numpy array - numerical or discrete feature y: numpy array - labels
"Function calculates minimum description length for discrete features. If feature is continuous it is firstly discretized.\n\n x: numpy array - numerical or discrete feature\n y: numpy array - labels"
77
false
romanorac/discomll
mdl_nominal
34,145
LDU_FT/johntruckenbrodt/spatialist/is_valid
LDU_FT
[ "<BEGIN>\n## `hdr`", "write ENVI header files", " Parameters\n ----------\n data: str or dict\n the file or dictionary to get the info from\n filename: str\n the HDR file to write", " Returns\n -------\n<END>", "<BEGIN>\n## `__hdr2dict`", "read a HDR file into a dictionary\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API. 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 is_valid API. 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...
Check image integrity. Tries to compute the checksum for each raster layer and returns False if this fails. See this forum entry: `How to check if image is valid? <https://lists.osgeo.org/pipermail/gdal-dev/2013-November/037520.html>`_. Returns ------- bool i...
"Check image integrity.\n Tries to compute the checksum for each raster layer and returns False if this fails.\n See this forum entry:\n `How to check if image is valid? <https://lists.osgeo.org/pipermail/gdal-dev/2013-November/037520.html>`_.\n\n Returns\n -------\n bool\n ...
227
false
johntruckenbrodt/spatialist
is_valid
34,146
LDU_FT/synw/dataswim/copycol
LDU_FT
[ "<BEGIN>\n## `ndlayout_`", "Create a Holoview NdLayout from a dictionnary of chart objects\n<END>", "<BEGIN>\n## `layout_`", "Returns a Holoview Layout from chart objects\n<END>", "<BEGIN>\n## `_hline_bokeh_`", "Returns an horizontal line from a column mean value\n<END>", "<BEGIN>\n## `_sline_bokeh`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copycol API. 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 copycol API. 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...
Copy a columns values in another column :param origin_col: name of the column to copy :type origin_col: str :param dest_col: name of the new column :type dest_col: str :example: ``ds.copy("col 1", "New col")``
"Copy a columns values in another column\n\n :param origin_col: name of the column to copy\n :type origin_col: str\n :param dest_col: name of the new column\n :type dest_col: str\n\n :example: ``ds.copy(\"col 1\", \"New col\")``"
393
false
synw/dataswim
copycol
34,147
LDU_FT/savvastj/nbashots/get_game_logs
LDU_FT
[ "<BEGIN>\n## `get_all_player_ids`", "Returns a pandas DataFrame containing the player IDs used in the\n stats.nba.com API.", " Parameters\n ----------\n ids : { \"shots\" | \"all_players\" | \"all_data\" }, optional\n Passing in \"shots\" returns a DataFrame that contains the player IDs of\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_game_logs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_game_logs API. 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 team game logs as a pandas DataFrame
"Returns team game logs as a pandas DataFrame"
77
false
savvastj/nbashots
get_game_logs
34,148
LDU_FT/lablup/backend.ai-client-py/terminate
LDU_FT
[ "<BEGIN>\n## `generate_signature`", "Generates the API request signature from the given parameters.\n<END>", "<BEGIN>\n## `list_with_limit`", "Fetches the list of agents with the given status with limit and offset for\n pagination.", " :param limit: number of agents to get\n :param offs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the terminate API. 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 terminate API. 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...
Terminate the given session. SESSID: session ID or its alias given when creating the session.
"Terminate the given session.\n\n SESSID: session ID or its alias given when creating the session."
207
false
lablup/backend.ai-client-py
terminate
34,149
LDU_FT/cronofy/pycronofy/check_exists_in_object
LDU_FT
[ "<BEGIN>\n## `format_event_time`", "Accepts either an ISO 8601 string, a dict with a time and tzid OR a datetime object.\n Must be in UTC format:", " 2016-01-31T12:33:00Z\n 2016-01-31T12:33:00UTC\n 2016-01-31T12:33:00+00:00", " https://en.wikipedia.org/wiki/ISO_8601", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_exists_in_object 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 check_exists_in_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Checks if required fields have a value in the object instance. Throws an exception with the missing fields. :param object obj: Object to check. :param typle required_fields: Required fields that must have a value.
"Checks if required fields have a value in the object instance.\n Throws an exception with the missing fields.\n\n :param object obj: Object to check.\n :param typle required_fields: Required fields that must have a value."
111
false
cronofy/pycronofy
check_exists_in_object
34,150
LDU_FT/seleniumbase/SeleniumBase/activate_shepherd
LDU_FT
[ "<BEGIN>\n## `generate_application_string`", "Generate an application string based on some of the given information\n that can be pulled from the test object: app_env, start_time.\n<END>", "<BEGIN>\n## `_filter_xpath_grouping`", "This method removes the outer parentheses for xpath grouping.\n Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_shepherd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate_shepherd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Allows you to use Shepherd Tours with SeleniumBase http://github.hubspot.com/shepherd/docs/welcome/
"Allows you to use Shepherd Tours with SeleniumBase\n http://github.hubspot.com/shepherd/docs/welcome/"
362
false
seleniumbase/SeleniumBase
activate_shepherd
34,151
LDU_FT/roll/interest-py/match
LDU_FT
[ "<BEGIN>\n## `match`", "Return match or None for the request/constraints pair.", " Parameters\n ----------\n request: :class:`.http.Request`\n Request instance.\n root: str\n HTTP path root.\n path: str\n HTTP path.\n methods: list\n ...
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...
Return match or None for the request/constraints pair. .. seealso:: Proxy: :meth:`.Router.match`
"Return match or None for the request/constraints pair.\n\n .. seealso:: Proxy:\n :meth:`.Router.match`"
38
false
roll/interest-py
match
34,152
LDU_FT/gwww/elkm1/index_to_housecode
LDU_FT
[ "<BEGIN>\n## `housecode_to_index`", "Convert a X10 housecode to a zero-based index\n<END>", "<BEGIN>\n## `index_to_housecode`", "Convert a zero-based index to a X10 housecode.\n<END>", "<BEGIN>\n## `_check_message_valid`", "Check packet length valid and that checksum is good.\n<END>", "<BEGIN>\n## `zb_e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_to_housecode 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 index_to_housecode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Convert a zero-based index to a X10 housecode.
"Convert a zero-based index to a X10 housecode."
32
false
gwww/elkm1
index_to_housecode
34,153
LDU_FT/sirfoga/pyhal/execute
LDU_FT
[ "<BEGIN>\n## `write_dicts_to_csv`", "Saves .csv file with posts data", " :param dicts: Dictionaries with same values\n<END>", "<BEGIN>\n## `write_matrix_to_csv`", "Saves .csv file with data", " :param headers: column names\n :param data: Data\n<END>", "<BEGIN>\n## `write_dicts_to_js...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Executes function on each item :param func: Function to execute on each item :param args: args of function :param kwargs: extra args of function :return: list: Results of calling the function on each item
"Executes function on each item\n\n :param func: Function to execute on each item\n :param args: args of function\n :param kwargs: extra args of function\n :return: list: Results of calling the function on each item"
543
false
sirfoga/pyhal
execute
34,154
LDU_FT/jquast/wcwidth/draw_status
LDU_FT
[ "<BEGIN>\n## `_do_readme_update`", "Patch README.rst to reflect the data files used in release.\n<END>", "<BEGIN>\n## `_make_table`", "Return a tuple of lookup tables for given values.\n<END>", "<BEGIN>\n## `_do_retrieve`", "Retrieve given url to target filepath fname.\n<END>", "<BEGIN>\n## `_do_write`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_status API. 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 draw_status API. 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...
Conditionally draw status bar when output terminal is a tty. :param writer: callable writes to output stream, receiving unicode. :param idx: current page position index. :type idx: int
"Conditionally draw status bar when output terminal is a tty.\n\n :param writer: callable writes to output stream, receiving unicode.\n :param idx: current page position index.\n :type idx: int"
60
false
jquast/wcwidth
draw_status
34,155
LDU_FT/kylewm/flask-micropub/authorized_handler
LDU_FT
[ "<BEGIN>\n## `init_app`", "Initialize the Micropub extension if it was not given app\n in the constructor.", " Args:\n app (flask.Flask): the flask application to extend.\n client_id (string, optional): the IndieAuth client id, will be\n displayed when the user is aske...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authorized_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authorized_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Decorates the authorization callback endpoint. The endpoint should take one argument, a flask.ext.micropub.AuthResponse.
"Decorates the authorization callback endpoint. The endpoint should\n take one argument, a flask.ext.micropub.AuthResponse."
19
false
kylewm/flask-micropub
authorized_handler
34,156
LDU_FT/glyphobet/fragments/diff
LDU_FT
[ "<BEGIN>\n## `_visible_in_diff`", "Collects the set of lines that should be visible in a diff with a certain number of context lines\n<END>", "<BEGIN>\n## `_split_diff`", "Split diffs and context lines into groups based on None sentinel\n<END>", "<BEGIN>\n## `_diff_group_position`", "Generate a unified di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diff API. 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 diff API. 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...
Show differences between committed and uncommitted versions, limited to FILENAME(s) if specified.
"Show differences between committed and uncommitted versions, limited to FILENAME(s) if specified."
28
false
glyphobet/fragments
diff
34,157
LDU_FT/Ouranosinc/xclim/growing_season_length
LDU_FT
[ "<BEGIN>\n## `build_module`", "Create a module from imported objects.", " Parameters\n ----------\n name : str\n New module name.\n objs : dict\n Dictionary of the objects (or their name) to import into the module,\n keyed by the name they will take in the created module.\n doc : s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the growing_season_length 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 growing_season_length API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
r"""Growing season length. The number of days between the first occurrence of at least six consecutive days with mean daily temperature over 5℃ and the first occurrence of at least six consecutive days with mean daily temperature below 5℃ after July 1st in the northern hemisphere and January 1st in...
"r\"\"\"Growing season length.\n\n The number of days between the first occurrence of at least\n six consecutive days with mean daily temperature over 5℃ and\n the first occurrence of at least six consecutive days with\n mean daily temperature below 5℃ after July 1st in the northern\n hemisphere and Janu...
578
false
Ouranosinc/xclim
growing_season_length
34,158
LDU_FT/fitnr/twitter_bot_utils/read_csv
LDU_FT
[ "<BEGIN>\n## `read_csv`", "Scrape a twitter archive csv, yielding tweet text.", " Args:\n directory (str): CSV file or (directory containing tweets.csv).\n field (str): Field with the tweet's text (default: text).\n fieldnames (list): The column names for a csv with no header. Must conta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_csv API. 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 read_csv API. 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...
Scrape a twitter archive csv, yielding tweet text. Args: directory (str): CSV file or (directory containing tweets.csv). field (str): Field with the tweet's text (default: text). fieldnames (list): The column names for a csv with no header. Must contain <field>. ...
"Scrape a twitter archive csv, yielding tweet text.\n\n Args:\n directory (str): CSV file or (directory containing tweets.csv).\n field (str): Field with the tweet's text (default: text).\n fieldnames (list): The column names for a csv with no header. Must contain <field>.\n ...
56
false
fitnr/twitter_bot_utils
read_csv
34,159
LDU_FT/dustin/twitty-twister/user_timeline
LDU_FT
[ "<BEGIN>\n## `__downloadPage`", "Start a HTTP download, returning a HTTPDownloader object\n<END>", "<BEGIN>\n## `__encodeMultipart`", "fields is a sequence of (name, value) elements for regular form fields.\n files is a sequence of (name, filename, value) elements for data to be uploaded as files\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_timeline API. 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 user_timeline API. 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 most recent updates for a user. If no user is specified, the statuses for the authenticating user are returned. See search for example of how results are returned.
"Get the most recent updates for a user.\n\n If no user is specified, the statuses for the authenticating user are\n returned.\n\n See search for example of how results are returned."
93
false
dustin/twitty-twister
user_timeline
34,160
LDU_FT/thombashi/pytablewriter/from_dataframe
LDU_FT
[ "<BEGIN>\n## `write_table`", "|write_table| with\n `Labeled Tab-separated Values (LTSV) <http://ltsv.org/>`__ format.\n Invalid characters in labels/data are removed.", " :raises pytablewriter.EmptyHeaderError: If the |headers| is empty.\n :Example:\n :ref:`example-ltsv-ta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dataframe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dataframe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Set tabular attributes to the writer from :py:class:`pandas.DataFrame`. Following attributes are set by the method: - :py:attr:`~.headers` - :py:attr:`~.value_matrix` - :py:attr:`~.type_hints` Args: dataframe(pandas.DataFrame or |str|): I...
"Set tabular attributes to the writer from :py:class:`pandas.DataFrame`.\n Following attributes are set by the method:\n\n - :py:attr:`~.headers`\n - :py:attr:`~.value_matrix`\n - :py:attr:`~.type_hints`\n\n Args:\n dataframe(pandas.DataFrame or |str|):\n ...
97
false
thombashi/pytablewriter
from_dataframe
34,161
LDU_FT/aetros/aetros-cli/get_parameter
LDU_FT
[ "<BEGIN>\n## `Popen`", "Executes a command using subprocess.Popen and redirects output to AETROS and stdout.\n Parses stdout as well for stdout API calls.", " Use read_line argument to read stdout of command's stdout line by line.\n Use returned process stdin to communicate with the command.", " :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parameter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parameter API. 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...
Reads hyperparameter from job configuration. If nothing found use given default. :param path: str :param default: * :param return_group: If true and path is a choice_group, we return the dict instead of the group name. :return: *
"Reads hyperparameter from job configuration. If nothing found use given default.\n\n :param path: str \n :param default: *\n :param return_group: If true and path is a choice_group, we return the dict instead of the group name.\n :return: *"
183
false
aetros/aetros-cli
get_parameter
34,162
LDU_FT/abakan-zz/napi/neval
LDU_FT
[ "<BEGIN>\n## `neval`", "Evaluate *expression* using *globals* and *locals* dictionaries as\n *global* and *local* namespace. *expression* is transformed using\n :class:`.NapiTransformer`.\n<END>", "<BEGIN>\n## `nexec`", "Execute *statement* using *globals* and *locals* dictionaries as\n *global* and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the neval API. 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 neval API. 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...
Evaluate *expression* using *globals* and *locals* dictionaries as *global* and *local* namespace. *expression* is transformed using :class:`.NapiTransformer`.
"Evaluate *expression* using *globals* and *locals* dictionaries as\n *global* and *local* namespace. *expression* is transformed using\n :class:`.NapiTransformer`."
26
false
abakan-zz/napi
neval
34,163
LDU_FT/benley/butcher/in_cache
LDU_FT
[ "<BEGIN>\n## `_metahash`", "Checksum hash of all the inputs to this rule.", " Output is invalid until collect_srcs and collect_deps have been run.", " In theory, if this hash doesn't change, the outputs won't change\n either, which makes it useful for caching.\n<END>", "<BEGIN>\n## `col...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_cache API. 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 in_cache API. 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...
Returns true if object is cached. Args: objpath: Filename relative to buildroot. metahash: hash object
"Returns true if object is cached.\n\n Args:\n objpath: Filename relative to buildroot.\n metahash: hash object"
118
false
benley/butcher
in_cache
34,164
LDU_FT/saeschdivara/ArangoPy/get_all
LDU_FT
[ "<BEGIN>\n## `all`", "Returns all documents of the collection", " :param collection Collection instance\n :param skip The number of documents to skip in the query\n :param limit The maximal amount of documents to return. The skip is applied before the limit restriction.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns an array with all databases :returns Database list
"Returns an array with all databases\n\n :returns Database list"
115
false
saeschdivara/ArangoPy
get_all
34,165
LDU_FT/python-tap/tappy/parse_line
LDU_FT
[ "<BEGIN>\n## `check`", "Check the status of all provided data and update the suite.\n<END>", "<BEGIN>\n## `handle_skipping_plan`", "Handle a plan that contains a SKIP directive.\n<END>", "<BEGIN>\n## `format_exception`", "Format an exception as diagnostics output.", " exception is the tuple as expect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Parse a line into whatever TAP category it belongs.
"Parse a line into whatever TAP category it belongs."
47
false
python-tap/tappy
parse_line
34,166
LDU_FT/DheerendraRathor/django-auth-ldap-ng/execute
LDU_FT
[ "<BEGIN>\n## `get_ldap`", "Returns the ldap module. The unit test harness will assign a mock object\n to _LDAPConfig.ldap. It is imperative that the ldap module not be\n imported anywhere else so that the unit tests will pass in the absence\n of python-ldap.\n<END>", "<BEGIN>\n## `get_logge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Executes the search on the given connection (an LDAPObject). filterargs is an object that will be used for expansion of the filter string. If escape is True, values in filterargs will be escaped. The python-ldap library returns utf8-encoded strings. For the sake of sanity, this method w...
"Executes the search on the given connection (an LDAPObject). filterargs\n is an object that will be used for expansion of the filter string.\n If escape is True, values in filterargs will be escaped.\n\n The python-ldap library returns utf8-encoded strings. For the sake of\n sanity, this me...
55
false
DheerendraRathor/django-auth-ldap-ng
execute
34,167
LDU_FT/pilliq/scratchpy/_recv
LDU_FT
[ "<BEGIN>\n## `_pack`", "Packages msg according to Scratch message specification (encodes and \n appends length prefix to msg). Credit to chalkmarrow from the \n scratch.mit.edu forums for the prefix encoding code.\n<END>", "<BEGIN>\n## `_get_type`", "Converts a string from Scratch to its proper ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _recv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _recv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Receives and returns a message from Scratch
"Receives and returns a message from Scratch"
24
false
pilliq/scratchpy
_recv
34,168
LDU_FT/bear/ronkyuu/confirmRelMe
LDU_FT
[ "<BEGIN>\n## `findMentions`", "Find all <a /> elements in the given html for a post. Only scan html element matching all criteria in look_in.", " optionally the content to be scanned can be given as an argument.", " If any have an href attribute that is not from the\n one of the items in exclude_doma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confirmRelMe API. 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 confirmRelMe API. 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...
Determine if a given :resourceURL: is authoritative for the :profileURL: TODO add https/http filtering for those who wish to limit/restrict urls to match fully TODO add code to ensure that each item in the redirect chain is authoritative :param profileURL: URL of the user :param resourceURL: URL of th...
"Determine if a given :resourceURL: is authoritative for the :profileURL:\n\n TODO add https/http filtering for those who wish to limit/restrict urls to match fully\n TODO add code to ensure that each item in the redirect chain is authoritative\n\n :param profileURL: URL of the user\n :param resourceURL: UR...
26
false
bear/ronkyuu
confirmRelMe
34,169
LDU_FT/inbo/pyinaturalist/get_observation
LDU_FT
[ "<BEGIN>\n## `make_inaturalist_api_get_call`", "Make an API call to iNaturalist.", " endpoint is a string such as 'observations' !! do not put / in front\n method: 'GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE'\n kwargs are passed to requests.request\n Returns a requests.Response object\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_observation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_observation API. 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...
Get details about an observation. :param observation_id: :returns: a dict with details on the observation :raises: ObservationNotFound
"Get details about an observation.\n\n :param observation_id:\n :returns: a dict with details on the observation\n :raises: ObservationNotFound"
45
false
inbo/pyinaturalist
get_observation
34,170
LDU_FT/nchopin/particles/copyto
LDU_FT
[ "<BEGIN>\n## `all_distinct`", "Returns the list [l[i] for i in idx] \n When needed, objects l[i] are replaced by a copy, to make sure that\n the elements of the list are all distinct", " Parameters\n ---------\n l: iterable\n idx: iterable that generates ints (e.g. ndarray of ints)", " Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copyto API. 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 copyto API. 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 ...
Emulates function `copyto` in NumPy. Parameters ---------- where: (N,) bool ndarray True if particle n in src must be copied. src: (N,) `ThetaParticles` object source for each n such that where[n] is True, copy particle n in src into self (at locat...
"Emulates function `copyto` in NumPy.\n\n Parameters\n ----------\n\n where: (N,) bool ndarray\n True if particle n in src must be copied. \n src: (N,) `ThetaParticles` object \n source \n\n for each n such that where[n] is True, copy particle n in src\n into se...
249
false
nchopin/particles
copyto
34,171
LDU_FT/slok/prometheus-python/negotiate
LDU_FT
[ "<BEGIN>\n## `negotiate`", "Process headers dict to return the format class\n (not the instance)\n<END>", "<BEGIN>\n## `add`", "Add works like replace, but only previously pushed metrics with the\n same name (and the same job and instance) will be replaced.\n (It uses HTTP met...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the negotiate API. 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 negotiate API. 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...
Process headers dict to return the format class (not the instance)
"Process headers dict to return the format class\n (not the instance)"
20
false
slok/prometheus-python
negotiate
34,172