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/maxcutler/python-wordpress-xmlrpc/get_args
LDU_FT
[ "<BEGIN>\n## `convert_to_python`", "Extracts a value for the field from an XML-RPC response.\n<END>", "<BEGIN>\n## `get_outputs`", "Generate a set of output values for a given input.\n<END>", "<BEGIN>\n## `struct`", "XML-RPC-friendly representation of the current object state\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_args API. 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...
Builds final set of XML-RPC method arguments based on the method's arguments, any default arguments, and their defined respective ordering.
"Builds final set of XML-RPC method arguments based on\r\n the method's arguments, any default arguments, and their\r\n defined respective ordering."
11
false
maxcutler/python-wordpress-xmlrpc
get_args
10,673
LDU_FT/maaku/python-bitcoin/compress_amount
LDU_FT
[ "<BEGIN>\n## `script`", "Returns a Script object representing a contract script portion of a\n payment to the destination.\n<END>", "<BEGIN>\n## `compress_amount`", "\\\n Compress 64-bit integer values, preferring a smaller size for whole\n numbers (base-10), so as to achieve run-length encoding ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compress_amount API. 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 compress_amount API. 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...
\ Compress 64-bit integer values, preferring a smaller size for whole numbers (base-10), so as to achieve run-length encoding gains on real- world data. The basic algorithm: * If the amount is 0, return 0 * Divide the amount (in base units) evenly by the largest power of 10 possibl...
"\\\n Compress 64-bit integer values, preferring a smaller size for whole\n numbers (base-10), so as to achieve run-length encoding gains on real-\n world data. The basic algorithm:\n * If the amount is 0, return 0\n * Divide the amount (in base units) evenly by the largest power of 10\n ...
55
false
maaku/python-bitcoin
compress_amount
10,674
LDU_FT/DasIch/argvard/register_command
LDU_FT
[ "<BEGIN>\n## `from_string`", "Returns a :class:`Signature` object based on the given `string`. If\n `option` is `True`, repetitions or optional patterns will not be\n allowed.", " If the `string` cannot be parsed, :exc:`InvalidSignature` is raised.\n<END>", "<BEGIN>\n## `usage`", "A usa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_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 register_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 ...
Registers the `command` with the given `name`. If the `name` has already been used to register a command a :exc:`RuntimeError` will be raised.
"Registers the `command` with the given `name`.\n\n If the `name` has already been used to register a command a\n :exc:`RuntimeError` will be raised."
31
false
DasIch/argvard
register_command
10,675
LDU_FT/klmitch/requiem/update
LDU_FT
[ "<BEGIN>\n## `send`", "Issue the request.", " Uses httplib2.Http support for handling redirects. Returns an\n httplib2.Response, which may be augmented by the\n proc_response() method.", " Note that the default implementation of proc_response() causes\n an appropriate excep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Override dict.update() to title-case keys.
"Override dict.update() to title-case keys."
46
false
klmitch/requiem
update
10,676
LDU_FT/todddeluca/python-vagrant/ssh
LDU_FT
[ "<BEGIN>\n## `which`", "Emulate unix 'which' command. If program is a path to an executable file\n (i.e. it contains any directory components, like './myscript'), return\n program. Otherwise, if an executable file matching program is found in one\n of the directories in the PATH environment variable, r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ssh API. 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 ssh API. 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...
Execute a command via ssh on the vm specified. command: The command to execute via ssh. extra_ssh_args: Corresponds to '--' option in the vagrant ssh command Returns the output of running the command.
"Execute a command via ssh on the vm specified.\n command: The command to execute via ssh.\n extra_ssh_args: Corresponds to '--' option in the vagrant ssh command\n Returns the output of running the command."
94
false
todddeluca/python-vagrant
ssh
10,677
LDU_FT/google/grr/EnumerateUsersFromClient
LDU_FT
[ "<BEGIN>\n## `Column`", "Iterates over values of a given column.", " Args:\n column_name: A nome of the column to retrieve the values for.", " Yields:\n Values of the specified column.", " Raises:\n KeyError: If given column is not present in the table.\n<END>", "<BEGIN>\n## `Check...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the EnumerateUsersFromClient 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 EnumerateUsersFromClient API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Enumerates all the users on this system.
"Enumerates all the users on this system."
4,605
true
google/grr
EnumerateUsersFromClient
10,678
LDU_FT/childsish/sofia/parse_definition
LDU_FT
[ "<BEGIN>\n## `consume_input`", "Make a copy of the input for the run function and consume the input to free up the queue for more input. If all\n input is consumed, there is no need to overload this function. Input is provided as lists. To copy and consume\n input the following commands can be run:"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parse the basic structure of both provided and requested entities :param definition: string encoding an entity :return: tuple of entity type, alias and attributes
"Parse the basic structure of both provided and requested entities\n\n :param definition: string encoding an entity\n :return: tuple of entity type, alias and attributes"
32
false
childsish/sofia
parse_definition
10,679
LDU_FT/geopy/geopy/reverse_timezone
LDU_FT
[ "<BEGIN>\n## `_construct_url`", "Construct geocoding request url. Overridden.", " :param str base_api: Geocoding function base address - self.api\n or self.reverse_api.", " :param dict params: Geocoding params.", " :return: string URL.\n<END>", "<BEGIN>\n## `geocode`", "R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse_timezone API. 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 reverse_timezone API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Find the timezone a point in `query` was in for a specified `at_time`. .. versionadded:: 1.18.0 .. versionchanged:: 1.18.1 Previously a :class:`KeyError` was raised for a point without an assigned Olson timezone id (e.g. for Antarctica). Now this method returns None fo...
"Find the timezone a point in `query` was in for a specified `at_time`.\n\n .. versionadded:: 1.18.0\n\n .. versionchanged:: 1.18.1\n Previously a :class:`KeyError` was raised for a point without\n an assigned Olson timezone id (e.g. for Antarctica).\n Now this method returns...
405
false
geopy/geopy
reverse_timezone
10,680
LDU_FT/django-admin-tools/django-admin-tools/render_theming_css
LDU_FT
[ "<BEGIN>\n## `set_preferences`", "This view serves and validates a preferences form.\n<END>", "<BEGIN>\n## `admin_tools_render_menu`", "Template tag that renders the menu, it takes an optional ``Menu`` instance\n as unique argument, if not given, the menu will be retrieved with the\n ``get_admin_menu`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_theming_css 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 render_theming_css 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...
Template tag that renders the needed css files for the theming app.
"Template tag that renders the needed css files for the theming app."
60
false
django-admin-tools/django-admin-tools
render_theming_css
10,681
LDU_FT/SiLab-Bonn/pyBAR/make_pixel_mask
LDU_FT
[ "<BEGIN>\n## `thunkify`", "Make a function immediately return a function of no args which, when called,\n waits for the result, which will start being processed in another thread.\n Taken from https://wiki.python.org/moin/PythonDecoratorLibrary.\n<END>", "<BEGIN>\n## `set_event_when_keyboard_interrupt`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_pixel_mask API. 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_pixel_mask API. 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...
Generate pixel mask. Parameters ---------- steps : int Number of mask steps, e.g. steps=3 (every third pixel is enabled), steps=336 (one pixel per column), steps=672 (one pixel per double column). shift : int Shift mask by given value to the bottom (towards higher row numbers). F...
"Generate pixel mask.\r\n\r\n Parameters\r\n ----------\r\n steps : int\r\n Number of mask steps, e.g. steps=3 (every third pixel is enabled), steps=336 (one pixel per column), steps=672 (one pixel per double column).\r\n shift : int\r\n Shift mask by given value to the bottom (towards higher ...
501
false
SiLab-Bonn/pyBAR
make_pixel_mask
10,682
LDU_FT/ToFuProject/tofu/plot_compare
LDU_FT
[ "<BEGIN>\n## `Struct_plot`", "Plot the projections of a list of Struct subclass instances", " D. VEZINET, Aug. 2014\n Inputs :\n V A Ves instance\n Nstep An int (the number of points for evaluation of theta by np.linspace)\n axP A plt.Axes instance (if given) on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_compare API. 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 plot_compare API. 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...
Plot several Data instances of the same diag Useful to compare : - the diag data for 2 different shots - experimental vs synthetic data for the same shot
"Plot several Data instances of the same diag\n\n Useful to compare :\n - the diag data for 2 different shots\n - experimental vs synthetic data for the same shot"
424
false
ToFuProject/tofu
plot_compare
10,683
LDU_FT/dwavesystems/dwave-system/_compute_biclique_sizes
LDU_FT
[ "<BEGIN>\n## `broken_chains`", "Find the broken chains.", " Args:\n samples (array_like):\n Samples as a nS x nV array_like object where nS is the number of samples and nV is the\n number of variables. The values should all be 0/1 or -1/+1.", " chains (list[array_like]):...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_biclique_sizes 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 _compute_biclique_sizes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Calls ``self.biclique_size(...)`` for every rectangle contained in this processor, to fill the biclique size cache. INPUTS: recompute: if ``True``, then we dump the existing cache and compute all biclique sizes from scratch. (default: ``False``)
"Calls ``self.biclique_size(...)`` for every rectangle contained in this\n processor, to fill the biclique size cache.\n\n INPUTS:\n recompute: if ``True``, then we dump the existing cache and compute\n all biclique sizes from scratch. (default: ``False``)"
562
false
dwavesystems/dwave-system
_compute_biclique_sizes
10,684
LDU_FT/edx/pa11ycrawler/start_requests
LDU_FT
[ "<BEGIN>\n## `make_parser`", "Returns an argparse instance for this script.\n<END>", "<BEGIN>\n## `main`", "Validates script arguments and calls the render_html() function with them.\n<END>", "<BEGIN>\n## `wcag_refs`", "Given a `code` from pa11y, return a list of the WCAG references.\n These references...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_requests API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_requests API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Gets the spider started. If both `self.login_email` and `self.login_password` are set, this method generates a request to login with those credentials. Otherwise, this method generates a request to go to the "auto auth" page and get credentials from there. Either way, this method ...
"Gets the spider started.\n If both `self.login_email` and `self.login_password` are set,\n this method generates a request to login with those credentials.\n Otherwise, this method generates a request to go to the \"auto auth\"\n page and get credentials from there. Either way, this method\...
56
false
edx/pa11ycrawler
start_requests
10,685
LDU_FT/bharadwaj-raju/libdesktop/execute
LDU_FT
[ "<BEGIN>\n## `get_config_dir`", "Get the configuration directory.", "\tGet the configuration directories, optionally for a specific program.", "\tArgs:\n\t\t\tprogram\t(str) : The name of the program whose configuration directories have to be found.\n\t\t\tsystem_wide (bool): Gets the system-wide configuratio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Execute a .desktop file. Executes a given .desktop file path properly. Args: desktop_file (str) : The path to the .desktop file. files (list): Any files to be launched by the .desktop. Defaults to empty list. return_cmd (bool): Return the command (as ``str``) instead of executing. Defaults to ``False``. ...
"Execute a .desktop file.\n\tExecutes a given .desktop file path properly.\n\tArgs:\n\t\t\tdesktop_file (str) : The path to the .desktop file.\n\t\t\tfiles\t\t(list): Any files to be launched by the .desktop. Defaults to empty list.\n\t\t\treturn_cmd (bool): Return the command (as ``str``) instead of executing. Defau...
119
false
bharadwaj-raju/libdesktop
execute
10,686
LDU_FT/maartenbreddels/ipyvolume/view
LDU_FT
[ "<BEGIN>\n## `volshow`", "Deprecated: please use ipyvolume.quickvolshow or use the ipyvolume.pylab interface.\n<END>", "<BEGIN>\n## `quickvolshow`", "Visualize a 3d array using volume rendering.", " :param data: 3d numpy array\n :param lighting: boolean, to use lighting or not, if set to false, lighti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Set camera angles and distance and return the current. :param float azimuth: rotation around the axis pointing up in degrees :param float elevation: rotation where +90 means 'up', -90 means 'down', in degrees :param float distance: radial distance from the center to the camera.
"Set camera angles and distance and return the current.\n\n :param float azimuth: rotation around the axis pointing up in degrees\n :param float elevation: rotation where +90 means 'up', -90 means 'down', in degrees\n :param float distance: radial distance from the center to the camera."
141
false
maartenbreddels/ipyvolume
view
10,687
LDU_FT/kurtbrose/pyjks/_read_utf
LDU_FT
[ "<BEGIN>\n## `new`", "Helper function to create a new TrustedCertEntry.", " :param str alias: The alias for the Trusted Cert Entry\n :param str certs: The certificate, as a byte string.", " :returns: A loaded :class:`TrustedCertEntry` instance, ready\n to be placed in a keystore....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_utf API. 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 _read_utf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
:param kind: Optional; a human-friendly identifier for the kind of UTF-8 data we're loading (e.g. is it a keystore alias? an algorithm identifier? something else?). Used to construct more informative exception messages when a decoding error occurs.
":param kind: Optional; a human-friendly identifier for the kind of UTF-8 data we're loading (e.g. is it a keystore alias? an algorithm identifier? something else?).\n Used to construct more informative exception messages when a decoding error occurs."
104
false
kurtbrose/pyjks
_read_utf
10,688
LDU_FT/Rapptz/discord.py/get_member_named
LDU_FT
[ "<BEGIN>\n## `_retrieve_messages_before_strategy`", "Retrieve messages using before parameter.\n<END>", "<BEGIN>\n## `_retrieve_messages_after_strategy`", "Retrieve messages using after parameter.\n<END>", "<BEGIN>\n## `_retrieve_messages_around_strategy`", "Retrieve messages using around parameter.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_member_named API. 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_member_named API. 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 first member found that matches the name provided. The name can have an optional discriminator argument, e.g. "Jake#0001" or "Jake" will both do the lookup. However the former will give a more precise result. Note that the discriminator must have all 4 digits for this to wor...
"Returns the first member found that matches the name provided.\n\n The name can have an optional discriminator argument, e.g. \"Jake#0001\"\n or \"Jake\" will both do the lookup. However the former will give a more\n precise result. Note that the discriminator must have all 4 digits\n for t...
1,325
true
Rapptz/discord.py
get_member_named
10,689
LDU_FT/aktaylor08/RosbagPandas/get_msg_info
LDU_FT
[ "<BEGIN>\n## `buildParser`", "Builds the parser for reading the command line arguments\n<END>", "<BEGIN>\n## `parse_series_args`", "Return which topics and which field keys need to be examined\n for plotting\n<END>", "<BEGIN>\n## `bag_to_dataframe`", "Read in a rosbag file and create a pandas data fram...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_msg_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 get_msg_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 info from all of the messages about what they contain and will be added to the dataframe
"Get info from all of the messages about what they contain\n and will be added to the dataframe"
28
false
aktaylor08/RosbagPandas
get_msg_info
10,690
LDU_FT/david-caro/python-foreman/convert_plugin_def
LDU_FT
[ "<BEGIN>\n## `res_to_str`", ":param res: :class:`requests.Response` object", " Parse the given request and generate an informative string from it\n<END>", "<BEGIN>\n## `parse_resource_definition`", "Returns all the info extracted from a resource section of the apipie json", " :param resource_name: N...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_plugin_def 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 convert_plugin_def 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...
This function parses one of the elements of the definitions dict for a plugin and extracts the relevant information :param http_method: HTTP method that uses (GET, POST, DELETE, ...) :param funcs: functions related to that HTTP method
"This function parses one of the elements of the definitions dict for a\n plugin and extracts the relevant information\n\n :param http_method: HTTP method that uses (GET, POST, DELETE, ...)\n :param funcs: functions related to that HTTP method"
30
false
david-caro/python-foreman
convert_plugin_def
10,691
LDU_FT/reflexsc/reflex/run_svc_action
LDU_FT
[ "<BEGIN>\n## `configure`", "Configure Monitor, pull list of what to monitor, initialize threads\n<END>", "<BEGIN>\n## `feed_monitors`", "Pull from the cached monitors data and feed the workers queue. Run\n every interval (refresh:test).\n<END>", "<BEGIN>\n## `update_monitors`", "Periodically check...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_svc_action API. 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 run_svc_action API. 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...
backwards compatible to reflex service object. This looks for hooks on current object as well as in the actions sub-object.
"backwards compatible to reflex service object. This looks for hooks on\n current object as well as in the actions sub-object."
35
false
reflexsc/reflex
run_svc_action
10,692
LDU_FT/seleniumbase/SeleniumBase/save_file_as
LDU_FT
[ "<BEGIN>\n## `generate_application_string`", "Generate an application string based on some of the given information\n that can be pulled from the test object: app_env, start_time.\n<END>", "<BEGIN>\n## `_filter_xpath_grouping`", "This method removes the outer parentheses for xpath grouping.\n Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_file_as API. 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 save_file_as API. 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...
Similar to self.download_file(), except that you get to rename the file being downloaded to whatever you want.
"Similar to self.download_file(), except that you get to rename the\n file being downloaded to whatever you want."
362
false
seleniumbase/SeleniumBase
save_file_as
10,693
LDU_FT/internetarchive/brozzler/brozzle_page
LDU_FT
[ "<BEGIN>\n## `elapsed`", "Returns elapsed crawl time as a float in seconds.", " This metric includes all the time that a site was in active rotation,\n including any time it spent waiting for its turn to be brozzled.", " In contrast `Site.active_brozzling_time` only counts time when a\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the brozzle_page API. 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 brozzle_page API. 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...
Command line utility entry point for brozzling a single page. Opens url in a browser, running some javascript behaviors, and prints outlinks.
"Command line utility entry point for brozzling a single page. Opens url in\n a browser, running some javascript behaviors, and prints outlinks."
110
false
internetarchive/brozzler
brozzle_page
10,694
LDU_FT/twisted/txacme/generate_private_key
LDU_FT
[ "<BEGIN>\n## `_parse_header_links`", "Parse the links from a Link: header field.", " .. todo:: Links with the same relation collide at the moment.", " :param bytes value: The header value.", " :rtype: `dict`\n :return: A dictionary of parsed links, keyed by ``rel`` or ``url``.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_private_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_private_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. ...
Generate a random private key using sensible parameters. :param str key_type: The type of key to generate. One of: ``rsa``.
"Generate a random private key using sensible parameters.\n\n :param str key_type: The type of key to generate. One of: ``rsa``."
150
false
twisted/txacme
generate_private_key
10,695
LDU_FT/klingtnet/sblgntparser/particles
LDU_FT
[ "<BEGIN>\n## `filelist`", "Returns a list of all the files contained in the folder specified by `folderpath`.\n To filter the files by extension simply add a list containing all the extension with `.` as the second argument.\n If `flat` is False, then the Path objects are returned.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the particles API. 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 particles API. 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...
Returns a dict containing old greek particles grouped by category.
"Returns a dict containing old greek particles grouped by category."
16
false
klingtnet/sblgntparser
particles
10,696
LDU_FT/basilfx/flask-daapserver/get_next_revision
LDU_FT
[ "<BEGIN>\n## `publish`", "Publish a given `DAAPServer` instance.", " The given instances should be fully configured, including the provider.\n By default Zeroconf only advertises the first database, but the DAAP\n protocol has support for multiple databases. Therefore, the parameter\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_revision API. 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_next_revision API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Determine the next revision number for a given session id, revision and delta. In case the client is up-to-date, this method will block until the next revision is available. :param int session_id: Session identifier :param int revision: Client revision number :param int...
"Determine the next revision number for a given session id, revision\n and delta.\n\n In case the client is up-to-date, this method will block until the next\n revision is available.\n\n :param int session_id: Session identifier\n :param int revision: Client revision number\n :...
45
false
basilfx/flask-daapserver
get_next_revision
10,697
LDU_FT/Thibauth/python-pushover/sounds
LDU_FT
[ "<BEGIN>\n## `poll`", "If the message request has a priority of 2, Pushover keeps sending\n the same notification until the client acknowledges it. Calling the\n :func:`poll` function fetches the status of the :class:`MessageRequest`\n object until the notifications either expires, is acknowl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sounds API. 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 sounds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return a dictionary of sounds recognized by Pushover and that can be used in a notification message.
"Return a dictionary of sounds recognized by Pushover and that can be\n used in a notification message."
17
false
Thibauth/python-pushover
sounds
10,698
LDU_FT/ternaris/marv/marvcli_comment_list
LDU_FT
[ "<BEGIN>\n## `encode_setid`", "Encode uint128 setid as stripped b32encoded string\n<END>", "<BEGIN>\n## `marvcli_cleanup`", "Cleanup unused tags and discarded datasets.\n<END>", "<BEGIN>\n## `marvcli_develop_server`", "Run development webserver.", " ATTENTION: By default it is only served on localhos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marvcli_comment_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marvcli_comment_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. ...
Lists comments for datasets. Output: setid comment_id date time author message
"Lists comments for datasets.\n\n Output: setid comment_id date time author message"
76
false
ternaris/marv
marvcli_comment_list
10,699
LDU_FT/okpy/ok-client/timed
LDU_FT
[ "<BEGIN>\n## `load`", "Prepares a set of setup, test, and teardown code to be\n run in the console.", " PARAMETERS:\n code -- list; processed lines of code. Elements in the list are\n either strings (input) or CodeAnswer objects (output)\n setup -- str; raw ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timed API. 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 timed API. 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...
For a nonzero timeout, evaluates a call expression in a separate thread. If the timeout is 0, the expression is evaluated in the main thread. PARAMETERS: fn -- function; Python function to be evaluated args -- tuple; positional arguments for fn kargs -- dict; keyword arguments for fn ...
"For a nonzero timeout, evaluates a call expression in a separate thread.\n If the timeout is 0, the expression is evaluated in the main thread.\n\n PARAMETERS:\n fn -- function; Python function to be evaluated\n args -- tuple; positional arguments for fn\n kargs -- dict; keyword arguments for ...
141
false
okpy/ok-client
timed
10,700
LDU_FT/chimpler/pyhocon/merge_configs
LDU_FT
[ "<BEGIN>\n## `to_json`", "Convert HOCON input into a JSON output", " :return: JSON string representation\n :type return: basestring\n<END>", "<BEGIN>\n## `to_hocon`", "Convert HOCON input into a HOCON output", " :return: JSON string representation\n :type return: basestring\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_configs API. 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 merge_configs API. 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...
Merge config b into a :param a: target config :type a: ConfigTree :param b: source config :type b: ConfigTree :return: merged config a
"Merge config b into a\n\n :param a: target config\n :type a: ConfigTree\n :param b: source config\n :type b: ConfigTree\n :return: merged config a"
80
false
chimpler/pyhocon
merge_configs
10,701
LDU_FT/LordGaav/python-chaos/registerWorker
LDU_FT
[ "<BEGIN>\n## `registerWorker`", "Register a new Worker, under the given descriptive name.", "\t\tTrying to register multiple workers under the same name will raise an Exception.", "\t\tParameters\n\t\t----------\n\t\tname: string\n\t\t\tName to register the given worker under.\n\t\tworker: multiprocessing.Pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the registerWorker API. 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 registerWorker API. 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...
Register a new Worker, under the given descriptive name. Trying to register multiple workers under the same name will raise an Exception. Parameters ---------- name: string Name to register the given worker under. worker: multiprocessing.Process, or a subclass Process object to register.
"Register a new Worker, under the given descriptive name.\n\n\t\tTrying to register multiple workers under the same name will raise an Exception.\n\n\t\tParameters\n\t\t----------\n\t\tname: string\n\t\t\tName to register the given worker under.\n\t\tworker: multiprocessing.Process, or a subclass\n\t\t\tProcess object ...
138
false
LordGaav/python-chaos
registerWorker
10,702
LDU_FT/bpsmith/tia/true_range
LDU_FT
[ "<BEGIN>\n## `sma`", "If n is 0 then return the ltd mean; else return the n day mean\n<END>", "<BEGIN>\n## `true_range`", "http://en.wikipedia.org/wiki/Average_true_range\n The greatest of the following:\n - Current High less the current Low\n - Current High less the previous Close (absolute value)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the true_range API. 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 true_range API. 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...
http://en.wikipedia.org/wiki/Average_true_range The greatest of the following: - Current High less the current Low - Current High less the previous Close (absolute value) - Curre nt Low less the previous Close (absolute value)
"http://en.wikipedia.org/wiki/Average_true_range\n The greatest of the following:\n - Current High less the current Low\n - Current High less the previous Close (absolute value)\n - Curre nt Low less the previous Close (absolute value)"
226
false
bpsmith/tia
true_range
10,703
LDU_FT/tobgu/pyrsistent/pop
LDU_FT
[ "<BEGIN>\n## `pdeque`", "Return deque containing the elements of iterable. If maxlen is specified then\n len(iterable) - maxlen elements are discarded from the left to if len(iterable) > maxlen.", " >>> pdeque([1, 2, 3])\n pdeque([1, 2, 3])\n >>> pdeque([1, 2, 3, 4], maxlen=2)\n pdeque([3, 4], ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop API. 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 pop API. 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 new deque with rightmost element removed. Popping the empty queue will return the empty queue. A optional count can be given to indicate the number of elements to pop. Popping with a negative index is the same as popleft. Executes in amortized O(k) where k is the number of elements to pop...
"Return new deque with rightmost element removed. Popping the empty queue\n will return the empty queue. A optional count can be given to indicate the\n number of elements to pop. Popping with a negative index is the same as\n popleft. Executes in amortized O(k) where k is the number of elements to...
130
false
tobgu/pyrsistent
pop
10,704
LDU_FT/unt-libraries/codalib/makeObjectFeed
LDU_FT
[ "<BEGIN>\n## `waitForURL`", "Give it a URL. Keep trying to get a HEAD request from it until it works.\n If it doesn't work, wait a while and try again\n<END>", "<BEGIN>\n## `doWaitWebRequest`", "Same as doWebRequest, but with built in wait-looping\n<END>", "<BEGIN>\n## `doWebRequest`", "A urllib2 wrap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeObjectFeed API. 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 makeObjectFeed API. 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...
Take a list of some kind of object, a conversion function, an id and a title Return XML representing an ATOM feed
"Take a list of some kind of object, a conversion function, an id and a\n title Return XML representing an ATOM feed"
40
false
unt-libraries/codalib
makeObjectFeed
10,705
LDU_FT/digidotcom/python-devicecloud/get_filedata
LDU_FT
[ "<BEGIN>\n## `_parse_command_response`", "Parse an SCI command response into ElementTree XML", " This is a helper method that takes a Requests Response object\n of an SCI command response and will parse it into an ElementTree Element\n representing the root of the XML response.", " :param response...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_filedata API. 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_filedata API. 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...
Return a generator over all results matching the provided condition :param condition: An :class:`.Expression` which defines the condition which must be matched on the filedata that will be retrieved from file data store. If a condition is unspecified, the following condition ...
"Return a generator over all results matching the provided condition\n\n :param condition: An :class:`.Expression` which defines the condition\n which must be matched on the filedata that will be retrieved from\n file data store. If a condition is unspecified, the following condition\n ...
366
false
digidotcom/python-devicecloud
get_filedata
10,706
LDU_FT/WebarchivCZ/WA-KAT/get_html_tag_lang_params
LDU_FT
[ "<BEGIN>\n## `_convert_metadata`", "Convert metadata from WA-KAT to Dublin core dictionary like structure,\n which may be easily converted to xml using :mod:`xmltodict` module.", " Args:\n data (dict): Nested WA-KAT data. See tests for example.", " Returns:\n dict: Dict in dublin core f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_html_tag_lang_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_html_tag_lang_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Parse lang and xml:lang parameters in the ``<html>`` tag. See https://www.w3.org/International/questions/qa-html-language-declarations for details. Args: index_page (str): HTML content of the page you wisht to analyze. Returns: list: List of :class:`.SourceString` objects.
"Parse lang and xml:lang parameters in the ``<html>`` tag.\n\n See\n https://www.w3.org/International/questions/qa-html-language-declarations\n for details.\n\n Args:\n index_page (str): HTML content of the page you wisht to analyze.\n\n Returns:\n list: List of :class:`.SourceString` obj...
401
false
WebarchivCZ/WA-KAT
get_html_tag_lang_params
10,707
LDU_FT/openstax/cnx-epub/unpack_epub
LDU_FT
[ "<BEGIN>\n## `squash_xml_to_text`", "Squash the given XML element (as `elm`) to a text containing XML.\n The outer most element/tag will be removed, but inner elements will\n remain. If `remove_namespaces` is specified, XML namespace declarations\n will be removed from the text.", " :param elm: XML ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack_epub API. 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 unpack_epub API. 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...
Unpack the given ``file`` (a file-path or file-like object) to the given ``directory``.
"Unpack the given ``file`` (a file-path or file-like object)\n to the given ``directory``."
67
false
openstax/cnx-epub
unpack_epub
10,708
LDU_FT/kurtbrose/pyjks/sealed_keys
LDU_FT
[ "<BEGIN>\n## `new`", "Helper function to create a new TrustedCertEntry.", " :param str alias: The alias for the Trusted Cert Entry\n :param str certs: The certificate, as a byte string.", " :returns: A loaded :class:`TrustedCertEntry` instance, ready\n to be placed in a keystore....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sealed_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sealed_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
A subset of the :attr:`entries` dictionary, filtered down to only those entries of type :class:`BksSealedKeyEntry`.
"A subset of the :attr:`entries` dictionary, filtered down to only\n those entries of type :class:`BksSealedKeyEntry`."
104
false
kurtbrose/pyjks
sealed_keys
10,709
LDU_FT/inveniosoftware/kwalitee/check_author
LDU_FT
[ "<BEGIN>\n## `_get_files_modified`", "Get the list of modified files that are Python or Jinja2.\n<END>", "<BEGIN>\n## `_get_git_author`", "Return the git author from the git variables.\n<END>", "<BEGIN>\n## `_prepare_commit_msg`", "Prepare the commit message in tmp_file.", " It will build the commit ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_author API. 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 check_author API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Check the presence of the author in the AUTHORS/THANKS files. Rules: - the author full name and email must appear in AUTHORS file :param authors: name of AUTHORS files :type authors: `list` :param path: path to the repository home :type path: str :return: errors :rtype: `list`
"Check the presence of the author in the AUTHORS/THANKS files.\n\n Rules:\n\n - the author full name and email must appear in AUTHORS file\n\n :param authors: name of AUTHORS files\n :type authors: `list`\n :param path: path to the repository home\n :type path: str\n :return: errors\n :rtype: `l...
77
false
inveniosoftware/kwalitee
check_author
10,710
LDU_FT/Tinche/cattrs/_structure_list
LDU_FT
[ "<BEGIN>\n## `make_dict_unstructure_fn`", "Generate a specialized dict unstructuring function for a class.\n<END>", "<BEGIN>\n## `unstruct_strat`", "The default way of unstructuring ``attrs`` classes.\n<END>", "<BEGIN>\n## `register_structure_hook`", "Register a primitive-to-class converter function for a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _structure_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _structure_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 e...
Convert an iterable to a potentially generic list.
"Convert an iterable to a potentially generic list."
43
false
Tinche/cattrs
_structure_list
10,711
LDU_FT/cldf/segments/transform
LDU_FT
[ "<BEGIN>\n## `tokenize`", "Tokenize a string (passed as argument or read from stdin)", " segments [--profile=PATH/TO/PROFILE] tokenize [STRING]\n<END>", "<BEGIN>\n## `from_file`", "Read an orthography profile from a metadata file or a default tab-separated profile file.\n<END>", "<BEGIN>\n## `from_text...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Transform a string's graphemes into the mappings given in a different column in the orthography profile. Parameters ---------- word : str The input string to be tokenized. column : str (default = "Grapheme") The label of the column to transform to. Defau...
"Transform a string's graphemes into the mappings given in a different column\n in the orthography profile.\n\n Parameters\n ----------\n word : str\n The input string to be tokenized.\n\n column : str (default = \"Grapheme\")\n The label of the column to transfo...
25
false
cldf/segments
transform
10,712
LDU_FT/devries/bottle-session/regenerate
LDU_FT
[ "<BEGIN>\n## `regenerate`", "Regenerate the session id.", " This function creates a new session id and stores all information\n associated with the current id in that new id. It then destroys the\n old session id. This is useful for preventing session fixation attacks\n and should be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the regenerate API. 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 regenerate API. 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...
Regenerate the session id. This function creates a new session id and stores all information associated with the current id in that new id. It then destroys the old session id. This is useful for preventing session fixation attacks and should be done whenever someone uses a login to obt...
"Regenerate the session id.\n\n This function creates a new session id and stores all information\n associated with the current id in that new id. It then destroys the\n old session id. This is useful for preventing session fixation attacks\n and should be done whenever someone uses a login ...
16
false
devries/bottle-session
regenerate
10,713
LDU_FT/edx/pa11ycrawler/wcag_refs
LDU_FT
[ "<BEGIN>\n## `make_parser`", "Returns an argparse instance for this script.\n<END>", "<BEGIN>\n## `main`", "Validates script arguments and calls the render_html() function with them.\n<END>", "<BEGIN>\n## `wcag_refs`", "Given a `code` from pa11y, return a list of the WCAG references.\n These references...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wcag_refs API. 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 wcag_refs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Given a `code` from pa11y, return a list of the WCAG references. These references are always of the form: one or more capital letters, followed by one or more digits. One `code` may contain multiple references, separated by commas.
"Given a `code` from pa11y, return a list of the WCAG references.\n These references are always of the form: one or more capital letters,\n followed by one or more digits. One `code` may contain multiple\n references, separated by commas."
56
false
edx/pa11ycrawler
wcag_refs
10,714
LDU_FT/p3trus/slave/_typelist
LDU_FT
[ "<BEGIN>\n## `_typelist`", "Helper function converting all items of x to instances.\n<END>", "<BEGIN>\n## `write`", "Generates and sends a command message unit.", " :param transport: An object implementing the `.Transport` interface.\n It is used by the protocol to send the message.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _typelist API. 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 _typelist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Helper function converting all items of x to instances.
"Helper function converting all items of x to instances."
189
false
p3trus/slave
_typelist
10,715
LDU_FT/tonybaloney/requests-staticmock/_reindex
LDU_FT
[ "<BEGIN>\n## `mock_session_with_fixtures`", "Context Manager", " Mock the responses with a particular session\n to any files found within a static path", " :param session: The requests session object\n :type session: :class:`requests.Session`", " :param path: The path to the fixtures\n :t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reindex API. 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 _reindex API. 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...
Create a case-insensitive index of the paths
"Create a case-insensitive index of the paths"
32
false
tonybaloney/requests-staticmock
_reindex
10,716
LDU_FT/lukaszb/monolith/execute
LDU_FT
[ "<BEGIN>\n## `import_class`", "Returns class from the given path.", " For example, in order to get class located at\n ``mypackage.subpackage.MyClass``:", " try:\n hgrepo = import_class('mypackage.subpackage.MyClass')\n except ImportError:\n # hadle error\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Executes command based on given arguments.
"Executes command based on given arguments."
23
false
lukaszb/monolith
execute
10,717
LDU_FT/xingjiepan/cylinder_fitting/rotation_matrix_from_axis_and_angle
LDU_FT
[ "<BEGIN>\n## `direction`", "Return the direction vector of a cylinder defined\n by the spherical coordinates theta and phi.\n<END>", "<BEGIN>\n## `projection_matrix`", "Return the projection matrix of a direction w.\n<END>", "<BEGIN>\n## `skew_matrix`", "Return the skew matrix of a direction w.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rotation_matrix_from_axis_and_angle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rotation_matrix_from_axis_and_angle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Calculate a rotation matrix from an axis and an angle.
"Calculate a rotation matrix from an axis and an angle."
30
false
xingjiepan/cylinder_fitting
rotation_matrix_from_axis_and_angle
10,718
LDU_FT/mcs07/PubChemPy/deprecated
LDU_FT
[ "<BEGIN>\n## `request`", "Construct API request from parameters and return the response.", " Full specification at http://pubchem.ncbi.nlm.nih.gov/pug_rest/PUG_REST.html\n<END>", "<BEGIN>\n## `get`", "Request wrapper that automatically handles async requests.\n<END>", "<BEGIN>\n## `get_json`", "Reque...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deprecated API. 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 deprecated API. 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...
Decorator to mark functions as deprecated. A warning will be emitted when the function is used.
"Decorator to mark functions as deprecated. A warning will be emitted when the function is used."
83
false
mcs07/PubChemPy
deprecated
10,719
LDU_FT/rasbt/biopandas/fetch_pdb
LDU_FT
[ "<BEGIN>\n## `docstring_to_markdown`", "Convert a Python object's docstring to markdown", " Parameters\n ----------\n docstring : str\n The docstring body.", " Returns\n ----------\n clean_lst : list\n The markdown formatted docstring as lines (str) in a Python list.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_pdb API. 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 fetch_pdb API. 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...
Fetches PDB file contents from the Protein Databank at rcsb.org. Parameters ---------- pdb_code : str A 4-letter PDB code, e.g., "3eiy". Returns --------- self
"Fetches PDB file contents from the Protein Databank at rcsb.org.\n\n Parameters\n ----------\n pdb_code : str\n A 4-letter PDB code, e.g., \"3eiy\".\n\n Returns\n ---------\n self"
110
false
rasbt/biopandas
fetch_pdb
10,720
LDU_FT/uber/rides-python-sdk/get_promotions
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect controller to handle token exchange and query Uber API.\n<END>", "<BEGIN>\n## `_adapt_response`", "Convert error responses to standardized ErrorDetails.\n<END>", "<BEGIN>\n## `_adapt_response`", "Convert various error responses to standardized ErrorDetails.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_promotions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_promotions API. 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...
Get information about the promotions available to a user. Parameters start_latitude (float) The latitude component of a start location. start_longitude (float) The longitude component of a start location. end_latitude (float) T...
"Get information about the promotions available to a user.\n\n Parameters\n start_latitude (float)\n The latitude component of a start location.\n start_longitude (float)\n The longitude component of a start location.\n end_latitude (float)\n ...
194
false
uber/rides-python-sdk
get_promotions
10,721
LDU_FT/pudo/dataset/create_index
LDU_FT
[ "<BEGIN>\n## `normalize_column_name`", "Check if a string is a reasonable thing to use as a column name.\n<END>", "<BEGIN>\n## `normalize_table_name`", "Check if the table name is obviously invalid.\n<END>", "<BEGIN>\n## `safe_url`", "Remove password from printed connection URLs.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extr...
Create an index to speed up queries on a table. If no ``name`` is given a random name is created. :: table.create_index(['name', 'country'])
"Create an index to speed up queries on a table.\n\n If no ``name`` is given a random name is created.\n ::\n\n table.create_index(['name', 'country'])"
128
false
pudo/dataset
create_index
10,722
LDU_FT/viniciuschiele/flask-apscheduler/delete_job
LDU_FT
[ "<BEGIN>\n## `pop_trigger`", "Pops trigger and trigger args from a given dict.\n<END>", "<BEGIN>\n## `fix_job_def`", "Replaces the datetime in string by datetime object.\n<END>", "<BEGIN>\n## `init_app`", "Initialize the APScheduler with a Flask application instance.\n<END>", "<BEGIN>\n## `start`", "S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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 extrac...
DEPRECATED, use remove_job instead. Remove a job, preventing it from being run any more. :param str id: the identifier of the job :param str jobstore: alias of the job store that contains the job
"DEPRECATED, use remove_job instead.\n\n Remove a job, preventing it from being run any more.\n\n :param str id: the identifier of the job\n :param str jobstore: alias of the job store that contains the job"
37
false
viniciuschiele/flask-apscheduler
delete_job
10,723
LDU_FT/APSL/transmanager/has_field
LDU_FT
[ "<BEGIN>\n## `create_translation_tasks`", "Creates the translations tasks from the instance and its translatable children", " :param instance:\n :return:\n<END>", "<BEGIN>\n## `update_task`", "Updates a task as done if we have a new value for this alternative language", " :param diffe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_field API. 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 has_field API. 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...
detect if a model has a given field has :param field_name: :param mc: :return:
"detect if a model has a given field has\n\n :param field_name:\n :param mc:\n :return:"
92
false
APSL/transmanager
has_field
10,724
LDU_FT/potash/drain/counts_to_dicts
LDU_FT
[ "<BEGIN>\n## `y_score`", "Score examples from a new matrix X\n Args:\n estimator: an sklearn estimator object\n X: design matrix with the same features that the estimator was trained on", " Returns: a vector of scores of the same length as X", " Note that estimator.predict_proba is pref...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the counts_to_dicts API. 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 counts_to_dicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
convert (values, counts) as returned by aggregate.aggregate_counts() to dicts makes expand_counts much faster
"convert (values, counts) as returned by aggregate.aggregate_counts() to dicts\n makes expand_counts much faster"
165
false
potash/drain
counts_to_dicts
10,725
LDU_FT/kalbhor/MusicNow/add_config
LDU_FT
[ "<BEGIN>\n## `add_config`", "Prompts user for API keys, adds them in an .ini file stored in the same\n location as that of the script\n<END>", "<BEGIN>\n## `get_tracks_from_album`", "Gets tracks from an album using Spotify's API\n<END>", "<BEGIN>\n## `get_url`", "Provides user with a list of songs to c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_config API. 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...
Prompts user for API keys, adds them in an .ini file stored in the same location as that of the script
"Prompts user for API keys, adds them in an .ini file stored in the same\n location as that of the script"
18
false
kalbhor/MusicNow
add_config
10,726
LDU_FT/dstufft/crust/create
LDU_FT
[ "<BEGIN>\n## `subclass_exception`", "Create exception subclass.", " If 'attached_to' is supplied, the exception will be created in a way that\n allows it to be pickled, assuming the returned exception class will be added\n as an attribute to the 'attached_to' class.\n<END>", "<BEGIN>\n## `save`", "...
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 new object with the given kwargs, saving it to the api and returning the created object.
"Creates a new object with the given kwargs, saving it to the api\n and returning the created object."
38
false
dstufft/crust
create
10,727
LDU_FT/webrecorder/pywb/create_merged_cdx_gen
LDU_FT
[ "<BEGIN>\n## `read_last_line`", "Read last line from a seekable file. Start reading\n from buff before end of file, and double backwards seek\n until line break is found. If reached beginning of file\n (no lines), just return whole file\n<END>", "<BEGIN>\n## `load`", "Load a file-like reader from the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_merged_cdx_gen API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_merged_cdx_gen API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
create a generator which loads and merges cdx streams ensures cdxs are lazy loaded
"create a generator which loads and merges cdx streams\n ensures cdxs are lazy loaded"
227
false
webrecorder/pywb
create_merged_cdx_gen
10,728
LDU_FT/daler/trackhub/hex2rgb
LDU_FT
[ "<BEGIN>\n## `default_hub`", "Returns a fully-connected set of hub components using default filenames.", " Parameters\n ----------", " hub_name : str\n Name of the hub", " genome : str\n Assembly name (hg38, dm6, etc)", " email : str\n Email to include with hub.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hex2rgb API. 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 hex2rgb API. 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...
Convert hex colors to RGB tuples Parameters ---------- h : str String hex color value >>> hex2rgb("#ff0033") '255,0,51'
"Convert hex colors to RGB tuples\n\n Parameters\n ----------\n h : str\n String hex color value\n\n >>> hex2rgb(\"#ff0033\")\n '255,0,51'"
111
false
daler/trackhub
hex2rgb
10,729
LDU_FT/ionelmc/python-cogen/task_done
LDU_FT
[ "<BEGIN>\n## `run_op`", "Handle the operation:", " * if coro is in STATE_RUNNING, send or throw the given op\r", " * if coro is in STATE_NEED_INIT, call the init function and if it\r\n doesn't return a generator, set STATE_COMPLETED and set the result\r\n to whatever the functi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the task_done API. 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 task_done API. 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...
Indicate that a formerly enqueued task is complete. Used by Queue consumer threads. For each get() used to fetch a task, a subsequent call to task_done() tells the queue that the processing on the task is complete. If a join() is currently blocking, it will resume when all items...
"Indicate that a formerly enqueued task is complete.\r\n\r\n Used by Queue consumer threads. For each get() used to fetch a task,\r\n a subsequent call to task_done() tells the queue that the processing\r\n on the task is complete.\r\n\r\n If a join() is currently blocking, it will resume w...
175
false
ionelmc/python-cogen
task_done
10,730
LDU_FT/ahwillia/tensortools/kruskal_align
LDU_FT
[ "<BEGIN>\n## `unfold`", "Returns the mode-`mode` unfolding of `tensor`.", " Parameters\n ----------\n tensor : ndarray\n mode : int", " Returns\n -------\n ndarray\n unfolded_tensor of shape ``(tensor.shape[mode], -1)``", " Author\n ------\n Jean Kossaifi <https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kruskal_align API. 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 kruskal_align API. 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...
Aligns two KTensors and returns a similarity score. Parameters ---------- U : KTensor First kruskal tensor to align. V : KTensor Second kruskal tensor to align. permute_U : bool If True, modifies 'U' to align the KTensors (default is False). permute_V : bool If T...
"Aligns two KTensors and returns a similarity score.\n\n Parameters\n ----------\n U : KTensor\n First kruskal tensor to align.\n V : KTensor\n Second kruskal tensor to align.\n permute_U : bool\n If True, modifies 'U' to align the KTensors (default is False).\n permute_V : bool\n...
158
false
ahwillia/tensortools
kruskal_align
10,731
LDU_FT/zeth/inputs/mac_keyboard_process
LDU_FT
[ "<BEGIN>\n## `chunks`", "Yield successive EVENT_SIZE sized chunks from raw.\n<END>", "<BEGIN>\n## `quartz_mouse_process`", "Single subprocess for reading mouse events on Mac using newer Quartz.\n<END>", "<BEGIN>\n## `appkit_mouse_process`", "Single subprocess for reading mouse events on Mac using older Ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mac_keyboard_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mac_keyboard_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Single subprocesses for reading keyboard on Mac.
"Single subprocesses for reading keyboard on Mac."
109
false
zeth/inputs
mac_keyboard_process
10,732
LDU_FT/kavdev/ldap-groups/child
LDU_FT
[ "<BEGIN>\n## `_get_valididty`", "Determines whether this AD Group is valid.\r", " :returns: True and \"\" if this group is valid or False and a string description\r\n with the reason why it isn't valid otherwise.\n<END>", "<BEGIN>\n## `get_attribute`", "Gets the passed attribute of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the child API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the child API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns the child ad group that matches the provided group_name or none if the child does not exist. :param group_name: The name of the child group. NOTE: A name does not contain 'CN=' or 'OU=' :type group_name: str :param page_size (optional): Many servers have a limit on the number of res...
"Returns the child ad group that matches the provided group_name or none if the child does not exist.\r\n\r\n :param group_name: The name of the child group. NOTE: A name does not contain 'CN=' or 'OU='\r\n :type group_name: str\r\n :param page_size (optional): Many servers have a limit on the numb...
59
false
kavdev/ldap-groups
child
10,733
LDU_FT/scivision/histutils/sixteen2eight
LDU_FT
[ "<BEGIN>\n## `cp_parents`", "This function requires Python >= 3.6.", " This acts like bash cp --parents in Python\n inspiration from\n http://stackoverflow.com/questions/15329223/copy-a-file-into-a-directory-with-its-original-leading-directories-appended", " example\n source: /tmp/e/f\n dest...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sixteen2eight API. 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 sixteen2eight API. 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...
scipy.misc.bytescale had bugs inputs: ------ I: 2-D Numpy array of grayscale image data Clim: length 2 of tuple or numpy 1-D array specifying lowest and highest expected values in grayscale image Michael Hirsch, Ph.D.
"scipy.misc.bytescale had bugs\n\n inputs:\n ------\n I: 2-D Numpy array of grayscale image data\n Clim: length 2 of tuple or numpy 1-D array specifying lowest and highest expected values in grayscale image\n Michael Hirsch, Ph.D."
58
false
scivision/histutils
sixteen2eight
10,734
LDU_FT/ThomasChiroux/attowiki/produce_pdf
LDU_FT
[ "<BEGIN>\n## `_delta_dir`", "returns the relative path of the current directory to the git\n repository.\n This path will be added the 'filename' path to find the file.\n It current_dir is the git root, this function returns an empty string.", " Keyword Arguments:\n <none>", " Returns:\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the produce_pdf API. 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 produce_pdf API. 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...
produce a pdf content based of a given rst content If filename is given, it will store the result using the given filename if no filename is given, it will generate a pdf in /tmp/ with a random name
"produce a pdf content based of a given rst content\n\n If filename is given, it will store the result using the given filename\n if no filename is given, it will generate a pdf in /tmp/ with a random\n name"
102
false
ThomasChiroux/attowiki
produce_pdf
10,735
LDU_FT/MakersF/LoLScraper/store
LDU_FT
[ "<BEGIN>\n## `slice_time`", ":param begin: datetime\n :param end: datetime\n :param duration: timedelta\n :return: a generator for a set of timeslices of the given duration\n<END>", "<BEGIN>\n## `store`", "Writes text to the underlying Store mapped at tier. If the store doesn't exists, yet, it create...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store API. 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 store API. 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...
Writes text to the underlying Store mapped at tier. If the store doesn't exists, yet, it creates it :param text: the text to write :param tier: the tier used to identify the store :return:
"Writes text to the underlying Store mapped at tier. If the store doesn't exists, yet, it creates it\n :param text: the text to write\n :param tier: the tier used to identify the store\n :return:"
18
false
MakersF/LoLScraper
store
10,736
LDU_FT/xgfs/NetLSD/eigenvalues_auto
LDU_FT
[ "<BEGIN>\n## `check_1d`", "Check input to be a vector. Converts lists to np.ndarray.", " Parameters\n ----------\n inp : obj\n Input vector", " Returns\n -------\n numpy.ndarray or None\n Input vector or None", " Examples\n --------\n >>> check_1d([0, 1, 2, 3])\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eigenvalues_auto API. 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 eigenvalues_auto API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Automatically computes the spectrum of a given Laplacian matrix. Parameters ---------- mat : numpy.ndarray or scipy.sparse Laplacian matrix n_eivals : string or int or tuple Number of eigenvalues to compute / use for approximation. If string, we expect either 'full' or 'auto...
"Automatically computes the spectrum of a given Laplacian matrix.\n \n Parameters\n ----------\n mat : numpy.ndarray or scipy.sparse\n Laplacian matrix\n n_eivals : string or int or tuple\n Number of eigenvalues to compute / use for approximation.\n If string, we expect either 'full'...
63
false
xgfs/NetLSD
eigenvalues_auto
10,737
LDU_FT/michaelpb/omnic/run_multiconvert
LDU_FT
[ "<BEGIN>\n## `use_settings`", "Context manager to temporarily override settings\n<END>", "<BEGIN>\n## `parse_string`", "Parses a foreign resource URL into the URL string itself and any\n relevant args and kwargs\n<END>", "<BEGIN>\n## `apply_command_list_template`", "Perform necessary substitutions ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_multiconvert API. 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 run_multiconvert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Enqueues in succession all conversions steps necessary to take the given URL and convert it to to_type, storing the result in the cache
"Enqueues in succession all conversions steps necessary to take the\n given URL and convert it to to_type, storing the result in the cache"
111
false
michaelpb/omnic
run_multiconvert
10,738
LDU_FT/google/importlab/collect_files
LDU_FT
[ "<BEGIN>\n## `convert_to_path`", "Converts \".module\" to \"./module\", \"..module\" to \"../module\", etc.\n<END>", "<BEGIN>\n## `infer_module_name`", "Convert a python filename to a module relative to pythonpath.\n<END>", "<BEGIN>\n## `get_absolute_name`", "Joins a package name and a relative name.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Collect all the files with extension in a directory tree.
"Collect all the files with extension in a directory tree."
65
false
google/importlab
collect_files
10,739
LDU_FT/tapilab/brandelion/read_follower_file
LDU_FT
[ "<BEGIN>\n## `parse_json`", "Yield screen_name, text tuples from a json file.\n<END>", "<BEGIN>\n## `extract_tweets`", "Yield screen_name, string tuples, where the string is the\n concatenation of all tweets of this user.\n<END>", "<BEGIN>\n## `preprocess`", ">>> preprocess('#hi there http://www.foo.co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_follower_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_follower_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. Th...
Read a file of follower information and return a dictionary mapping screen_name to a set of follower ids.
"Read a file of follower information and return a dictionary mapping screen_name to a set of follower ids."
47
false
tapilab/brandelion
read_follower_file
10,740
LDU_FT/kyegupov/py-unrar2/DosDateTimeToTimeTuple
LDU_FT
[ "<BEGIN>\n## `DosDateTimeToTimeTuple`", "Convert an MS-DOS format date time to a Python time tuple.\n<END>", "<BEGIN>\n## `call_unrar`", "Calls rar/unrar command line executable, returns stdout pipe\n<END>", "<BEGIN>\n## `condition2checker`", "Converts different condition types to callback\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DosDateTimeToTimeTuple 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 DosDateTimeToTimeTuple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Convert an MS-DOS format date time to a Python time tuple.
"Convert an MS-DOS format date time to a Python time tuple."
14
false
kyegupov/py-unrar2
DosDateTimeToTimeTuple
10,741
LDU_FT/DataKitchen/DKCloudCommand/create_order
LDU_FT
[ "<BEGIN>\n## `is_same`", "Compare two directory trees content.\n Return False if they differ, True is they are the same.\n :param dir2:\n :param dir1:\n<END>", "<BEGIN>\n## `phase3`", "Find out differences between common files.\n Ensure we are using content comparison with shallow=False.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_order API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_order API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Full graph '/v2/order/create/<string:kitchenname>/<string:recipename>/<string:variationname>', methods=['PUT'] Single node '/v2/order/create/onenode/<string:kitchenname>/<string:recipename>/<string:variationname>/<string:nodename', methods=['PUT']
"Full graph\n '/v2/order/create/<string:kitchenname>/<string:recipename>/<string:variationname>',\n methods=['PUT']\n\n Single node\n '/v2/order/create/onenode/<string:kitchenname>/<string:recipename>/<string:variationname>/<string:nodename',\n methods=['PUT']"
70
false
DataKitchen/DKCloudCommand
create_order
10,742
LDU_FT/SoCo/SoCo/event_vars
LDU_FT
[ "<BEGIN>\n## `_post`", "Try 3 times to request the content.", " :param headers: The HTTP headers\n :type headers: dict\n :param body: The body of the HTTP post\n :type body: str\n :param retries: The number of times to retry before giving up\n :type retries: int\n :param timeout: The time t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_vars API. 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 event_vars API. 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...
The service's eventable variables. Returns: list(tuple): A list of (variable name, data type) tuples.
"The service's eventable variables.\n\n Returns:\n list(tuple): A list of (variable name, data type) tuples."
663
false
SoCo/SoCo
event_vars
10,743
LDU_FT/doconix/django-mako-plus/get_cache_item
LDU_FT
[ "<BEGIN>\n## `run_command`", "Runs a command, piping all output to the DMP log.\n The args should be separate arguments so paths and subcommands can have spaces in them:", " ret = run_command('ls', '-l', '/Users/me/My Documents')\n print(ret.code)\n print(ret.stdout)\n print(ret.s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cache_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cache_item API. 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...
Gets the cached item. Raises AttributeError if it hasn't been set.
"Gets the cached item. Raises AttributeError if it hasn't been set."
207
false
doconix/django-mako-plus
get_cache_item
10,744
LDU_FT/aeguana/PyFileMaker/getLayoutNames
LDU_FT
[ "<BEGIN>\n## `key_dict`", "Returns dict from_dict['unicode_save_field'] = 'original key with unicode'\n<END>", "<BEGIN>\n## `makeFMData`", "Returns FMData structure which is initialized by given dictionary\n<END>", "<BEGIN>\n## `_setMaxRecords`", "Specifies the maximum number of records you want returned ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getLayoutNames API. 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 getLayoutNames API. 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...
This function returns the list of layouts for the current db.
"This function returns the list of layouts for the current db."
52
false
aeguana/PyFileMaker
getLayoutNames
10,745
LDU_FT/edeposit/edeposit.amqp.harvester/_parse_price
LDU_FT
[ "<BEGIN>\n## `save_cache`", "Save cahce to the disk.", " Args:\n cache (set): Set with cached data.\n<END>", "<BEGIN>\n## `load_cache`", "Load cache from the disk.", " Return:\n set: Deserialized data from disk.\n<END>", "<BEGIN>\n## `filter_publication`", "Deduplication function, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_price API. 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 _parse_price API. 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...
Parse price of the book. Args: html_chunk (obj): HTMLElement containing slice of the page with details. Returns: str/None: Price as string with currency or None if not found.
"Parse price of the book.\n\n Args:\n html_chunk (obj): HTMLElement containing slice of the page with details.\n\n Returns:\n str/None: Price as string with currency or None if not found."
303
false
edeposit/edeposit.amqp.harvester
_parse_price
10,746
LDU_FT/synw/dataswim/limit_
LDU_FT
[ "<BEGIN>\n## `ndlayout_`", "Create a Holoview NdLayout from a dictionnary of chart objects\n<END>", "<BEGIN>\n## `layout_`", "Returns a Holoview Layout from chart objects\n<END>", "<BEGIN>\n## `_hline_bokeh_`", "Returns an horizontal line from a column mean value\n<END>", "<BEGIN>\n## `_sline_bokeh`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the limit_ API. 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 limit_ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns a DataSwim instance with limited selection
"Returns a DataSwim instance with limited selection"
393
false
synw/dataswim
limit_
10,747
LDU_FT/divio/aldryn-apphooks-config/get_fieldsets
LDU_FT
[ "<BEGIN>\n## `namespace`", "Filter by namespace. Try to guess which field to use in lookup.\n Accept 'to' argument if you need to specify.\n<END>", "<BEGIN>\n## `_app_config_select`", "Return the select value for apphook configs", " :param request: request object\n :param obj: current o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fieldsets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fieldsets API. 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...
If the apphook config must be selected first, returns a fieldset with just the app config field and help text :param request: :param obj: :return:
"If the apphook config must be selected first, returns a fieldset with just the\n app config field and help text\n :param request:\n :param obj:\n :return:"
39
false
divio/aldryn-apphooks-config
get_fieldsets
10,748
LDU_FT/kaste/mockito-python/spy2
LDU_FT
[ "<BEGIN>\n## `verify`", "Central interface to verify interactions.", " `verify` uses a fluent interface::", " verify(<obj>, times=2).<method_name>(<args>)", " `args` can be as concrete as necessary. Often a catch-all is enough,\n especially if you're working with strict mocks, bc they throw ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spy2 API. 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 spy2 API. 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...
Spy usage of given `fn`. Patches the module, class or object `fn` lives in, so that all interactions can be recorded; otherwise executes `fn` as before, so that all side effects happen as before. E.g.:: import time spy(time.time) do_work(...) # nothing injected, uses global p...
"Spy usage of given `fn`.\n\n Patches the module, class or object `fn` lives in, so that all\n interactions can be recorded; otherwise executes `fn` as before, so\n that all side effects happen as before.\n\n E.g.::\n\n import time\n spy(time.time)\n do_work(...) # nothing injected, us...
106
false
kaste/mockito-python
spy2
10,749
LDU_FT/openpaperwork/paperwork-backend/split_words
LDU_FT
[ "<BEGIN>\n## `examine_rootdir`", "Examine the rootdir.\n Calls on_new_doc(doc), on_doc_modified(doc), on_doc_deleted(docid)\n every time a new, modified, or deleted document is found\n<END>", "<BEGIN>\n## `reload_index`", "Read the index, and load the document list from it", " Arguments...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_words API. 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 split_words API. 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...
Extract and yield the keywords from the sentence: - Drop keywords that are too short (keep_shorts=False) - Drop the accents (modify=True) - Make everything lower case (modify=True) - Try to separate the words as much as possible (using 2 list of separators, one being more complete than the others)
"Extract and yield the keywords from the sentence:\n - Drop keywords that are too short (keep_shorts=False)\n - Drop the accents (modify=True)\n - Make everything lower case (modify=True)\n - Try to separate the words as much as possible (using 2 list of\n separators, one being more complete than the o...
171
false
openpaperwork/paperwork-backend
split_words
10,750
LDU_FT/pyrapt/rapt/create_binary_node
LDU_FT
[ "<BEGIN>\n## `get_attribute_references`", "Return a list of attribute references in the condition expression.", " attribute_reference ::= relation_name \".\" attribute_name | attribute_name", " :param instring: a condition expression.\n :return: a list of attribute references.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_binary_node 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 create_binary_node 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...
Return a Node whose type depends on the specified operator. :param operator: A relational algebra operator (see constants.py) :return: A Node.
"Return a Node whose type depends on the specified operator.\n\n :param operator: A relational algebra operator (see constants.py)\n :return: A Node."
86
false
pyrapt/rapt
create_binary_node
10,751
LDU_FT/Tenchi2xh/Almonds/compute_capture
LDU_FT
[ "<BEGIN>\n## `extrema`", "Returns the minimum and maximum values contained in a given area.", " :param x0: Starting x index.\n :param y0: Starting y index.\n :param w: Width of the area to scan.\n :param h: Height of the area to scan.\n :return: Tuple containing the minimu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_capture API. 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 compute_capture API. 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...
Callable function for the multiprocessing pool.
"Callable function for the multiprocessing pool."
79
false
Tenchi2xh/Almonds
compute_capture
10,752
LDU_FT/TheOneHyer/arandomness/autocorrect
LDU_FT
[ "<BEGIN>\n## `add_children`", "Adds new children nodes after filtering for duplicates", " Args:\n children (list): list of OmniTree nodes to add as children\n<END>", "<BEGIN>\n## `add_parents`", "Adds new parent nodes after filtering for duplicates", " Args:\n parents (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autocorrect API. 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 autocorrect API. 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...
Attempts to figure out what possibility the query is This autocorrect function is rather simple right now with plans for later improvement. Right now, it just attempts to finish spelling a word as much as possible, and then determines which possibility is closest to said word. Args: query (un...
"Attempts to figure out what possibility the query is\n\n This autocorrect function is rather simple right now with plans for later\n improvement. Right now, it just attempts to finish spelling a word as much\n as possible, and then determines which possibility is closest to said word.\n\n Args:\n\n ...
41
false
TheOneHyer/arandomness
autocorrect
10,753
LDU_FT/edx/edx-oauth2-provider/userinfo
LDU_FT
[ "<BEGIN>\n## `_clean_required_args`", "Validate and clean the command's arguments.", " Arguments:\n url (str): Client's application URL.\n redirect_uri (str): Client application's OAuth2 callback URI.\n client_type (str): Client's type, indicating whether the Client appli...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the userinfo API. 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 userinfo API. 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 data required for an OpenID Connect UserInfo response, according to: http://openid.net/specs/openid-connect-basic-1_0.html#UserInfoResponse Supports scope and claims request parameter as described in: - http://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims - http://openid.net/specs...
"Returns data required for an OpenID Connect UserInfo response, according to:\n\n http://openid.net/specs/openid-connect-basic-1_0.html#UserInfoResponse\n\n Supports scope and claims request parameter as described in:\n\n - http://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims\n - http://openid.n...
56
false
edx/edx-oauth2-provider
userinfo
10,754
LDU_FT/PrefPy/prefpy/top2_reduced
LDU_FT
[ "<BEGIN>\n## `mse`", "Description:\r\n Calculates the Mean Squared Error (MSE) of\r\n an estimation on flat numpy ndarrays.\r\n Parameters:\r\n mean: actual value (numpy ndarray)\r\n estimator: estimated value of the mean (numpy ndarray)\n<END>", "<BEGIN>\n## `sse`", "Descr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the top2_reduced API. 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 top2_reduced API. 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...
Description: Top 2 alternatives 12 moment conditions values calculation Parameters: votes: ordinal preference data (numpy ndarray of integers)
"Description:\n Top 2 alternatives 12 moment conditions values calculation\n Parameters:\n votes: ordinal preference data (numpy ndarray of integers)"
316
false
PrefPy/prefpy
top2_reduced
10,755
LDU_FT/openid/JWTConnect-Python-OidcMsg/in_a_while
LDU_FT
[ "<BEGIN>\n## `make_openid_request`", "Construct the JWT to be passed by value (the request parameter) or by\n reference (request_uri).\n The request will be signed", " :param arq: The Authorization request\n :param keys: Keys to use for signing/encrypting. A KeyJar instance\n :param issuer: Who i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_a_while API. 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 in_a_while API. 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...
:param days: :param seconds: :param microseconds: :param milliseconds: :param minutes: :param hours: :param weeks: :param time_format: :return: Formatet string
":param days:\n :param seconds:\n :param microseconds:\n :param milliseconds:\n :param minutes:\n :param hours:\n :param weeks:\n :param time_format:\n :return: Formatet string"
75
false
openid/JWTConnect-Python-OidcMsg
in_a_while
10,756
LDU_FT/doakey3/DashTable/left_sections
LDU_FT
[ "<BEGIN>\n## `check_table`", "Ensure the table is valid for converting to grid table.", " * The table must a list of lists\n * Each row must contain the same number of columns\n * The table must not be empty", " Parameters\n ----------\n table : list of lists of str\n The list of rows...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the left_sections API. 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 left_sections API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
The number of sections that touch the left side. During merging, the cell's text will grow to include other cells. This property keeps track of the number of sections that are touching the left side. For example:: +-----+-----+ section --> | foo | dog | <-- ...
"The number of sections that touch the left side.\n\n During merging, the cell's text will grow to include other\n cells. This property keeps track of the number of sections that\n are touching the left side. For example::\n\n +-----+-----+\n section --> | foo | do...
230
false
doakey3/DashTable
left_sections
10,757
LDU_FT/delicb/mvvm/emit
LDU_FT
[ "<BEGIN>\n## `instance`", "Returns existing instance of messenger. If one does not exist it will\n be created and returned.", " :param int interval:\n Number of miliseconds that represents interval when messages will\n be processed.\n Note that this parameter will ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Emits this signal. As result, all handlers will be invoked.
"Emits this signal. As result, all handlers will be invoked."
21
false
delicb/mvvm
emit
10,758
LDU_FT/dingusdk/PythonIhcSdk/wait_for_resource_value_changes
LDU_FT
[ "<BEGIN>\n## `authenticate`", "Authenticate and enable the registered notifications\n<END>", "<BEGIN>\n## `get_runtime_value`", "Get runtime value with re-authenticate if needed\n<END>", "<BEGIN>\n## `set_runtime_value_bool`", "Set bool runtime value with re-authenticate if needed\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_resource_value_changes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_resource_value_changes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Long polling for changes and return a dictionary with resource:value for changes
"Long polling for changes and return a dictionary with resource:value\n for changes"
28
false
dingusdk/PythonIhcSdk
wait_for_resource_value_changes
10,759
LDU_FT/python-useful-helpers/threaded/_get_function_wrapper
LDU_FT
[ "<BEGIN>\n## `build_extension`", "build_extension.", " :raises BuildFailed: cythonize impossible\n<END>", "<BEGIN>\n## `_func`", "Get wrapped function.", " :rtype: typing.Optional[typing.Callable[..., typing.Union[typing.Awaitable, typing.Any]]]\n<END>", "<BEGIN>\n## `_get_function_wrapper...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_function_wrapper 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_function_wrapper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Here should be constructed and returned real decorator. :param func: Wrapped function :type func: typing.Callable[..., typing.Awaitable] :return: wrapper, which will produce asyncio.Task on call with function called inside it :rtype: typing.Callable[..., asyncio.Task]
"Here should be constructed and returned real decorator.\n\n :param func: Wrapped function\n :type func: typing.Callable[..., typing.Awaitable]\n :return: wrapper, which will produce asyncio.Task on call with function called inside it\n :rtype: typing.Callable[..., asyncio.Task]"
42
false
python-useful-helpers/threaded
_get_function_wrapper
10,760
LDU_FT/alexmojaki/littleutils/helpful_error_list_get
LDU_FT
[ "<BEGIN>\n## `helpful_error_list_get`", ">>> helpful_error_list_get([1, 2, 3], 1)\n 2\n >>> helpful_error_list_get([1, 2, 3], 4)\n Traceback (most recent call last):\n ...\n IndexError: Tried to access 4, length is only 3\n<END>", "<BEGIN>\n## `only`", ">>> only([7])\n 7\n >>> only([1, 2]...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the helpful_error_list_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the helpful_error_list_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....
>>> helpful_error_list_get([1, 2, 3], 1) 2 >>> helpful_error_list_get([1, 2, 3], 4) Traceback (most recent call last): ... IndexError: Tried to access 4, length is only 3
">>> helpful_error_list_get([1, 2, 3], 1)\n 2\n >>> helpful_error_list_get([1, 2, 3], 4)\n Traceback (most recent call last):\n ...\n IndexError: Tried to access 4, length is only 3"
34
false
alexmojaki/littleutils
helpful_error_list_get
10,761
LDU_FT/minrk/wurlitzer/_decode
LDU_FT
[ "<BEGIN>\n## `pipes`", "Capture C-level stdout/stderr in a context manager.", " The return value for the context manager is (stdout, stderr).", " Examples\n --------", " >>> with capture() as (stdout, stderr):\n ... printf(\"C-level stdout\")\n ... output = stdout.read()\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Decode data, if any Called before passing to stdout/stderr streams
"Decode data, if any\n \n Called before passing to stdout/stderr streams"
23
false
minrk/wurlitzer
_decode
10,762
LDU_FT/jantman/awslimitchecker/_update_limits_from_api
LDU_FT
[ "<BEGIN>\n## `_last_step`", "If ``self._savepath`` doesn't exist, can't be read as JSON, or doesn't\n match ``VERSION``, return 0. Otherwise, return the step which that file\n lists as the last-run step for this release.", " :return: last-run step from the release or 0\n :rtype: int\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_limits_from_api 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 _update_limits_from_api API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Call :py:meth:`~.connect` and then check what region we're running in; adjust default limits as required for regions that differ (us-east-1).
"Call :py:meth:`~.connect` and then check what region we're running in;\n adjust default limits as required for regions that differ (us-east-1)."
372
false
jantman/awslimitchecker
_update_limits_from_api
10,763
LDU_FT/iskandr/knnimpute/knn_initialize
LDU_FT
[ "<BEGIN>\n## `knn_impute_few_observed`", "Seems to be the fastest kNN implementation. Pre-sorts each rows neighbors\n and then filters these sorted indices using each columns mask of\n observed values.", " Important detail: If k observed values are not available then uses fewer\n than k neighboring ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the knn_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the knn_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 ex...
Fill X with NaN values if necessary, construct the n_samples x n_samples distance matrix and set the self-distance of each row to infinity. Returns contents of X laid out in row-major, the distance matrix, and an "effective infinity" which is larger than any entry of the distance matrix.
"Fill X with NaN values if necessary, construct the n_samples x n_samples\n distance matrix and set the self-distance of each row to infinity.\n\n Returns contents of X laid out in row-major, the distance matrix,\n and an \"effective infinity\" which is larger than any entry of the\n distance matrix."
35
false
iskandr/knnimpute
knn_initialize
10,764
LDU_FT/vmware/pyvmomi/ParseISO8601
LDU_FT
[ "<BEGIN>\n## `_AddType`", "Note: Must be holding the _lazyLock, or in main init path\n<END>", "<BEGIN>\n## `GetServiceVersions`", "Get all the versions for the service with specified namespace (partially) ordered\n by compatibility (i.e. any version in the list that is compatible with some version\n v in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ParseISO8601 API. 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 ParseISO8601 API. 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...
Parse ISO 8601 date time from string. Returns datetime if ok, None otherwise Note: Allows YYYY / YYYY-MM, but truncate YYYY -> YYYY-01-01, YYYY-MM -> YYYY-MM-01 Truncate microsecond to most significant 6 digits
"Parse ISO 8601 date time from string.\n Returns datetime if ok, None otherwise\n Note: Allows YYYY / YYYY-MM, but truncate YYYY -> YYYY-01-01,\n YYYY-MM -> YYYY-MM-01\n Truncate microsecond to most significant 6 digits"
128
false
vmware/pyvmomi
ParseISO8601
10,765
LDU_FT/relekang/python-semantic-release/get_current_version_by_config_file
LDU_FT
[ "<BEGIN>\n## `parse_commit_message`", "Parses a commit message according to the 1.0 version of python-semantic-release. It expects\n a tag of some sort in the commit message and will use the rest of the first line as changelog\n content.", " :param message: A string of a commit message.\n :raises Un...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_current_version_by_config_file 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 get_current_version_by_config_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Get current version from the version variable defined in the configuration :return: A string with the current version number :raises ImproperConfigurationError: if version variable cannot be parsed
"Get current version from the version variable defined in the configuration\n\n :return: A string with the current version number\n :raises ImproperConfigurationError: if version variable cannot be parsed"
103
false
relekang/python-semantic-release
get_current_version_by_config_file
10,766
LDU_FT/ianclegg/ntlmlib/get_lm_response
LDU_FT
[ "<BEGIN>\n## `wrap`", "NTM GSSwrap()\n :param message: The message to be encrypted\n :return: The signed and encrypted message\n<END>", "<BEGIN>\n## `unwrap`", "NTLM GSSUnwrap()\n :param message: The message to be encrypted\n :return: The signed and encrypted message\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lm_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lm_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 e...
Computes the 24 byte LMHash password hash given the 8 byte server challenge. :param challenge: The 8-byte challenge message generated by the server :return: The 24 byte LMHash
"Computes the 24 byte LMHash password hash given the 8 byte server challenge.\n :param challenge: The 8-byte challenge message generated by the server\n :return: The 24 byte LMHash"
43
false
ianclegg/ntlmlib
get_lm_response
10,767
LDU_FT/yakupadakli/python-unsplash/get
LDU_FT
[ "<BEGIN>\n## `all`", "Get a single page from the list of all photos.", " :param page [integer]: Page number to retrieve. (Optional; default: 1)\n :param per_page [integer]: Number of items per page. (Optional; default: 10)\n :param order_by [string]: How to sort the photos. Optional.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Retrieve public details on a given user. Note: Supplying the optional w or h parameters will result in the 'custom' photo URL being added to the 'profile_image' object: :param username [string]: The user’s username. Required. :param width [integer]: Profile image width in pixels. ...
"Retrieve public details on a given user.\n\n Note: Supplying the optional w or h parameters will result\n in the 'custom' photo URL being added to the 'profile_image' object:\n\n :param username [string]: The user’s username. Required.\n :param width [integer]: Profile image width in pixels...
107
false
yakupadakli/python-unsplash
get
10,768
LDU_FT/econ-ark/HARK/makeMarkovApproxToNormal
LDU_FT
[ "<BEGIN>\n## `calcLogSumChoiceProbs`", "Returns the final optimal value and choice probabilities given the choice\n specific value functions `Vals`. Probabilities are degenerate if sigma == 0.0.\n Parameters\n ----------\n Vals : [numpy.array]\n A numpy.array that holds choice specific values a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeMarkovApproxToNormal 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 makeMarkovApproxToNormal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Creates an approximation to a normal distribution with mean mu and standard deviation sigma, returning a stochastic vector called p_vec, corresponding to values in x_grid. If a RV is distributed x~N(mu,sigma), then the expectation of a continuous function f() is E[f(x)] = numpy.dot(p_vec,f(x_grid)). P...
"Creates an approximation to a normal distribution with mean mu and standard\n deviation sigma, returning a stochastic vector called p_vec, corresponding\n to values in x_grid. If a RV is distributed x~N(mu,sigma), then the expectation\n of a continuous function f() is E[f(x)] = numpy.dot(p_vec,f(x_grid)).\n\...
1,253
true
econ-ark/HARK
makeMarkovApproxToNormal
10,769
LDU_FT/bhmm/bhmm/forward
LDU_FT
[ "<BEGIN>\n## `_forward_backward`", "Estimation step: Runs the forward-back algorithm on trajectory with index itraj", " Parameters\n ----------\n itraj : int\n index of the observation trajectory to process", " Results\n -------\n logprob : float\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forward API. 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 forward API. 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...
Compute P( obs | A, B, pi ) and all forward coefficients. Parameters ---------- A : ndarray((N,N), dtype = float) transition matrix of the hidden states pobs : ndarray((T,N), dtype = float) pobs[t,i] is the observation probability for observation at time t given hidden state i pi : ...
"Compute P( obs | A, B, pi ) and all forward coefficients.\n\n Parameters\n ----------\n A : ndarray((N,N), dtype = float)\n transition matrix of the hidden states\n pobs : ndarray((T,N), dtype = float)\n pobs[t,i] is the observation probability for observation at time t given hidden state i\n...
497
false
bhmm/bhmm
forward
10,770
LDU_FT/BD2KGenomics/protect/assess_car_t_validity
LDU_FT
[ "<BEGIN>\n## `generate_unique_key`", "This module will take a master key and a url, and then make a new key specific to the url, based\n off the master.\n :param str master_key: Path to the master key used for encryption.\n :param str url: Full URL to the potential file location in S3.\n :returns new_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assess_car_t_validity 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 assess_car_t_validity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
This function creates a report on the available clinical trials and scientific literature available for the overexpressed genes in the specified tumor type. It also gives a list of clinical trials available for other types of cancer with the same overexpressed gene. :param toil.fileStore.FileID gene_ex...
"This function creates a report on the available clinical trials and scientific literature\n available for the overexpressed genes in the specified tumor type.\n It also gives a list of clinical trials available for other types of cancer with the same\n overexpressed gene.\n\n :param toil.fileStore.FileID g...
510
false
BD2KGenomics/protect
assess_car_t_validity
10,771
LDU_FT/yunpian/yunpian-python-sdk/count
LDU_FT
[ "<BEGIN>\n## `update_voice_notify`", "修改语音通知模版", " 注意:模板成功修改之后需要重新审核才能使用!同时提醒您如果修改了变量,务必重新测试,以免替换出错!\n 参数:\n 参数名 类型 是否必须 描述 示例\n apikey String 是 用户唯一标识 9b11127a9701975c734b8aee81ee3526\n tpl_id Long 是 模板id,64位长整形。指定id时返回id对应的模板。未指定时返回所有模板 95...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
统计短信条数 参数名 类型 是否必须 描述 示例 apikey String 是 用户唯一标识 9b11127a9701975c734b8aee81ee3526 start_time String 是 短信发送开始时间 2013-08-11 00:00:00 end_time String 是 短信发送结束时间 2013-08-12 00:00:00 mobile String 否 需要查询的手机号 15205201314 page_num Integer 否 页码,默认值为1 1 page_size I...
"统计短信条数\n \n 参数名 类型 是否必须 描述 示例\n apikey String 是 用户唯一标识 9b11127a9701975c734b8aee81ee3526\n start_time String 是 短信发送开始时间 2013-08-11 00:00:00\n end_time String 是 短信发送结束时间 2013-08-12 00:00:00\n mobile String 否 需要查询的手机号 15205201314\n page_num Integer 否 页码,默认值为1 1\n pa...
62
false
yunpian/yunpian-python-sdk
count
10,772