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/Equitable/trump/_init_datatable | LDU_FT | [
"<BEGIN>\n## `create`",
"Create, or get if exists, a Symbol.\r",
" Parameters\r\n ----------\r\n name : str\r\n A symbol's name is a primary key, used across\r\n the Trump ORM.\r\n description : str, optional\r\n An arbitrary string, used to store use... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_datatable API.
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 _init_datatable API.
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... | Instantiates the .datatable attribute, pointing to a table in the
database that stores all the cached data | "Instantiates the .datatable attribute, pointing to a table in the\r\n database that stores all the cached data" | 177 | false | Equitable/trump | _init_datatable | 6,473 | |
LDU_FT/buildinspace/peru/raises_gathered | LDU_FT | [
"<BEGIN>\n## `_find_plugin_dir`",
"Find the directory containing the plugin definition for the given type.\n Do this by searching all the paths where plugins can live for a dir that\n matches the type name.\n<END>",
"<BEGIN>\n## `_get_plugin_install_dirs`",
"Return all the places on the filesystem where... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raises_gathered API.
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 raises_gathered API.
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... | For use in tests. Many tests expect a single error to be thrown, and
want it to be of a specific type. This is a helper method for when that
type is inside a gathered exception. | "For use in tests. Many tests expect a single error to be thrown, and\n want it to be of a specific type. This is a helper method for when that\n type is inside a gathered exception." | 75 | false | buildinspace/peru | raises_gathered | 6,474 | |
LDU_FT/mangalam-research/selenic/ctrl_x | LDU_FT | [
"<BEGIN>\n## `sanitize_capabilities`",
"Sanitize the capabilities we pass to Selenic so that they can\n be consumed by Browserstack.",
" :param caps: The capabilities passed to Selenic. This dictionary\n is modified.",
" :returns: The sanitized capabilities.\n<END>",
"<BEGIN>\n## `locations_with... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ctrl_x API.
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 ctrl_x API.
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 ... | Sends a character to the currently active element with Ctrl
pressed. This method takes care of pressing and releasing
Ctrl. | "Sends a character to the currently active element with Ctrl\n pressed. This method takes care of pressing and releasing\n Ctrl." | 50 | false | mangalam-research/selenic | ctrl_x | 6,475 | |
LDU_FT/corpusops/pdbclone/do_quit | LDU_FT | [
"<BEGIN>\n## `parse_gdb_version`",
"r\"\"\"Parse the gdb version from the gdb header.",
" From GNU coding standards: the version starts after the last space of the\n first line.",
" >>> DOCTEST_GDB_VERSIONS = [\n ... r'~\"GNU gdb (GDB) 7.5.1\\n\"',\n ... r'~\"GNU gdb (Sourcery CodeBench Lite 20... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_quit API.
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 do_quit API.
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... | q(uit)\nexit
Quit from the debugger. The program being executed is aborted. | "q(uit)\\nexit\n Quit from the debugger. The program being executed is aborted." | 129 | false | corpusops/pdbclone | do_quit | 6,476 | |
LDU_FT/J535D165/recordlinkage/fscore | LDU_FT | [
"<BEGIN>\n## `_map_tril_1d_on_2d`",
"Map 1d indices on lower triangular matrix in 2d.\n<END>",
"<BEGIN>\n## `random_pairs_without_replacement_large_frames`",
"Make a sample of random pairs with replacement\n<END>",
"<BEGIN>\n## `clean`",
"Clean string variables.",
" Clean strings in the Series by rem... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fscore API.
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 fscore API.
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 ... | fscore(links_true, links_pred)
Compute the F-score.
The F-score is given by 2*(precision*recall)/(precision+recall).
Parameters
----------
links_true: pandas.MultiIndex, pandas.DataFrame, pandas.Series
The true (or actual) collection of links.
links_pred: pandas.MultiIndex, pandas.Dat... | "fscore(links_true, links_pred)\n\n Compute the F-score.\n\n The F-score is given by 2*(precision*recall)/(precision+recall).\n\n Parameters\n ----------\n links_true: pandas.MultiIndex, pandas.DataFrame, pandas.Series\n The true (or actual) collection of links.\n links_pred: pandas.MultiIndex,... | 339 | false | J535D165/recordlinkage | fscore | 6,477 | |
LDU_FT/pri22296/beautifultable/get_table_width | LDU_FT | [
"<BEGIN>\n## `wrap`",
"Returns a partition of the string based on `width`\n<END>",
"<BEGIN>\n## `max_table_width`",
"get/set the maximum width of the table.",
" The width of the table is guaranteed to not exceed this value. If it\n is not possible to print a given table with the width provided... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_table_width API.
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_table_width API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Get the width of the table as number of characters.
Column width should be set prior to calling this method.
Returns
-------
int
Width of the table as number of characters. | "Get the width of the table as number of characters.\n\n Column width should be set prior to calling this method.\n\n Returns\n -------\n int\n Width of the table as number of characters." | 96 | false | pri22296/beautifultable | get_table_width | 6,478 | |
LDU_FT/RedisJSON/rejson-py/jsonarrinsert | LDU_FT | [
"<BEGIN>\n## `bulk_of_jsons`",
"Replace serialized JSON values with objects in a bulk array response (list)\n<END>",
"<BEGIN>\n## `setEncoder`",
"Sets the client's encoder\n ``encoder`` should be an instance of a ``json.JSONEncoder`` class\n<END>",
"<BEGIN>\n## `setDecoder`",
"Sets the client's dec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsonarrinsert API.
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 jsonarrinsert API.
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... | Inserts the objects ``args`` to the array at index ``index`` under the
``path` in key ``name`` | "Inserts the objects ``args`` to the array at index ``index`` under the\n ``path` in key ``name``" | 43 | false | RedisJSON/rejson-py | jsonarrinsert | 6,479 | |
LDU_FT/Jaymon/endpoints/recv | LDU_FT | [
"<BEGIN>\n## `handle_target`",
"Only here to set self.request and get rid of it after",
" this will set self.request so the target method can access request using\n self.request, just like in the controller.\n<END>",
"<BEGIN>\n## `fetch`",
"wrapper method that all the top level methods (get, p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | this will receive data and convert it into a message, really this is more
of an internal method, it is used in recv_callback and recv_msg | "this will receive data and convert it into a message, really this is more\n of an internal method, it is used in recv_callback and recv_msg" | 215 | false | Jaymon/endpoints | recv | 6,480 | |
LDU_FT/log2timeline/dfdatetime/CreatePrecisionHelper | LDU_FT | [
"<BEGIN>\n## `_GetNormalizedTimestamp`",
"Retrieves the normalized timestamp.",
" Returns:\n decimal.Decimal: normalized timestamp, which contains the number of\n seconds since January 1, 1970 00:00:00 and a fraction of second used\n for increased precision, or None if the normalized t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CreatePrecisionHelper 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 CreatePrecisionHelper API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Creates a precision helper.
Args:
precision (str): precision of the date and time value, which should
be one of the PRECISION_VALUES in definitions.
Returns:
class: date time precision helper class.
Raises:
ValueError: if the precision value is unsupported. | "Creates a precision helper.\n\n Args:\n precision (str): precision of the date and time value, which should\n be one of the PRECISION_VALUES in definitions.\n\n Returns:\n class: date time precision helper class.\n\n Raises:\n ValueError: if the precision value is unsupported." | 244 | false | log2timeline/dfdatetime | CreatePrecisionHelper | 6,481 | |
LDU_FT/bukun/TorCMS/render_it | LDU_FT | [
"<BEGIN>\n## `view_or_add`",
"To judge if there is a post of the title.\n Then, to show, or to add.\n<END>",
"<BEGIN>\n## `gen_array_crud`",
"Return the dictionay of the switcher form XLXS file.\n if valud of the column of the row is `1`, it will be added to the array.\n<END>",
"<BEGIN>\n## `__ge... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_it API.
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 render_it API.
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... | Render without userinfo.
fun(kind, num)
fun(kind, num, with_tag = val1)
fun(kind, num, with_tag = val1, glyph = val2) | "Render without userinfo.\n fun(kind, num)\n fun(kind, num, with_tag = val1)\n fun(kind, num, with_tag = val1, glyph = val2)" | 189 | false | bukun/TorCMS | render_it | 6,482 | |
LDU_FT/nschloe/optimesh/_energy_uniform_per_node | LDU_FT | [
"<BEGIN>\n## `quasi_newton_uniform_lloyd`",
"Relaxed Lloyd's algorithm. omega=1 leads to Lloyd's algorithm, overrelaxation\n omega=2 gives good results. Check out",
" Xiao Xiao,\n Over-Relaxation Lloyd Method For Computing Centroidal Voronoi Tessellations,\n Master's thesis,\n <https://scholarcom... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _energy_uniform_per_node 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 _energy_uniform_per_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | The CPT mesh energy is defined as
sum_i E_i,
E_i = 1/(d+1) * sum int_{omega_i} ||x - x_i||^2 rho(x) dx,
see Chen-Holst. This method gives the E_i and assumes uniform density, rho(x) = 1. | "The CPT mesh energy is defined as\n\n sum_i E_i,\n E_i = 1/(d+1) * sum int_{omega_i} ||x - x_i||^2 rho(x) dx,\n\n see Chen-Holst. This method gives the E_i and assumes uniform density, rho(x) = 1." | 53 | false | nschloe/optimesh | _energy_uniform_per_node | 6,483 | |
LDU_FT/thefab/tornadis/_close_callback | LDU_FT | [
"<BEGIN>\n## `pubsub_pop_message`",
"Pops a message for a subscribed client.",
" Args:\n deadline (int): max number of seconds to wait (None => no timeout)",
" Returns:\n Future with the popped message as result (or None if timeout\n or ConnectionError object... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _close_callback API.
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 _close_callback API.
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... | Callback called when redis closed the connection.
The callback queue is emptied and we call each callback found
with None or with an exception object to wake up blocked client. | "Callback called when redis closed the connection.\n\n The callback queue is emptied and we call each callback found\n with None or with an exception object to wake up blocked client." | 89 | false | thefab/tornadis | _close_callback | 6,484 | |
LDU_FT/dpgaspar/Flask-AppBuilder/babel_extract | LDU_FT | [
"<BEGIN>\n## `dict_to_json`",
"Converts a list of dicts from datamodel query results\n to google chart json data.",
" :param xcol:\n The name of a string column to be used has X axis on chart\n :param ycols:\n A list with the names of series cols, that can be used as n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the babel_extract API.
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 babel_extract API.
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... | Babel, Extracts and updates all messages marked for translation | "Babel, Extracts and updates all messages marked for translation" | 393 | false | dpgaspar/Flask-AppBuilder | babel_extract | 6,485 | |
LDU_FT/ryanpetrello/python-zombie/wait | LDU_FT | [
"<BEGIN>\n## `_send`",
"Establishes a socket connection to the zombie.js server and sends\n Javascript instructions.",
" :param js: the Javascript string to execute\n<END>",
"<BEGIN>\n## `wait`",
"Call a method on the zombie.js Browser instance and wait on a callback.",
" :param metho... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait API.
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 wait API.
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... | Call a method on the zombie.js Browser instance and wait on a callback.
:param method: the method to call, e.g., html()
:param args: one of more arguments for the method | "Call a method on the zombie.js Browser instance and wait on a callback.\n\n :param method: the method to call, e.g., html()\n :param args: one of more arguments for the method" | 33 | false | ryanpetrello/python-zombie | wait | 6,486 | |
LDU_FT/inonit/drf-haystack/get_objects | LDU_FT | [
"<BEGIN>\n## `download_setuptools`",
"Download distribute from a specified location and return its filename",
" `version` should be a valid distribute version number that is available\n as an egg for download under the `download_base` URL (which should end\n with a '/'). `to_dir` is the directory where... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_objects API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_objects API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return a list of objects matching the faceted result. | "Return a list of objects matching the faceted result." | 77 | false | inonit/drf-haystack | get_objects | 6,487 | |
LDU_FT/jsvine/spectra/RgbToYiq | LDU_FT | [
"<BEGIN>\n## `cmyk`",
"Create a spectra.Color object in the CMYK color space.",
" :param float c: c coordinate.\n :param float m: m coordinate.\n :param float y: y coordinate.\n :param float k: k coordinate.",
" :rtype: Color\n :returns: A spectra.Color object in the CMYK color space.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the RgbToYiq API.
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 RgbToYiq API.
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... | Convert the color from RGB to YIQ.
Parameters:
:r:
The Red component value [0...1]
:g:
The Green component value [0...1]
:b:
The Blue component value [0...1]
Returns:
The color as an (y, i, q) tuple in the range:
y[0...1],
i[0...1],
q[0...1]
... | "Convert the color from RGB to YIQ.\n\n Parameters:\n :r:\n The Red component value [0...1]\n :g:\n The Green component value [0...1]\n :b:\n The Blue component value [0...1]\n\n Returns:\n The color as an (y, i, q) tuple in the range:\n y[0...1],\n i[0...1],\n ... | 265 | false | jsvine/spectra | RgbToYiq | 6,488 | |
LDU_FT/JoelBender/bacpypes/dict_contents | LDU_FT | [
"<BEGIN>\n## `decode_packet`",
"decode the data, return some kind of PDU.\n<END>",
"<BEGIN>\n## `decode_file`",
"Given the name of a pcap file, open it, decode the contents and yield each packet.\n<END>",
"<BEGIN>\n## `stop`",
"Call to stop running, may be called with a signum and frame\n parameter if ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_contents API.
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 dict_contents API.
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... | Return the contents of an object as a dict. | "Return the contents of an object as a dict." | 376 | false | JoelBender/bacpypes | dict_contents | 6,489 | |
LDU_FT/craffel/mir_eval/validate_hier_intervals | LDU_FT | [
"<BEGIN>\n## `_open`",
"Either open a file handle, or use an existing file-like object.",
" This will behave as the `open` function if `file_or_str` is a string.",
" If `file_or_str` has the `read` attribute, it will return `file_or_str`.",
" Otherwise, an `IOError` is raised.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_hier_intervals API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_hier_intervals API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Validate a hierarchical segment annotation.
Parameters
----------
intervals_hier : ordered list of segmentations
Raises
------
ValueError
If any segmentation does not span the full duration of the top-level
segmentation.
If any segmentation does not start at 0. | "Validate a hierarchical segment annotation.\n\n Parameters\n ----------\n intervals_hier : ordered list of segmentations\n\n Raises\n ------\n ValueError\n If any segmentation does not span the full duration of the top-level\n segmentation.\n\n If any segmentation does not start ... | 1,001 | false | craffel/mir_eval | validate_hier_intervals | 6,490 | |
LDU_FT/Alignak-monitoring/alignak/disable_contact_host_notifications | LDU_FT | [
"<BEGIN>\n## `is_active`",
"Know if this result modulation is active now",
" :return: True is we are in the period, otherwise False\n :rtype: bool\n<END>",
"<BEGIN>\n## `module_return`",
"Module the exit code if necessary ::",
" * modulation_period is legit\n * exit_code_modula... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disable_contact_host_notifications 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 disable_contact_host_notifications API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | Disable host notifications for a contact
Format of the line that triggers function call::
DISABLE_CONTACT_HOST_NOTIFICATIONS;<contact_name>
:param contact: contact to disable
:type contact: alignak.objects.contact.Contact
:return: None | "Disable host notifications for a contact\n Format of the line that triggers function call::\n\n DISABLE_CONTACT_HOST_NOTIFICATIONS;<contact_name>\n\n :param contact: contact to disable\n :type contact: alignak.objects.contact.Contact\n :return: None" | 3,377 | true | Alignak-monitoring/alignak | disable_contact_host_notifications | 6,491 | |
LDU_FT/marrow/cinje/gather | LDU_FT | [
"<BEGIN>\n## `match`",
"Match lines prefixed with a hash (\"#\") mark that don't look like text.\n<END>",
"<BEGIN>\n## `stream`",
"Safely iterate a template generator, ignoring ``None`` values and optionally stream encoding.",
"\tUsed internally by ``cinje.flatten``, this allows for easy use of a template g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gather API.
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 gather API.
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 ... | Collect contiguous lines of text, preserving line numbers. | "Collect contiguous lines of text, preserving line numbers." | 66 | false | marrow/cinje | gather | 6,492 | |
LDU_FT/astooke/gtimer/compare | LDU_FT | [
"<BEGIN>\n## `start`",
"Mark the start of timing, overwriting the automatic start data written on\n import, or the automatic start at the beginning of a subdivision.",
" Notes:\n Backdating: For subdivisions only. Backdate time must be in the past\n but more recent than the latest stamp in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted... | Produce a formatted comparison of timing datas.
Notes:
If no times_list is provided, produces comparison reports on all parallel
subdivisions present at the root level of the current timer. To compare
parallel subdivisions at a lower level, get the times data, navigate
within it to... | "Produce a formatted comparison of timing datas.\n\n Notes:\n If no times_list is provided, produces comparison reports on all parallel\n subdivisions present at the root level of the current timer. To compare\n parallel subdivisions at a lower level, get the times data, navigate\n withi... | 137 | false | astooke/gtimer | compare | 6,493 | |
LDU_FT/vertica/vertica-python/as_bytes | LDU_FT | [
"<BEGIN>\n## `__setkey`",
"Set up the key schedule from the encryption key.\n<END>",
"<BEGIN>\n## `date_parse`",
"Parses value of a DATE type.\n :param s: string to parse into date\n :return: an instance of datetime.date\n :raises NotSupportedError when a date Before Christ is encountered\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Converts either bytes or unicode to `bytes`, using utf-8 encoding for text.
Args:
bytes_or_text: A `bytes`, `str`, or `unicode` object.
encoding: A string indicating the charset for encoding unicode.
Returns:
A `bytes` object.
Raises:
TypeError: If `bytes_or_text` is not a binary or ... | "Converts either bytes or unicode to `bytes`, using utf-8 encoding for text.\n Args:\n bytes_or_text: A `bytes`, `str`, or `unicode` object.\n encoding: A string indicating the charset for encoding unicode.\n Returns:\n A `bytes` object.\n Raises:\n TypeError: If `bytes_or_text` is not a bi... | 41 | false | vertica/vertica-python | as_bytes | 6,494 | |
LDU_FT/fulfilio/fulfil-python-api/find | LDU_FT | [
"<BEGIN>\n## `refresh_context`",
"Get the default context of the user and save it\n<END>",
"<BEGIN>\n## `login`",
"Attempts a login to the remote server\n and on success returns user id and session\n or None",
" Warning: Do not depend on this. This will be deprecated\n with SSO."... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
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 find API.
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... | Find records that match the filter.
Pro Tip: The fields could have nested fields names if the field is
a relationship type. For example if you were looking up an order
and also want to get the shipping address country then fields would be:
`['shipment_address', 'shipment_address.co... | "Find records that match the filter.\n\n Pro Tip: The fields could have nested fields names if the field is\n a relationship type. For example if you were looking up an order\n and also want to get the shipping address country then fields would be:\n\n `['shipment_address', 'shipment_add... | 79 | false | fulfilio/fulfil-python-api | find | 6,495 | |
LDU_FT/marrow/util/uvalues | LDU_FT | [
"<BEGIN>\n## `pcwd`",
"A decorator to provide the functionality of the\n PreserveWorkingDirectory context manager for functions and methods.\n<END>",
"<BEGIN>\n## `cd`",
"Change the current working directory within this context.",
" Preserves the previous working directory and can be applied to remote... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uvalues API.
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 uvalues API.
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 list of decoded values from an iterator.
If any of the values fail to decode, re-decode all values using the
fallback. | "Return a list of decoded values from an iterator.\n\n If any of the values fail to decode, re-decode all values using the\n fallback." | 73 | false | marrow/util | uvalues | 6,496 | |
LDU_FT/inspirehep/inspire-query-parser/parse | LDU_FT | [
"<BEGIN>\n## `_restructure_if_volume_follows_journal`",
"Remove volume node if it follows a journal logically in the tree hierarchy.",
" Args:\n left (ast.ASTElement): The journal KeywordOp node.\n right (ast.ASTElement): The rest of the tree to be restructured.",
" Return:\n (ast.A... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Using our own parse to enable the flag below. | "Using our own parse to enable the flag below." | 142 | false | inspirehep/inspire-query-parser | parse | 6,497 | |
LDU_FT/bspaans/python-mingus/write_Track | LDU_FT | [
"<BEGIN>\n## `valid_beat_duration`",
"Return True when log2(duration) is an integer.\n<END>",
"<BEGIN>\n## `add_notes`",
"Add a Note, note as string or NoteContainer to the last Bar.",
" If the Bar is full, a new one will automatically be created.",
" If the Bar is not full but the note can'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_Track API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_Track API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Write a mingus.Track to a MIDI file.
Write the name to the file and set the instrument if the instrument has
the attribute instrument_nr, which represents the MIDI instrument
number. The class MidiInstrument in mingus.containers.Instrument has
this attribute by default. | "Write a mingus.Track to a MIDI file.\n\n Write the name to the file and set the instrument if the instrument has\n the attribute instrument_nr, which represents the MIDI instrument\n number. The class MidiInstrument in mingus.containers.Instrument has\n this attribute by default." | 535 | false | bspaans/python-mingus | write_Track | 6,498 | |
LDU_FT/pavlin-policar/openTSNE/transform | LDU_FT | [
"<BEGIN>\n## `has_c_library`",
"Check whether a C/C++ library is available on the system to the compiler.",
" Parameters\n ----------\n library: str\n The library we want to check for e.g. if we are interested in FFTW3, we\n want to check for `fftw3.h`, so this parameter will be `fftw3`.\... | 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... | Computes the (weighted) graph of Neighbors for points in X
Parameters
----------
X : array-like, shape (n_samples_transform, n_features)
Sample data
Returns
-------
Xt : CSR sparse matrix, shape (n_samples_fit, n_samples_transform)
Xt[i, j] is as... | "Computes the (weighted) graph of Neighbors for points in X\n\n Parameters\n ----------\n X : array-like, shape (n_samples_transform, n_features)\n Sample data\n\n Returns\n -------\n Xt : CSR sparse matrix, shape (n_samples_fit, n_samples_transform)\n Xt[... | 181 | false | pavlin-policar/openTSNE | transform | 6,499 | |
LDU_FT/bspaans/python-mingus/determine_seventh | LDU_FT | [
"<BEGIN>\n## `valid_beat_duration`",
"Return True when log2(duration) is an integer.\n<END>",
"<BEGIN>\n## `add_notes`",
"Add a Note, note as string or NoteContainer to the last Bar.",
" If the Bar is full, a new one will automatically be created.",
" If the Bar is not full but the note can'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_seventh API.
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 determine_seventh API.
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 type of seventh chord; return the results in a list,
ordered on inversions.
This function expects seventh to be a list of 4 notes.
If shorthand is set to True, results will be returned in chord shorthand
('Cmin7', etc.); inversions will be dropped in that case.
Example:
>>> dete... | "Determine the type of seventh chord; return the results in a list,\n ordered on inversions.\n\n This function expects seventh to be a list of 4 notes.\n\n If shorthand is set to True, results will be returned in chord shorthand\n ('Cmin7', etc.); inversions will be dropped in that case.\n\n Example:\n ... | 535 | false | bspaans/python-mingus | determine_seventh | 6,500 | |
LDU_FT/salimm/pylods/copy | LDU_FT | [
"<BEGIN>\n## `copy`",
"makes a clone copy of the mapper. It won't clone the serializers or deserializers and it won't copy the events\n<END>",
"<BEGIN>\n## `copy_all`",
"copies all values into the current context from given context\n :param ctxt:\n<END>",
"<BEGIN>\n## `resolve`",
"resolve type of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | makes a clone copy of the mapper. It won't clone the serializers or deserializers and it won't copy the events | "makes a clone copy of the mapper. It won't clone the serializers or deserializers and it won't copy the events" | 13 | false | salimm/pylods | copy | 6,501 | |
LDU_FT/idlesign/torrentool/get_open_trackers_from_remote | LDU_FT | [
"<BEGIN>\n## `info`",
"Print out information from .torrent file.\n<END>",
"<BEGIN>\n## `create`",
"Create torrent file from a single file or a directory.\n<END>",
"<BEGIN>\n## `files`",
"Files in torrent.",
" List of namedtuples (filepath, size).",
" :rtype: list[TorrentFile]\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_open_trackers_from_remote API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_open_trackers_from_remote API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Returns open trackers announce URLs list from remote repo. | "Returns open trackers announce URLs list from remote repo." | 52 | false | idlesign/torrentool | get_open_trackers_from_remote | 6,502 | |
LDU_FT/xtrementl/focus/from_utf8 | LDU_FT | [
"<BEGIN>\n## `_new_token`",
"Appends new token to token stream.",
" `chars`\n List of token characters. Defaults to current token list.\n `line_no`\n Line number for token. Defaults to current line number.\n<END>",
"<BEGIN>\n## `_process_string`",
"Process... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_utf8 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_utf8 API.
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... | Decodes a UTF-8 compatible, ASCII string into a unicode object.
`buf`
string or unicode string to convert.
Returns unicode` string.
* Raises a ``UnicodeDecodeError`` exception if encoding failed and
`errors` isn't set to 'replace'. | "Decodes a UTF-8 compatible, ASCII string into a unicode object.\n\n `buf`\n string or unicode string to convert.\n\n Returns unicode` string.\n\n * Raises a ``UnicodeDecodeError`` exception if encoding failed and\n `errors` isn't set to 'replace'." | 413 | false | xtrementl/focus | from_utf8 | 6,503 | |
LDU_FT/aarongarrett/inspyred/truncation_selection | LDU_FT | [
"<BEGIN>\n## `mutator`",
"Return an inspyred mutator function based on the given function.",
" This function generator takes a function that operates on only\n one candidate to produce a single mutated candidate. The generator \n handles the iteration over each candidate in the set to be mutated.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncation_selection 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 truncation_selection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Selects the best individuals from the population.
This function performs truncation selection, which means that only
the best individuals from the current population are selected. This
is a completely deterministic selection mechanism.
.. Arguments:
random -- the random number generator... | "Selects the best individuals from the population.\n \n This function performs truncation selection, which means that only\n the best individuals from the current population are selected. This\n is a completely deterministic selection mechanism.\n \n .. Arguments:\n random -- the random number g... | 390 | false | aarongarrett/inspyred | truncation_selection | 6,504 | |
LDU_FT/walkr/oi/help_function | LDU_FT | [
"<BEGIN>\n## `new_parser`",
"Create a command line argument parser",
" Add a few default flags, such as --version\n for displaying the program version when invoked\n<END>",
"<BEGIN>\n## `add_command`",
"Register a new function with a the name `command` and\n `description` (which will be... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the help_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the help_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Show help for all available commands or just a single one | "Show help for all available commands or just a single one" | 22 | false | walkr/oi | help_function | 6,505 | |
LDU_FT/Kaggle/kaggle-api/process_response | LDU_FT | [
"<BEGIN>\n## `language`",
"Sets the language of this KernelPushRequest.",
" The language that the kernel is written in # noqa: E501",
" :param language: The language of this KernelPushRequest. # noqa: E501\n :type: str\n<END>",
"<BEGIN>\n## `kernel_type`",
"Sets the kernel_type of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | process a response from the API. We check the API version against
the client's to see if it's old, and give them a warning (once)
Parameters
==========
result: the result from the API | "process a response from the API. We check the API version against\n the client's to see if it's old, and give them a warning (once)\n\n Parameters\n ==========\n result: the result from the API" | 304 | false | Kaggle/kaggle-api | process_response | 6,506 | |
LDU_FT/ownaginatious/fbchat-archive-parser/_manual_lookup | LDU_FT | [
"<BEGIN>\n## `skip`",
"Eats through the input iterator without recording the content.\n<END>",
"<BEGIN>\n## `_process_element`",
"Parses an incoming HTML element/node for data.",
" pos -- the part of the element being parsed\n (start/end)\n e -- the element being parsed\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _manual_lookup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _manual_lookup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | People who we have not communicated with in a long time
will not appear in the look-ahead cache that Facebook keeps.
We must manually resolve them.
:param facebook_id: Profile ID of the user to lookup.
:return: | "People who we have not communicated with in a long time\n will not appear in the look-ahead cache that Facebook keeps.\n We must manually resolve them.\n\n :param facebook_id: Profile ID of the user to lookup.\n :return:" | 27 | false | ownaginatious/fbchat-archive-parser | _manual_lookup | 6,507 | |
LDU_FT/ribozz/sphinx-argparse/renderList | LDU_FT | [
"<BEGIN>\n## `customWalker`",
"A convenience function to ease debugging. It will print the node structure that's returned from CommonMark",
" The usage would be something like:",
" >>> content = Parser().parse('Some big text block\\n===================\\n\\nwith content\\n')\n >>> customWalker(conten... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the renderList API.
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 renderList API.
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... | Given a list of reStructuredText or MarkDown sections, return a docutils node list | "Given a list of reStructuredText or MarkDown sections, return a docutils node list" | 37 | false | ribozz/sphinx-argparse | renderList | 6,508 | |
LDU_FT/COLORFULBOARD/revision/validate | LDU_FT | [
"<BEGIN>\n## `download`",
":param url:\n :type url: str\n :param dest_path:\n :type dest_path: str\n<END>",
"<BEGIN>\n## `upload`",
":param url:\n :type url: str\n :param method:\n :type method: str\n :param file_path:\n :type file_path: str\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Check the value of the config attributes. | "Check the value of the config attributes." | 54 | false | COLORFULBOARD/revision | validate | 6,509 | |
LDU_FT/exhuma/python-cluster/getlevel | LDU_FT | [
"<BEGIN>\n## `getclusters`",
"Generates *count* clusters.",
" :param count: The amount of clusters that should be generated. count\n must be greater than ``1``.\n :raises ClusteringError: if *count* is out of bounds.\n<END>",
"<BEGIN>\n## `assign_item`",
"Assigns an item from a giv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getlevel API.
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 getlevel API.
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... | Retrieve all clusters up to a specific level threshold. This
level-threshold represents the maximum distance between two clusters.
So the lower you set this threshold, the more clusters you will
receive and the higher you set it, you will receive less but bigger
clusters.
:param... | "Retrieve all clusters up to a specific level threshold. This\n level-threshold represents the maximum distance between two clusters.\n So the lower you set this threshold, the more clusters you will\n receive and the higher you set it, you will receive less but bigger\n clusters.\n\n ... | 76 | false | exhuma/python-cluster | getlevel | 6,510 | |
LDU_FT/seleniumbase/SeleniumBase/wait_for_and_dismiss_alert | 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 wait_for_and_dismiss_alert API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_and_dismiss_alert API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Wait for and dismiss an alert. Returns the text from the alert.
@Params
driver - the webdriver object (required)
timeout - the time to wait for the alert in seconds | "Wait for and dismiss an alert. Returns the text from the alert.\n @Params\n driver - the webdriver object (required)\n timeout - the time to wait for the alert in seconds" | 362 | false | seleniumbase/SeleniumBase | wait_for_and_dismiss_alert | 6,511 | |
LDU_FT/array-split/array_split/emit | LDU_FT | [
"<BEGIN>\n## `read_readme`",
"Reads part of the README.rst for use as long_description in setup().\n<END>",
"<BEGIN>\n## `pad_with_object`",
"Returns :samp:`sequence` :obj:`list` end-padded with :samp:`{obj}`\n elements so that the length of the returned list equals :samp:`{new_length}`.",
" :type seq... | 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... | Mostly copy-paste from :obj:`logging.StreamHandler`. | "Mostly copy-paste from :obj:`logging.StreamHandler`." | 67 | false | array-split/array_split | emit | 6,512 | |
LDU_FT/Arubacloud/pyArubaCloud/get_package_id | LDU_FT | [
"<BEGIN>\n## `find`",
"Return a list of subset of VM that match the pattern name\n @param name (str): the vm name of the virtual machine\n @param name (Obj): the vm object that represent the virtual\n machine (can be Pro or Smart)\n @return (list): the subset contain... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_package_id API.
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_package_id API.
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... | Retrieve the smart package id given is English name
@param (str) name: the Aruba Smart package size name, ie: "small", "medium", "large", "extra large".
@return: The package id that depends on the Data center and the size choosen. | "Retrieve the smart package id given is English name\n @param (str) name: the Aruba Smart package size name, ie: \"small\", \"medium\", \"large\", \"extra large\".\n @return: The package id that depends on the Data center and the size choosen." | 43 | false | Arubacloud/pyArubaCloud | get_package_id | 6,513 | |
LDU_FT/danishabdullah/algen/types | LDU_FT | [
"<BEGIN>\n## `convert_case`",
"Converts name from CamelCase to snake_case\n<END>",
"<BEGIN>\n## `table_name`",
"Pluralises the class_name using utterly simple algo and returns as table_name\n<END>",
"<BEGIN>\n## `types`",
"All the unique types found in user supplied model\n<END>",
"<BEGIN>\n## `basic_ty... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the types API.
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 types API.
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... | All the unique types found in user supplied model | "All the unique types found in user supplied model" | 26 | false | danishabdullah/algen | types | 6,514 | |
LDU_FT/xolox/python-coloredlogs/encode_whitespace | LDU_FT | [
"<BEGIN>\n## `install`",
"Enable colored terminal output for Python's :mod:`logging` module.",
" :param level: The default logging level (an integer or a string with a\n level name, defaults to :data:`DEFAULT_LOG_LEVEL`).\n :param logger: The logger to which the stream handler should be a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_whitespace API.
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 encode_whitespace API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Encode whitespace so that web browsers properly render it.
:param text: The plain text (a string).
:param tabsize: Refer to :func:`str.expandtabs()` for details.
:returns: The text converted to HTML (a string).
The purpose of this function is to encode whitespace in such a way that web
browsers re... | "Encode whitespace so that web browsers properly render it.\n\n :param text: The plain text (a string).\n :param tabsize: Refer to :func:`str.expandtabs()` for details.\n :returns: The text converted to HTML (a string).\n\n The purpose of this function is to encode whitespace in such a way that web\n bro... | 191 | false | xolox/python-coloredlogs | encode_whitespace | 6,515 | |
LDU_FT/slinderman/pypolyagamma/max_likelihood | LDU_FT | [
"<BEGIN>\n## `choices`",
"Get the 'address' of each leaf node in terms of internal\n node choices\n<END>",
"<BEGIN>\n## `adjacency`",
"Construct the adjacency matrix of the tree\n :param tree:\n :return:\n<END>",
"<BEGIN>\n## `max_likelihood`",
"As an alternative to MCMC with Polya-gamma augmenta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the max_likelihood API.
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 max_likelihood API.
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... | As an alternative to MCMC with Polya-gamma augmentation,
we also implement maximum likelihood learning via gradient
descent with autograd. This follows the pybasicbayes
convention.
:param data: list of tuples, (x,y), for each dataset.
:param weights: Not used in this implementat... | "As an alternative to MCMC with Polya-gamma augmentation,\n we also implement maximum likelihood learning via gradient\n descent with autograd. This follows the pybasicbayes\n convention.\n\n :param data: list of tuples, (x,y), for each dataset.\n :param weights: Not used in this impl... | 19 | false | slinderman/pypolyagamma | max_likelihood | 6,516 | |
LDU_FT/campaignmonitor/createsend-python/transfer_credits | LDU_FT | [
"<BEGIN>\n## `authorize_url`",
"Get the authorization URL for your application, given the application's\n client_id, redirect_uri, scope, and optional state data.\n<END>",
"<BEGIN>\n## `exchange_token`",
"Exchange a provided OAuth code for an OAuth access token, 'expires in'\n value and refresh ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transfer_credits API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transfer_credits API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Transfer credits to or from this client.
:param credits: An Integer representing the number of credits to transfer.
This value may be either positive if you want to allocate credits from
your account to the client, or negative if you want to deduct credits
from the client back int... | "Transfer credits to or from this client.\n\n :param credits: An Integer representing the number of credits to transfer.\n This value may be either positive if you want to allocate credits from\n your account to the client, or negative if you want to deduct credits\n from the client ba... | 73 | false | campaignmonitor/createsend-python | transfer_credits | 6,517 | |
LDU_FT/chainside/btcpy/bech32_decode | LDU_FT | [
"<BEGIN>\n## `b58encode_check`",
"Encode a string using Base58 with a 4 character checksum\n<END>",
"<BEGIN>\n## `b58decode_check`",
"Decode and verify the checksum of a Base58 encoded string\n<END>",
"<BEGIN>\n## `derive`",
":param path: a path like \"m/44'/0'/1'/0/10\" if deriving from a master key,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bech32_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bech32_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 ext... | Validate a Bech32 string, and determine HRP and data. | "Validate a Bech32 string, and determine HRP and data." | 10 | false | chainside/btcpy | bech32_decode | 6,518 | |
LDU_FT/jazzband/inflect/classical | LDU_FT | [
"<BEGIN>\n## `bysize`",
"take a list of words and return a dict of sets sorted by word length\n e.g.\n ret[3]=set(['ant', 'cat', 'dog', 'pig'])\n ret[4]=set(['frog', 'goat'])\n ret[5]=set(['horse'])\n ret[8]=set(['elephant'])\n<END>",
"<BEGIN>\n## `make_pl_si_lists`",
"given a list of singular ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the classical API.
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 classical API.
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... | turn classical mode on and off for various categories
turn on all classical modes:
classical()
classical(all=True)
turn on or off specific claassical modes:
e.g.
classical(herd=True)
classical(names=False)
By default all classical modes are off except n... | "turn classical mode on and off for various categories\n\n turn on all classical modes:\n classical()\n classical(all=True)\n\n turn on or off specific claassical modes:\n e.g.\n classical(herd=True)\n classical(names=False)\n\n By default all classical modes are ... | 90 | false | jazzband/inflect | classical | 6,519 | |
LDU_FT/Mindwerks/worldengine/add_colors | LDU_FT | [
"<BEGIN>\n## `anti_alias`",
"Execute the anti_alias operation steps times on the given map\n<END>",
"<BEGIN>\n## `count_neighbours`",
"Count how many neighbours of a coordinate are set to one.\n This uses the same principles as anti_alias, compare comments there.\n<END>",
"<BEGIN>\n## `_calculate`",
"S... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_colors API.
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_colors API.
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... | Do some *args magic to return a tuple, which has the sums of all tuples in *args | "Do some *args magic to return a tuple, which has the sums of all tuples in *args" | 63 | false | Mindwerks/worldengine | add_colors | 6,520 | |
LDU_FT/Sheeprider/BitBucket-api/create | LDU_FT | [
"<BEGIN>\n## `auth`",
"Return credentials for current Bitbucket user.\n<END>",
"<BEGIN>\n## `authorize`",
"Call this with your consumer key, secret and callback URL, to\n generate a token for verification.\n<END>",
"<BEGIN>\n## `verify`",
"After converting the token into verifier, call this to fina... | 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 repository on own Bitbucket account and return it. | "Creates a new repository on own Bitbucket account and return it." | 39 | false | Sheeprider/BitBucket-api | create | 6,521 | |
LDU_FT/saschpe/rapport/iso_year_start | LDU_FT | [
"<BEGIN>\n## `iso_year_start`",
"The gregorian calendar date of the first day of the given ISO year\n<END>",
"<BEGIN>\n## `iso_to_gregorian`",
"Gregorian calendar date for the given ISO year, week and day\n<END>",
"<BEGIN>\n## `week_to_datetime`",
"datetime instance for the start of the given ISO year and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iso_year_start API.
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 iso_year_start API.
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... | The gregorian calendar date of the first day of the given ISO year | "The gregorian calendar date of the first day of the given ISO year" | 44 | false | saschpe/rapport | iso_year_start | 6,522 | |
LDU_FT/aalireza/SimpleAudioIndexer/_index_audio_ibm | LDU_FT | [
"<BEGIN>\n## `set_username_ibm`",
"Parameters\n ----------\n username_ibm : str",
" Raises\n ------\n Exception\n If mode is not `ibm`\n<END>",
"<BEGIN>\n## `set_password_ibm`",
"Parameters\n ----------\n password_ibm : str",
" Raises\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _index_audio_ibm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _index_audio_ibm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Implements a search-suitable interface for Watson speech API.
Some explaination of the parameters here have been taken from [1]_
Parameters
----------
basename : str, optional
A specific basename to be indexed and is placed in src_dir
e.g `audio.wav`.
... | "Implements a search-suitable interface for Watson speech API.\n\n Some explaination of the parameters here have been taken from [1]_\n\n Parameters\n ----------\n basename : str, optional\n A specific basename to be indexed and is placed in src_dir\n e.g `audio.wav`.\n... | 159 | false | aalireza/SimpleAudioIndexer | _index_audio_ibm | 6,523 | |
LDU_FT/dwkim78/upsilon/residuals | LDU_FT | [
"<BEGIN>\n## `sigma_clipping`",
"Remove any fluctuated data points by magnitudes.",
" Parameters\n ----------\n date : array_like\n An array of dates.\n mag : array_like\n An array of magnitudes.\n err : array_like\n An array of magnitude errors.\n threshold : float, optio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the residuals API.
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 residuals API.
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... | Residual of Fourier Series.
Parameters
----------
pars : array_like
Fourier series parameters.
x : array_like
An array of date.
y : array_like
An array of true values to fit.
order : int
An order of Fourier Series. | "Residual of Fourier Series.\n\n Parameters\n ----------\n pars : array_like\n Fourier series parameters.\n x : array_like\n An array of date.\n y : array_like\n An array of true values to fit.\n order : int\n An order of Fourier Seri... | 80 | false | dwkim78/upsilon | residuals | 6,524 | |
LDU_FT/feliphebueno/Rinzler/default_route_options | LDU_FT | [
"<BEGIN>\n## `authenticate`",
"Your AuhtService should override this method for request authentication, otherwise means no authentication.\n :param request: HttpRequest Django's HttpRequest object\n :param auth_route: str User's resqueted route\n :param actual_params: User's url parameters\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_route_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_route_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Default callback for OPTIONS request
:rtype: Response | "Default callback for OPTIONS request\n :rtype: Response" | 50 | false | feliphebueno/Rinzler | default_route_options | 6,525 | |
LDU_FT/msiedlarek/wiring/get_implemented_interfaces | LDU_FT | [
"<BEGIN>\n## `get_implemented_interfaces`",
"Returns a set of :term:`interfaces <interface>` declared as implemented by\n class `cls`.\n<END>",
"<BEGIN>\n## `set_implemented_interfaces`",
"Declares :term:`interfaces <interface>` as implemented by class `cls`.\n Those already declared are overriden.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_implemented_interfaces API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_implemented_interfaces API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Returns a set of :term:`interfaces <interface>` declared as implemented by
class `cls`. | "Returns a set of :term:`interfaces <interface>` declared as implemented by\n class `cls`." | 69 | false | msiedlarek/wiring | get_implemented_interfaces | 6,526 | |
LDU_FT/wbond/certbuilder/_make_crl_distribution_points | LDU_FT | [
"<BEGIN>\n## `self_signed`",
"A bool - if the certificate should be self-signed.\n<END>",
"<BEGIN>\n## `serial_number`",
"An int representable in 160 bits or less - must uniquely identify\n this certificate when combined with the issuer name.\n<END>",
"<BEGIN>\n## `issuer`",
"An asn1crypto.x509.Cer... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_crl_distribution_points API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_crl_distribution_points API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Constructs an asn1crypto.x509.CRLDistributionPoints object
:param name:
A unicode string of the attribute name to use in exceptions
:param value:
Either a unicode string of a URL, or a 2-element tuple of a
unicode string of a URL, plus an asn1crypto.x509.Certificate... | "Constructs an asn1crypto.x509.CRLDistributionPoints object\n\n :param name:\n A unicode string of the attribute name to use in exceptions\n\n :param value:\n Either a unicode string of a URL, or a 2-element tuple of a\n unicode string of a URL, plus an asn1crypto.x509.Cer... | 28 | false | wbond/certbuilder | _make_crl_distribution_points | 6,527 | |
LDU_FT/pricingassistant/mongokat/patch_cursor | LDU_FT | [
"<BEGIN>\n## `_get_string`",
"Decode a BSON string to python unicode string.\n<END>",
"<BEGIN>\n## `_get_object`",
"Decode a BSON subdocument to opts.document_class or bson.dbref.DBRef.\n<END>",
"<BEGIN>\n## `_get_boolean`",
"Decode a BSON true/false to python True/False.\n<END>",
"<BEGIN>\n## `_get_dat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_cursor API.
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 patch_cursor API.
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... | Adds batch_size, limit, sort parameters to a DB cursor | "Adds batch_size, limit, sort parameters to a DB cursor" | 55 | false | pricingassistant/mongokat | patch_cursor | 6,528 | |
LDU_FT/pgxcentre/geneparse/maf | LDU_FT | [
"<BEGIN>\n## `get_variant_genotypes`",
"Get the genotypes from a well formed variant instance.",
" Args:\n marker (Variant): A Variant instance.",
" Returns:\n A list of Genotypes instance containing a pointer to the variant as\n well as a vector of encoded genot... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maf API.
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 maf API.
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... | Computes the MAF and returns a boolean indicating if the minor allele
is currently the coded allele. | "Computes the MAF and returns a boolean indicating if the minor allele\n is currently the coded allele." | 120 | false | pgxcentre/geneparse | maf | 6,529 | |
LDU_FT/kieferk/dfply/arrange | LDU_FT | [
"<BEGIN>\n## `select_if`",
"Selects columns where fun(ction) is true\n Args:\n fun: a function that will be applied to columns\n<END>",
"<BEGIN>\n## `drop_if`",
"Drops columns where fun(ction) is true\n Args:\n fun: a function that will be applied to columns\n<END>",
"<BEGIN>\n## `mean`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arrange API.
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 arrange API.
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... | Calls `pandas.DataFrame.sort_values` to sort a DataFrame according to
criteria.
See:
http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.sort_values.html
For a list of specific keyword arguments for sort_values (which will be
the same in arrange).
Args:
*args: Symbo... | "Calls `pandas.DataFrame.sort_values` to sort a DataFrame according to\n criteria.\n\n See:\n http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.sort_values.html\n\n For a list of specific keyword arguments for sort_values (which will be\n the same in arrange).\n\n Args:\n *... | 149 | false | kieferk/dfply | arrange | 6,530 | |
LDU_FT/kajala/django-jacc/sum_queryset | LDU_FT | [
"<BEGIN>\n## `balance`",
"Returns account balance after this entry.\n :return: Decimal\n<END>",
"<BEGIN>\n## `get_balance`",
"Returns account balance before specified datetime (excluding entries on the datetime).\n :param t: datetime\n :return: Decimal\n<END>",
"<BEGIN>\n## `needs_settl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum_queryset API.
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 sum_queryset API.
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... | Returns aggregate sum of queryset 'amount' field.
:param qs: QuerySet
:param key: Field to sum (default: 'amount')
:param default: Default value if no results
:return: Sum of 'amount' field values (coalesced 0 if None) | "Returns aggregate sum of queryset 'amount' field.\n :param qs: QuerySet\n :param key: Field to sum (default: 'amount')\n :param default: Default value if no results\n :return: Sum of 'amount' field values (coalesced 0 if None)" | 31 | false | kajala/django-jacc | sum_queryset | 6,531 | |
LDU_FT/brutasse/graphite-api/fetch | LDU_FT | [
"<BEGIN>\n## `_find_paths`",
"Recursively generates absolute paths whose components\n underneath current_dir match the corresponding pattern in\n patterns\n<END>",
"<BEGIN>\n## `union_overlapping`",
"Union any overlapping intervals in the given set.\n<END>",
"<BEGIN>\n## `recurse`",
"Recursi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch API.
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 fetch API.
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... | fetch(path,fromTime,untilTime=None)
path is a string
fromTime is an epoch time
untilTime is also an epoch time, but defaults to now.
Returns a tuple of (timeInfo, valueList)
where timeInfo is itself a tuple of (fromTime, untilTime, step)
Returns None if no data can be returned | "fetch(path,fromTime,untilTime=None)\n\npath is a string\nfromTime is an epoch time\nuntilTime is also an epoch time, but defaults to now.\n\nReturns a tuple of (timeInfo, valueList)\nwhere timeInfo is itself a tuple of (fromTime, untilTime, step)\n\nReturns None if no data can be returned" | 519 | false | brutasse/graphite-api | fetch | 6,532 | |
LDU_FT/spaam/svtplay-dl/progress | LDU_FT | [
"<BEGIN>\n## `snapshot_folder`",
"Use the commit date in UTC as folder name\n<END>",
"<BEGIN>\n## `opengraph_get`",
"Extract specified OpenGraph property from html.",
" >>> opengraph_get('<html><head><meta property=\"og:image\" content=\"http://example.com/img.jpg\"><meta ...', \"image\")\n 'h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the progress API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the progress API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Print some info about how much we have downloaded | "Print some info about how much we have downloaded" | 30 | false | spaam/svtplay-dl | progress | 6,533 | |
LDU_FT/Shinichi-Nakagawa/pitchpx/read_xml | LDU_FT | [
"<BEGIN>\n## `row`",
"Game Dataset(Row)\n :return: {\n 'retro_game_id': Retrosheet Game id\n 'game_type': Game Type(S/R/F/D/L/W)\n 'game_type_des': Game Type Description\n (Spring Training or Regular Season or Wild-card Game or Divisional Series or LCS or World S... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_xml API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_xml API.
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... | read xml object
:param url: contents url
:param features: markup provider
:param game: MLBAM Game object
:param players: MLBAM Players object
:return: pitchpx.box_score.box_score.BoxScore object | "read xml object\n :param url: contents url\n :param features: markup provider\n :param game: MLBAM Game object\n :param players: MLBAM Players object\n :return: pitchpx.box_score.box_score.BoxScore object" | 102 | false | Shinichi-Nakagawa/pitchpx | read_xml | 6,534 | |
LDU_FT/Kane610/axis/initialize_params | LDU_FT | [
"<BEGIN>\n## `session_request`",
"Do HTTP/S request and return response as a string.\n<END>",
"<BEGIN>\n## `get_event_list`",
"Get a dict of supported events from device.\n<END>",
"<BEGIN>\n## `_prepare_event`",
"Converts event instances to a relevant dictionary.\n<END>",
"<BEGIN>\n## `process_raw`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_params API.
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 initialize_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Load device parameters and initialize parameter management.
Preload data can be disabled to selectively load params afterwards. | "Load device parameters and initialize parameter management.\n\n Preload data can be disabled to selectively load params afterwards." | 55 | false | Kane610/axis | initialize_params | 6,535 | |
LDU_FT/goshuirc/irc/sasl_plain | LDU_FT | [
"<BEGIN>\n## `sort_prefixes`",
"Returns a sorted list of prefixes.",
" Args:\n orig (str): Unsorted list of prefixes.\n prefixes (str): List of prefixes, from highest-priv to lowest.\n<END>",
"<BEGIN>\n## `parse_modes`",
"Return a modelist.",
" Args:\n params (list of str): Para... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sasl_plain API.
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 sasl_plain API.
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... | Authenticate to a server using SASL plain, or does so on connection.
Args:
name (str): Name to auth with.
password (str): Password to auth with.
identity (str): Identity to auth with (defaults to name). | "Authenticate to a server using SASL plain, or does so on connection.\n\n Args:\n name (str): Name to auth with.\n password (str): Password to auth with.\n identity (str): Identity to auth with (defaults to name)." | 97 | false | goshuirc/irc | sasl_plain | 6,536 | |
LDU_FT/nickpandolfi/Cyther/get_dir | LDU_FT | [
"<BEGIN>\n## `get_content`",
"Finds the 'content' tag from a 'pattern' in the provided 'string'\n<END>",
"<BEGIN>\n## `extract`",
"Used to extract a given regex pattern from a string, given several options\n<END>",
"<BEGIN>\n## `extractRuntime`",
"Used to find the correct static lib name to pass to gcc\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dir API.
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... | Gets the directory path of the given path name. If the argument 'greedy'
is specified as True, then if the path name represents a directory itself,
the function will return the whole path | "Gets the directory path of the given path name. If the argument 'greedy'\n is specified as True, then if the path name represents a directory itself,\n the function will return the whole path" | 131 | false | nickpandolfi/Cyther | get_dir | 6,537 | |
LDU_FT/openeemeter/eemeter/temperature_data_from_csv | LDU_FT | [
"<BEGIN>\n## `as_freq`",
"Resample data to a different frequency.",
" This method can be used to upsample or downsample meter data. The\n assumption it makes to do so is that meter data is constant and averaged\n over the given periods. For instance, to convert billing-period data to\n daily data, t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temperature_data_from_csv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temperature_data_from_csv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Load temperature data from a CSV file.
Default format::
dt,tempF
2017-01-01T00:00:00+00:00,21
2017-01-01T01:00:00+00:00,22.5
2017-01-01T02:00:00+00:00,23.5
Parameters
----------
filepath_or_buffer : :any:`str` or file-handle
File path or object.
tz : :any:`... | "Load temperature data from a CSV file.\n\n Default format::\n\n dt,tempF\n 2017-01-01T00:00:00+00:00,21\n 2017-01-01T01:00:00+00:00,22.5\n 2017-01-01T02:00:00+00:00,23.5\n\n Parameters\n ----------\n filepath_or_buffer : :any:`str` or file-handle\n File path or object.\n ... | 213 | false | openeemeter/eemeter | temperature_data_from_csv | 6,538 | |
LDU_FT/kbr/fritzconnection/parse_response | LDU_FT | [
"<BEGIN>\n## `set_fraction`",
"Set the meter indicator. Value should be between 0 and 1.\n<END>",
"<BEGIN>\n## `update_status`",
"Update status informations in tkinter window.\n<END>",
"<BEGIN>\n## `format_num`",
"Returns a human readable string of a byte-value.\n If 'num' is bits, set unit='bits'.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 ex... | Evaluates the action-call response from a FritzBox.
The response is a xml byte-string.
Returns a dictionary with the received arguments-value pairs.
The values are converted according to the given data_types.
TODO: boolean and signed integers data-types from tr64 responses | "Evaluates the action-call response from a FritzBox.\n The response is a xml byte-string.\n Returns a dictionary with the received arguments-value pairs.\n The values are converted according to the given data_types.\n TODO: boolean and signed integers data-types from tr64 responses" | 38 | false | kbr/fritzconnection | parse_response | 6,539 | |
LDU_FT/tempodb/tempodb-python/from_json | LDU_FT | [
"<BEGIN>\n## `from_json`",
"Deserialize a JSON object into this object. This method will\n check that the JSON object has the required keys and will set each\n of the keys in that JSON object as an instance attribute of this\n object.",
" :param json_text: the JSON text or object to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Deserialize a JSON object into this object. This method will
check that the JSON object has the required keys and will set each
of the keys in that JSON object as an instance attribute of this
object.
:param json_text: the JSON text or object to deserialize from
:type json_text... | "Deserialize a JSON object into this object. This method will\n check that the JSON object has the required keys and will set each\n of the keys in that JSON object as an instance attribute of this\n object.\n\n :param json_text: the JSON text or object to deserialize from\n :type js... | 99 | false | tempodb/tempodb-python | from_json | 6,540 | |
LDU_FT/yougov/vr.common/run | LDU_FT | [
"<BEGIN>\n## `str_to_pool`",
"Given a string containing an nginx upstream section, return the pool name\n and list of nodes.\n<END>",
"<BEGIN>\n## `get_buildfile_path`",
"Path to which a build tarball should be downloaded.\n<END>",
"<BEGIN>\n## `_retry`",
"Try to call f(*args, **kwargs) \"n\" times bef... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Run a shell command. Capture the stdout and stderr as a single stream.
Capture the status code.
If verbose=True, then print command and the output to the terminal as it
comes in. | "Run a shell command. Capture the stdout and stderr as a single stream.\n Capture the status code.\n\n If verbose=True, then print command and the output to the terminal as it\n comes in." | 49 | false | yougov/vr.common | run | 6,541 | |
LDU_FT/jrief/djangocms-cascade/get_css_classes | LDU_FT | [
"<BEGIN>\n## `_enrich_link`",
"Enrich the dict glossary['link'] with an identifier onto the model\n<END>",
"<BEGIN>\n## `get_form`",
"Extend the form for the given plugin with the form SharableCascadeForm\n<END>",
"<BEGIN>\n## `get_picture_elements`",
"Create a context, used to render a <picture> together... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_css_classes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_css_classes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Returns a list of CSS classes to be added as class="..." to the current HTML tag. | "Returns a list of CSS classes to be added as class=\"...\" to the current HTML tag." | 78 | false | jrief/djangocms-cascade | get_css_classes | 6,542 | |
LDU_FT/The-Politico/politico-civic-ap-loader/get_or_create_votes | LDU_FT | [
"<BEGIN>\n## `process_result`",
"Processes top-level (state) results for candidate races, loads data\n into the database and sends alerts for winning results.\n<END>",
"<BEGIN>\n## `get_division`",
"Gets the Division object for the given row of election results.\n<END>",
"<BEGIN>\n## `get_office`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create_votes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create_votes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Gets or creates the Vote object for the given row of AP data. | "Gets or creates the Vote object for the given row of AP data." | 36 | false | The-Politico/politico-civic-ap-loader | get_or_create_votes | 6,543 | |
LDU_FT/aacanakin/glim/flatten_urls | LDU_FT | [
"<BEGIN>\n## `import_source`",
"Function imports a module given full path",
" Args\n ----\n module (string): the module name\n path (string): the full path of module\n pass_errors(boolean): the switch for function\n to skip errors or not.",
" Returns\n -------\n module (module): the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten_urls API.
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 flatten_urls API.
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... | Function flatten urls for route grouping feature of glim.
Args
----
urls (dict): a dict of url definitions.
current_key (unknown type): a dict or a string marking the
current key that is used for recursive calls.
ruleset (dict): the ruleset that is eventually r... | "Function flatten urls for route grouping feature of glim.\n\n Args\n ----\n urls (dict): a dict of url definitions.\n current_key (unknown type): a dict or a string marking the\n current key that is used for recursive calls.\n ruleset (dict): the ruleset that is even... | 74 | false | aacanakin/glim | flatten_urls | 6,544 | |
LDU_FT/mobolic/facebook-sdk/get_objects | LDU_FT | [
"<BEGIN>\n## `get_user_from_cookie`",
"Parses the cookie set by the official Facebook JavaScript SDK.",
" cookies should be a dictionary-like object mapping cookie names to\n cookie values.",
" If the user is logged in via Facebook, we return a dictionary with\n the keys \"uid\" and \"access_token... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_objects API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_objects API.
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... | Fetches all of the given object from the graph.
We return a map from ID to object. If any of the IDs are
invalid, we raise an exception. | "Fetches all of the given object from the graph.\n\n We return a map from ID to object. If any of the IDs are\n invalid, we raise an exception." | 56 | false | mobolic/facebook-sdk | get_objects | 6,545 | |
LDU_FT/Projectplace/basepage/enter_text | LDU_FT | [
"<BEGIN>\n## `click`",
"Click web element.",
" :param locator: locator tuple or WebElement instance\n :param params: (optional) locator parameters\n :param timeout: (optional) time to wait for element\n :return: None\n<END>",
"<BEGIN>\n## `alt_click`",
"Alt-click web element.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enter_text API.
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 enter_text API.
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... | Enter text into a web element.
:param locator: locator tuple or WebElement instance
:param text: text to input
:param with_click: clicks the input field
:param with_clear: clears the input field
:param with_enter: hits enter-key after text input
:param params: (optional)... | "Enter text into a web element.\n\n :param locator: locator tuple or WebElement instance\n :param text: text to input\n :param with_click: clicks the input field\n :param with_clear: clears the input field\n :param with_enter: hits enter-key after text input\n :param params: (o... | 138 | false | Projectplace/basepage | enter_text | 6,546 | |
LDU_FT/mdavidsaver/p4p/open | LDU_FT | [
"<BEGIN>\n## `_sync`",
"I will wait until all pending handlers cothreads have completed\n<END>",
"<BEGIN>\n## `close`",
"Close PV, disconnecting any clients.",
" :param bool destroy: Indicate \"permanent\" closure. Current clients will not see subsequent open().\n :param bool sync: When block... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
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 open API.
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... | Mark the PV as opened an provide its initial value.
This initial value is later updated with post().
:param value: A Value, or appropriate object (see nt= and wrap= of the constructor).
Any clients which have begun connecting which began connecting while
this PV was in the close'd sta... | "Mark the PV as opened an provide its initial value.\n This initial value is later updated with post().\n\n :param value: A Value, or appropriate object (see nt= and wrap= of the constructor).\n\n Any clients which have begun connecting which began connecting while\n this PV was in the clos... | 201 | false | mdavidsaver/p4p | open | 6,547 | |
LDU_FT/pylast/pylast/_get_cache_key | LDU_FT | [
"<BEGIN>\n## `cleanup_nodes`",
"Remove text nodes containing only whitespace\n<END>",
"<BEGIN>\n## `_collect_nodes`",
"Returns a sequence of dom.Node objects about as close to limit as possible\n<END>",
"<BEGIN>\n## `_extract_all`",
"Extracts all the values from the xml string. returning a list.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cache_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cache_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | The cache key is a string of concatenated sorted names and values. | "The cache key is a string of concatenated sorted names and values." | 146 | false | pylast/pylast | _get_cache_key | 6,548 | |
LDU_FT/jilljenn/tryalgo/add_group | LDU_FT | [
"<BEGIN>\n## `three_partition`",
"partition a set of integers in 3 parts of same total value",
" :param x: table of non negative values\n :returns: triplet of the integers encoding the sets, or None otherwise\n :complexity: :math:`O(2^{2n})`\n<END>",
"<BEGIN>\n## `freivalds`",
"Tests matrix product... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_group API.
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... | Add elements of L as descendants of the node.
If there are several elements in L, group them in a P-node first | "Add elements of L as descendants of the node.\n If there are several elements in L, group them in a P-node first" | 423 | false | jilljenn/tryalgo | add_group | 6,549 | |
LDU_FT/formwork-io/lazarus/close_fds | LDU_FT | [
"<BEGIN>\n## `stop`",
"Stops lazarus, regardless of which mode it was started in.",
" For example:",
" >>> import lazarus\n >>> lazarus.default()\n >>> lazarus.stop()\n<END>",
"<BEGIN>\n## `_restart`",
"Schedule the restart; returning True if cancelled, False otherwise.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close_fds API.
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 close_fds API.
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... | Close extraneous file descriptors.
On Linux, close everything but stdin, stdout, and stderr. On Mac, close
stdin, stdout, and stderr and everything owned by our user id. | "Close extraneous file descriptors.\n\n On Linux, close everything but stdin, stdout, and stderr. On Mac, close\n stdin, stdout, and stderr and everything owned by our user id." | 45 | false | formwork-io/lazarus | close_fds | 6,550 | |
LDU_FT/dwwkelly/note/Send | LDU_FT | [
"<BEGIN>\n## `check_auth`",
"This function is called to check if a username /\n password combination is valid.\n<END>",
"<BEGIN>\n## `scrubID`",
":param ID: An ID that can be of various types, this is very kludgy\n :returns: An integer ID\n<END>",
"<BEGIN>\n## `which`",
":param bin_name: the nam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Send API.
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 Send API.
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... | Add a note to the database on the server
:param msg: The text of the note.
:type msg: str
:param tags: A list of tags to associate with the note.
:type tags: list
:returns: The message from the server
:rtype: str | "Add a note to the database on the server\n :param msg: The text of the note.\n :type msg: str\n :param tags: A list of tags to associate with the note.\n :type tags: list\n :returns: The message from the server\n :rtype: str" | 46 | false | dwwkelly/note | Send | 6,551 | |
LDU_FT/aewallin/allantools/confidence_interval_noiseID | LDU_FT | [
"<BEGIN>\n## `set_input`",
"Set inputs after initialization",
" Parameters\n -------\n nr: integer\n length of generated time-series\n number must be power of two\n qd: float\n discrete variance\n b: float\n noise type:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confidence_interval_noiseID API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confidence_interval_noiseID API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | returns confidence interval (dev_min, dev_max)
for a given deviation dev = Xdev( x, tau = af*(1/rate) )
steps:
1) identify noise type
2) compute EDF
3) compute confidence interval
Parameters
----------
x: numpy.array
time-series
dev: flo... | "returns confidence interval (dev_min, dev_max) \n for a given deviation dev = Xdev( x, tau = af*(1/rate) )\n \n steps:\n 1) identify noise type\n 2) compute EDF\n 3) compute confidence interval\n \n Parameters\n ----------\n x: numpy.array\n time-series\... | 273 | false | aewallin/allantools | confidence_interval_noiseID | 6,552 | |
LDU_FT/GuyAllard/markov_clustering/prune | LDU_FT | [
"<BEGIN>\n## `is_undirected`",
"Determine if the matrix reprensents a directed graph",
" :param matrix: The matrix to tested\n :returns: boolean\n<END>",
"<BEGIN>\n## `convert_to_adjacency_matrix`",
"Converts transition matrix into adjacency matrix",
" :param matrix: The matrix to be converted\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prune API.
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 prune API.
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... | Prune the matrix so that very small edges are removed.
The maximum value in each column is never pruned.
:param matrix: The matrix to be pruned
:param threshold: The value below which edges will be removed
:returns: The pruned matrix | "Prune the matrix so that very small edges are removed.\n The maximum value in each column is never pruned.\n \n :param matrix: The matrix to be pruned\n :param threshold: The value below which edges will be removed\n :returns: The pruned matrix" | 41 | false | GuyAllard/markov_clustering | prune | 6,553 | |
LDU_FT/mattjj/pyhsmm/resample_with_censoring | LDU_FT | [
"<BEGIN>\n## `sample_discrete`",
"samples from a one-dimensional finite pmf\n<END>",
"<BEGIN>\n## `sample_discrete_from_log`",
"samples log probability array along specified axis\n<END>",
"<BEGIN>\n## `sample_niw`",
"Returns a sample from the normal/inverse-wishart distribution, conjugate\n prior for (... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resample_with_censoring 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 resample_with_censoring API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | censored_data is full of observations that were censored, meaning a
value of x really could have been anything >= x, so this method samples
them out to be at least that large | "censored_data is full of observations that were censored, meaning a\n value of x really could have been anything >= x, so this method samples\n them out to be at least that large" | 22 | false | mattjj/pyhsmm | resample_with_censoring | 6,554 | |
LDU_FT/oceanprotocol/squid-py/compute_service_descriptor | LDU_FT | [
"<BEGIN>\n## `get_requests_session`",
"Set connection pool maxsize and block value to avoid `connection pool full` warnings.",
" :return: requests session\n<END>",
"<BEGIN>\n## `request_tokens`",
"Request an amount of tokens for a particular address.\n This transaction has gas cost",
" :p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_service_descriptor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_service_descriptor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Compute service descriptor.
:param price: Asset price, int
:param consume_endpoint: url of the service provider, str
:param service_endpoint: identifier of the service inside the asset DDO, str
:param timeout: amount of time in seconds before the agreement expires, int
:return: ... | "Compute service descriptor.\n\n :param price: Asset price, int\n :param consume_endpoint: url of the service provider, str\n :param service_endpoint: identifier of the service inside the asset DDO, str\n :param timeout: amount of time in seconds before the agreement expires, int\n :r... | 417 | false | oceanprotocol/squid-py | compute_service_descriptor | 6,555 | |
LDU_FT/maartenbreddels/ipyvolume/grid_slice | 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 grid_slice API.
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 grid_slice API.
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... | Give a slice such that [amin, amax] is in [bmin, bmax].
Given a grid with shape, and begin and end coordinates amin, amax, what slice
do we need to take such that it minimally covers bmin, bmax.
amin, amax = 0, 1; shape = 4
0 0.25 0.5 0.75 1
| | | | |
bmin, bmax = 0.5, 1.0 shou... | "Give a slice such that [amin, amax] is in [bmin, bmax].\n\n Given a grid with shape, and begin and end coordinates amin, amax, what slice\n do we need to take such that it minimally covers bmin, bmax.\n\n amin, amax = 0, 1; shape = 4\n 0 0.25 0.5 0.75 1\n | | | | |\n bmin, bmax = 0.5,... | 141 | false | maartenbreddels/ipyvolume | grid_slice | 6,556 | |
LDU_FT/feliphebueno/Rinzler/__set_route | LDU_FT | [
"<BEGIN>\n## `authenticate`",
"Your AuhtService should override this method for request authentication, otherwise means no authentication.\n :param request: HttpRequest Django's HttpRequest object\n :param auth_route: str User's resqueted route\n :param actual_params: User's url parameters\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __set_route API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __set_route API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Sets the given type_route and route to the route mapping
:rtype: object | "Sets the given type_route and route to the route mapping\n :rtype: object" | 50 | false | feliphebueno/Rinzler | __set_route | 6,557 | |
LDU_FT/pgmpy/pgmpy/local_independencies | LDU_FT | [
"<BEGIN>\n## `_initalize_tree`",
"Initalizes root node of the tree, i.e depth = 0\n<END>",
"<BEGIN>\n## `_build_tree`",
"Recursively builds a tree for proposing new position and momentum\n<END>",
"<BEGIN>\n## `_sample`",
"Returns a sample using a single iteration of NUTS\n<END>",
"<BEGIN>\n## `sample`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the local_independencies 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 local_independencies API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns an instance of Independencies containing the local independencies
of each of the variables.
Parameters
----------
variables: str or array like
variables whose local independencies are to found.
Examples
--------
>>> from pgmpy.models import ... | "Returns an instance of Independencies containing the local independencies\n of each of the variables.\n\n\n Parameters\n ----------\n variables: str or array like\n variables whose local independencies are to found.\n\n Examples\n --------\n >>> from pgmpy.mo... | 1,557 | true | pgmpy/pgmpy | local_independencies | 6,558 | |
LDU_FT/has2k1/plotnine/transform_df | LDU_FT | [
"<BEGIN>\n## `iqr`",
"Calculate the IQR for an array of numbers.\n<END>",
"<BEGIN>\n## `freedman_diaconis_bins`",
"Calculate number of hist bins using Freedman-Diaconis rule.\n<END>",
"<BEGIN>\n## `breaks_from_binwidth`",
"Calculate breaks given binwidth",
" Parameters\n ----------\n x_range : ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_df API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_df API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Transform values in a dataframe.
Returns dataframe | "Transform values in a dataframe.\n\n Returns dataframe" | 719 | false | has2k1/plotnine | transform_df | 6,559 | |
LDU_FT/huggingface/pytorch-pretrained-BERT/forward | LDU_FT | [
"<BEGIN>\n## `from_json_file`",
"Constructs a `GPT2Config` from a json file of parameters.\n<END>",
"<BEGIN>\n## `from_pretrained`",
"Instantiate a GPT2PreTrainedModel from a pre-trained model file or a pytorch state dict.\n Download and cache the pre-trained model file if needed.",
" Params:\... | 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... | Params:
hidden :: [len*bsz x d_proj]
target :: [len*bsz]
Return:
if target is None:
out :: [len*bsz] Negative log likelihood
else:
out :: [len*bsz x n_tokens] log probabilities of tokens over the vocabula... | "Params:\n hidden :: [len*bsz x d_proj]\n target :: [len*bsz]\n Return:\n if target is None:\n out :: [len*bsz] Negative log likelihood\n else:\n out :: [len*bsz x n_tokens] log probabilities of tokens over the ... | 115 | false | huggingface/pytorch-pretrained-BERT | forward | 6,560 | |
LDU_FT/jkokorian/pyqt2waybinding/bind | LDU_FT | [
"<BEGIN>\n## `forProperty`",
"2-way binds to an instance property.",
" Parameters:\n - instance -- the object instance\n - propertyName -- the name of the property to bind to\n - useGetter: when True, calls the getter method to obtain the value. When False, the signal argument is use... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind API.
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 bind API.
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... | Creates an endpoint and call bindToEndpoint(endpoint). This is a convenience method.
Parameters:
instance -- the object instance to which the getter, setter and changedSignal belong
setter -- the value setter method
valueChangedSignal -- the pyqtSignal that is emitted with t... | "Creates an endpoint and call bindToEndpoint(endpoint). This is a convenience method.\n\n Parameters:\n instance -- the object instance to which the getter, setter and changedSignal belong\n setter -- the value setter method\n valueChangedSignal -- the pyqtSignal that is emitted ... | 20 | false | jkokorian/pyqt2waybinding | bind | 6,561 | |
LDU_FT/closeio/redis-hashring/contains | LDU_FT | [
"<BEGIN>\n## `_fetch`",
"Internal helper that fetches the ring from Redis, including only active\n nodes/replicas. Returns a list of tuples (start, replica) (see\n _fetch_all docs for more details).\n<END>",
"<BEGIN>\n## `_fetch_all`",
"Internal helper that fetches the ring from Redis, including... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contains API.
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 contains API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Returns a boolean indicating if this node is responsible for handling
the given key. | "Returns a boolean indicating if this node is responsible for handling\n the given key." | 21 | false | closeio/redis-hashring | contains | 6,562 | |
LDU_FT/TeamHG-Memex/eli5/get_num_features | LDU_FT | [
"<BEGIN>\n## `explain_weights_lightning`",
"Return an explanation of a lightning estimator weights\n<END>",
"<BEGIN>\n## `explain_prediction_lightning`",
"Return an explanation of a lightning estimator predictions\n<END>",
"<BEGIN>\n## `format_as_html`",
"Format explanation as html.\n Most styles are i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_num_features API.
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_num_features API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return size of a feature vector estimator expects as an input. | "Return size of a feature vector estimator expects as an input." | 391 | false | TeamHG-Memex/eli5 | get_num_features | 6,563 | |
LDU_FT/mdorn/pyinstapaper/add | LDU_FT | [
"<BEGIN>\n## `login`",
"Authenticate using XAuth variant of OAuth.",
" :param str username: Username or email address for the relevant account\n :param str password: Password for the account\n<END>",
"<BEGIN>\n## `request`",
"Process a request using the OAuth client's request method.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Save an object to Instapaper after instantiating it.
Example::
folder = Folder(instapaper, title='stuff')
result = folder.add() | "Save an object to Instapaper after instantiating it.\n\n Example::\n\n folder = Folder(instapaper, title='stuff')\n result = folder.add()" | 22 | false | mdorn/pyinstapaper | add | 6,564 | |
LDU_FT/ericjang/tdb/s | LDU_FT | [
"<BEGIN>\n## `s`",
"step to the next node in the execution order\n<END>",
"<BEGIN>\n## `get_values`",
"returns final values (same result as tf.Session.run())\n<END>",
"<BEGIN>\n## `_init_evals_bps`",
"HTOps may depend on tf.Tensors that are not in eval. We need to have all inputs to HTOps ready\n\t\tupon ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the s API.
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 docum... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the s API.
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 docum... | step to the next node in the execution order | "step to the next node in the execution order" | 35 | false | ericjang/tdb | s | 6,565 | |
LDU_FT/mozilla/treeherder/get_artifact | LDU_FT | [
"<BEGIN>\n## `dict_to_op`",
"Create a bulk-indexing operation from the given dictionary.\n<END>",
"<BEGIN>\n## `to_dict`",
"Create a filtered dict from the given object.",
" Note: This function is currently specific to the FailureLine model.\n<END>",
"<BEGIN>\n## `build_removals`",
"active_jobs - all... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_artifact API.
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_artifact API.
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 the job artifact built by the parser. | "Return the job artifact built by the parser." | 386 | false | mozilla/treeherder | get_artifact | 6,566 | |
LDU_FT/combust/mleap/fit | LDU_FT | [
"<BEGIN>\n## `fit`",
"Fit label encoder",
" Parameters\n ----------\n y : array-like of shape (n_samples,)\n Target values.",
" Returns\n -------\n self : returns an instance of self.\n<END>",
"<BEGIN>\n## `fit_transform`",
"Fit label encoder and return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
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 fit API.
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... | Fit label encoder
Parameters
----------
y : array-like of shape (n_samples,)
Target values.
Returns
-------
self : returns an instance of self. | "Fit label encoder\n\n Parameters\n ----------\n y : array-like of shape (n_samples,)\n Target values.\n\n Returns\n -------\n self : returns an instance of self." | 34 | false | combust/mleap | fit | 6,567 | |
LDU_FT/iblancasa/GitHubCity/configToJson | LDU_FT | [
"<BEGIN>\n## `export`",
"Export all attributes of the user to a dict.",
" :return: attributes of the user.\n :rtype: dict.\n<END>",
"<BEGIN>\n## `__getContributions`",
"Scrap the contributions from a GitHub profile.",
" :param web: parsed web.\n :type web: BeautifulSoup node.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configToJson API.
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 configToJson API.
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... | Save the configuration of the city in a JSON.
:param fileName: path to the output file.
:type fileName: str. | "Save the configuration of the city in a JSON.\n\n :param fileName: path to the output file.\n :type fileName: str." | 97 | false | iblancasa/GitHubCity | configToJson | 6,568 | |
LDU_FT/JelleAalbers/multihist/lookup | LDU_FT | [
"<BEGIN>\n## `from_histogram`",
"Make a Hist1D from a numpy bin_edges + histogram pair\n :param histogram: Initial histogram\n :param bin_edges: Bin edges of histogram. Must be one longer than length of histogram\n :param axis_names: Ignored. Sorry :-)\n :return:\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Lookup values at coordinates.
coordinates: arraylike of coordinates.
Clips if out of range!! TODO: option to throw exception instead.
TODO: Needs tests!! | "Lookup values at coordinates.\n coordinates: arraylike of coordinates.\n\n Clips if out of range!! TODO: option to throw exception instead.\n TODO: Needs tests!!" | 57 | false | JelleAalbers/multihist | lookup | 6,569 | |
LDU_FT/Sheeprider/BitBucket-api/public | LDU_FT | [
"<BEGIN>\n## `auth`",
"Return credentials for current Bitbucket user.\n<END>",
"<BEGIN>\n## `authorize`",
"Call this with your consumer key, secret and callback URL, to\n generate a token for verification.\n<END>",
"<BEGIN>\n## `verify`",
"After converting the token into verifier, call this to fina... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the public API.
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 public API.
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 all public repositories from an user.
If username is not defined, tries to return own public repos. | "Returns all public repositories from an user.\n If username is not defined, tries to return own public repos." | 39 | false | Sheeprider/BitBucket-api | public | 6,570 | |
LDU_FT/getnikola/coil/_author_uid_get | LDU_FT | [
"<BEGIN>\n## `orphans_single`",
"Remove all orphans in the site, in the single user-mode.\n<END>",
"<BEGIN>\n## `password_hash`",
"Hash the password, using bcrypt+sha256.",
" .. versionchanged:: 1.1.0",
" :param str password: Password in plaintext\n :return: password hash\n :rtype: str\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _author_uid_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _author_uid_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 e... | Get the UID of the post author.
:param Post post: The post object to determine authorship of
:return: Author UID
:rtype: str | "Get the UID of the post author.\n\n :param Post post: The post object to determine authorship of\n :return: Author UID\n :rtype: str" | 68 | false | getnikola/coil | _author_uid_get | 6,571 | |
LDU_FT/dbrattli/OSlash/asks | LDU_FT | [
"<BEGIN>\n## `map`",
"r\"\"\"Map a function over the Reader.",
" Haskell:\n fmap f m = Reader $ \\r -> f (runReader m r).\n fmap f g = (\\x -> f (g x))\n<END>",
"<BEGIN>\n## `bind`",
"r\"\"\"Bind a monadic function to the Reader.",
" Haskell:\n Reader: m >>= k = Reader ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asks API.
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 asks API.
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... | Given a function it returns a Reader which evaluates that
function and returns the result.
asks :: (e -> a) -> R e a
asks f = do
e <- ask
return $ f e
asks sel = ask >>= return . sel | "Given a function it returns a Reader which evaluates that\n function and returns the result.\n\n asks :: (e -> a) -> R e a\n asks f = do\n e <- ask\n return $ f e\n\n asks sel = ask >>= return . sel" | 76 | false | dbrattli/OSlash | asks | 6,572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.