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/tilezen/tilequeue/calculate_cut_coords_by_zoom
LDU_FT
[ "<BEGIN>\n## `merge`", "Retrieve a list of OSciMap4 tile responses and merge them into one.", " get_tiles() retrieves data and performs basic integrity checks.\n<END>", "<BEGIN>\n## `_make_valid_if_necessary`", "attempt to correct invalid shapes if necessary", " After simplification, even when p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_cut_coords_by_zoom API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_cut_coords_by_zoom API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Returns a map of nominal zoom to the list of cut coordinates at that nominal zoom. Note that max_zoom should be the maximum coordinate zoom, not nominal zoom.
"Returns a map of nominal zoom to the list of cut coordinates at that\n nominal zoom.\n\n Note that max_zoom should be the maximum coordinate zoom, not nominal\n zoom."
135
false
tilezen/tilequeue
calculate_cut_coords_by_zoom
142,873
LDU_FT/roanuz/py-cricket/get_response
LDU_FT
[ "<BEGIN>\n## `set_value`", "Set key value to the file.", " The fuction will be make the key and value to dictinary formate.\n If its exist then it will update the current new key value to\n the file.\n Arg:\n key : cache key\n value : cache value\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
It will return json response based on given url, params and methods. Arg: params: 'dictionary' url: 'url' format method: default 'get', support method 'post' Return: json data
"It will return json response based on given url, params and methods.\n \n Arg: \n params: 'dictionary'\n url: 'url' format\n method: default 'get', support method 'post' \n Return:\n json data"
72
false
roanuz/py-cricket
get_response
142,874
LDU_FT/wolfhong/formic/get_version
LDU_FT
[ "<BEGIN>\n## `pylint_jenkins`", "Run PyLint on the code and produce a report suitable for the\n Jenkins plugin 'violations'.", " Note that there is a bug in the Violations plugin which means that\n absolute paths to source (produced by PyLint) are not read. The sed command\n removes the workspace pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
Returns the version of formic. This method retrieves the version from VERSION.txt, and it should be exactly the same as the version retrieved from the package manager
"Returns the version of formic.\n\n This method retrieves the version from VERSION.txt, and it should be\n exactly the same as the version retrieved from the package manager"
98
false
wolfhong/formic
get_version
142,875
LDU_FT/sryza/spark-timeseries/with_index
LDU_FT
[ "<BEGIN>\n## `fit_model`", "Fits an EWMA model to a time series. Uses the first point in the time series as a starting\n value. Uses sum squared error as an objective function to optimize to find smoothing parameter\n The model for EWMA is recursively defined as S_t = (1 - a) * X_t + a * S_{t-1}, where\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns a TimeSeriesRDD rebased on top of a new index. Any timestamps that exist in the new index but not in the existing index will be filled in with NaNs. Parameters ---------- new_index : DateTimeIndex
"Returns a TimeSeriesRDD rebased on top of a new index. Any timestamps that exist in the new\n index but not in the existing index will be filled in with NaNs.\n \n Parameters\n ----------\n new_index : DateTimeIndex"
137
false
sryza/spark-timeseries
with_index
142,876
LDU_FT/Yelp/detect-secrets/analyze_string
LDU_FT
[ "<BEGIN>\n## `determine_file_type`", ":param filename: str", " :rtype: FileType\n<END>", "<BEGIN>\n## `write_baseline_to_file`", ":type filename: str\n :type data: dict\n :rtype: None\n<END>", "<BEGIN>\n## `load_baseline_from_string`", "Initializes a SecretsCollection object from string.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze_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 ex...
:param string: string; the line to analyze :param line_num: integer; line number that is currently being analyzed :param filename: string; name of file being analyzed :returns: dictionary NOTE: line_num and filename are used for PotentialSecret creation only.
":param string: string; the line to analyze\n :param line_num: integer; line number that is currently being analyzed\n :param filename: string; name of file being analyzed\n :returns: dictionary\n\n NOTE: line_num and filename are used for PotentialSecret creation only."
194
false
Yelp/detect-secrets
analyze_string
142,877
LDU_FT/praekelt/django-moderator/moderate_view
LDU_FT
[ "<BEGIN>\n## `formfield_for_foreignkey`", "Limit canned reply options to those with same site as comment.\n<END>", "<BEGIN>\n## `queryset`", "Exclude replies from listing since they are displayed inline as part of\n listing.", " For proxy models with cls apptribute limit comments to those clas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the moderate_view API. 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 moderate_view API. 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...
Handles moderate object tool through a somewhat hacky changelist view whose queryset is altered via CommentAdmin.get_changelist to only list comments for the object under review.
"Handles moderate object tool through a somewhat hacky changelist view\n whose queryset is altered via CommentAdmin.get_changelist to only list\n comments for the object under review."
18
false
praekelt/django-moderator
moderate_view
142,878
LDU_FT/rosenbrockc/ci/get_repo_relpath
LDU_FT
[ "<BEGIN>\n## `_get_github`", "Creates an instance of github.Github to interact with the repos via the \n API interface in pygithub.\n<END>", "<BEGIN>\n## `_parse_repo`", "Parses a <repo> tag to update settings on this Repository instance.", " :arg xml: the <repo> tag XMLElement.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_repo_relpath API. 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_repo_relpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns the absolute path to the 'relpath' taken relative to the base directory of the repository.
"Returns the absolute path to the 'relpath' taken relative to the base\n directory of the repository."
123
false
rosenbrockc/ci
get_repo_relpath
142,879
LDU_FT/aio-libs/janus/join
LDU_FT
[ "<BEGIN>\n## `task_done`", "Indicate that a formerly enqueued task is complete.", " Used by Queue consumer threads. For each get() used to fetch a task,\n a subsequent call to task_done() tells the queue that the processing\n on the task is complete.", " If a join() is currently b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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...
Blocks until all items in the Queue have been gotten and processed. The count of unfinished tasks goes up whenever an item is added to the queue. The count goes down whenever a consumer thread calls task_done() to indicate the item was retrieved and all work on it is complete. When the...
"Blocks until all items in the Queue have been gotten and processed.\n\n The count of unfinished tasks goes up whenever an item is added to the\n queue. The count goes down whenever a consumer thread calls task_done()\n to indicate the item was retrieved and all work on it is complete.\n\n W...
40
false
aio-libs/janus
join
142,880
LDU_FT/has2k1/plotnine/from_class_name
LDU_FT
[ "<BEGIN>\n## `iqr`", "Calculate the IQR for an array of numbers.\n<END>", "<BEGIN>\n## `freedman_diaconis_bins`", "Calculate number of hist bins using Freedman-Diaconis rule.\n<END>", "<BEGIN>\n## `breaks_from_binwidth`", "Calculate breaks given binwidth", " Parameters\n ----------\n x_range : ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_class_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_class_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 e...
Create an themeable by name Parameters ---------- name : str Class name theme_element : element object One of :class:`element_line`, :class:`element_rect`, :class:`element_text` or :class:`element_blank` Returns ------- out : ...
"Create an themeable by name\n\n Parameters\n ----------\n name : str\n Class name\n theme_element : element object\n One of :class:`element_line`, :class:`element_rect`,\n :class:`element_text` or :class:`element_blank`\n\n Returns\n -------\n ...
719
false
has2k1/plotnine
from_class_name
142,881
LDU_FT/Hrabal/TemPy/prepend
LDU_FT
[ "<BEGIN>\n## `render_attrs`", "Renders the tag's attributes using the formats and performing special attributes name substitution.\n<END>", "<BEGIN>\n## `toggle_class`", "Same as jQuery's toggleClass function. It toggles the css class on this element.\n<END>", "<BEGIN>\n## `remove_class`", "Removes the gi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepend API. 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 prepend API. 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...
Adds childs to this tag, starting from the first position.
"Adds childs to this tag, starting from the first position."
80
false
Hrabal/TemPy
prepend
142,882
LDU_FT/richardkiss/pycoin/address
LDU_FT
[ "<BEGIN>\n## `parse_as_header`", "Parse the Block header from the file-like object\n<END>", "<BEGIN>\n## `stream_header_legacy`", "Stream the block header in the standard way to the file-like object f.\n<END>", "<BEGIN>\n## `stream_header`", "Stream the block header in the standard way to the file-like ob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the address API. 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 address API. 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 the public address representation of this key, if available.
"Return the public address representation of this key, if available."
336
false
richardkiss/pycoin
address
142,883
LDU_FT/Garee/pytodoist/login_with_api_token
LDU_FT
[ "<BEGIN>\n## `login`", "Login to Todoist.", " :param email: The user's email address.\n :type email: str\n :param password: The user's password.\n :type password: str\n :return: The HTTP response to the request.\n :rtype: :class:`requests.Response`", " >>> from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login_with_api_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login_with_api_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. ...
Login to Todoist using a user's api token. .. note:: It is up to you to obtain the api token. :param api_token: A Todoist user's api token. :type api_token: str :return: The Todoist user. :rtype: :class:`pytodoist.todoist.User` >>> from pytodoist import todoist >>> api_token = 'api_token'...
"Login to Todoist using a user's api token.\n\n .. note:: It is up to you to obtain the api token.\n\n :param api_token: A Todoist user's api token.\n :type api_token: str\n :return: The Todoist user.\n :rtype: :class:`pytodoist.todoist.User`\n\n >>> from pytodoist import todoist\n >>> api_token = ...
237
false
Garee/pytodoist
login_with_api_token
142,884
LDU_FT/ktbyers/netmiko/commit
LDU_FT
[ "<BEGIN>\n## `show_version`", "Execute show version command using Netmiko.\n<END>", "<BEGIN>\n## `main`", "Use threads and Netmiko to connect to each of the devices. Execute\n 'show version' on each device. Record the amount of time required to do this.\n<END>", "<BEGIN>\n## `session_preparation`", "Pr...
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 the candidate configuration. Commit the entered configuration. Raise an error and return the failure if the commit fails. default: command_string = commit comment: command_string = commit comment <comment>
"Commit the candidate configuration.\n\n Commit the entered configuration. Raise an error and return the failure\n if the commit fails.\n\n default:\n command_string = commit\n comment:\n command_string = commit comment <comment>"
532
false
ktbyers/netmiko
commit
142,885
LDU_FT/paperhive/ansible-ec2-inventory/load_inventory_from_cache
LDU_FT
[ "<BEGIN>\n## `is_cache_valid`", "Determines if the cache files have expired, or if it is still\n valid\n<END>", "<BEGIN>\n## `read_settings`", "Reads the settings from the ec2.ini file\n<END>", "<BEGIN>\n## `do_api_calls_update_cache`", "Do API calls to each region, and save data in cache files\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_inventory_from_cache 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 load_inventory_from_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Reads the inventory from the cache file and returns it as a JSON object
"Reads the inventory from the cache file and returns it as a JSON\n object"
46
false
paperhive/ansible-ec2-inventory
load_inventory_from_cache
142,886
LDU_FT/miku/gluish/is_closest_date_parameter
LDU_FT
[ "<BEGIN>\n## `write_tsv`", "Write argument list in `tup` out as a tab-separeated row to the stream.\n<END>", "<BEGIN>\n## `iter_tsv`", "If a tuple is given in cols, use the elements as names to construct\n a namedtuple.", " Columns can be marked as ignored by using ``X`` or ``0`` as column name.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_closest_date_parameter 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 is_closest_date_parameter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Return the parameter class of param_name on task.
"Return the parameter class of param_name on task."
34
false
miku/gluish
is_closest_date_parameter
142,887
LDU_FT/CityOfZion/neo-python-core/WriteHashes
LDU_FT
[ "<BEGIN>\n## `PrivateKeyFromWIF`", "Get the private key from a WIF key", " Args:\n wif (str): The wif key", " Returns:\n bytes: The private key\n<END>", "<BEGIN>\n## `PrivateKeyFromNEP2`", "Gets the private key from a NEP-2 encrypted private key", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the WriteHashes API. 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 WriteHashes API. 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 an array of hashes to the stream. Args: arr (list): a list of 32 byte hashes.
"Write an array of hashes to the stream.\n\n Args:\n arr (list): a list of 32 byte hashes."
175
false
CityOfZion/neo-python-core
WriteHashes
142,888
LDU_FT/mbj4668/pyang/add_refinement_element
LDU_FT
[ "<BEGIN>\n## `emit`", "Main control function.", " Set up the top-level parts of the stylesheet, then process\n recursively all nodes in all data trees, and finally emit the\n serialized stylesheet.\n<END>", "<BEGIN>\n## `process_module`", "Process data nodes, RPCs and notifications in a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_refinement_element 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 add_refinement_element API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Add an element to the <keyword>'s list of refinements
"Add an element to the <keyword>'s list of refinements"
291
false
mbj4668/pyang
add_refinement_element
142,889
LDU_FT/emirozer/fake2db/data_filler_detailed_registration
LDU_FT
[ "<BEGIN>\n## `database_caller_creator`", "creates a mongodb database\n returns the related connection object\n which will be later used to spawn the cursor\n<END>", "<BEGIN>\n## `database_caller_creator`", "creates a redis connection object\n which will be later used to modify the db\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_filler_detailed_registration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_filler_detailed_registration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
creates and fills the table with detailed regis. information
"creates and fills the table with detailed regis. information"
44
false
emirozer/fake2db
data_filler_detailed_registration
142,890
LDU_FT/bjmorgan/lattice_mc/sites_at_edges
LDU_FT
[ "<BEGIN>\n## `collective_dr_squared`", "Squared sum of total displacements for these atoms.", " Args:\n None", " Returns:\n (Float): The square of the summed total displacements for these atoms.\n<END>", "<BEGIN>\n## `occupations`", "Number of these atoms occupying a sp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sites_at_edges API. 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 sites_at_edges API. 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...
Finds the six sites with the maximum and minimum coordinates along x, y, and z. Args: None Returns: (List(List)): In the order [ +x, -x, +y, -y, +z, -z ]
"Finds the six sites with the maximum and minimum coordinates along x, y, and z.\n\n Args:\n None\n\n Returns:\n (List(List)): In the order [ +x, -x, +y, -y, +z, -z ]"
213
false
bjmorgan/lattice_mc
sites_at_edges
142,891
LDU_FT/rtfd/recommonmark/default_depart
LDU_FT
[ "<BEGIN>\n## `reset`", "Reset the state of state machine.", " After reset, self and self.state can be used to\n passed to docutils.parsers.rst.Directive.run", " Parameters\n ----------\n document: docutils document\n Current document of the node.\n parent: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_depart API. 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 default_depart API. 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...
Default node depart handler If there is a matching ``visit_<type>`` method for a container node, then we should make sure to back up to it's parent element when the node is exited.
"Default node depart handler\n\n If there is a matching ``visit_<type>`` method for a container node,\n then we should make sure to back up to it's parent element when the node\n is exited."
42
false
rtfd/recommonmark
default_depart
142,892
LDU_FT/CartoDB/cartoframes/_is_authenticated
LDU_FT
[ "<BEGIN>\n## `get_scheme_cartocss`", "Get TurboCARTO CartoCSS based on input parameters\n<END>", "<BEGIN>\n## `custom`", "Create a custom scheme.", " Args:\n colors (list of str): List of hex values for styling data\n bins (int, optional): Number of bins to style by. If not given, the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_authenticated API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_authenticated API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Checks if credentials allow for authenticated carto access
"Checks if credentials allow for authenticated carto access"
217
false
CartoDB/cartoframes
_is_authenticated
142,893
LDU_FT/python-thumbnails/python-thumbnails/create
LDU_FT
[ "<BEGIN>\n## `text_filter`", "A text-filter helper, used in ``markdown_thumbnails``-filter and ``html_thumbnails``-filter.\n It can be used to build custom thumbnail text-filters.", " :param regex_base: A string with a regex that contains ``%(captions)s`` and ``%(image)s`` where\n th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. 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 create API. 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 ...
Creates a thumbnail. It loads the image, scales it and crops it. :param original: :param size: :param crop: :param options: :return:
"Creates a thumbnail. It loads the image, scales it and crops it.\n\n :param original:\n :param size:\n :param crop:\n :param options:\n :return:"
41
false
python-thumbnails/python-thumbnails
create
142,894
LDU_FT/ecordell/pymacaroons/_encode_uvarint
LDU_FT
[ "<BEGIN>\n## `equals`", "Returns True if the two strings are equal, False otherwise.", " The time taken is independent of the number of characters that match.", " For the sake of simplicity, this function executes in constant time only\n when the two strings have the same length. It short-circuits wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_uvarint API. 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 _encode_uvarint API. 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...
Encodes integer into variable-length format into data.
"Encodes integer into variable-length format into data."
46
false
ecordell/pymacaroons
_encode_uvarint
142,895
LDU_FT/django-crispy-forms/django-crispy-forms/get_render
LDU_FT
[ "<BEGIN>\n## `do_uni_form`", "You need to pass in at least the form/formset object, and can also pass in the\n optional `crispy_forms.helpers.FormHelper` object.", " helper (optional): A `crispy_forms.helper.FormHelper` object.", " Usage::", " {% load crispy_tags %}\n {% crispy form f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac...
Returns a `Context` object with all the necessary stuff for rendering the form :param context: `django.template.Context` variable holding the context for the node `self.form` and `self.helper` are resolved into real Python objects resolving them from the `context`. The `actual_form` can be a f...
"Returns a `Context` object with all the necessary stuff for rendering the form\n\n :param context: `django.template.Context` variable holding the context for the node\n\n `self.form` and `self.helper` are resolved into real Python objects resolving them\n from the `context`. The `actual_form` can ...
89
false
django-crispy-forms/django-crispy-forms
get_render
142,896
LDU_FT/mattupstate/flask-security/send_reset_password_instructions
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 send_reset_password_instructions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_reset_password_instructions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Sends the reset password instructions email for the specified user. :param user: The user to send the instructions to
"Sends the reset password instructions email for the specified user.\n\n :param user: The user to send the instructions to"
145
false
mattupstate/flask-security
send_reset_password_instructions
142,897
LDU_FT/mediawiki-utilities/python-mwtypes/initialize
LDU_FT
[ "<BEGIN>\n## `initialize`", "Contributing user's identifier : int | None\n<END>", "<BEGIN>\n## `reader`", "Turns a path to a dump file into a file-like object of (decompressed)\n XML data assuming that '7z' is installed and will know what to do.", " :Parameters:\n path : `str`\n the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API. 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 initialize API. 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...
Is the text of this revision deleted/suppressed? : `bool`
"Is the text of this revision deleted/suppressed? : `bool`"
41
false
mediawiki-utilities/python-mwtypes
initialize
142,898
LDU_FT/Capitains/MyCapytain/editions
LDU_FT
[ "<BEGIN>\n## `call`", "Call an endpoint given the parameters", " :param parameters: Dictionary of parameters\n :type parameters: dict\n :rtype: text\n<END>", "<BEGIN>\n## `getValidReff`", "Retrieve valid urn-references for a text", " :param urn: URN identifying the text\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the editions API. 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 editions API. 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...
Get all editions of the texts :return: List of editions :rtype: [CtsTextMetadata]
"Get all editions of the texts\n\n :return: List of editions\n :rtype: [CtsTextMetadata]"
473
false
Capitains/MyCapytain
editions
142,899
LDU_FT/edaniszewski/bison/_parse_env
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 _parse_env API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_env API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Parse the environment variables for any configuration if an `env_prefix` is set.
"Parse the environment variables for any configuration if an `env_prefix`\n is set."
56
false
edaniszewski/bison
_parse_env
142,900
LDU_FT/cloudsmith-io/cloudsmith-cli/make_user_agent
LDU_FT
[ "<BEGIN>\n## `convert`", "Take a path with $HOME variables and resolve it to full path.\n<END>", "<BEGIN>\n## `make_user_agent`", "Get a suitable user agent for identifying the CLI process.\n<END>", "<BEGIN>\n## `pretty_print_list_info`", "Pretty print list info, with pagination, for user display.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_user_agent API. 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 make_user_agent API. 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 suitable user agent for identifying the CLI process.
"Get a suitable user agent for identifying the CLI process."
214
false
cloudsmith-io/cloudsmith-cli
make_user_agent
142,901
LDU_FT/openvax/isovar/translate_variants
LDU_FT
[ "<BEGIN>\n## `initial_variant_sequences_from_reads`", "Get all unique sequences from reads spanning a variant locus. This will\n include partial sequences due to reads starting in the middle of the\n sequence around around a variant.\n<END>", "<BEGIN>\n## `trim_variant_sequences`", "Trim VariantSequence...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate_variants 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 translate_variants 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...
Translates each coding variant in a collection to one or more protein fragment sequences (if the variant is not filtered and its spanning RNA sequences can be given a reading frame). Parameters ---------- variants_with_reads : sequence or generator Each item of this sequence should be a pai...
"Translates each coding variant in a collection to one or more protein\n fragment sequences (if the variant is not filtered and its spanning RNA\n sequences can be given a reading frame).\n\n Parameters\n ----------\n variants_with_reads : sequence or generator\n Each item of this sequence should ...
333
false
openvax/isovar
translate_variants
142,902
LDU_FT/kytos/kytos-utils/_parse_methods
LDU_FT
[ "<BEGIN>\n## `get_napp`", "Return napp metadata or None if not found.\n<END>", "<BEGIN>\n## `reload_napps`", "Reload a specific NApp or all Napps.", " Args:\n napp (list): NApp list to be reload.\n Raises:\n requests.HTTPError: When there's a server error.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_methods API. 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 _parse_methods API. 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...
Return HTTP method list. Use json for security reasons.
"Return HTTP method list. Use json for security reasons."
128
false
kytos/kytos-utils
_parse_methods
142,903
LDU_FT/sloria/doitlive/regularrun
LDU_FT
[ "<BEGIN>\n## `run`", "Main function for \"magic-running\" a list of commands.\n<END>", "<BEGIN>\n## `completion`", "Output completion (to be eval'd).", " For bash or zsh, add the following to your .bashrc or .zshrc:", " eval \"$(doitlive completion)\"", " For fish, add the following to ~/.c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the regularrun API. 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 regularrun API. 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...
Allow user to run their own live commands until CTRL-Z is pressed again.
"Allow user to run their own live commands until CTRL-Z is pressed again."
31
false
sloria/doitlive
regularrun
142,904
LDU_FT/bfontaine/term2048/loop
LDU_FT
[ "<BEGIN>\n## `adjustColors`", "Change a few colors depending on the mode to use. The default mode\n doesn't assume anything and avoid using white & black colors. The dark\n mode use white and avoid dark blue while the light mode use black and\n avoid yellow, to give a few examples.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
main game loop. returns the final score.
"main game loop. returns the final score."
28
false
bfontaine/term2048
loop
142,905
LDU_FT/scottrice/pysteam/get_custom_image
LDU_FT
[ "<BEGIN>\n## `__get_nondirect_init`", "return the non-direct init if the direct algorithm has been selected.\n<END>", "<BEGIN>\n## `reflect`", "reflect a data word, i.e. reverts the bit order.\n<END>", "<BEGIN>\n## `bit_by_bit`", "Classic simple and slow CRC implementation. This function iterates bit\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_custom_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_custom_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns the custom image associated with a given app. If there are multiple candidate images on disk, one is chosen arbitrarily.
"Returns the custom image associated with a given app. If there are\n multiple candidate images on disk, one is chosen arbitrarily."
33
false
scottrice/pysteam
get_custom_image
142,906
LDU_FT/geometalab/pyGeoTile/quad_tree
LDU_FT
[ "<BEGIN>\n## `from_pixel`", "Creates a point from pixels X Y Z (zoom) in pyramid\n<END>", "<BEGIN>\n## `from_meters`", "Creates a point from X Y Z (zoom) meters in Spherical Mercator EPSG:900913\n<END>", "<BEGIN>\n## `pixels`", "Gets pixels of the EPSG:4326 pyramid by a specific zoom, converted from lat/l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quad_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quad_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 extract...
Gets the tile in the Microsoft QuadTree format, converted from TMS
"Gets the tile in the Microsoft QuadTree format, converted from TMS"
24
false
geometalab/pyGeoTile
quad_tree
142,907
LDU_FT/django-dbbackup/django-dbbackup/encrypt_file
LDU_FT
[ "<BEGIN>\n## `_cleanup_old_backups`", "Cleanup old backups, keeping the number of backups specified by\n DBBACKUP_CLEANUP_KEEP and any backups that occur on first of the month.\n<END>", "<BEGIN>\n## `_explore_storage`", "Generator of all files contained in media storage.\n<END>", "<BEGIN>\n## `backup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_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 extr...
Encrypt input file using GPG and remove .gpg extension to its name. :param inputfile: File to encrypt :type inputfile: ``file`` like object :param filename: File's name :type filename: ``str`` :returns: Tuple with file and new file's name :rtype: :class:`tempfile.SpooledTemporaryFile`, ``str`...
"Encrypt input file using GPG and remove .gpg extension to its name.\n\n :param inputfile: File to encrypt\n :type inputfile: ``file`` like object\n\n :param filename: File's name\n :type filename: ``str``\n\n :returns: Tuple with file and new file's name\n :rtype: :class:`tempfile.SpooledTemporaryFil...
99
false
django-dbbackup/django-dbbackup
encrypt_file
142,908
LDU_FT/epfl-lts2/pygsp/compute_avg_adj_deg
LDU_FT
[ "<BEGIN>\n## `compute_avg_adj_deg`", "r\"\"\"\n Compute the average adjacency degree for each node.", " The average adjacency degree is the average of the degrees of a node and\n its neighbors.", " Parameters\n ----------\n G: Graph\n Graph on which the statistic is extracted\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_avg_adj_deg 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 compute_avg_adj_deg 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...
r""" Compute the average adjacency degree for each node. The average adjacency degree is the average of the degrees of a node and its neighbors. Parameters ---------- G: Graph Graph on which the statistic is extracted
"r\"\"\"\n Compute the average adjacency degree for each node.\n\n The average adjacency degree is the average of the degrees of a node and\n its neighbors.\n\n Parameters\n ----------\n G: Graph\n Graph on which the statistic is extracted"
617
false
epfl-lts2/pygsp
compute_avg_adj_deg
142,909
LDU_FT/thombashi/pytablewriter/from_tablib
LDU_FT
[ "<BEGIN>\n## `write_table`", "|write_table| with\n `Labeled Tab-separated Values (LTSV) <http://ltsv.org/>`__ format.\n Invalid characters in labels/data are removed.", " :raises pytablewriter.EmptyHeaderError: If the |headers| is empty.\n :Example:\n :ref:`example-ltsv-ta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_tablib API. 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 from_tablib API. 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...
Set tabular attributes to the writer from :py:class:`tablib.Dataset`.
"Set tabular attributes to the writer from :py:class:`tablib.Dataset`."
97
false
thombashi/pytablewriter
from_tablib
142,910
LDU_FT/255BITS/hyperchamber/avg_grads
LDU_FT
[ "<BEGIN>\n## `conv_cond_concat`", "Concatenate conditioning vector on feature map axis.\n<END>", "<BEGIN>\n## `avg_grads`", "Calculate the average gradient for each shared variable across all towers.", " Note that this function provides a synchronization point across all towers.", " Args:\n tower_gra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the avg_grads API. 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 avg_grads API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Calculate the average gradient for each shared variable across all towers. Note that this function provides a synchronization point across all towers. Args: tower_grads: List of lists of (gradient, variable) tuples. The outer list is over individual gradients. The inner list is over the gradient c...
"Calculate the average gradient for each shared variable across all towers.\n\n Note that this function provides a synchronization point across all towers.\n\n Args:\n tower_grads: List of lists of (gradient, variable) tuples. The outer list\n is over individual gradients. The inner list is over the gradient\...
61
false
255BITS/hyperchamber
avg_grads
142,911
LDU_FT/artefactual-labs/mets-reader-writer/_lxml_el_to_data
LDU_FT
[ "<BEGIN>\n## `register_id`", "Register a manually assigned id as used, to avoid collisions.\n<END>", "<BEGIN>\n## `parse`", "Create a new AMDSec by parsing root.", " :param root: Element or ElementTree to be parsed into an object.\n<END>", "<BEGIN>\n## `serialize`", "Serialize this amdSec and all...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lxml_el_to_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lxml_el_to_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convert an ``lxml._Element`` instance to a Python tuple.
"Convert an ``lxml._Element`` instance to a Python tuple."
179
false
artefactual-labs/mets-reader-writer
_lxml_el_to_data
142,912
LDU_FT/google/pyu2f/InternalSendApdu
LDU_FT
[ "<BEGIN>\n## `ToByteArray`", "Serialize the command.", " Encodes the command as per the U2F specs, using the standard\n ISO 7816-4 extended encoding. All Commands expect data, so\n Le is always present.", " Returns:\n Python bytearray of the encoded command.\n<END>", "<BEGIN>\n## `_BuildPl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the InternalSendApdu API. 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 InternalSendApdu API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Send an APDU to the device. Sends an APDU to the device, possibly falling back to the legacy encoding format that is not ISO7816-4 compatible. Args: apdu_to_send: The CommandApdu object to send Returns: The ResponseApdu object constructed out of the devices reply.
"Send an APDU to the device.\n\n Sends an APDU to the device, possibly falling back to the legacy\n encoding format that is not ISO7816-4 compatible.\n\n Args:\n apdu_to_send: The CommandApdu object to send\n\n Returns:\n The ResponseApdu object constructed out of the devices reply."
95
false
google/pyu2f
InternalSendApdu
142,913
LDU_FT/androguard/androguard/vm2json
LDU_FT
[ "<BEGIN>\n## `go`", "Launch the analysis.", " this will start a total of `max_fetcher` threads.\n<END>", "<BEGIN>\n## `filter_file`", "This method is called in order to filer a specific app", " :param log: an object which corresponds to a unique app\n :param bytes fileraw: the raw fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vm2json API. 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 vm2json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get a JSON representation of a DEX file :param vm: :class:`~androguard.core.bytecodes.dvm.DalvikVMFormat` :return:
"Get a JSON representation of a DEX file\n\n :param vm: :class:`~androguard.core.bytecodes.dvm.DalvikVMFormat`\n :return:"
823
false
androguard/androguard
vm2json
142,914
LDU_FT/productml/blurr/print_output
LDU_FT
[ "<BEGIN>\n## `run_evaluate`", "Overrides the base evaluation to set the value to the evaluation result of the value\n expression in the schema\n<END>", "<BEGIN>\n## `set`", "Sets the value of a key to a supplied value\n<END>", "<BEGIN>\n## `increment`", "Increments the value set against a key. If ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_output API. 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 print_output API. 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...
Basic helper function to write data to stdout. If window BTS was provided then the window BTS output is written, otherwise, the streaming BTS output is written to stdout. WARNING - For large datasets this will be extremely slow. :param per_identity_data: Output of the `execute()` call.
"Basic helper function to write data to stdout. If window BTS was provided then the window\n BTS output is written, otherwise, the streaming BTS output is written to stdout.\n\n WARNING - For large datasets this will be extremely slow.\n\n :param per_identity_data: Output of the `execute()` call."
119
false
productml/blurr
print_output
142,915
LDU_FT/genepattern/genepattern-python/run_job
LDU_FT
[ "<BEGIN>\n## `GCT`", "Create a Dataframe with the contents of the GCT file\n<END>", "<BEGIN>\n## `ODF`", "Create a Dataframe with the contents of the ODF file", " For more information on the ODF format see:\n http://software.broadinstitute.org/cancer/software/genepattern/file-formats-guide", " :o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_job API. 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 run_job API. 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...
Runs a job defined by jobspec, optionally non-blocking. Takes a GPJobSpec object that defines a request to run a job, and makes the request to the server. By default blocks until the job is finished by polling the server, but can also run asynchronously. Args: :param job_s...
"Runs a job defined by jobspec, optionally non-blocking.\n\n Takes a GPJobSpec object that defines a request to run a job, and makes the\n request to the server. By default blocks until the job is finished by\n polling the server, but can also run asynchronously.\n\n Args:\n :par...
156
false
genepattern/genepattern-python
run_job
142,916
LDU_FT/ebroecker/canmatrix/get_element_by_path
LDU_FT
[ "<BEGIN>\n## `unpack_bitstring`", "returns a value calculated from bits\n :param length: length of signal in bits\n :param is_float: value is float\n :param bits: value as bits (array/iterable)\n :param is_signed: value is signed\n :return:\n<END>", "<BEGIN>\n## `pack_bitstring`", "returns a va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_element_by_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_element_by_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Find sub-element of given path with given short name.
"Find sub-element of given path with given short name."
51
false
ebroecker/canmatrix
get_element_by_path
142,917
LDU_FT/priestc/giotto/serve
LDU_FT
[ "<BEGIN>\n## `get_response`", "High level function for getting a response. This is what the concrete\n controller should call. Returns a controller specific response.\n<END>", "<BEGIN>\n## `get_data_response`", "Execute the model and view, and handle the cache.\n Returns controller-agnostic resp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serve API. 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 serve API. 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...
Serve a wsgi app (any wsgi app) through with either werkzeug's runserver or the one that comes with python. Setting `processes` to anything other than 1 will prevent the debigger from working.
"Serve a wsgi app (any wsgi app) through with either werkzeug's runserver\n or the one that comes with python. Setting `processes` to anything other than 1\n will prevent the debigger from working."
75
false
priestc/giotto
serve
142,918
LDU_FT/gawel/irc3/extend
LDU_FT
[ "<BEGIN>\n## `dcc_event`", "Work like :class:`~irc3.dec.event` but occurs during DCC CHATs\n<END>", "<BEGIN>\n## `extend`", "Allow to extend a bot:", " Create a module with some useful routine:", " .. literalinclude:: ../examples/myextends.py\n ..\n >>> import sys\n >>> sys.path.app...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
same as :func:`~irc3.dec.extend` but for servers
"same as :func:`~irc3.dec.extend` but for servers"
95
false
gawel/irc3
extend
142,919
LDU_FT/IBM/ibm-cos-sdk-python-s3transfer/notify_progress
LDU_FT
[ "<BEGIN>\n## `store`", "store a config value in a dictionary, these values are used to populate a trasnfer spec\n validation -- check type, check allowed values and rename if required\n<END>", "<BEGIN>\n## `multi_session`", "convert the multi_session param a number\n<END>", "<BEGIN>\n## `_raw_asp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notify_progress API. 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 notify_progress API. 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...
only call the progress callback if total has changed or PROGRESS_MSGS_SEND_ALL is set
"only call the progress callback if total has changed\n or PROGRESS_MSGS_SEND_ALL is set"
89
false
IBM/ibm-cos-sdk-python-s3transfer
notify_progress
142,920
LDU_FT/kensho-technologies/grift/lookup_token
LDU_FT
[ "<BEGIN>\n## `load`", "Load a value, converting it to the proper type if validation_type exists.\n<END>", "<BEGIN>\n## `_iter_config_props`", "Iterate over all ConfigProperty attributes, yielding (attr_name, config_property)\n<END>", "<BEGIN>\n## `_update_property_keys`", "Set unspecified property_keys fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_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 extr...
Convenience method: look up the vault token
"Convenience method: look up the vault token"
39
false
kensho-technologies/grift
lookup_token
142,921
LDU_FT/diging/tethne/connected
LDU_FT
[ "<BEGIN>\n## `to_dxgmml`", "Writes a :class:`.GraphCollection` to\n `dynamic XGMML. <https://code.google.com/p/dynnetwork/wiki/DynamicXGMML>`_.", " Dynamic XGMML is a schema for describing dynamic networks in Cytoscape 3.0.\n This method assumes that `Graph` indices are orderable points in time\n (e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connected API. 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 connected API. 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...
Performs analysis methods from networkx.connected on each graph in the collection. Parameters ---------- G : :class:`.GraphCollection` The :class:`.GraphCollection` to analyze. The specified method will be applied to each graph in ``G``. method : string Name of method in net...
"Performs analysis methods from networkx.connected on each graph in the\n collection.\n\n Parameters\n ----------\n G : :class:`.GraphCollection`\n The :class:`.GraphCollection` to analyze. The specified method will be\n applied to each graph in ``G``.\n method : string\n Name of met...
497
false
diging/tethne
connected
142,922
LDU_FT/kennedyshead/aioasuswrt/async_run_command
LDU_FT
[ "<BEGIN>\n## `async_run_command`", "Run commands through an SSH connection.", " Connect to the SSH server if not currently connected, otherwise\n use the existing connection.\n<END>", "<BEGIN>\n## `async_connect`", "Fetches the client or creates a new one.\n<END>", "<BEGIN>\n## `async_run_co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the async_run_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the async_run_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Run a command through a Telnet connection. Connect to the Telnet server if not currently connected, otherwise use the existing connection.
"Run a command through a Telnet connection.\n Connect to the Telnet server if not currently connected, otherwise\n use the existing connection."
19
false
kennedyshead/aioasuswrt
async_run_command
142,923
LDU_FT/icgood/pymap/get
LDU_FT
[ "<BEGIN>\n## `for_executor`", "Return a subsystem based on the given executor. If ``executor`` is\n None, use :mod:`asyncio`. If ``executor`` is a\n :class:`concurrent.futures.ThreadPoolExecutor`, use :mod:`threading`.", " Args:\n executor: The executor in use, if any.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return the session flags for the mailbox session. Args: uid: The message UID value.
"Return the session flags for the mailbox session.\n\n Args:\n uid: The message UID value."
298
false
icgood/pymap
get
142,924
LDU_FT/SKA-ScienceDataProcessor/integration-prototype/get_sub_array_sbi_ids
LDU_FT
[ "<BEGIN>\n## `_check_status`", "SDP Status check.", " Do all the tests to determine, if the SDP state is\n \"broken\", what could be the cause, and return a\n suitable status message to be sent back by the calling\n function.\n<END>", "<BEGIN>\n## `allowed_transitions`", "Get target states allow...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sub_array_sbi_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sub_array_sbi_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get Scheduling Block Instance ID associated with sub array id
"Get Scheduling Block Instance ID associated with sub array id"
573
false
SKA-ScienceDataProcessor/integration-prototype
get_sub_array_sbi_ids
142,925
LDU_FT/rsgalloway/grit/from_path
LDU_FT
[ "<BEGIN>\n## `assemble_WSGI_git_app`", "Assembles basic WSGI-compatible application providing functionality of git-http-backend.\r", " content_path (Defaults to '.' = \"current\" directory)\r\n The path to the folder that will be the root of served files. Accepts relative paths.\r", " uri_marker ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Create a new Item from a file path. :param repo: Repo object. :param path: File path. :param name: Name of item (to override original file name). :return: New Item class instance.
"Create a new Item from a file path.\n\n :param repo: Repo object.\n :param path: File path.\n :param name: Name of item (to override original file name).\n\n :return: New Item class instance."
222
false
rsgalloway/grit
from_path
142,926
LDU_FT/hubo1016/vlcp/updater
LDU_FT
[ "<BEGIN>\n## `get_connection`", "Get an exclusive connection, useful for blocked commands and transactions.", " You must call release or shutdown (not recommanded) to return the connection after use.", " :param container: routine container", " :returns: RedisClientBase object, with some...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updater API. 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 updater API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Decorate a function with named arguments into updater for transact
"Decorate a function with named arguments into updater for transact"
538
false
hubo1016/vlcp
updater
142,927
LDU_FT/glitchassassin/lackey/_raiseFindFailed
LDU_FT
[ "<BEGIN>\n## `_check_count`", "Private function to return ctypes errors cleanly\n<END>", "<BEGIN>\n## `getScreenBounds`", "Returns the screen size of the specified monitor (0 being the main monitor).\n<END>", "<BEGIN>\n## `getScreenDetails`", "Return list of attached monitors", " For each monitor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _raiseFindFailed API. 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 _raiseFindFailed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Builds a FindFailed event and triggers the default handler (or the custom handler, if one has been specified). Returns True if throwing method should retry, False if it should skip, and throws an exception if it should abort.
"Builds a FindFailed event and triggers the default handler (or the custom handler,\n if one has been specified). Returns True if throwing method should retry, False if it\n should skip, and throws an exception if it should abort."
378
false
glitchassassin/lackey
_raiseFindFailed
142,928
LDU_FT/deepmind/sonnet/_build
LDU_FT
[ "<BEGIN>\n## `generate_code`", "Generates code samples.", " Args:\n max_length: int. max literal length.\n max_nest: int. max nesting level.\n ops: CodeOp. set of allowable operations.", " Returns:\n 1. (str) output value.\n 2. (str) Code operation.\n<END>", "<BEGIN>\n## `get_tokens`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build API. 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 _build API. 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 ...
Connects the BidirectionalRNN module into the graph. Args: input_sequence: tensor (time, batch, [feature_1, ..]). It must be time_major. state: tuple of states for the forward and backward cores. Returns: A dict with forward/backard states and output sequences: "outputs":{...
"Connects the BidirectionalRNN module into the graph.\n\n Args:\n input_sequence: tensor (time, batch, [feature_1, ..]). It must be\n time_major.\n state: tuple of states for the forward and backward cores.\n\n Returns:\n A dict with forward/backard states and output sequences:\n\n ...
937
false
deepmind/sonnet
_build
142,929
LDU_FT/tradenity/python-sdk/delete_fixed_rate_shipping_by_id
LDU_FT
[ "<BEGIN>\n## `data_type`", "Sets the data_type of this Option.", " :param data_type: The data_type of this Option.\n :type: str\n<END>", "<BEGIN>\n## `create_option`", "Create Option", " Create a new Option\n This method makes a synchronous HTTP request by default. To make an\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_fixed_rate_shipping_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_fixed_rate_shipping_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Delete FixedRateShipping Delete an instance of FixedRateShipping by its ID. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.delete_fixed_rate_shipping_by_id(fixed_rate_shipping_id, async=True) ...
"Delete FixedRateShipping\n\n Delete an instance of FixedRateShipping by its ID.\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async=True\n >>> thread = api.delete_fixed_rate_shipping_by_id(fixed_rate_shipping_id, async=True)\n...
1,216
true
tradenity/python-sdk
delete_fixed_rate_shipping_by_id
142,930
LDU_FT/taskcluster/taskcluster-client.py/instanceStarted
LDU_FT
[ "<BEGIN>\n## `ping`", "Ping Server", " Respond without doing anything.\n This endpoint is used to check that the service is up.", " This method is ``stable``\n<END>", "<BEGIN>\n## `githubWebHookConsumer`", "Consume GitHub WebHook", " Capture a GitHub event and publish it via ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the instanceStarted API. 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 instanceStarted API. 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...
Report an instance starting An instance will report in by giving its instance id as well as its security token. The token is given and checked to ensure that it matches a real token that exists to ensure that random machines do not check in. We could generate a different token ...
"Report an instance starting\n\n An instance will report in by giving its instance id as well\n as its security token. The token is given and checked to ensure\n that it matches a real token that exists to ensure that random\n machines do not check in. We could generate a different token\n...
997
false
taskcluster/taskcluster-client.py
instanceStarted
142,931
LDU_FT/taddeus/wspy/close
LDU_FT
[ "<BEGIN>\n## `conflicts`", "Check if the extension conflicts with an already accepted extension.\n This may be the case when the two extensions use the same reserved\n bits, or have the same name (when the same extension is negotiated\n multiple times with different parameters).\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Close the socket by sending a CLOSE frame and waiting for a response close message, unless such a message has already been received earlier (prior to calling this function, for example). The onclose() handler is called after the response has been received, but before the socket is actual...
"Close the socket by sending a CLOSE frame and waiting for a response\n close message, unless such a message has already been received earlier\n (prior to calling this function, for example). The onclose() handler is\n called after the response has been received, but before the socket is\n a...
72
false
taddeus/wspy
close
142,932
LDU_FT/paulovn/sparql-kernel/query
LDU_FT
[ "<BEGIN>\n## `token_at_cursor`", "Find the token present at the passed position in the code buffer\n :return (tuple): a pair (token, start_position)\n<END>", "<BEGIN>\n## `_send`", "Send a response to the frontend and return an execute message\n @param data: response to send\n @param msg_t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Launch an SPARQL query, process & convert results and return them
"Launch an SPARQL query, process & convert results and return them"
55
false
paulovn/sparql-kernel
query
142,933
LDU_FT/spyder-ide/conda-manager/pip_remove
LDU_FT
[ "<BEGIN>\n## `get_package_versions`", "Gives all the compatible package canonical name", " name : str\n Name of the package\n<END>", "<BEGIN>\n## `closing_plugin`", "Perform actions before parent main window is closed.\n<END>", "<BEGIN>\n## `get_conf_path`", "Return absolute path for c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pip_remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pip_remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Remove a pip package in given environment by `name` or `prefix`.
"Remove a pip package in given environment by `name` or `prefix`."
160
false
spyder-ide/conda-manager
pip_remove
142,934
LDU_FT/switchboardpy/switchboard/has_active_condition
LDU_FT
[ "<BEGIN>\n## `has_active_condition`", "Given a list of instances, and the condition active for\n this switch, returns a boolean representing if the\n conditional is met, including a non-instance default.\n<END>", "<BEGIN>\n## `_key`", "Returns a Datastore key object, prefixed with the NAMESPACE....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_active_condition 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 has_active_condition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Given a list of instances, and the condition active for this switch, returns a boolean representing if the conditional is met, including a non-instance default.
"Given a list of instances, and the condition active for\n this switch, returns a boolean representing if the\n conditional is met, including a non-instance default."
30
false
switchboardpy/switchboard
has_active_condition
142,935
LDU_FT/openeemeter/eeweather/load_tmy3_hourly_temp_data
LDU_FT
[ "<BEGIN>\n## `get_lat_long_climate_zones`", "Get climate zones that contain lat/long coordinates.", " Parameters\n ----------\n latitude : float\n Latitude of point.\n longitude : float\n Longitude of point.", " Returns\n -------\n climate_zones: dict of str\n Region ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_tmy3_hourly_temp_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_tmy3_hourly_temp_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Load hourly TMY3 temperature data from start date to end date (inclusive). This is the primary convenience method for loading hourly TMY3 temperature data. Parameters ---------- start : datetime.datetime The earliest date from which to load data. end : datetime.date...
"Load hourly TMY3 temperature data from start date to end date (inclusive).\n\n This is the primary convenience method for loading hourly TMY3 temperature data.\n\n Parameters\n ----------\n start : datetime.datetime\n The earliest date from which to load data.\n end : date...
68
false
openeemeter/eeweather
load_tmy3_hourly_temp_data
142,936
LDU_FT/kata198/func_timeout/retry
LDU_FT
[ "<BEGIN>\n## `getMsg`", "getMsg - Generate a default message based on parameters to FunctionTimedOut exception'", " @return <str> - Message\n<END>", "<BEGIN>\n## `retry`", "retry - Retry the timed-out function with same arguments.", " @param timeout <float/RETRY_SAME_TIMEOUT/None> De...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry API. 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 retry API. 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...
retry - Retry the timed-out function with same arguments. @param timeout <float/RETRY_SAME_TIMEOUT/None> Default RETRY_SAME_TIMEOUT If RETRY_SAME_TIMEOUT : Will retry the function same args, same timeout If a float/int : Will retry the function same args wit...
"retry - Retry the timed-out function with same arguments.\n\n @param timeout <float/RETRY_SAME_TIMEOUT/None> Default RETRY_SAME_TIMEOUT\n \n If RETRY_SAME_TIMEOUT : Will retry the function same args, same timeout\n If a float/int : Will retry the function same ar...
37
false
kata198/func_timeout
retry
142,937
LDU_FT/zhammer/faaspact-verifier/faasport
LDU_FT
[ "<BEGIN>\n## `_pluck_provider_state`", ">>> _pluck_provider_state({'name': 'there is an egg'})\n ProviderState(descriptor='there is an egg', params=None)", " >>> _pluck_provider_state({'name': 'there is an egg called', 'params': {'name': 'humpty'}})\n ProviderState(descriptor='there is an egg called', ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the faasport API. 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 faasport API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Decorator that registers the user's faasport function.
"Decorator that registers the user's faasport function."
30
false
zhammer/faaspact-verifier
faasport
142,938
LDU_FT/rasguanabana/ytfs/registerHandler
LDU_FT
[ "<BEGIN>\n## `__getChannelId`", "Obtain channel id for channel name, if present in ``self.search_params``.\n<END>", "<BEGIN>\n## `__searchParser`", "Parse `query` for advanced search options.", " Parameters\n ----------\n query : str\n Search query to parse. Besides a search ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the registerHandler API. 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 registerHandler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Register new file descriptor. Parameters ---------- fh : int File descriptor.
"Register new file descriptor.\n\n Parameters\n ----------\n fh : int\n File descriptor."
109
false
rasguanabana/ytfs
registerHandler
142,939
LDU_FT/frictionlessdata/tableschema-py/cast_value
LDU_FT
[ "<BEGIN>\n## `primary_key`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `foreign_keys`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `add_field`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cast_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cast_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
https://github.com/frictionlessdata/tableschema-py#field
"https://github.com/frictionlessdata/tableschema-py#field"
38
false
frictionlessdata/tableschema-py
cast_value
142,940
LDU_FT/python-escpos/python-escpos/find_suitable_encoding
LDU_FT
[ "<BEGIN>\n## `get_profile`", "Get the profile by name; if no name is given, return the\n default profile.\n<END>", "<BEGIN>\n## `get_profile_class`", "For the given profile name, load the data from the external\n database, then generate dynamically a class.\n<END>", "<BEGIN>\n## `get_font`", "Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_suitable_encoding API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_suitable_encoding API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
The order of our search is a specific one: 1. code pages that we already tried before; there is a good chance they might work again, reducing the search space, and by re-using already used encodings we might also reduce the number of codepage change instructiosn we have ...
"The order of our search is a specific one:\n\n 1. code pages that we already tried before; there is a good\n chance they might work again, reducing the search space,\n and by re-using already used encodings we might also\n reduce the number of codepage change instructiosn we have\n...
74
false
python-escpos/python-escpos
find_suitable_encoding
142,941
LDU_FT/resonai/ybt/handle_build_cache
LDU_FT
[ "<BEGIN>\n## `norm_name`", "Return a normalized canonical target name for the `target_name`\n observed in build module `build_module`.", " A normalized canonical target name is of the form \"<build module>:<name>\",\n where <build module> is the relative normalized path from the project root\n to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_build_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_build_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Handle Docker image build cache. Return image ID if image is cached, and there's no need to redo the build. Return None if need to build the image (whether cached locally or not). Raise RuntimeError if not allowed to build the image because of state of local cache. TODO(itamar): figure out a bette...
"Handle Docker image build cache.\n\n Return image ID if image is cached, and there's no need to redo the build.\n Return None if need to build the image (whether cached locally or not).\n Raise RuntimeError if not allowed to build the image because of state of\n local cache.\n\n TODO(itamar): figure out...
284
false
resonai/ybt
handle_build_cache
142,942
LDU_FT/aaren/notedown/string2json
LDU_FT
[ "<BEGIN>\n## `ftdetect`", "Determine if filename is markdown or notebook,\n based on the file extension.\n<END>", "<BEGIN>\n## `get_caption_comments`", "Retrieve an id and a caption from a code cell.", " If the code cell content begins with a commented\n block that looks like", " ## fig:id\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the string2json API. 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 string2json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Convert json into its string representation. Used for writing outputs to markdown.
"Convert json into its string representation.\n Used for writing outputs to markdown."
39
false
aaren/notedown
string2json
142,943
LDU_FT/hellock/icrawler/put
LDU_FT
[ "<BEGIN>\n## `to_dict`", "convert detailed proxy info into a dict", " Returns:\n dict: A dict with four keys: ``addr``, ``protocol``,\n ``weight`` and ``last_checked``\n<END>", "<BEGIN>\n## `proxy_num`", "Get the number of proxies in the pool", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. 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 put API. 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...
Put an item to queue if it is not duplicated.
"Put an item to queue if it is not duplicated."
105
false
hellock/icrawler
put
142,944
LDU_FT/jameslyons/python_speech_features/ssc
LDU_FT
[ "<BEGIN>\n## `framesig`", "Frame a signal into overlapping frames.", " :param sig: the audio signal to frame.\n :param frame_len: length of each frame measured in samples.\n :param frame_step: number of samples after the start of the previous frame that the next frame should begin.\n :param winfunc:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ssc API. 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 ssc API. 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...
Compute Spectral Subband Centroid features from an audio signal. :param signal: the audio signal from which to compute features. Should be an N*1 array :param samplerate: the sample rate of the signal we are working with, in Hz. :param winlen: the length of the analysis window in seconds. Default is 0.025s...
"Compute Spectral Subband Centroid features from an audio signal.\n\n :param signal: the audio signal from which to compute features. Should be an N*1 array\n :param samplerate: the sample rate of the signal we are working with, in Hz.\n :param winlen: the length of the analysis window in seconds. Default is 0...
42
false
jameslyons/python_speech_features
ssc
142,945
LDU_FT/noirbizarre/minibench/load_module
LDU_FT
[ "<BEGIN>\n## `load_module`", "Load a module into name given its filename\n<END>", "<BEGIN>\n## `humanize`", "Transform code conventions to human readable strings\n<END>", "<BEGIN>\n## `end`", "Dump the report into the output file.", " If the file directory does not exists, it will be created.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_module API. 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_module API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Load a module into name given its filename
"Load a module into name given its filename"
17
false
noirbizarre/minibench
load_module
142,946
LDU_FT/crate/crate-python/blob_get
LDU_FT
[ "<BEGIN>\n## `coerce`", "Convert plain dictionaries to MutableDict.\n<END>", "<BEGIN>\n## `_raise_for_status`", "make sure that only crate.exceptions are raised that are defined in\n the DB-API specification\n<END>", "<BEGIN>\n## `_server_url`", "Normalizes a given server string to an url", " >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blob_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blob_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns a file like object representing the contents of the blob with the given digest.
"Returns a file like object representing the contents of the blob\n with the given digest."
81
false
crate/crate-python
blob_get
142,947
LDU_FT/wonambi-python/wonambi/mouseMoveEvent
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 mouseMoveEvent API. 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 mouseMoveEvent API. 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...
When normal selection, update power spectrum with current selection. Otherwise, show the range of the new marker.
"When normal selection, update power spectrum with current selection.\n Otherwise, show the range of the new marker."
1,345
true
wonambi-python/wonambi
mouseMoveEvent
142,948
LDU_FT/adamchainz/django-perf-rec/clean_key
LDU_FT
[ "<BEGIN>\n## `sql_fingerprint`", "Simplify a query, taking away exact values and fields selected.", " Imperfect but better than super explicit, value-dependent queries.\n<END>", "<BEGIN>\n## `match_keyword`", "Checks if the given token represents one of the given keywords\n<END>", "<BEGIN>\n## `_is_gro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_key API. 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 clean_key API. 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...
Replace things that look like variables with a '#' so tests aren't affected by random variables
"Replace things that look like variables with a '#' so tests aren't affected by random variables"
13
false
adamchainz/django-perf-rec
clean_key
142,949
LDU_FT/sods/paramz/SCG
LDU_FT
[ "<BEGIN>\n## `adjust_name_for_printing`", "Make sure a name can be printed, alongside used as a variable name.\n<END>", "<BEGIN>\n## `name`", "Set the name of this object.\n Tell the parent if the name has changed.\n<END>", "<BEGIN>\n## `hierarchy_name`", "return the name for this object with the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SCG API. 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 SCG API. 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...
Optimisation through Scaled Conjugate Gradients (SCG) f: the objective function gradf : the gradient function (should return a 1D np.ndarray) x : the initial condition Returns x the optimal value for x flog : a list of all the objective values function_eval number of fn evaluations sta...
"Optimisation through Scaled Conjugate Gradients (SCG)\n\n f: the objective function\n gradf : the gradient function (should return a 1D np.ndarray)\n x : the initial condition\n\n Returns\n x the optimal value for x\n flog : a list of all the objective values\n function_eval number of fn evaluatio...
225
false
sods/paramz
SCG
142,950
LDU_FT/tkf/python-epc/print_port
LDU_FT
[ "<BEGIN>\n## `register_function`", "Register function to be called from EPC client.", " :type function: callable\n :arg function: Function to publish.\n :type name: str\n :arg name: Name by which function is published.", " This method returns the given `functio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_port API. 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 print_port API. 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...
Print port this EPC server runs on. As Emacs client reads port number from STDOUT, you need to call this just before calling :meth:`serve_forever`. :type stream: text stream :arg stream: A stream object to write port on. Default is :data:`sys.stdout`.
"Print port this EPC server runs on.\n\n As Emacs client reads port number from STDOUT, you need to\n call this just before calling :meth:`serve_forever`.\n\n :type stream: text stream\n :arg stream: A stream object to write port on.\n Default is :data:`sys.stdout`."
37
false
tkf/python-epc
print_port
142,951
LDU_FT/hasgeek/coaster/add_conditional_state
LDU_FT
[ "<BEGIN>\n## `init_app`", "Enables logging for an app using :class:`LocalVarFormatter`. Requires the\n app to be configured and checks for the following configuration parameters.\n All are optional:", " * ``LOGFILE``: Name of the file to log to (default ``error.log``)\n * ``ADMINS``: List of email a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_conditional_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 add_conditional_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. ...
Add a conditional state that combines an existing state with a validator that must also pass. The validator receives the object on which the property is present as a parameter. :param str name: Name of the new state :param ManagedState state: Existing state that this is based on ...
"Add a conditional state that combines an existing state with a validator\n that must also pass. The validator receives the object on which the property\n is present as a parameter.\n\n :param str name: Name of the new state\n :param ManagedState state: Existing state that this is based on\n...
344
false
hasgeek/coaster
add_conditional_state
142,952
LDU_FT/bcb/jsonrpcclient/parse_callable
LDU_FT
[ "<BEGIN>\n## `sort_response`", "Sort the keys in a JSON-RPC response object.", " This has no effect other than making it nicer to read. Useful in Python 3.5 only,\n dictionaries are already sorted in newer Python versions.", " Example::", " >>> json.dumps(sort_response({'id': 2, 'result': 5,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_callable API. 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 parse_callable API. 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...
ConfigParser converter. Calls the specified object, e.g. Option "id_generators.decimal" returns `id_generators.decimal()`.
"ConfigParser converter.\n\n Calls the specified object, e.g. Option \"id_generators.decimal\" returns\n `id_generators.decimal()`."
73
false
bcb/jsonrpcclient
parse_callable
142,953
LDU_FT/juju/theblues/discharge_token
LDU_FT
[ "<BEGIN>\n## `list_models`", "Get the logged in user's models from the JIMM controller.", " @param macaroons The discharged JIMM macaroons.\n @return The json decoded list of environments.\n<END>", "<BEGIN>\n## `make_request`", "Make a request with the provided data.", " @param url The ur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discharge_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discharge_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 e...
Discharge token for a user. Raise a ServerError if an error occurs in the request process. @param username The logged in user. @return The resulting base64 encoded discharged token.
"Discharge token for a user.\n\n Raise a ServerError if an error occurs in the request process.\n\n @param username The logged in user.\n @return The resulting base64 encoded discharged token."
141
false
juju/theblues
discharge_token
142,954
LDU_FT/BlackEarth/bf/merge_stylesheets
LDU_FT
[ "<BEGIN>\n## `gswrite`", "use ghostscript to create output file(s) from the PDF\n<END>", "<BEGIN>\n## `merge_stylesheets`", "merge the given CSS files, in order, into a single stylesheet. First listed takes priority.\n<END>", "<BEGIN>\n## `all_selectors`", "return a sorted list of selectors that occur in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_stylesheets API. 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 merge_stylesheets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
merge the given CSS files, in order, into a single stylesheet. First listed takes priority.
"merge the given CSS files, in order, into a single stylesheet. First listed takes priority."
16
false
BlackEarth/bf
merge_stylesheets
142,955
LDU_FT/LuminosoInsight/ordered-set/is_iterable
LDU_FT
[ "<BEGIN>\n## `is_iterable`", "Are we being asked to look up a list of things, instead of a single thing?\n We check for the `__iter__` attribute so that this can cover types that\n don't have to be known by this module, such as NumPy arrays.", " Strings, however, should be considered as atomic values t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_iterable API. 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_iterable API. 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...
Are we being asked to look up a list of things, instead of a single thing? We check for the `__iter__` attribute so that this can cover types that don't have to be known by this module, such as NumPy arrays. Strings, however, should be considered as atomic values to look up, not iterables. The same goe...
"Are we being asked to look up a list of things, instead of a single thing?\n We check for the `__iter__` attribute so that this can cover types that\n don't have to be known by this module, such as NumPy arrays.\n\n Strings, however, should be considered as atomic values to look up, not\n iterables. The sa...
42
false
LuminosoInsight/ordered-set
is_iterable
142,956
LDU_FT/randomir/plucky/_filtered_list
LDU_FT
[ "<BEGIN>\n## `rewrap`", "Inplace constructor. Depending on `self.inplace`, rewrap `obj`, or\n just update internal vars, possibly including the `obj`.\n<END>", "<BEGIN>\n## `_filtered_list`", "Iterate over `self.obj` list, extracting `selector` from each\n element. The `selector` can be a simple...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filtered_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filtered_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Iterate over `self.obj` list, extracting `selector` from each element. The `selector` can be a simple integer index, or any valid key (hashable object).
"Iterate over `self.obj` list, extracting `selector` from each\n element. The `selector` can be a simple integer index, or any valid\n key (hashable object)."
33
false
randomir/plucky
_filtered_list
142,957
LDU_FT/cloudsmith-io/cloudsmith-cli/validate_page_size
LDU_FT
[ "<BEGIN>\n## `convert`", "Take a path with $HOME variables and resolve it to full path.\n<END>", "<BEGIN>\n## `make_user_agent`", "Get a suitable user agent for identifying the CLI process.\n<END>", "<BEGIN>\n## `pretty_print_list_info`", "Pretty print list info, with pagination, for user display.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_page_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_page_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Ensure that a valid value for page size is chosen.
"Ensure that a valid value for page size is chosen."
214
false
cloudsmith-io/cloudsmith-cli
validate_page_size
142,958
LDU_FT/insilicolife/micti/logpdf_diagonal_gaussian
LDU_FT
[ "<BEGIN>\n## `FDR_BH`", "Benjamini-Hochberg p-value correction for multiple hypothesis testing.\n<END>", "<BEGIN>\n## `logpdf_diagonal_gaussian`", "Compute logpdf of a multivariate Gaussian distribution with diagonal covariance at a given point x.\n A multivariate Gaussian distribution with a diagonal ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logpdf_diagonal_gaussian 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 logpdf_diagonal_gaussian API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Compute logpdf of a multivariate Gaussian distribution with diagonal covariance at a given point x. A multivariate Gaussian distribution with a diagonal covariance is equivalent to a collection of independent Gaussian random variables. x should be a sparse matrix. The logpdf will be computed fo...
"Compute logpdf of a multivariate Gaussian distribution with diagonal covariance at a given point x.\n A multivariate Gaussian distribution with a diagonal covariance is equivalent\n to a collection of independent Gaussian random variables.\n\n x should be a sparse matrix. The logpdf will be comput...
20
false
insilicolife/micti
logpdf_diagonal_gaussian
142,959
LDU_FT/softwarefactory-project/rdopkg/save
LDU_FT
[ "<BEGIN>\n## `rdopkg_runner`", "default rdopkg action runner including rdopkg action modules\n<END>", "<BEGIN>\n## `rdopkg`", "rdopkg CLI interface", " Execute rdopkg action with specified arguments and return\n shell friendly exit code.", " This is the default high level way to interact with rdo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Write the textual content (self._txt) to .spec file (self.fn).
"Write the textual content (self._txt) to .spec file (self.fn)."
60
false
softwarefactory-project/rdopkg
save
142,960
LDU_FT/Parsely/birding/initialize
LDU_FT
[ "<BEGIN>\n## `main`", "Do the default action of `twitter` command.\n<END>", "<BEGIN>\n## `from_oauth_file`", "Get an object bound to the Twitter API using your own credentials.", " The `twitter` library ships with a `twitter` command that uses PIN\n OAuth. Generate your own OAuth credentials b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API. 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 initialize API. 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...
Initialization steps: 1. Prepare elasticsearch connection, including details for indexing.
"Initialization steps:\n\n 1. Prepare elasticsearch connection, including details for indexing."
88
false
Parsely/birding
initialize
142,961
LDU_FT/Hackerfleet/hfos/selectlanguage
LDU_FT
[ "<BEGIN>\n## `_augment_book`", "Checks if the newly created object is a book and only has an ISBN.\n If so, tries to fetch the book data off the internet.", " :param uuid: uuid of book to augment\n :param client: requesting client\n<END>", "<BEGIN>\n## `serial_ports`", "Lists serial por...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the selectlanguage API. 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 selectlanguage API. 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...
Store client's selection of a new translation
"Store client's selection of a new translation"
344
false
Hackerfleet/hfos
selectlanguage
142,962
LDU_FT/gtaylor/python-colormath/delta_e_cmc
LDU_FT
[ "<BEGIN>\n## `get_value_tuple`", "Returns a tuple of the color's values (in order). For example,\n an LabColor object will return (lab_l, lab_a, lab_b), where each\n member of the tuple is the float value for said variable.\n<END>", "<BEGIN>\n## `set_observer`", "Validates and sets the color's o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delta_e_cmc API. 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 delta_e_cmc API. 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...
Calculates the Delta E (CMC) of two colors. CMC values Acceptability: pl=2, pc=1 Perceptability: pl=1, pc=1
"Calculates the Delta E (CMC) of two colors.\n\n CMC values\n Acceptability: pl=2, pc=1\n Perceptability: pl=1, pc=1"
133
false
gtaylor/python-colormath
delta_e_cmc
142,963
LDU_FT/pinterest/pymemcache/touch
LDU_FT
[ "<BEGIN>\n## `murmur3_32`", "MurmurHash3 was written by Austin Appleby, and is placed in the\n public domain. The author hereby disclaims copyright to this source\n code.\n<END>", "<BEGIN>\n## `_readline`", "Read line of text from the socket.", " Read a line of text (delimited by \"\\r\\n\") ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the touch API. 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 touch API. 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 memcached "touch" command. Args: key: str, see class docs for details. expire: optional int, number of seconds until the item is expired from the cache, or zero for no expiry (the default). noreply: optional bool, True to not wait for the reply (defaults to ...
"The memcached \"touch\" command.\n\n Args:\n key: str, see class docs for details.\n expire: optional int, number of seconds until the item is expired\n from the cache, or zero for no expiry (the default).\n noreply: optional bool, True to not wait for the reply (defa...
89
false
pinterest/pymemcache
touch
142,964
LDU_FT/AbletonAG/abl.vpath/split
LDU_FT
[ "<BEGIN>\n## `content_item`", "if path1 is subpart of path2, get the next path item.\n example:\n path1 = '/foo'\n path2 = '/foo/bar/foo'\n -> 'bar'\n<END>", "<BEGIN>\n## `compare_path_strings`", "find out, if path1 is a file, or a directory (or unknown).\n<END>", "<BEGIN>\n## `compare_parts`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split API. 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 split API. 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...
split: like os.path.split @rtype: tuple(URI, str) @return: a 2 tuple. The first element is a URI instance and the second a string, representing the basename.
"split: like os.path.split\n\n @rtype: tuple(URI, str)\n @return: a 2 tuple. The first element is a URI instance and the second\n a string, representing the basename."
92
false
AbletonAG/abl.vpath
split
142,965
LDU_FT/holgern/pyedflib/getSignalHeaders
LDU_FT
[ "<BEGIN>\n## `short_path`", "Return relative or absolute path name, whichever is shortest.\n<END>", "<BEGIN>\n## `get_all_dict`", "Return a copy of the __all__ dict with irrelevant items removed.\n<END>", "<BEGIN>\n## `compare`", "Return sets of objects only in __all__, refguide, or completely missing.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getSignalHeaders API. 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 getSignalHeaders API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns the header of all signals as array of dicts Parameters ---------- None
"Returns the header of all signals as array of dicts\n\n Parameters\n ----------\n None"
135
false
holgern/pyedflib
getSignalHeaders
142,966
LDU_FT/yangl1996/libpagure/request_info
LDU_FT
[ "<BEGIN>\n## `_call_api`", "Method used to call the API.\n It returns the raw JSON returned by the API or raises an exception\n if something goes wrong.", " :arg url: the URL to call\n :kwarg method: the HTTP method to use when calling the specified\n URL, can be GET, POST...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_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 extr...
Get information of a single pull request. :param request_id: the id of the request :return:
"Get information of a single pull request.\n :param request_id: the id of the request\n :return:"
62
false
yangl1996/libpagure
request_info
142,967
LDU_FT/caffeinehit/django-oauth2-provider/serialize_instance
LDU_FT
[ "<BEGIN>\n## `check`", "Check if a desired scope ``wants`` is part of an available scope ``has``.", " Returns ``False`` if not, return ``True`` if yes.", " :example:", " If a list of scopes such as", " ::", " READ = 1 << 1\n WRITE = 1 << 2\n READ_WRITE = READ | WRITE", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_instance 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 serialize_instance 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...
Since Django 1.6 items added to the session are no longer pickled, but JSON encoded by default. We are storing partially complete models in the session (user, account, token, ...). We cannot use standard Django serialization, as these are models are not "complete" yet. Serialization will start complaini...
"Since Django 1.6 items added to the session are no longer pickled,\n but JSON encoded by default. We are storing partially complete models\n in the session (user, account, token, ...). We cannot use standard\n Django serialization, as these are models are not \"complete\" yet.\n Serialization will start co...
74
false
caffeinehit/django-oauth2-provider
serialize_instance
142,968
LDU_FT/mlavin/django-all-access/parse_raw_token
LDU_FT
[ "<BEGIN>\n## `get_client`", "Return the API client for the given provider.\n<END>", "<BEGIN>\n## `get_access_token`", "Fetch access token from callback request.\n<END>", "<BEGIN>\n## `get_redirect_args`", "Get request parameters for redirect url.\n<END>", "<BEGIN>\n## `parse_raw_token`", "Parse token ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_raw_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_raw_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 e...
Parse token and secret from raw token response.
"Parse token and secret from raw token response."
26
false
mlavin/django-all-access
parse_raw_token
142,969
LDU_FT/OCR-D/core/resolve_image_exif
LDU_FT
[ "<BEGIN>\n## `xmllint_format`", "Pretty-print XML like ``xmllint`` does.", " Arguments:\n xml (string): Serialized XML\n<END>", "<BEGIN>\n## `download_to_directory`", "Download a file to the workspace.", " Early Shortcut: If url is a file://-URL and that file is already in the directory, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_image_exif 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 resolve_image_exif API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get the EXIF metadata about an image URL as :class:`OcrdExif` Args: image_url (string) : URL of image Return :class:`OcrdExif`
"Get the EXIF metadata about an image URL as :class:`OcrdExif`\n\n Args:\n image_url (string) : URL of image\n\n Return\n :class:`OcrdExif`"
176
false
OCR-D/core
resolve_image_exif
142,970
LDU_FT/siznax/wptools/query
LDU_FT
[ "<BEGIN>\n## `_add_members`", "Adds category members and subcategories to data\n<END>", "<BEGIN>\n## `_set_data`", "Set category member data from API response\n<END>", "<BEGIN>\n## `get_members`", "GET Mediawiki:API (action=query) category members\n https://www.mediawiki.org/wiki/API:Categorymember...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Returns MediaWiki action=query query string
"Returns MediaWiki action=query query string"
179
false
siznax/wptools
query
142,971
LDU_FT/lsst-sqre/sqre-codekit/author_to_dict
LDU_FT
[ "<BEGIN>\n## `countdown_timer`", "Show a simple countdown progress bar", " Parameters\n ----------\n seconds\n Period of time the progress bar takes to reach zero.\n<END>", "<BEGIN>\n## `eta_bar`", "Display an adaptive ETA / countdown bar with a message.", " Parameters\n ----------\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the author_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the author_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 ex...
Who needs a switch/case statement when you can instead use this easy to comprehend drivel?
"Who needs a switch/case statement when you can instead use this easy to\n comprehend drivel?"
82
false
lsst-sqre/sqre-codekit
author_to_dict
142,972