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/wasp/waspy/_write_frame_awaiting_response | LDU_FT | [
"<BEGIN>\n## `make_request`",
"Make a request to another service. If `context` is provided, then\n context and correlation will be pulled from the provided request\n object for you. This includes credentials, correlationid,\n and service-headers.",
" :param method: GET/PUT/PATCH, etc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_frame_awaiting_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_frame_awaiting_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Write a frame and set a waiter for
the response (unless no_wait is set) | "Write a frame and set a waiter for\n the response (unless no_wait is set)" | 34 | false | wasp/waspy | _write_frame_awaiting_response | 19,473 | |
LDU_FT/bpsmith/tia/apply_style | LDU_FT | [
"<BEGIN>\n## `sma`",
"If n is 0 then return the ltd mean; else return the n day mean\n<END>",
"<BEGIN>\n## `true_range`",
"http://en.wikipedia.org/wiki/Average_true_range\n The greatest of the following:\n - Current High less the current Low\n - Current High less the previous Close (absolute value)\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_style API.
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 apply_style API.
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... | Apply the specified style cmd to this region. For example, set all fonts to size 12, apply_style('FONTSIZE', 12)
:param cmd: reportlab format command
:param args: arguments for the cmd
:return: self | "Apply the specified style cmd to this region. For example, set all fonts to size 12, apply_style('FONTSIZE', 12)\n :param cmd: reportlab format command\n :param args: arguments for the cmd\n :return: self" | 226 | false | bpsmith/tia | apply_style | 19,474 | |
LDU_FT/bionikspoon/pureyaml/p_scalar__literal | LDU_FT | [
"<BEGIN>\n## `_gt_from_lt`",
"Return a > b. Computed by @total_ordering from (not a < b) and (a != b).\n<END>",
"<BEGIN>\n## `_le_from_lt`",
"Return a <= b. Computed by @total_ordering from (a < b) or (a == b).\n<END>",
"<BEGIN>\n## `_ge_from_lt`",
"Return a >= b. Computed by @total_ordering from (not ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_scalar__literal API.
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 p_scalar__literal API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | scalar : B_LITERAL_START scalar_group B_LITERAL_END | "scalar : B_LITERAL_START scalar_group B_LITERAL_END" | 70 | false | bionikspoon/pureyaml | p_scalar__literal | 19,475 | |
LDU_FT/amsehili/auditok/ads | LDU_FT | [
"<BEGIN>\n## `set_mode`",
":Parameters:",
" `mode` : *(int)*\n New mode, must be one of:",
" - `StreamTokenizer.STRICT_MIN_LENGTH`",
" - `StreamTokenizer.DROP_TRAILING_SILENCE`",
" - `StreamTokenizer.STRICT_MIN_LENGTH | StreamTokenizer.DROP_TRAILI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ads API.
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 ads API.
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 an return an :class:`ADSFactory.AudioDataSource`. The type and behavior of the object is the result
of the supplied parameters.
:Parameters:
*No parameters* :
read audio data from the available built-in microphone with the default parameters.
The returned :class:... | "Create an return an :class:`ADSFactory.AudioDataSource`. The type and behavior of the object is the result\n of the supplied parameters.\n\n :Parameters:\n\n *No parameters* : \n read audio data from the available built-in microphone with the default parameters.\n The returned... | 84 | false | amsehili/auditok | ads | 19,476 | |
LDU_FT/yoch/sparse-som/_calibrate | LDU_FT | [
"<BEGIN>\n## `fit`",
"\\\n Training the SOM on the the data and calibrate itself.",
" After the training, `self.quant_error` and `self.topog_error` are \n respectively set.",
" :param data: sparse input matrix (ideal dtype is `numpy.float32`)\n :type data: :class:`scipy.spar... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calibrate API.
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 _calibrate API.
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... | \
Calibrate the network using `self._bmus`. | "\\\n Calibrate the network using `self._bmus`." | 20 | false | yoch/sparse-som | _calibrate | 19,477 | |
LDU_FT/thiderman/doge/setup_seasonal | LDU_FT | [
"<BEGIN>\n## `get`",
"Get one item. This will rotate the deque one step. Repeated gets will\n return different items.\n<END>",
"<BEGIN>\n## `shuffle`",
"Shuffle the deque",
" Deques themselves do not support this, so this will make all items into\n a list, shuffle that list, clear the d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_seasonal API.
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 setup_seasonal API.
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... | Check if there's some seasonal holiday going on, setup appropriate
Shibe picture and load holiday words.
Note: if there are two or more holidays defined for a certain date,
the first one takes precedence. | "Check if there's some seasonal holiday going on, setup appropriate\n Shibe picture and load holiday words.\n\n Note: if there are two or more holidays defined for a certain date,\n the first one takes precedence." | 17 | false | thiderman/doge | setup_seasonal | 19,478 | |
LDU_FT/codeforamerica/epa_python/_inception_table_links | LDU_FT | [
"<BEGIN>\n## `admin_penalty`",
"An enforcement action that results in levying the permit holder with a\n penalty or fine. It is used to track judicial hearing dates, penalty\n amounts, and type of administrative penalty order.",
" >>> PCS().admin_penalty('enfor_action_date', '16-MAR-01')\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _inception_table_links 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 _inception_table_links API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Sometimes the EPA likes to nest their models and tables -- model within
a model within a model -- so this internal method tries to clear all
that up. | "Sometimes the EPA likes to nest their models and tables -- model within\n a model within a model -- so this internal method tries to clear all\n that up." | 114 | false | codeforamerica/epa_python | _inception_table_links | 19,479 | |
LDU_FT/10gen/mongo-orchestration/get_members_in_state | LDU_FT | [
"<BEGIN>\n## `_host`",
"Get the Host from the most recent HTTP request.\n<END>",
"<BEGIN>\n## `wait_for`",
"waits while process starts.\n Args:\n port_num - port number\n timeout - specify how long, in seconds, a command can take before times out.\n return True if process started, r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_members_in_state 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_members_in_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | return all members of replica set in specific state | "return all members of replica set in specific state" | 153 | false | 10gen/mongo-orchestration | get_members_in_state | 19,480 | |
LDU_FT/aguinane/nem-reader/read_nem_file | LDU_FT | [
"<BEGIN>\n## `flatten_list`",
"takes a list of lists, l and returns a flat list\n<END>",
"<BEGIN>\n## `read_nem_file`",
"Read in NEM file and return meter readings named tuple",
" :param file_path: The NEM file to process\n :returns: The file that was created\n<END>",
"<BEGIN>\n## `parse_nem_file`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_nem_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_nem_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Read in NEM file and return meter readings named tuple
:param file_path: The NEM file to process
:returns: The file that was created | "Read in NEM file and return meter readings named tuple\n\n :param file_path: The NEM file to process\n :returns: The file that was created" | 24 | false | aguinane/nem-reader | read_nem_file | 19,481 | |
LDU_FT/vcs-python/libvcs/get_rev_options | LDU_FT | [
"<BEGIN>\n## `which`",
"Return path of bin. Python clone of /usr/bin/which.",
" from salt.util - https://www.github.com/saltstack/salt - license apache",
" :param exe: Application to search PATHs for.\n :type exe: str\n :param default_path: Application to search PATHs for.\n :type default_path:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rev_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rev_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return revision options.
from pip pip.vcs.subversion. | "Return revision options.\n\n from pip pip.vcs.subversion." | 44 | false | vcs-python/libvcs | get_rev_options | 19,482 | |
LDU_FT/acrisci/i3ipc-python/get_tree | LDU_FT | [
"<BEGIN>\n## `_pack`",
"Packs the given message type and payload. Turns the resulting\n message into a byte string.\n<END>",
"<BEGIN>\n## `_unpack`",
"Unpacks the given byte string and parses the result from JSON.\n Returns None on failure and saves data into \"self.buffer\".\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tree API.
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_tree API.
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 a :class:`Con` instance with all kinds of methods and selectors.
Start here with exploration. Read up on the :class:`Con` stuffs.
:rtype: Con | "Returns a :class:`Con` instance with all kinds of methods and selectors.\n Start here with exploration. Read up on the :class:`Con` stuffs.\n\n :rtype: Con" | 69 | false | acrisci/i3ipc-python | get_tree | 19,483 | |
LDU_FT/cloudtools/troposphere/build_tree | LDU_FT | [
"<BEGIN>\n## `main`",
"Create a ElastiCache Redis Node and EC2 Instance\n<END>",
"<BEGIN>\n## `validate_backup_window`",
"Validate PreferredBackupWindow for DBInstance\n<END>",
"<BEGIN>\n## `validate_maintenance_window`",
"Validate PreferredMaintenanceWindow for DBInstance\n<END>",
"<BEGIN>\n## `validat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_tree API.
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 build_tree API.
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... | Build a tree of non-primitive typed dependency order. | "Build a tree of non-primitive typed dependency order." | 74 | false | cloudtools/troposphere | build_tree | 19,484 | |
LDU_FT/AmesCornish/buttersink/analyze | LDU_FT | [
"<BEGIN>\n## `update`",
"Update self and parent with intermediate progress.\n<END>",
"<BEGIN>\n## `close`",
"Stop overwriting display, or update parent.\n<END>",
"<BEGIN>\n## `transfer`",
"Transfer (large) data from sender to receiver.\n<END>",
"<BEGIN>\n## `display`",
"Friendly string for volume, usi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze API.
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 analyze API.
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... | Figure out the best diffs to use to reach all our required volumes. | "Figure out the best diffs to use to reach all our required volumes." | 148 | false | AmesCornish/buttersink | analyze | 19,485 | |
LDU_FT/log2timeline/dfdatetime/CopyFromStringTuple | LDU_FT | [
"<BEGIN>\n## `_GetNormalizedTimestamp`",
"Retrieves the normalized timestamp.",
" Returns:\n decimal.Decimal: normalized timestamp, which contains the number of\n seconds since January 1, 1970 00:00:00 and a fraction of second used\n for increased precision, or None if the normalized t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CopyFromStringTuple 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 CopyFromStringTuple 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... | Copies time elements from string-based time elements tuple.
Args:
time_elements_tuple (Optional[tuple[str, str, str, str, str, str, str]]):
time elements, contains year, month, day of month, hours, minutes,
seconds and microseconds.
Raises:
ValueError: if the time elements tupl... | "Copies time elements from string-based time elements tuple.\n\n Args:\n time_elements_tuple (Optional[tuple[str, str, str, str, str, str, str]]):\n time elements, contains year, month, day of month, hours, minutes,\n seconds and microseconds.\n\n Raises:\n ValueError: if the time elem... | 244 | false | log2timeline/dfdatetime | CopyFromStringTuple | 19,486 | |
LDU_FT/shapiromatron/bmds/to_dict | LDU_FT | [
"<BEGIN>\n## `as_dfile`",
"Return the dataset representation in BMDS .(d) file.",
" Example\n -------\n >>> print(dataset.as_dfile())\n Dose Incidence NEGATIVE_RESPONSE\n 0.000000 5 70\n 1.960000 1 48\n 5.690000 3 47\n 29.750000 14 35\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API.
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... | Return a summary of the model in a dictionary format for serialization.
Parameters
----------
model_index : int
The index of the model in a list of models, should be unique
Returns
-------
out : dictionary
A dictionary of model inputs, and raw an... | "Return a summary of the model in a dictionary format for serialization.\n\n Parameters\n ----------\n model_index : int\n The index of the model in a list of models, should be unique\n\n Returns\n -------\n out : dictionary\n A dictionary of model inputs,... | 113 | false | shapiromatron/bmds | to_dict | 19,487 | |
LDU_FT/kushaldas/retask/names | LDU_FT | [
"<BEGIN>\n## `names`",
"Returns a list of queues available, ``None`` if no such\n queues found. Remember this will only shows queues with\n at least one item enqueued.\n<END>",
"<BEGIN>\n## `length`",
"Gives the length of the queue. Returns ``None`` if the queue is not\n connected.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns a list of queues available, ``None`` if no such
queues found. Remember this will only shows queues with
at least one item enqueued. | "Returns a list of queues available, ``None`` if no such\n queues found. Remember this will only shows queues with\n at least one item enqueued." | 48 | false | kushaldas/retask | names | 19,488 | |
LDU_FT/linkedin/shiv/bootstrap | LDU_FT | [
"<BEGIN>\n## `get_args`",
"Overrides easy_install.ScriptWriter.get_args",
" This method avoids using pkg_resources to map a named entry_point\n to a callable at invocation time.\n<END>",
"<BEGIN>\n## `clean_pip_env`",
"A context manager for temporarily removing 'PIP_REQUIRE_VIRTUALENV' from the enviro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bootstrap API.
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 bootstrap API.
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... | Actually bootstrap our shiv environment. | "Actually bootstrap our shiv environment." | 40 | false | linkedin/shiv | bootstrap | 19,489 | |
LDU_FT/ansible/ansible-container/to_bytes | LDU_FT | [
"<BEGIN>\n## `to_bytes`",
"Make sure that a string is a byte string",
" :arg obj: An object to make sure is a byte string. In most cases this\n will be either a text string or a byte string. However, with\n ``nonstring='simplerepr'``, this can be used as a traceback-free\n version of `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Make sure that a string is a byte string
:arg obj: An object to make sure is a byte string. In most cases this
will be either a text string or a byte string. However, with
``nonstring='simplerepr'``, this can be used as a traceback-free
version of ``str(obj)``.
:kwarg encoding: The en... | "Make sure that a string is a byte string\n\n :arg obj: An object to make sure is a byte string. In most cases this\n will be either a text string or a byte string. However, with\n ``nonstring='simplerepr'``, this can be used as a traceback-free\n version of ``str(obj)``.\n :kwarg encoding:... | 64 | false | ansible/ansible-container | to_bytes | 19,490 | |
LDU_FT/mishbahr/django-connected/get_access_token | LDU_FT | [
"<BEGIN>\n## `get_request_token`",
"Fetch the OAuth request token. Only required for OAuth 1.0.\n<END>",
"<BEGIN>\n## `get_redirect_args`",
"Get request parameters for redirect url.\n<END>",
"<BEGIN>\n## `parse_raw_token`",
"Parse token and secret from raw token response.\n<END>",
"<BEGIN>\n## `get_acce... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Fetch access token from callback request. | "Fetch access token from callback request." | 24 | false | mishbahr/django-connected | get_access_token | 19,491 | |
LDU_FT/druids/django-chamber/generate_random_upload_path | LDU_FT | [
"<BEGIN>\n## `get_class_method`",
"Returns a method from a given class or instance. When the method doest not exist, it returns `None`. Also works with\n properties and cached properties.\n<END>",
"<BEGIN>\n## `model_to_dict`",
"The same implementation as django model_to_dict but editable fields are allowe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_random_upload_path 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 generate_random_upload_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Pass this function to upload_to argument of FileField to store the file on an unguessable path.
The format of the path is class_name/hash/original_filename. | "Pass this function to upload_to argument of FileField to store the file on an unguessable path.\n The format of the path is class_name/hash/original_filename." | 38 | false | druids/django-chamber | generate_random_upload_path | 19,492 | |
LDU_FT/dpkp/kafka-python/purge_obsolete_samples | LDU_FT | [
"<BEGIN>\n## `send_fetches`",
"Send FetchRequests for all assigned partitions that do not already have\n an in-flight fetch or pending fetch data.",
" Returns:\n List of Futures: each future resolves to a FetchResponse\n<END>",
"<BEGIN>\n## `reset_offsets_if_needed`",
"Lookup and se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purge_obsolete_samples 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 purge_obsolete_samples API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Timeout any windows that have expired in the absence of any events | "Timeout any windows that have expired in the absence of any events" | 787 | false | dpkp/kafka-python | purge_obsolete_samples | 19,493 | |
LDU_FT/jazzband/sorl-thumbnail/_set | LDU_FT | [
"<BEGIN>\n## `is_valid_image`",
"Wand library makes sure when opening any image that is fine, when\n the image is corrupted raises an exception.\n<END>",
"<BEGIN>\n## `parse_geometry`",
"Parses a geometry string syntax and returns a (width, height) tuple\n<END>",
"<BEGIN>\n## `parse_crop`",
"Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set API.
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 _set API.
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... | Serializing, prefix wrapper for _set_raw | "Serializing, prefix wrapper for _set_raw" | 68 | false | jazzband/sorl-thumbnail | _set | 19,494 | |
LDU_FT/timothydmorton/isochrones/samples | LDU_FT | [
"<BEGIN>\n## `interp_box`",
"box is 8x3 array, though not really a box",
" values is length-8 array, corresponding to values at the \"box\" coords",
" TODO: should make power `p` an argument\n<END>",
"<BEGIN>\n## `interp_values`",
"mass_arr, age_arr, feh_arr are all arrays at which values are desire... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the samples API.
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 samples API.
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... | Dataframe with samples drawn from isochrone according to posterior
Columns include both the sampling parameters from the MCMC
fit (mass, age, Fe/H, [distance, A_V]), and also evaluation
of the :class:`Isochrone` at each of these sample points---this
is how chains of physical/observable ... | "Dataframe with samples drawn from isochrone according to posterior\n\n Columns include both the sampling parameters from the MCMC\n fit (mass, age, Fe/H, [distance, A_V]), and also evaluation\n of the :class:`Isochrone` at each of these sample points---this\n is how chains of physical/obser... | 314 | false | timothydmorton/isochrones | samples | 19,495 | |
LDU_FT/maaku/python-bitcoin/count | LDU_FT | [
"<BEGIN>\n## `script`",
"Returns a Script object representing a contract script portion of a\n payment to the destination.\n<END>",
"<BEGIN>\n## `compress_amount`",
"\\\n Compress 64-bit integer values, preferring a smaller size for whole\n numbers (base-10), so as to achieve run-length encoding ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API.
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 count API.
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 number of items, pruned or otherwise, contained by this branch. | "The number of items, pruned or otherwise, contained by this branch." | 55 | false | maaku/python-bitcoin | count | 19,496 | |
LDU_FT/MKLab-ITI/reveal-graph-embedding/laplacian_eigenmaps | LDU_FT | [
"<BEGIN>\n## `read_adjacency_matrix`",
"Reads an edge list in csv format and returns the adjacency matrix in SciPy Sparse COOrdinate format.",
" Inputs: - file_path: The path where the adjacency matrix is stored.\n - separator: The delimiter among values (e.g. \",\", \"\\t\", \" \")",
" Out... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the laplacian_eigenmaps 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 laplacian_eigenmaps 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... | Performs spectral graph embedding using the graph symmetric normalized Laplacian matrix.
Introduced in: Belkin, M., & Niyogi, P. (2003).
Laplacian eigenmaps for dimensionality reduction and data representation.
Neural computation, 15(6), 1373-1396.
Inputs: - A in R^(nx... | "Performs spectral graph embedding using the graph symmetric normalized Laplacian matrix.\n\n Introduced in: Belkin, M., & Niyogi, P. (2003).\n Laplacian eigenmaps for dimensionality reduction and data representation.\n Neural computation, 15(6), 1373-1396.\n\n Inputs: - A i... | 151 | false | MKLab-ITI/reveal-graph-embedding | laplacian_eigenmaps | 19,497 | |
LDU_FT/burnash/gspread/duplicate_sheet | LDU_FT | [
"<BEGIN>\n## `authorize`",
"Login to Google API using OAuth2 credentials.\n This is a shortcut function which\n instantiates :class:`gspread.client.Client`\n and performs login right away.",
" :returns: :class:`gspread.Client` instance.\n<END>",
"<BEGIN>\n## `batch_update`",
"Lower-level method ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the duplicate_sheet API.
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 duplicate_sheet API.
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... | Duplicates the contents of a sheet.
:param int source_sheet_id: The sheet ID to duplicate.
:param int insert_sheet_index: (optional) The zero-based index
where the new sheet should be inserted.
The index of all sheets after t... | "Duplicates the contents of a sheet.\n\n :param int source_sheet_id: The sheet ID to duplicate.\n :param int insert_sheet_index: (optional) The zero-based index\n where the new sheet should be inserted.\n The index of all sheets a... | 226 | false | burnash/gspread | duplicate_sheet | 19,498 | |
LDU_FT/MinchinWeb/colourettu/make_release | LDU_FT | [
"<BEGIN>\n## `other_dependancies`",
"Installs things that need to be in place before installing the main package\n<END>",
"<BEGIN>\n## `update_version_number`",
"Update version number",
" Returns a semantic_version object\n<END>",
"<BEGIN>\n## `add_release_to_changelog`",
"Add release line at the top... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_release API.
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 make_release API.
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... | Make and upload the release.
Changelog:
- v0.2.1 -- 2016-11-18 -- specify downloading of non-cached version of the
package for multiple formats can be properly and
individually tested.
- 0.2.2 -- 2016-11028 -- move configuration to top of file | "Make and upload the release.\n\n Changelog:\n - v0.2.1 -- 2016-11-18 -- specify downloading of non-cached version of the\n package for multiple formats can be properly and\n individually tested.\n - 0.2.2 -- 2016-11028 -- move configuration to top ... | 90 | false | MinchinWeb/colourettu | make_release | 19,499 | |
LDU_FT/vmware/pyvmomi/__GetElementTree | LDU_FT | [
"<BEGIN>\n## `_AddType`",
"Note: Must be holding the _lazyLock, or in main init path\n<END>",
"<BEGIN>\n## `GetServiceVersions`",
"Get all the versions for the service with specified namespace (partially) ordered\n by compatibility (i.e. any version in the list that is compatible with some version\n v in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __GetElementTree API.
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 __GetElementTree API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Private method that returns a root from ElementTree for a remote XML document.
@param protocol: What protocol to use for the connection (e.g. https or http).
@type protocol: string
@param server: Which server to connect to.
@type server: string
@param port: Port
@type port: int
@param path: Pat... | "Private method that returns a root from ElementTree for a remote XML document.\n\n @param protocol: What protocol to use for the connection (e.g. https or http).\n @type protocol: string\n @param server: Which server to connect to.\n @type server: string\n @param port: Port\n @type port: int\n @param ... | 128 | false | vmware/pyvmomi | __GetElementTree | 19,500 | |
LDU_FT/briancappello/py-meta-utils/qualname | LDU_FT | [
"<BEGIN>\n## `process_factory_meta_options`",
"Main entry point for consumer metaclasses. Usage::",
" from py_meta_utils import (AbstractMetaOption, McsArgs, MetaOptionsFactory,\n process_factory_meta_options)",
" class YourMetaOptionsFactory(MetaOptionsFactory)... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the qualname API.
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 qualname API.
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 the fully qualified name of the class-under-construction, if possible,
otherwise just the class name. | "Returns the fully qualified name of the class-under-construction, if possible,\n otherwise just the class name." | 31 | false | briancappello/py-meta-utils | qualname | 19,501 | |
LDU_FT/pteichman/cobe/join | LDU_FT | [
"<BEGIN>\n## `join`",
"Capitalize the first alpha character in the reply and the\n first alpha character that follows one of [.?!] and a\n space.\n<END>",
"<BEGIN>\n## `start_batch_learning`",
"Begin a series of batch learn operations. Data will not be\n committed to the database until st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join API.
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 join API.
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... | Capitalize the first alpha character in the reply and the
first alpha character that follows one of [.?!] and a
space. | "Capitalize the first alpha character in the reply and the\n first alpha character that follows one of [.?!] and a\n space." | 18 | false | pteichman/cobe | join | 19,502 | |
LDU_FT/phalt/beckett/get_url | LDU_FT | [
"<BEGIN>\n## `set_attributes`",
"Set the resource attributes from the kwargs.\n Only sets items in the `self.Meta.attributes` white list.",
" Subclass this method to customise attributes.",
" Args:\n kwargs: Keyword arguements passed into the init of this class\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Construct the URL for talking to an individual resource.
http://myapi.com/api/resource/1
Args:
url: The url for this resource
uid: The unique identifier for an individual resource
kwargs: Additional keyword argueents
returns:
final_url: The URL f... | "Construct the URL for talking to an individual resource.\n\n http://myapi.com/api/resource/1\n\n Args:\n url: The url for this resource\n uid: The unique identifier for an individual resource\n kwargs: Additional keyword argueents\n returns:\n final_url:... | 53 | false | phalt/beckett | get_url | 19,503 | |
LDU_FT/glue-viz/glue-vispy-viewers/get_free_region | LDU_FT | [
"<BEGIN>\n## `iso_mesh_line`",
"Generate an isocurve from vertex data in a surface mesh.",
" Parameters\n ----------\n vertices : ndarray, shape (Nv, 3)\n Vertex coordinates.\n tris : ndarray, shape (Nf, 3)\n Indices of triangular element into the vertices array.\n vertex_data : nda... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_free_region API.
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_free_region API.
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 a free region of given size and allocate it
Parameters
----------
width : int
Width of region to allocate
height : int
Height of region to allocate
Returns
-------
bounds : tuple | None
A newly allocated region as (x, y, w... | "Get a free region of given size and allocate it\n\n Parameters\n ----------\n width : int\n Width of region to allocate\n height : int\n Height of region to allocate\n\n Returns\n -------\n bounds : tuple | None\n A newly allocated regio... | 1,752 | true | glue-viz/glue-vispy-viewers | get_free_region | 19,504 | |
LDU_FT/mozilla/django-tidings/is_notifying | LDU_FT | [
"<BEGIN>\n## `multi_raw`",
"Scoop multiple model instances out of the DB at once, given a query that\n returns all fields of each.",
" Return an iterable of sequences of model instances parallel to the\n ``models`` sequence of classes. For example::",
" [(<User such-and-such>, <Watch such-and-... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_notifying API.
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 is_notifying API.
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... | Check if the watch created by notify exists. | "Check if the watch created by notify exists." | 73 | false | mozilla/django-tidings | is_notifying | 19,505 | |
LDU_FT/wrongwaycn/ssdb-py/qtrim_front | LDU_FT | [
"<BEGIN>\n## `execute`",
"Execute all the commands in the current pipeline\n<END>",
"<BEGIN>\n## `execute_command`",
"Execute a command and return a parsed response.\n<END>",
"<BEGIN>\n## `incr`",
"Increase the value at key ``name`` by ``amount``. If no key exists, the value\n will be initialized a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the qtrim_front API.
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 qtrim_front API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Sets the list element at ``index`` to ``value``. An error is returned for out of
range indexes.
:param string name: the queue name
:param int size: the max length of removed elements
:return: the length of removed elements
:rtype: int | "Sets the list element at ``index`` to ``value``. An error is returned for out of\n range indexes.\n\n :param string name: the queue name\n :param int size: the max length of removed elements\n :return: the length of removed elements\n :rtype: int" | 215 | false | wrongwaycn/ssdb-py | qtrim_front | 19,506 | |
LDU_FT/stan-dev/pystan/stansummary | LDU_FT | [
"<BEGIN>\n## `lookup`",
"Look up for a Stan function with similar functionality to a Python\n function (or even an R function, see examples). If the function is\n not present on the lookup table, then attempts to find similar one\n and prints the results. This function requires package `pandas`.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stansummary API.
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 stansummary API.
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... | Summary statistic table.
Parameters
----------
fit : StanFit4Model object
pars : str or sequence of str, optional
Parameter names. By default use all parameters
probs : sequence of float, optional
Quantiles. By default, (0.025, 0.25, 0.5, 0.75, 0.975)
digits_summary : int, optio... | "Summary statistic table.\n\n Parameters\n ----------\n fit : StanFit4Model object\n pars : str or sequence of str, optional\n Parameter names. By default use all parameters\n probs : sequence of float, optional\n Quantiles. By default, (0.025, 0.25, 0.5, 0.75, 0.975)\n digits_summary : ... | 222 | false | stan-dev/pystan | stansummary | 19,507 | |
LDU_FT/beregond/jsonmodels/iterate_with_name | LDU_FT | [
"<BEGIN>\n## `compare_schemas`",
"Compare two structures that represents JSON schemas.",
" For comparison you can't use normal comparison, because in JSON schema\n lists DO NOT keep order (and Python lists do), so this must be taken into\n account during comparison.",
" Note this wont check all co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterate_with_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterate_with_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Iterate over fields, but also give `structure_name`.
Format is `(attribute_name, structue_name, field_instance)`.
Structure name is name under which value is seen in structure and
schema (in primitives) and only there. | "Iterate over fields, but also give `structure_name`.\n\n Format is `(attribute_name, structue_name, field_instance)`.\n Structure name is name under which value is seen in structure and\n schema (in primitives) and only there." | 32 | false | beregond/jsonmodels | iterate_with_name | 19,508 | |
LDU_FT/edaniszewski/bison/validate | LDU_FT | [
"<BEGIN>\n## `build_defaults`",
"Build a dictionary of default values from the `Scheme`.",
" Returns:\n dict: The default configurations as set by the `Scheme`.",
" Raises:\n errors.InvalidSchemeError: The `Scheme` does not contain\n valid options.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Validate the given config against the `Scheme`.
Args:
config (dict): The configuration to validate.
Raises:
errors.SchemeValidationError: The configuration fails
validation against the `Schema`. | "Validate the given config against the `Scheme`.\n\n Args:\n config (dict): The configuration to validate.\n\n Raises:\n errors.SchemeValidationError: The configuration fails\n validation against the `Schema`." | 56 | false | edaniszewski/bison | validate | 19,509 | |
LDU_FT/adamcharnock/django-hordak/sign | LDU_FT | [
"<BEGIN>\n## `ratio_split`",
"Split in_value according to the ratios specified in `ratios`",
" This is special in that it ensures the returned values always sum to\n in_value (i.e. we avoid losses or gains due to rounding errors). As a\n result, this method returns a list of `Decimal` values with lengt... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign API.
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 sign API.
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 1 if a credit should increase the value of the
account, or -1 if a credit should decrease the value of the
account.
This is based on the account type as is standard accounting practice.
The signs can be derrived from the following expanded form of the
accounting equation... | "Returns 1 if a credit should increase the value of the\n account, or -1 if a credit should decrease the value of the\n account.\n\n This is based on the account type as is standard accounting practice.\n The signs can be derrived from the following expanded form of the\n accounting e... | 84 | false | adamcharnock/django-hordak | sign | 19,510 | |
LDU_FT/BlackEarth/bxml/get_match | LDU_FT | [
"<BEGIN>\n## `tempfile`",
"write the docx to a named tmpfile and return the tmpfile filename\n<END>",
"<BEGIN>\n## `match`",
"decorator that allows us to match by expression or by xpath for each transformation method\n<END>",
"<BEGIN>\n## `get_match`",
"for the given elem, return the @match function that ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extract... | for the given elem, return the @match function that will be applied | "for the given elem, return the @match function that will be applied" | 91 | false | BlackEarth/bxml | get_match | 19,511 | |
LDU_FT/msiemens/PyGitUp/current_version | LDU_FT | [
"<BEGIN>\n## `_run`",
"Run a git command specified by name and args/kwargs.\n<END>",
"<BEGIN>\n## `change_count`",
"The number of changes in the working directory.\n<END>",
"<BEGIN>\n## `uniq`",
"Return a copy of seq without duplicates.\n<END>",
"<BEGIN>\n## `execute`",
"Execute a command and return i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the current_version API.
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 current_version API.
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 the current version number from setup.py | "Get the current version number from setup.py" | 30 | false | msiemens/PyGitUp | current_version | 19,512 | |
LDU_FT/tensorflow/cleverhans/parallel_apply_transformations | LDU_FT | [
"<BEGIN>\n## `model_loss`",
"Define loss of TF graph\n :param y: correct labels\n :param model: output of the model\n :param mean: boolean indicating whether should return mean of loss\n or vector of losses for each input of the batch\n :return: return mean of loss if True, otherwise return vect... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallel_apply_transformations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallel_apply_transformations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Apply image transformations in parallel.
:param transforms: TODO
:param black_border_size: int, size of black border to apply
Returns:
Transformed images | "Apply image transformations in parallel.\n :param transforms: TODO\n :param black_border_size: int, size of black border to apply\n Returns:\n Transformed images" | 1,050 | true | tensorflow/cleverhans | parallel_apply_transformations | 19,513 | |
LDU_FT/hsolbrig/PyShEx/semActsSatisfied | LDU_FT | [
"<BEGIN>\n## `conforms`",
"`5.6.1 Schema Validation Requirement <http://shex.io/shex-semantics/#validation-requirement>`_",
" A graph G is said to conform with a schema S with a ShapeMap m when:",
" Every, SemAct in the startActs of S has a successful evaluation of semActsSatisfied.\n Every node n in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the semActsSatisfied API.
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 semActsSatisfied API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | `5.7.1 Semantic Actions Semantics <http://shex.io/shex-semantics/#semantic-actions-semantics>`_
The evaluation semActsSatisfied on a list of SemActs returns success or failure. The evaluation of an individual
SemAct is implementation-dependent. | "`5.7.1 Semantic Actions Semantics <http://shex.io/shex-semantics/#semantic-actions-semantics>`_\n\n The evaluation semActsSatisfied on a list of SemActs returns success or failure. The evaluation of an individual\n SemAct is implementation-dependent." | 234 | false | hsolbrig/PyShEx | semActsSatisfied | 19,514 | |
LDU_FT/developmentseed/landsat-util/args_options | LDU_FT | [
"<BEGIN>\n## `_read_cmap`",
"reads the colormap from a text file given in settings.py.\n See colormap_cubehelix.txt. File must contain 256 RGB values\n<END>",
"<BEGIN>\n## `data_collector`",
"Buffers n bytes of data.",
" :param iterable:\n Could be a list, generator or string\n :type ite... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the args_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the args_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Generates an arugment parser.
:returns:
Parser object | "Generates an arugment parser.\n\n :returns:\n Parser object" | 152 | false | developmentseed/landsat-util | args_options | 19,515 | |
LDU_FT/erikrose/nose-progressive/run | LDU_FT | [
"<BEGIN>\n## `format_traceback`",
"Return an iterable of formatted Unicode traceback frames.",
" Also include a pseudo-frame at the end representing the exception itself.",
" Format things more compactly than the stock formatter, and make every\n frame an editor shortcut.\n<END>",
"<BEGIN>\n## `ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Run the given test case or test suite...quietly. | "Run the given test case or test suite...quietly." | 65 | false | erikrose/nose-progressive | run | 19,516 | |
LDU_FT/ConsenSys/mythril-classic/is_possible | LDU_FT | [
"<BEGIN>\n## `_get_account`",
"Get account by address.",
" :param address:\n :return:\n<END>",
"<BEGIN>\n## `_get_block_hash`",
"Get block hash by block number.",
" :param number:\n :return:\n<END>",
"<BEGIN>\n## `_get_head_block`",
"Get head block header.",
" :ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_possible API.
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 is_possible API.
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: True/False based on the existence of solution of constraints | ":return: True/False based on the existence of solution of constraints" | 376 | false | ConsenSys/mythril-classic | is_possible | 19,517 | |
LDU_FT/micahhausler/container-transform/flatten_container | LDU_FT | [
"<BEGIN>\n## `_read_stream`",
"We override the return signature of\n ``super(BaseTransformer, self)._read_stream()`` to return extra volume\n data. This is intentional.",
" :param stream: A file like object\n :returns: Return the family name, containers, and volumes. If there are\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten_container API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten_container API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Accepts a kubernetes container and pulls out the nested values into the top level | "Accepts a kubernetes container and pulls out the nested values into the top level" | 61 | false | micahhausler/container-transform | flatten_container | 19,518 | |
LDU_FT/rsmuc/health_monitoring_plugins/state_summary | LDU_FT | [
"<BEGIN>\n## `check_ups_estimated_minutes_remaining`",
"OID .1.3.6.1.2.1.33.1.2.3.0\n MIB excerpt\n An estimate of the time to battery charge depletion\n under the present load conditions if the utility power\n is off and remains off, or if it were to be lost and\n remain off.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the state_summary API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the state_summary API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Always add the status to the long output, and if the status is not ok (or ok_value),
we show it in the summary and set the status to critical | "Always add the status to the long output, and if the status is not ok (or ok_value), \n we show it in the summary and set the status to critical" | 75 | false | rsmuc/health_monitoring_plugins | state_summary | 19,519 | |
LDU_FT/jart/fabulous/section | LDU_FT | [
"<BEGIN>\n## `lorem_gotham`",
"Cheesy Gothic Poetry Generator",
" Uses Python generators to yield eternal angst.",
" When you need to generate random verbiage to test your code or\n typographic design, let's face it... Lorem Ipsum and \"the quick\n brown fox\" are old and boring!",
" What you... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the section API.
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 section API.
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... | Helper function for testing demo routines | "Helper function for testing demo routines" | 148 | false | jart/fabulous | section | 19,520 | |
LDU_FT/jepegit/cellpy/join_summaries | LDU_FT | [
"<BEGIN>\n## `search_for_files`",
"Searches for files (raw-data files and cellpy-files).",
" Args:\n run_name(str): run-file identification.\n raw_extension(str): optional, extension of run-files (without the '.').\n cellpy_file_extension(str): optional, extension for cellpy files\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join_summaries API.
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 join_summaries API.
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... | parse the summaries and combine based on column (selected_summaries) | "parse the summaries and combine based on column (selected_summaries)" | 393 | false | jepegit/cellpy | join_summaries | 19,521 | |
LDU_FT/IRC-SPHERE/HyperStream/reconstruct_interval | LDU_FT | [
"<BEGIN>\n## `func_load`",
"Reload a function\n :param code: The code object\n :param defaults: Default values\n :param closure: The closure\n :param globs: globals\n :return:\n<END>",
"<BEGIN>\n## `func_reconstruct_closure`",
"Deserialization helper that reconstructs a closure\n :param valu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reconstruct_interval 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 reconstruct_interval API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Reverse the construct_experiment_id operation
:param experiment_id: The experiment id
:return: time interval | "Reverse the construct_experiment_id operation\n :param experiment_id: The experiment id\n :return: time interval" | 292 | false | IRC-SPHERE/HyperStream | reconstruct_interval | 19,522 | |
LDU_FT/mattupstate/flask-security/get_within_delta | LDU_FT | [
"<BEGIN>\n## `add_role_to_user`",
"Adds a role to a user.",
" :param user: The user to manipulate\n :param role: The role to add to the user\n<END>",
"<BEGIN>\n## `remove_role_from_user`",
"Removes a role from a user.",
" :param user: The user to manipulate\n :param role: The r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_within_delta API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_within_delta API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Get a timedelta object from the application configuration following
the internal convention of::
<Amount of Units> <Type of Units>
Examples of valid config values::
5 days
10 minutes
:param key: The config value key without the 'SECURITY_' prefix
:param app: Optional applicat... | "Get a timedelta object from the application configuration following\n the internal convention of::\n\n <Amount of Units> <Type of Units>\n\n Examples of valid config values::\n\n 5 days\n 10 minutes\n\n :param key: The config value key without the 'SECURITY_' prefix\n :param app: Optio... | 145 | false | mattupstate/flask-security | get_within_delta | 19,523 | |
LDU_FT/okpy/ok-client/load | LDU_FT | [
"<BEGIN>\n## `load`",
"Prepares a set of setup, test, and teardown code to be\n run in the console.",
" PARAMETERS:\n code -- list; processed lines of code. Elements in the list are\n either strings (input) or CodeAnswer objects (output)\n setup -- str; raw ... | 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... | Prepares a set of setup, test, and teardown code to be
run in the console.
PARAMETERS:
code -- list; processed lines of code. Elements in the list are
either strings (input) or CodeAnswer objects (output)
setup -- str; raw setup code
teardown -- str; r... | "Prepares a set of setup, test, and teardown code to be\n run in the console.\n\n PARAMETERS:\n code -- list; processed lines of code. Elements in the list are\n either strings (input) or CodeAnswer objects (output)\n setup -- str; raw setup code\n teardown -... | 141 | false | okpy/ok-client | load | 19,524 | |
LDU_FT/OpenDataScienceLab/skdata/dropna_columns | LDU_FT | [
"<BEGIN>\n## `categorize`",
":param data:\n :param col_name:\n :param new_col_name:\n :param categories:\n :param max_categories: max proportion threshold of categories\n :return: new categories\n :rtype dict:\n<END>",
"<BEGIN>\n## `dropna`",
"Remove columns with more NA values than threshol... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dropna_columns API.
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 dropna_columns API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Remove columns with more NA values than threshold level
:param data:
:param max_na_values: proportion threshold of max na values
:return: | "Remove columns with more NA values than threshold level\n\n :param data:\n :param max_na_values: proportion threshold of max na values\n :return:" | 23 | false | OpenDataScienceLab/skdata | dropna_columns | 19,525 | |
LDU_FT/jssimporter/python-jss/copy | LDU_FT | [
"<BEGIN>\n## `get`",
"GET a url, handle errors, and return an etree.",
" In general, it is better to use a higher level interface for\n API requests, like the search methods on this class, or the\n JSSObjects themselves.",
" Args:\n url_path: String API endpoint path to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Copy a package or script to all repos.
Determines appropriate location (for file shares) and type based
on file extension.
Args:
filename: String path to the local file to copy.
id_: Package or Script object ID to target. For use with JDS
and CDP DP's on... | "Copy a package or script to all repos.\n\n Determines appropriate location (for file shares) and type based\n on file extension.\n\n Args:\n filename: String path to the local file to copy.\n id_: Package or Script object ID to target. For use with JDS\n and CD... | 331 | false | jssimporter/python-jss | copy | 19,526 | |
LDU_FT/webrecorder/pywb/get_metadata | LDU_FT | [
"<BEGIN>\n## `read_last_line`",
"Read last line from a seekable file. Start reading\n from buff before end of file, and double backwards seek\n until line break is found. If reached beginning of file\n (no lines), just return whole file\n<END>",
"<BEGIN>\n## `load`",
"Load a file-like reader from the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_metadata API.
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... | Retrieve the metadata associated with a collection
:param str coll: The name of the collection to receive metadata for
:return: The collections metadata if it exists
:rtype: dict | "Retrieve the metadata associated with a collection\n\n :param str coll: The name of the collection to receive metadata for\n :return: The collections metadata if it exists\n :rtype: dict" | 227 | false | webrecorder/pywb | get_metadata | 19,527 | |
LDU_FT/aio-libs/aiohttp-security/login_required | LDU_FT | [
"<BEGIN>\n## `permits`",
"Check user permissions.\n Return True if the identity is allowed the permission in the\n current context, else return False.\n<END>",
"<BEGIN>\n## `remember`",
"Remember identity into response.",
" The action is performed by identity_policy.remember()",
" Usua... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login_required API.
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 login_required API.
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... | Decorator that restrict access only for authorized users.
User is considered authorized if authorized_userid
returns some value. | "Decorator that restrict access only for authorized users.\n\n User is considered authorized if authorized_userid\n returns some value." | 21 | false | aio-libs/aiohttp-security | login_required | 19,528 | |
LDU_FT/datasift/datasift-python/update | LDU_FT | [
"<BEGIN>\n## `validate`",
"Validate the given CSDL",
" :param csdl: The CSDL to be validated for analysis\n :type csdl: str\n :param service: The service for this API call (facebook, etc)\n :type service: str\n :return: dict of REST API output with headers ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Update the name or output parameters for an existing Subscription.
Uses API documented at http://dev.datasift.com/docs/api/rest-api/endpoints/pushupdate
:param subscription_id: id of an existing Push Subscription.
:type subscription_id: str
:param output_params: new out... | "Update the name or output parameters for an existing Subscription.\n\n Uses API documented at http://dev.datasift.com/docs/api/rest-api/endpoints/pushupdate\n\n :param subscription_id: id of an existing Push Subscription.\n :type subscription_id: str\n :param output_params: ... | 238 | false | datasift/datasift-python | update | 19,529 | |
LDU_FT/thieman/dagobah/commit | LDU_FT | [
"<BEGIN>\n## `run`",
"Continually monitors Jobs of the parent Dagobah.\n<END>",
"<BEGIN>\n## `set_backend`",
"Manually set backend after construction.\n<END>",
"<BEGIN>\n## `from_backend`",
"Reconstruct this Dagobah instance from the backend.\n<END>",
"<BEGIN>\n## `_construct_from_json`",
"Construct t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commit API.
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 commit API.
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 ... | Commit this Dagobah instance to the backend.
If cascade is True, all child Jobs are commited as well. | "Commit this Dagobah instance to the backend.\n\n If cascade is True, all child Jobs are commited as well." | 120 | false | thieman/dagobah | commit | 19,530 | |
LDU_FT/cds-astro/mocpy/from_times | LDU_FT | [
"<BEGIN>\n## `max_order`",
"Depth of the smallest HEALPix cells found in the MOC instance.\n<END>",
"<BEGIN>\n## `intersection`",
"Intersection between the MOC instance and other MOCs.",
" Parameters\n ----------\n another_moc : `~mocpy.moc.MOC`\n The MOC used for performing ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_times API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_times API.
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... | Create a TimeMOC from a `astropy.time.Time`
Parameters
----------
times : `astropy.time.Time`
astropy observation times
delta_t : `astropy.time.TimeDelta`, optional
the duration of one observation. It is set to 30 min by default. This data is used to compute the
... | "Create a TimeMOC from a `astropy.time.Time`\n\n Parameters\n ----------\n times : `astropy.time.Time`\n astropy observation times\n delta_t : `astropy.time.TimeDelta`, optional\n the duration of one observation. It is set to 30 min by default. This data is used to comp... | 210 | false | cds-astro/mocpy | from_times | 19,531 | |
LDU_FT/rbarrois/throttle/mset | LDU_FT | [
"<BEGIN>\n## `get_bucket`",
"Fetch a Bucket for the given key.",
" rate and capacity might be overridden from the Throttler defaults.",
" Args:\n rate (float): Units regenerated by second, or None to keep\n Throttler defaults\n capacity (int): Maximum units a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mset API.
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 mset API.
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... | Set the value of several keys at once.
Args:
values (dict): maps a key to its value. | "Set the value of several keys at once.\n\n Args:\n values (dict): maps a key to its value." | 24 | false | rbarrois/throttle | mset | 19,532 | |
LDU_FT/BoGoEngine/bogo-python/get_accent_string | LDU_FT | [
"<BEGIN>\n## `append_comps`",
"Append a character to `comps` following this rule: a vowel is added to the\n vowel part if there is no last consonant, else to the last consonant part;\n a consonant is added to the first consonant part if there is no vowel, and\n to the last consonant part if the vowel par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_accent_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_accent_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... | Get the first accent from the right of a string. | "Get the first accent from the right of a string." | 55 | false | BoGoEngine/bogo-python | get_accent_string | 19,533 | |
LDU_FT/marrow/util/load_object | LDU_FT | [
"<BEGIN>\n## `pcwd`",
"A decorator to provide the functionality of the\n PreserveWorkingDirectory context manager for functions and methods.\n<END>",
"<BEGIN>\n## `cd`",
"Change the current working directory within this context.",
" Preserves the previous working directory and can be applied to remote... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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.
The extra... | This helper function loads an object identified by a dotted-notation string.
For example:
# Load class Foo from example.objects
load_object('example.objects:Foo')
If a plugin namespace is provided simple name references are allowed. For example:
# Load the plugin named 'routing' fro... | "This helper function loads an object identified by a dotted-notation string.\n\n For example:\n\n # Load class Foo from example.objects\n load_object('example.objects:Foo')\n\n If a plugin namespace is provided simple name references are allowed. For example:\n\n # Load the plugin named 'ro... | 73 | false | marrow/util | load_object | 19,534 | |
LDU_FT/Pytwitcher/pytwitcherapi/search_channels | LDU_FT | [
"<BEGIN>\n## `needs_auth`",
"Wraps a method of :class:`TwitchSession` and\n raises an :class:`exceptions.NotAuthorizedError`\n if before calling the method, the session isn't authorized.",
" :param meth:\n :type meth:\n :returns: the wrapped method\n :rtype: Method\n :raises: None\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_channels API.
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 search_channels API.
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... | Search for channels and return them
:param query: the query string
:type query: :class:`str`
:param limit: maximum number of results
:type limit: :class:`int`
:param offset: offset for pagination
:type offset: :class:`int`
:returns: A list of channels
:rt... | "Search for channels and return them\n\n :param query: the query string\n :type query: :class:`str`\n :param limit: maximum number of results\n :type limit: :class:`int`\n :param offset: offset for pagination\n :type offset: :class:`int`\n :returns: A list of channels\n ... | 198 | false | Pytwitcher/pytwitcherapi | search_channels | 19,535 | |
LDU_FT/martijnvermaat/monoseq/pprint_sequence | LDU_FT | [
"<BEGIN>\n## `_fasta_iter`",
"Given an open FASTA file, yield tuples of (`header`, `sequence`).\n<END>",
"<BEGIN>\n## `_bed_iter`",
"Given an open BED file, yield tuples of (`chrom`, `chrom_iter`) where\n `chrom_iter` yields tuples of (`start`, `stop`).\n<END>",
"<BEGIN>\n## `_pprint_fasta`",
"Pretty-p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pprint_sequence API.
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 pprint_sequence API.
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... | Pretty-print sequence for use with a monospace font.
>>> sequence = 'MIMANQPLWLDSEVEMNHYQQSHIKSKSPYFPEDKHICWIKIFKAFGT' * 4
>>> print pprint_sequence(sequence, format=PlaintextFormat)
1 MIMANQPLWL DSEVEMNHYQ QSHIKSKSPY FPEDKHICWI KIFKAFGTMI MANQPLWLDS
61 EVEMNHYQQS HIKSKSPYFP EDKHIC... | "Pretty-print sequence for use with a monospace font.\n\n >>> sequence = 'MIMANQPLWLDSEVEMNHYQQSHIKSKSPYFPEDKHICWIKIFKAFGT' * 4\n >>> print pprint_sequence(sequence, format=PlaintextFormat)\n 1 MIMANQPLWL DSEVEMNHYQ QSHIKSKSPY FPEDKHICWI KIFKAFGTMI MANQPLWLDS\n 61 EVEMNHYQQS HIKSKSPYFP ... | 27 | false | martijnvermaat/monoseq | pprint_sequence | 19,536 | |
LDU_FT/juju/charm-helpers/_determine_branch_locations | LDU_FT | [
"<BEGIN>\n## `get_ubuntu_release_from_sentry`",
"Get Ubuntu release codename from sentry unit.",
" :param sentry_unit: amulet sentry/service unit pointer\n :returns: list of strings - release codename, failure message\n<END>",
"<BEGIN>\n## `validate_services`",
"Validate that lists of commands... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _determine_branch_locations 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 _determine_branch_locations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Determine the branch locations for the other services.
Determine if the local branch being tested is derived from its
stable or next (dev) branch, and based on this, use the corresonding
stable or next branches for the other_services. | "Determine the branch locations for the other services.\n\n Determine if the local branch being tested is derived from its\n stable or next (dev) branch, and based on this, use the corresonding\n stable or next branches for the other_services." | 1,689 | true | juju/charm-helpers | _determine_branch_locations | 19,537 | |
LDU_FT/neptune-ml/steppy/upstream_structure | LDU_FT | [
"<BEGIN>\n## `initialize_logger`",
"Initialize steppy logger.",
" This logger is used throughout the steppy library to report computation progress.",
" Example:",
" Simple use of steppy logger:",
" .. code-block:: python",
" initialize_logger()\n logger = get_lo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upstream_structure 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 upstream_structure 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... | Build dictionary with entire upstream pipeline structure
(with regard to the current Step).
Returns:
dict: dictionary describing the upstream pipeline structure. It has two keys:
``'edges'`` and ``'nodes'``, where:
- value of ``'edges'`` is set of tuples ``(input_st... | "Build dictionary with entire upstream pipeline structure\n (with regard to the current Step).\n\n Returns:\n dict: dictionary describing the upstream pipeline structure. It has two keys:\n ``'edges'`` and ``'nodes'``, where:\n\n - value of ``'edges'`` is set of tuples ``(... | 57 | false | neptune-ml/steppy | upstream_structure | 19,538 | |
LDU_FT/r0x0r/pywebview/load_html | LDU_FT | [
"<BEGIN>\n## `base_uri`",
"Get absolute path to resource, works for dev and for PyInstaller\n<END>",
"<BEGIN>\n## `parse_file_type`",
":param file_type: file type string 'description (*.file_extension1;*.file_extension2)' as required by file filter in create_file_dialog\n :return: (description, file extens... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_html API.
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 load_html API.
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... | Load a new content into a previously created WebView window. This function must be invoked after WebView windows is
created with create_window(). Otherwise an exception is thrown.
:param content: Content to load.
:param base_uri: Base URI for resolving links. Default is the directory of the application entr... | "Load a new content into a previously created WebView window. This function must be invoked after WebView windows is\n created with create_window(). Otherwise an exception is thrown.\n :param content: Content to load.\n :param base_uri: Base URI for resolving links. Default is the directory of the application ... | 33 | false | r0x0r/pywebview | load_html | 19,539 | |
LDU_FT/svven/summary/render | LDU_FT | [
"<BEGIN>\n## `load_raw_rules`",
"Load raw rules from url or package file.\n<END>",
"<BEGIN>\n## `get_image`",
"Returned Image instance has response url.\r\n This might be different than the url param because of redirects.\n<END>",
"<BEGIN>\n## `check_color`",
"Just check if raw_image is completely ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API.
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 render API.
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 ... | Renders the HTML containing provided summaries.
The summary has to be an instance of summary.Summary,
or at least contain similar properties: title, image, url,
description and collections: titles, images, descriptions. | "Renders the HTML containing provided summaries.\r\n\r\n The summary has to be an instance of summary.Summary, \r\n or at least contain similar properties: title, image, url,\r\n description and collections: titles, images, descriptions." | 41 | false | svven/summary | render | 19,540 | |
LDU_FT/trezor/python-trezor/combine_keys | LDU_FT | [
"<BEGIN>\n## `encode_pin`",
"Transform correct PIN according to the displayed matrix.\n<END>",
"<BEGIN>\n## `address_from_public_key`",
"Returns the base32-encoded version of pk_bytes (G...)\n<END>",
"<BEGIN>\n## `parse_transaction_bytes`",
"Parses base64data into a map with the following keys:\n t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Combine a list of Ed25519 points into a "global" CoSi key. | "Combine a list of Ed25519 points into a \"global\" CoSi key." | 52 | false | trezor/python-trezor | combine_keys | 19,541 | |
LDU_FT/exhuma/python-cluster/uclus | LDU_FT | [
"<BEGIN>\n## `getclusters`",
"Generates *count* clusters.",
" :param count: The amount of clusters that should be generated. count\n must be greater than ``1``.\n :raises ClusteringError: if *count* is out of bounds.\n<END>",
"<BEGIN>\n## `assign_item`",
"Assigns an item from a giv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uclus API.
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 uclus API.
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... | Given two collections ``a`` and ``b``, this will return the *median* of all
distances. ``distance_function`` is used to determine the distance between
two elements.
Example::
>>> single([1, 2], [3, 100], lambda x, y: abs(x-y))
2.5 | "Given two collections ``a`` and ``b``, this will return the *median* of all\n distances. ``distance_function`` is used to determine the distance between\n two elements.\n\n Example::\n\n >>> single([1, 2], [3, 100], lambda x, y: abs(x-y))\n 2.5" | 76 | false | exhuma/python-cluster | uclus | 19,542 | |
LDU_FT/wonambi-python/wonambi/update_values | LDU_FT | [
"<BEGIN>\n## `write_mnefiff`",
"Export data to MNE using FIFF format.",
" Parameters\n ----------\n data : instance of ChanTime\n data with only one trial\n filename : path to file\n file to export to (include '.mat')",
" Notes\n -----\n It cannot store data larger than 2 GB... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Update form values when detection method is selected. | "Update form values when detection method is selected." | 1,345 | true | wonambi-python/wonambi | update_values | 19,543 | |
LDU_FT/intuition-io/insights/_device_lookup | LDU_FT | [
"<BEGIN>\n## `push_to_android`",
"Push android notification through www.pushbullet.com\n<END>",
"<BEGIN>\n## `_device_lookup`",
"Request informations about <name> device\n<END>",
"<BEGIN>\n## `_watchdog`",
"Notifications are stopped if\n * The last one was too close\n * We reach a rated ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _device_lookup API.
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 _device_lookup API.
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... | Request informations about <name> device | "Request informations about <name> device" | 14 | false | intuition-io/insights | _device_lookup | 19,544 | |
LDU_FT/flyte/xbee-helper/adc_to_percentage | LDU_FT | [
"<BEGIN>\n## `raise_if_error`",
"Checks a frame and raises the relevant exception if required.\n<END>",
"<BEGIN>\n## `hex_to_int`",
"Convert hex string like \"\\x0A\\xE3\" to 2787.\n<END>",
"<BEGIN>\n## `adc_to_percentage`",
"Convert the ADC raw value to a percentage.\n<END>",
"<BEGIN>\n## `convert_adc`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adc_to_percentage API.
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 adc_to_percentage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Convert the ADC raw value to a percentage. | "Convert the ADC raw value to a percentage." | 25 | false | flyte/xbee-helper | adc_to_percentage | 19,545 | |
LDU_FT/camptocamp/Studio/showmapfile | LDU_FT | [
"<BEGIN>\n## `discover_datasources`",
"Discover the datasources contained in the datastore\n corresponding to the OGR string ogr_str, return an\n array of {name,type, hash}\n<END>",
"<BEGIN>\n## `discover_datasource_columns`",
"Loop through the datastore's datasources to find\n the datasource identif... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the showmapfile API.
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 showmapfile API.
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... | GET /datastores/{datastore_id}/datasources/{datasource_id}/mapfile: Get
the JSON representation of a specific datasource's default MapFile LAYER
block. | "GET /datastores/{datastore_id}/datasources/{datasource_id}/mapfile: Get\n the JSON representation of a specific datasource's default MapFile LAYER\n block." | 98 | false | camptocamp/Studio | showmapfile | 19,546 | |
LDU_FT/carsonyl/pypac/get_proxy_for_requests | LDU_FT | [
"<BEGIN>\n## `proxy_urls_from_dns`",
"Generate URLs from which to look for a PAC file, based on a hostname.\r\n Fully-qualified hostnames are checked against the Mozilla Public Suffix List to ensure that\r\n generated URLs don't go outside the scope of the organization.\r\n If the fully-qualified hostnam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_proxy_for_requests 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_proxy_for_requests API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Get proxy configuration for a given URL, in a form ready to use with the Requests library.
:param str url: The URL for which to obtain proxy configuration.
:returns: Proxy configuration in a form recognized by Requests, for use with the ``proxies`` parameter.
:rtype: dict
:raises ProxyC... | "Get proxy configuration for a given URL, in a form ready to use with the Requests library.\n\n :param str url: The URL for which to obtain proxy configuration.\n :returns: Proxy configuration in a form recognized by Requests, for use with the ``proxies`` parameter.\n :rtype: dict\n :raises ... | 88 | false | carsonyl/pypac | get_proxy_for_requests | 19,547 | |
LDU_FT/rrwen/search_google/run | LDU_FT | [
"<BEGIN>\n## `run`",
"Runs the search_google command line tool.",
" This function runs the search_google command line tool \n in a terminal. It was intended for use inside a py file \n (.py) to be executed using python.",
" Notes:\n * ``[q]`` reflects key ``q`` in the ``cseargs`` parameter for :class:`... | 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... | Runs the search_google command line tool.
This function runs the search_google command line tool
in a terminal. It was intended for use inside a py file
(.py) to be executed using python.
Notes:
* ``[q]`` reflects key ``q`` in the ``cseargs`` parameter for :class:`api.results`
* Optional argumen... | "Runs the search_google command line tool.\n \n This function runs the search_google command line tool \n in a terminal. It was intended for use inside a py file \n (.py) to be executed using python.\n \n Notes:\n * ``[q]`` reflects key ``q`` in the ``cseargs`` parameter for :class:`api.results`\n * Optiona... | 31 | false | rrwen/search_google | run | 19,548 | |
LDU_FT/Asana/python-asana/get_tasks_with_tag | LDU_FT | [
"<BEGIN>\n## `fetch_token`",
"Exchange a code (and 'state' token) for a bearer token\n<END>",
"<BEGIN>\n## `find_by_id`",
"Returns the complete tag record for a single tag.",
" Parameters\n ----------\n tag : {Id} The tag to get.\n [params] : {Object} Parameters for the request\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tasks_with_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tasks_with_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.
Th... | Returns the compact task records for all tasks with the given tag.
Tasks can have more than one tag at a time.
Parameters
----------
tag : {Id} The tag to fetch tasks from.
[params] : {Object} Parameters for the request | "Returns the compact task records for all tasks with the given tag.\n Tasks can have more than one tag at a time.\n\n Parameters\n ----------\n tag : {Id} The tag to fetch tasks from.\n [params] : {Object} Parameters for the request" | 318 | false | Asana/python-asana | get_tasks_with_tag | 19,549 | |
LDU_FT/emc-openstack/storops/modify | LDU_FT | [
"<BEGIN>\n## `attach`",
"Attaches lun, snap or member snap of cg snap to host.",
" Don't pass cg snapshot in as `lun_or_snap`.",
" :param lun_or_snap: the lun, snap, or a member snap of cg snap\n :param skip_hlu_0: whether to skip hlu 0\n :return: the hlu number\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify API.
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 modify API.
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 ... | Overwrite the current properties for a VNX ioclass.
:param new_name: new name for the ioclass
:param iotype: can be 'rw', 'r' or 'w'
:param lun_ids: list of LUN IDs
:param smp_names: list of Snapshot Mount Point names
:param ctrlmethod: the new CtrlMethod
:param minsize:... | "Overwrite the current properties for a VNX ioclass.\n\n :param new_name: new name for the ioclass\n :param iotype: can be 'rw', 'r' or 'w'\n :param lun_ids: list of LUN IDs\n :param smp_names: list of Snapshot Mount Point names\n :param ctrlmethod: the new CtrlMethod\n :param ... | 222 | false | emc-openstack/storops | modify | 19,550 | |
LDU_FT/juju-solutions/charms.reactive/_is_endpoint_method | LDU_FT | [
"<BEGIN>\n## `endpoint_from_name`",
"The object used for interacting with the named relations, or None.\n<END>",
"<BEGIN>\n## `endpoint_from_flag`",
"The object used for interacting with relations tied to a flag, or None.\n<END>",
"<BEGIN>\n## `relation_factory`",
"Get the RelationFactory for the given re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_endpoint_method 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 _is_endpoint_method 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... | from the context. Unfortunately, we can't directly detect whether
a handler is an Endpoint method, because at the time of decoration,
the class doesn't actually exist yet so it's impossible to get a
reference to it. So, we use the heuristic of seeing if the handler
takes only a single ``self`` param a... | "from the context. Unfortunately, we can't directly detect whether\n a handler is an Endpoint method, because at the time of decoration,\n the class doesn't actually exist yet so it's impossible to get a\n reference to it. So, we use the heuristic of seeing if the handler\n takes only a single ``self`` pa... | 223 | false | juju-solutions/charms.reactive | _is_endpoint_method | 19,551 | |
LDU_FT/ambitioninc/django-entity/get_all_entities | LDU_FT | [
"<BEGIN>\n## `remove_duplicates`",
"Remove any duplicates from the entity relationship table\n :param apps:\n :param schema_editor:\n :return:\n<END>",
"<BEGIN>\n## `transaction_atomic_with_retry`",
"This is a decorator that will wrap the decorated method in an atomic transaction and\n retry the t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_entities API.
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_all_entities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns a list of all entity ids in this group or optionally returns a queryset for all entity models.
In order to reduce queries for multiple group lookups, it is expected that the membership_cache and
entities_by_kind are built outside of this method and passed in as arguments.
:param membersh... | "Returns a list of all entity ids in this group or optionally returns a queryset for all entity models.\n In order to reduce queries for multiple group lookups, it is expected that the membership_cache and\n entities_by_kind are built outside of this method and passed in as arguments.\n :param memb... | 83 | false | ambitioninc/django-entity | get_all_entities | 19,552 | |
LDU_FT/matthiask/django-cte-forest/as_tree | LDU_FT | [
"<BEGIN>\n## `_ensure_parameters`",
"Attempts to load and verify the CTE node parameters. Will use\n default values for all missing parameters, and raise an exception if\n a parameter's value cannot be verified. This method will only\n perform these actions once, and set the :attr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_tree API.
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 as_tree API.
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... | Recursively traverses each tree (starting from each root) in order
to generate a dictionary-based tree structure of the entire forest.
Each level of the forest/tree is a list of nodes, and each node
consists of a dictionary representation, where the entry
``children`` (by... | "Recursively traverses each tree (starting from each root) in order\n to generate a dictionary-based tree structure of the entire forest.\n Each level of the forest/tree is a list of nodes, and each node\n consists of a dictionary representation, where the entry\n ``children`... | 153 | false | matthiask/django-cte-forest | as_tree | 19,553 | |
LDU_FT/getsentry/rb/disconnect_pools | LDU_FT | [
"<BEGIN>\n## `add_host`",
"Adds a new host to the cluster. This is only really useful for\n unittests as normally hosts are added through the constructor and\n changes after the cluster has been used for the first time are\n unlikely to make sense.\n<END>",
"<BEGIN>\n## `remove_host`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect_pools API.
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 disconnect_pools API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Disconnects all connections from the internal pools. | "Disconnects all connections from the internal pools." | 87 | false | getsentry/rb | disconnect_pools | 19,554 | |
LDU_FT/DiamondLightSource/python-workflows/__command_queue_listener | LDU_FT | [
"<BEGIN>\n## `_wrap_subscription`",
"Internal method to create an intercepting function for incoming messages\n to interpret recipes. This function is then used to subscribe to a channel\n on the transport layer.\n :param transport_layer: Reference to underlying transport object.\n :param subscrip... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __command_queue_listener 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 __command_queue_listener API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Function to continuously retrieve data from the frontend. Commands are
sent to the central priority queue. If the pipe from the frontend is
closed the service shutdown is initiated. Check every second if service
has shut down, then terminate.
This function is run by a separate daemon thr... | "Function to continuously retrieve data from the frontend. Commands are\n sent to the central priority queue. If the pipe from the frontend is\n closed the service shutdown is initiated. Check every second if service\n has shut down, then terminate.\n This function is run by a separate daemo... | 160 | false | DiamondLightSource/python-workflows | __command_queue_listener | 19,555 | |
LDU_FT/yougov/mongo-connector/join | LDU_FT | [
"<BEGIN>\n## `retry_until_ok`",
"Retry code block until it succeeds.",
" If it does not succeed in 120 attempts, the function re-raises any\n error the function raised on its last attempt.\n<END>",
"<BEGIN>\n## `apply_update`",
"Apply an update operation to a document.\n<END>",
"<BEGIN>\n## `bulk_up... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join API.
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 join API.
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... | Stop this thread from managing the oplog. | "Stop this thread from managing the oplog." | 115 | false | yougov/mongo-connector | join | 19,556 | |
LDU_FT/PonteIneptique/flask-github-proxy/patch_ref | LDU_FT | [
"<BEGIN>\n## `AdvancedJsonify`",
"Advanced Jsonify Response Maker",
" :param data: Data\n :param status_code: Status_code\n :return: Response\n<END>",
"<BEGIN>\n## `response`",
"View representation of the object",
" :param callback: Function to represent the error in view. Defa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_ref API.
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 patch_ref API.
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... | Patch reference on the origin master branch
:param sha: Sha to use for the branch
:return: Status of success
:rtype: str or self.ProxyError | "Patch reference on the origin master branch\n\n :param sha: Sha to use for the branch\n :return: Status of success\n :rtype: str or self.ProxyError" | 52 | false | PonteIneptique/flask-github-proxy | patch_ref | 19,557 | |
LDU_FT/Robpol86/sphinxcontrib-versioning/clone | LDU_FT | [
"<BEGIN>\n## `setup_logging`",
"Configure console logging. Info and below go to stdout, others go to stderr.",
" :param int verbose: Verbosity level. > 0 print debug statements. > 1 passed to sphinx-build.\n :param bool colors: Print color text in non-verbose mode.\n :param str name: Which logger name ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clone API.
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 clone API.
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... | Clone "local_root" origin into a new directory and check out a specific branch. Optionally run "git rm".
:raise CalledProcessError: Unhandled git command failure.
:raise GitError: Handled git failures.
:param str local_root: Local path to git root directory.
:param str new_root: Local path empty direc... | "Clone \"local_root\" origin into a new directory and check out a specific branch. Optionally run \"git rm\".\n\n :raise CalledProcessError: Unhandled git command failure.\n :raise GitError: Handled git failures.\n\n :param str local_root: Local path to git root directory.\n :param str new_root: Local path ... | 172 | false | Robpol86/sphinxcontrib-versioning | clone | 19,558 | |
LDU_FT/undertheseanlp/underthesea/transform | LDU_FT | [
"<BEGIN>\n## `Text`",
"provide a wrapper for python string\n map byte to str (python 3)\n all string in utf-8 encoding\n normalize string to NFC\n<END>",
"<BEGIN>\n## `sent2features`",
"extract features in a sentence",
" :type sentence: list of token, each token is a list of tag\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | :param unicode|str text: input text
:type text: unicode|str
:return: transformed text
:rtype: unicode | ":param unicode|str text: input text\n :type text: unicode|str\n\n :return: transformed text\n :rtype: unicode" | 62 | false | undertheseanlp/underthesea | transform | 19,559 | |
LDU_FT/spry-group/python-vultr/reverse_default | LDU_FT | [
"<BEGIN>\n## `create_domain`",
"/v1/dns/create_domain\n POST - account\n Create a domain name in DNS",
" Link: https://www.vultr.com/api/#dns_create_domain\n<END>",
"<BEGIN>\n## `create_record`",
"/v1/dns/create_domain\n POST - account\n Add a DNS record",
" Link:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse_default API.
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 reverse_default API.
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... | /v1/server/reverse_default_ipv4
POST - account
Set a reverse DNS entry for an IPv4 address of a virtual
machine to the original setting. Upon success, DNS changes
may take 6-12 hours to become active.
Link: https://www.vultr.com/api/#server_reverse_default_ipv4 | "/v1/server/reverse_default_ipv4\n POST - account\n Set a reverse DNS entry for an IPv4 address of a virtual\n machine to the original setting. Upon success, DNS changes\n may take 6-12 hours to become active.\n\n Link: https://www.vultr.com/api/#server_reverse_default_ipv4" | 134 | false | spry-group/python-vultr | reverse_default | 19,560 | |
LDU_FT/facelessuser/pyspelling/_pipeline_step | LDU_FT | [
"<BEGIN>\n## `is_break_tag`",
"Check if tag is an element we should break on.\n<END>",
"<BEGIN>\n## `to_text`",
"Extract text from tags.",
" Skip any selectors specified and include attributes if specified.\n Ignored tags will not have their attributes scanned either.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pipeline_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pipeline_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 ex... | Recursively run text objects through the pipeline steps. | "Recursively run text objects through the pipeline steps." | 33 | false | facelessuser/pyspelling | _pipeline_step | 19,561 | |
LDU_FT/mathiasertl/xmpp-backends/get_random_password | LDU_FT | [
"<BEGIN>\n## `rpc`",
"Generic helper function to call an RPC method.\n<END>",
"<BEGIN>\n## `message_user`",
"Currently use send_message_chat and discard subject, because headline messages are not\n stored by mod_offline.\n<END>",
"<BEGIN>\n## `module`",
"The module specified by the ``library`` attr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_random_password API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_random_password API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Helper function that gets a random password.
:param length: The length of the random password.
:type length: int
:param chars: A string with characters to choose from. Defaults to all ASCII letters and digits.
:type chars: str | "Helper function that gets a random password.\n\n :param length: The length of the random password.\n :type length: int\n :param chars: A string with characters to choose from. Defaults to all ASCII letters and digits.\n :type chars: str" | 63 | false | mathiasertl/xmpp-backends | get_random_password | 19,562 | |
LDU_FT/python-openxml/python-docx/add_footer_part | LDU_FT | [
"<BEGIN>\n## `default_cx`",
"Native width of this image, calculated from its width in pixels and\n horizontal dots per inch (dpi).\n<END>",
"<BEGIN>\n## `default_cy`",
"Native height of this image, calculated from its height in pixels and\n vertical dots per inch (dpi).\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_footer_part API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_footer_part API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return (footer_part, rId) pair for newly-created footer part. | "Return (footer_part, rId) pair for newly-created footer part." | 626 | false | python-openxml/python-docx | add_footer_part | 19,563 | |
LDU_FT/mosesschwartz/scrypture/download_script | LDU_FT | [
"<BEGIN>\n## `hash`",
"Hash input_text with the algorithm choice\n<END>",
"<BEGIN>\n## `text_input`",
"Get multi-line text input as a strong from a textarea form element.\n<END>",
"<BEGIN>\n## `list_input`",
"Get a list parsed from newline-delimited entries from a textarea\n<END>",
"<BEGIN>\n## `line_in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_script API.
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_script API.
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... | Send a script directly from the scripts directory | "Send a script directly from the scripts directory" | 30 | false | mosesschwartz/scrypture | download_script | 19,564 | |
LDU_FT/rocky/python-spark/errorstack | LDU_FT | [
"<BEGIN>\n## `error`",
"Show text and a caret under that. For example:\nx = 2y + z\n ^\n<END>",
"<BEGIN>\n## `debug_reduce`",
"Customized format and print for our kind of tokens\n which gets called in debugging grammar reduce rules\n<END>",
"<BEGIN>\n## `addRule`",
"Add a grammar rules to _self... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the errorstack API.
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 errorstack API.
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... | Show the stacks of completed symbols.
We get this by inspecting the current transitions
possible and from that extracting the set of states
we are in, and from there we look at the set of
symbols before the "dot". If full is True, we
show the entire rule with the dot placement.
... | "Show the stacks of completed symbols.\n We get this by inspecting the current transitions\n possible and from that extracting the set of states\n we are in, and from there we look at the set of\n symbols before the \"dot\". If full is True, we\n show the entire rule with the dot plac... | 35 | false | rocky/python-spark | errorstack | 19,565 | |
LDU_FT/hadrianl/huobi/cancel_order | LDU_FT | [
"<BEGIN>\n## `async_request`",
"异步并发请求\n :param reqs: 请求列表\n :return:\n<END>",
"<BEGIN>\n## `get_kline`",
"获取KLine\n :param symbol\n :param period: 可选值:{1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year }\n :param size: 可选值: [1,2000]\n :return:\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancel_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancel_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 extr... | 撤销订单
:param order_id:
:return: | "撤销订单\n :param order_id:\n :return:" | 108 | false | hadrianl/huobi | cancel_order | 19,566 | |
LDU_FT/OCA/openupgradelib/_adjust_merged_values_orm | LDU_FT | [
"<BEGIN>\n## `_adjust_merged_values_orm`",
"This method deals with the values on the records to be merged +\n the target record, performing operations that makes sense on the meaning\n of the model.",
" :param field_spec: Dictionary with field names as keys and forced operation\n to perform as val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _adjust_merged_values_orm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _adjust_merged_values_orm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | This method deals with the values on the records to be merged +
the target record, performing operations that makes sense on the meaning
of the model.
:param field_spec: Dictionary with field names as keys and forced operation
to perform as values. If a field is not present here, default operation
... | "This method deals with the values on the records to be merged +\n the target record, performing operations that makes sense on the meaning\n of the model.\n\n :param field_spec: Dictionary with field names as keys and forced operation\n to perform as values. If a field is not present here, default operat... | 190 | false | OCA/openupgradelib | _adjust_merged_values_orm | 19,567 | |
LDU_FT/spyder-ide/spyder/function_info | LDU_FT | [
"<BEGIN>\n## `set_bracket_matcher_color_scheme`",
"Set color scheme for matched parentheses.\n<END>",
"<BEGIN>\n## `long_banner`",
"Banner for IPython widgets with pylab message\n<END>",
"<BEGIN>\n## `reset_namespace`",
"Reset the namespace by removing all names defined by the user.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the function_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the function_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns processed information about the function's name and file. | "Returns processed information about the function's name and file." | 2,144 | true | spyder-ide/spyder | function_info | 19,568 | |
LDU_FT/gagneurlab/concise/write_fasta | 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 write_fasta API.
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 write_fasta API.
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... | Write a fasta file
# Arguments
file_path: file path
seq_list: List of strings
name_list: List of names corresponding to the sequences.
If not None, it should have the same length as `seq_list` | "Write a fasta file\n\n # Arguments\n file_path: file path\n seq_list: List of strings\n name_list: List of names corresponding to the sequences.\n If not None, it should have the same length as `seq_list`" | 311 | false | gagneurlab/concise | write_fasta | 19,569 | |
LDU_FT/django-userena-ce/django-userena-ce/create_userena_profile | LDU_FT | [
"<BEGIN>\n## `activate`",
"Activate a user with an activation key.",
" The key is a SHA1 string. When the SHA1 is found with an\n :class:`UserenaSignup`, the :class:`User` of that account will be\n activated. After a successful activation the view will redirect to\n ``success_url``. If the SHA1 is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_userena_profile 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 create_userena_profile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Creates an :class:`UserenaSignup` instance for this user.
:param user:
Django :class:`User` instance.
:return: The newly created :class:`UserenaSignup` instance. | "Creates an :class:`UserenaSignup` instance for this user.\n\n :param user:\n Django :class:`User` instance.\n\n :return: The newly created :class:`UserenaSignup` instance." | 241 | false | django-userena-ce/django-userena-ce | create_userena_profile | 19,570 | |
LDU_FT/macbre/sql-metadata/preprocess_query | LDU_FT | [
"<BEGIN>\n## `unique`",
"Makes the list have unique items only and maintains the order",
" list(set()) won't provide that",
" :type _list list\n :rtype: list\n<END>",
"<BEGIN>\n## `preprocess_query`",
"Perform initial query cleanup",
" :type query str\n :rtype str\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preprocess_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preprocess_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 ... | Perform initial query cleanup
:type query str
:rtype str | "Perform initial query cleanup\n\n :type query str\n :rtype str" | 16 | false | macbre/sql-metadata | preprocess_query | 19,571 | |
LDU_FT/pioneers/python-grizzly/set_register | LDU_FT | [
"<BEGIN>\n## `get_all_usb_devices`",
"Returns a list of all the usb devices matching the provided vendor ID and product ID.\n<END>",
"<BEGIN>\n## `get_device_address`",
"Returns the grizzly's internal address value. Returns a negative error value in case of error.\n<END>",
"<BEGIN>\n## `exchange_bytes`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_register API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_register API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Sets an arbitrary register at @addr and subsequent registers depending
on how much data you decide to write. It will automatically fill extra
bytes with zeros. You cannot write more than 14 bytes at a time.
@addr should be a static constant from the Addr class, e.g. Addr.Speed | "Sets an arbitrary register at @addr and subsequent registers depending\n on how much data you decide to write. It will automatically fill extra\n bytes with zeros. You cannot write more than 14 bytes at a time.\n @addr should be a static constant from the Addr class, e.g. Addr.Speed" | 35 | false | pioneers/python-grizzly | set_register | 19,572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.