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/scizzorz/bumpy/_help | LDU_FT | [
"<BEGIN>\n## `_opts_to_dict`",
"Convert a tuple of options returned from getopt into a dictionary.\n<END>",
"<BEGIN>\n## `_highlight`",
"Return a string highlighted for a terminal.\n<END>",
"<BEGIN>\n## `task`",
"Register a function as a task, as well as applying any attributes.\n<END>",
"<BEGIN>\n## `v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _help API.
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 _help API.
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... | Print all available tasks and descriptions. | "Print all available tasks and descriptions." | 22 | false | scizzorz/bumpy | _help | 19,973 | |
LDU_FT/numirias/firefed/arg_default | LDU_FT | [
"<BEGIN>\n## `profile_dir`",
"Return path to FF profile for a given profile name or path.\n<END>",
"<BEGIN>\n## `arg`",
"Return an attrib() that can be fed as a command-line argument.",
" This function is a wrapper for an attr.attrib to create a corresponding\n command line argument for it. Use it wit... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arg_default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arg_default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return default argument value as given by argparse's add_argument().
The argument is passed through a mocked-up argument parser. This way, we
get default parameters even if the feature is called directly and not
through the CLI. | "Return default argument value as given by argparse's add_argument().\n\n The argument is passed through a mocked-up argument parser. This way, we\n get default parameters even if the feature is called directly and not\n through the CLI." | 22 | false | numirias/firefed | arg_default | 19,974 | |
LDU_FT/pudo/dataset/in_transaction | LDU_FT | [
"<BEGIN>\n## `normalize_column_name`",
"Check if a string is a reasonable thing to use as a column name.\n<END>",
"<BEGIN>\n## `normalize_table_name`",
"Check if the table name is obviously invalid.\n<END>",
"<BEGIN>\n## `safe_url`",
"Remove password from printed connection URLs.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_transaction API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_transaction API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Check if this database is in a transactional context. | "Check if this database is in a transactional context." | 128 | false | pudo/dataset | in_transaction | 19,975 | |
LDU_FT/bpannier/simpletr64/getEthernetStatistic | LDU_FT | [
"<BEGIN>\n## `getLinkInfo`",
"Execute GetInfo action to get basic WAN link information's.",
" :param int wanInterfaceId: the id of the WAN device\n :param float timeout: the timeout to wait for the action to be executed\n :return: basic WAN link information's\n :rtype: WanLinkInfo\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getEthernetStatistic 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 getEthernetStatistic API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Execute GetStatistics action to get statistics of the Ethernet interface.
:param int lanInterfaceId: the id of the LAN interface
:param float timeout: the timeout to wait for the action to be executed
:return: statisticss of the Ethernet interface.
:rtype: EthernetStatistic | "Execute GetStatistics action to get statistics of the Ethernet interface.\n\n :param int lanInterfaceId: the id of the LAN interface\n :param float timeout: the timeout to wait for the action to be executed\n :return: statisticss of the Ethernet interface.\n :rtype: EthernetStatistic" | 196 | false | bpannier/simpletr64 | getEthernetStatistic | 19,976 | |
LDU_FT/ace0/pyrelic/_scalarMultiply | LDU_FT | [
"<BEGIN>\n## `assertSameType`",
"Raises an exception if @b is not an instance of type(@a)\n<END>",
"<BEGIN>\n## `assertType`",
"Asserts that a variable @var is of an @expectedType. Raises a TypeError\n if the assertion fails.\n<END>",
"<BEGIN>\n## `dp`",
"Debugging print. Prints a list of labels and va... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _scalarMultiply API.
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 _scalarMultiply API.
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... | Performs scalar multiplication between point P \in G, scalar a \in Z,
using the function @relicScalarMult. @n is the order of the group G. | "Performs scalar multiplication between point P \\in G, scalar a \\in Z, \n using the function @relicScalarMult. @n is the order of the group G." | 109 | false | ace0/pyrelic | _scalarMultiply | 19,977 | |
LDU_FT/sassoftware/sas_kernel/do_shutdown | LDU_FT | [
"<BEGIN>\n## `line_showLog`",
"SAS Kernel magic to show the SAS log for the previous submitted code.\n This magic is only available within the SAS Kernel\n<END>",
"<BEGIN>\n## `line_showFullLog`",
"SAS Kernel magic to show the entire SAS log since the kernel was started (last restarted)\n This m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_shutdown API.
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 do_shutdown API.
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... | Shut down the app gracefully, saving history. | "Shut down the app gracefully, saving history." | 16 | false | sassoftware/sas_kernel | do_shutdown | 19,978 | |
LDU_FT/zengbin93/zb/backward_propagation | LDU_FT | [
"<BEGIN>\n## `layer_sizes`",
"Arguments:\n X -- input dataset of shape (input size, number of examples)\n Y -- labels of shape (output size, number of examples)",
" Returns:\n n_x -- the size of the input layer\n n_h -- the size of the hidden layer\n n_y -- the size of the output layer\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backward_propagation 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 backward_propagation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Implement the backward propagation using the instructions above.
Arguments:
parameters -- python dictionary containing our parameters
cache -- a dictionary containing "Z1", "A1", "Z2" and "A2".
X -- input data of shape (2, number of examples)
Y -- "true" labels vector of shape (1, number of example... | "Implement the backward propagation using the instructions above.\n\n Arguments:\n parameters -- python dictionary containing our parameters\n cache -- a dictionary containing \"Z1\", \"A1\", \"Z2\" and \"A2\".\n X -- input data of shape (2, number of examples)\n Y -- \"true\" labels vector of shape (1, ... | 101 | false | zengbin93/zb | backward_propagation | 19,979 | |
LDU_FT/jpoullet2000/atlasclient/update | LDU_FT | [
"<BEGIN>\n## `handle_response`",
"Given a requests.Response object, throw the appropriate exception, if applicable.\n<END>",
"<BEGIN>\n## `create`",
"Create a new instance of this resource type.",
" As a general rule, the identifier should have been provided, but in\n some subclasses the ident... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Update a resource by passing in modifications via keyword arguments. | "Update a resource by passing in modifications via keyword arguments." | 66 | false | jpoullet2000/atlasclient | update | 19,980 | |
LDU_FT/rhayes777/PyAutoFit/signal_to_noise_map | LDU_FT | [
"<BEGIN>\n## `residual_map_from_data_mask_and_model_data`",
"Compute the residual map between a masked observed data and model data, where:",
" Residuals = (Data - Model_Data).",
" Parameters\n -----------\n data : np.ndarray\n The observed data that is fitted.\n mask : np.ndarray\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the signal_to_noise_map 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 signal_to_noise_map 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... | The signal-to-noise_map of the data and noise-map which are fitted. | "The signal-to-noise_map of the data and noise-map which are fitted." | 243 | false | rhayes777/PyAutoFit | signal_to_noise_map | 19,981 | |
LDU_FT/nephila/python-taiga/patch | LDU_FT | [
"<BEGIN>\n## `list`",
"Retrieves a list of objects.",
" By default uses local cache and remote pagination",
" If pagination is used and no page is requested (the default), all the\n remote objects are retrieved and appended in a single list.",
" If pagination is disabled, all the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch API.
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 patch API.
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... | Patch the current :class:`InstanceResource` | "Patch the current :class:`InstanceResource`" | 162 | false | nephila/python-taiga | patch | 19,982 | |
LDU_FT/Feneric/doxypypy/__alterDocstring | LDU_FT | [
"<BEGIN>\n## `coroutine`",
"Basic decorator to implement the coroutine pattern.\n<END>",
"<BEGIN>\n## `main`",
"Starts the parser on the file given by the filename as the first\n argument on the command line.\n<END>",
"<BEGIN>\n## `_endCodeIfNeeded`",
"Simple routine to append end code marker if needed... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __alterDocstring API.
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 __alterDocstring API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Runs eternally, processing docstring lines.
Parses docstring lines as they get fed in via send, applies appropriate
Doxygen tags, and passes them along in batches for writing. | "Runs eternally, processing docstring lines.\n\n Parses docstring lines as they get fed in via send, applies appropriate\n Doxygen tags, and passes them along in batches for writing." | 46 | false | Feneric/doxypypy | __alterDocstring | 19,983 | |
LDU_FT/ecmwf/cfgrib/codes_write | LDU_FT | [
"<BEGIN>\n## `from_grib_date_time`",
"Return the number of seconds since the ``epoch`` from the values of the ``message`` keys,\n using datetime.total_seconds().",
" :param message: the target GRIB message\n :param date_key: the date key, defaults to \"dataDate\"\n :param time_key: the time key, def... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the codes_write API.
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 codes_write API.
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 coded message to a file. If the file does not exist, it is created.
:param str path: (optional) the path to the GRIB file;
defaults to the one of the open index. | "Write a coded message to a file. If the file does not exist, it is created.\n\n :param str path: (optional) the path to the GRIB file;\n defaults to the one of the open index." | 50 | false | ecmwf/cfgrib | codes_write | 19,984 | |
LDU_FT/notanumber/xapian-haystack/_do_query_facets | LDU_FT | [
"<BEGIN>\n## `_term_to_xapian_value`",
"Converts a term to a serialized\n Xapian value based on the field_type.\n<END>",
"<BEGIN>\n## `_from_xapian_value`",
"Converts a serialized Xapian value\n to Python equivalent based on the field_type.",
" Doesn't accept multivalued fields.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _do_query_facets API.
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 _do_query_facets API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Private method that facets a document by query
Required arguments:
`results` -- A list SearchResults to facet
`query_facets` -- A dictionary containing facet parameters:
{'field': 'query', [...]}
For each query in `query_facets`, generates a dictionary entry wit... | "Private method that facets a document by query\n\n Required arguments:\n `results` -- A list SearchResults to facet\n `query_facets` -- A dictionary containing facet parameters:\n {'field': 'query', [...]}\n\n For each query in `query_facets`, generates a dictionary e... | 127 | false | notanumber/xapian-haystack | _do_query_facets | 19,985 | |
LDU_FT/henrysher/kotocore/full_post_process | LDU_FT | [
"<BEGIN>\n## `get_version`",
"Returns a string-ified version number.",
" Optionally accepts a ``full`` parameter, which if ``True``, will include\n any pre-release information. (Default: ``False``)\n<END>",
"<BEGIN>\n## `requires_loaded`",
"A decorator to ensure the resource data is loaded.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_post_process API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_post_process API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | When a response from an API method call is received, this goes through
the returned data & run a series of hooks to allow for handling that
data.
Typically, this method is **NOT** call by the user. However, the user
may wish to define other methods (i.e. ``post_process`` to work with
... | "When a response from an API method call is received, this goes through\n the returned data & run a series of hooks to allow for handling that\n data.\n\n Typically, this method is **NOT** call by the user. However, the user\n may wish to define other methods (i.e. ``post_process`` to work w... | 198 | false | henrysher/kotocore | full_post_process | 19,986 | |
LDU_FT/INM-6/hybridLFPy/plotting_correlation | LDU_FT | [
"<BEGIN>\n## `plot_signal_sum`",
"on axes plot the signal contributions",
" args:\n ::\n ax : matplotlib.axes.AxesSubplot object\n z : np.ndarray\n T : list, [tstart, tstop], which timeinterval\n ylims : list, set range of yaxis to scale with other plots\n fancy : bool, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plotting_correlation 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 plotting_correlation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | mls
on axes plot the correlation between x0 and x1
args:
::
x0 : first dataset
x1 : second dataset - the LFP usually here
ax : matplotlib.axes.AxesSubplot object
title : text to be used as current axis object title
normalize : if True, signals are z-scored before... | "mls\n on axes plot the correlation between x0 and x1\n \n args:\n ::\n x0 : first dataset\n x1 : second dataset - the LFP usually here\n ax : matplotlib.axes.AxesSubplot object\n title : text to be used as current axis object title\n normalize : if True, signals are z-sco... | 412 | false | INM-6/hybridLFPy | plotting_correlation | 19,987 | |
LDU_FT/hmmlearn/hmmlearn/get_stationary_distribution | LDU_FT | [
"<BEGIN>\n## `log_multivariate_normal_density`",
"Compute the log probability under a multivariate Gaussian distribution.\n Parameters\n ----------\n X : array_like, shape (n_samples, n_features)\n List of n_features-dimensional data points. Each row corresponds to a\n single data point.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stationary_distribution 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 get_stationary_distribution API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Compute the stationary distribution of states. | "Compute the stationary distribution of states." | 108 | false | hmmlearn/hmmlearn | get_stationary_distribution | 19,988 | |
LDU_FT/OSSOS/MOP/flip_flip | LDU_FT | [
"<BEGIN>\n## `set_ds9`",
"Set the default values on the ds9 display.\n<END>",
"<BEGIN>\n## `cfht_megacam_tap_query`",
"Do a query of the CADC Megacam table.",
" Get all observations inside the box (right now it turns width/height into a radius, should not do this).",
" @rtype : Table\n @param ra_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flip_flip API.
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 flip_flip API.
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... | Sometimes we 'flipped' the X/Y coordinates of the image during processing. This function takes an
(x,y) location from the processing pipeline and returns the x/y location relative to the original
reference frame. (Correctly checks if the coordinate is flipped to begin with.)
This is only for... | "Sometimes we 'flipped' the X/Y coordinates of the image during processing. This function takes an\n (x,y) location from the processing pipeline and returns the x/y location relative to the original\n reference frame. (Correctly checks if the coordinate is flipped to begin with.)\n\n This is onl... | 717 | false | OSSOS/MOP | flip_flip | 19,989 | |
LDU_FT/nagius/snmp_passpersist/add_oct | LDU_FT | [
"<BEGIN>\n## `encode`",
"Encode the given string as an OID.",
"\t\t>>> import snmp_passpersist as snmp\n\t\t>>> snmp.PassPersist.encode(\"hello\")\n\t\t'5.104.101.108.108.111'\n\t\t>>>\n<END>",
"<BEGIN>\n## `cut_oid`",
"Remove the base OID from the given string.",
"\t\t>>> import snmp_passpersist as snmp\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_oct API.
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 add_oct API.
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... | Short helper to add an octet value to the MIB subtree. | "Short helper to add an octet value to the MIB subtree." | 38 | false | nagius/snmp_passpersist | add_oct | 19,990 | |
LDU_FT/JamesPHoughton/pysd/get_equation_components | LDU_FT | [
"<BEGIN>\n## `parse`",
"context : <string> 'eqn', 'defn'\n If context is set to equation, lone identifiers will be parsed as calls to elements\n If context is set to definition, lone identifiers will be cleaned and returned.\n<END>",
"<BEGIN>\n## `read_tabular`",
"Reads a vensim ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_equation_components API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_equation_components API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Breaks down a string representing only the equation part of a model element.
Recognizes the various types of model elements that may exist, and identifies them.
Parameters
----------
equation_str : basestring
the first section in each model element - the full equation.
Returns
-------
... | "Breaks down a string representing only the equation part of a model element.\n Recognizes the various types of model elements that may exist, and identifies them.\n\n Parameters\n ----------\n equation_str : basestring\n the first section in each model element - the full equation.\n\n Returns\n ... | 268 | false | JamesPHoughton/pysd | get_equation_components | 19,991 | |
LDU_FT/Unidata/siphon/unpack_attribute | LDU_FT | [
"<BEGIN>\n## `open_store_variable`",
"Turn CDMRemote variable into something like a numpy.ndarray.\n<END>",
"<BEGIN>\n## `get_attrs`",
"Get the global attributes from underlying data set.\n<END>",
"<BEGIN>\n## `get_dimensions`",
"Get the dimensions from underlying data set.\n<END>",
"<BEGIN>\n## `_find_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack_attribute API.
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 unpack_attribute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Unpack an embedded attribute into a python or numpy object. | "Unpack an embedded attribute into a python or numpy object." | 309 | false | Unidata/siphon | unpack_attribute | 19,992 | |
LDU_FT/TadLeonard/tfatool/up_by_time | LDU_FT | [
"<BEGIN>\n## `up_down_by_arrival`",
"Monitors a local directory and a remote FlashAir directory and\n generates sets of new files to be uploaded or downloaded.\n Sets to upload are generated in a tuple\n like (Direction.up, {...}), while download sets to download\n are generated in a tuple like (Direc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the up_by_time API.
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 up_by_time API.
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... | Sync most recent file by date, time attribues | "Sync most recent file by date, time attribues" | 34 | false | TadLeonard/tfatool | up_by_time | 19,993 | |
LDU_FT/PonteIneptique/flask-github-proxy/get_ref | LDU_FT | [
"<BEGIN>\n## `AdvancedJsonify`",
"Advanced Jsonify Response Maker",
" :param data: Data\n :param status_code: Status_code\n :return: Response\n<END>",
"<BEGIN>\n## `response`",
"View representation of the object",
" :param callback: Function to represent the error in view. Defa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ref API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ref API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Check if a reference exists
:param branch: The branch to check if it exists
:return: Sha of the branch if it exists, False if it does not exist, self.ProxyError if it went wrong | "Check if a reference exists\n\n :param branch: The branch to check if it exists\n :return: Sha of the branch if it exists, False if it does not exist, self.ProxyError if it went wrong" | 52 | false | PonteIneptique/flask-github-proxy | get_ref | 19,994 | |
LDU_FT/bitcraft/pyscroll/get_center_offset | LDU_FT | [
"<BEGIN>\n## `hit`",
"Returns the items that overlap a bounding rectangle.",
" Returns the set of all items in the quad-tree that overlap with a\n bounding rectangle.",
" @param rect:\n The bounding rectangle being tested against the quad-tree. This\n must possess le... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_center_offset API.
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_center_offset API.
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 x, y pair that will change world coords to screen coords
:return: int, int | "Return x, y pair that will change world coords to screen coords\n :return: int, int" | 112 | false | bitcraft/pyscroll | get_center_offset | 19,995 | |
LDU_FT/pvlib/pvlib-python/retrieve_sam | LDU_FT | [
"<BEGIN>\n## `systemdef`",
"Generates a dict of system parameters used throughout a simulation.",
" Parameters\n ----------",
" meta : dict\n meta dict either generated from a TMY file using readtmy2 or\n readtmy3, or a dict containing at least the following fields:",
" ===... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_sam API.
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 retrieve_sam API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Retrieve latest module and inverter info from a local file or the
SAM website.
This function will retrieve either:
* CEC module database
* Sandia Module database
* CEC Inverter database
* Anton Driesse Inverter database
and return it as a pandas DataFrame.
Parameters
... | "Retrieve latest module and inverter info from a local file or the\n SAM website.\n\n This function will retrieve either:\n\n * CEC module database\n * Sandia Module database\n * CEC Inverter database\n * Anton Driesse Inverter database\n\n and return it as a pandas DataFrame.\n\n ... | 1,499 | true | pvlib/pvlib-python | retrieve_sam | 19,996 | |
LDU_FT/gmr/tinman/prepare | LDU_FT | [
"<BEGIN>\n## `main`",
"Invoked by the script installed by setuptools.\n<END>",
"<BEGIN>\n## `enable_debug`",
"If the cli arg for foreground is set, set the configuration option\n for debug.\n<END>",
"<BEGIN>\n## `insert_paths`",
"Inserts a base path into the sys.path list if one is specified in\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare API.
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 prepare API.
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... | Prepare the session, setting up the session object and loading in
the values, assigning the IP address to the session if it's an new one. | "Prepare the session, setting up the session object and loading in\n the values, assigning the IP address to the session if it's an new one." | 270 | false | gmr/tinman | prepare | 19,997 | |
LDU_FT/rogerhil/thegamesdb/get_response | LDU_FT | [
"<BEGIN>\n## `get`",
"Gets the dict data and builds the item object.\n<END>",
"<BEGIN>\n## `list`",
"The name argument is required for this method as per the API\n server specification. This method also provides the platform and genre\n optional arguments as filters.\n<END>",
"<BEGIN>\n## `lis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Giving a service path and optional specific arguments, returns
the response string. | "Giving a service path and optional specific arguments, returns\n the response string." | 16 | false | rogerhil/thegamesdb | get_response | 19,998 | |
LDU_FT/eyurtsev/fcsparser/load_file | LDU_FT | [
"<BEGIN>\n## `fromfile`",
"Wrapper around np.fromfile to support any file-like object.\n<END>",
"<BEGIN>\n## `parse`",
"Parse an fcs file at the location specified by the path.",
" Parameters\n ----------\n path: str\n Path of .fcs file\n meta_data_only: bool\n If True, the parse_f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Load the requested parts of the file into memory. | "Load the requested parts of the file into memory." | 39 | false | eyurtsev/fcsparser | load_file | 19,999 | |
LDU_FT/jbeluch/xbmcswift2/get_user_choice | LDU_FT | [
"<BEGIN>\n## `display_listitems`",
"Displays a list of items along with the index to enable a user\n to select an item.\n<END>",
"<BEGIN>\n## `display_video`",
"Prints a message for a playing video and displays the parent\n listitem.\n<END>",
"<BEGIN>\n## `get_user_choice`",
"Returns the selected it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_choice API.
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_user_choice API.
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 the selected item from provided items or None if 'q' was
entered for quit. | "Returns the selected item from provided items or None if 'q' was\n entered for quit." | 164 | false | jbeluch/xbmcswift2 | get_user_choice | 20,000 | |
LDU_FT/mapbox/mapbox-cli-py/directions | LDU_FT | [
"<BEGIN>\n## `match`",
"Mapbox Map Matching API lets you use snap your GPS traces\nto the OpenStreetMap road and path network.",
" $ mapbox mapmatching trace.geojson",
"An access token is required, see `mapbox --help`.\n<END>",
"<BEGIN>\n## `staticmap`",
"Generate static map images from existing Mapb... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the directions API.
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 directions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | The Mapbox Directions API will show you how to get
where you're going.
mapbox directions "[0, 0]" "[1, 1]"
An access token is required. See "mapbox --help". | "The Mapbox Directions API will show you how to get\n where you're going.\n\n mapbox directions \"[0, 0]\" \"[1, 1]\"\n\n An access token is required. See \"mapbox --help\"." | 81 | false | mapbox/mapbox-cli-py | directions | 20,001 | |
LDU_FT/aio-libs/aiohttp/shutdown | LDU_FT | [
"<BEGIN>\n## `_cleanup_closed`",
"Double confirmation for transport close.\n Some broken ssl servers may leave socket open without proper close.\n<END>",
"<BEGIN>\n## `_available_connections`",
"Return number of available connections taking into account\n the limit, limit_per_host and the connec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shutdown API.
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 shutdown API.
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... | Worker process is about to exit, we need cleanup everything and
stop accepting requests. It is especially important for keep-alive
connections. | "Worker process is about to exit, we need cleanup everything and\n stop accepting requests. It is especially important for keep-alive\n connections." | 233 | false | aio-libs/aiohttp | shutdown | 20,002 | |
LDU_FT/cebel/pyuniprot/get_connection_string | LDU_FT | [
"<BEGIN>\n## `get_args`",
"Check allowed argument names and return is as dictionary\n<END>",
"<BEGIN>\n## `query_disease`",
"Returns list of diseases by query parameters\n ---",
" tags:",
" - Query functions",
" parameters:",
" - name: identifier\n in: query\n type: st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connection_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connection_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | return SQLAlchemy connection string if it is set
:param connection: get the SQLAlchemy connection string #TODO
:rtype: str | "return SQLAlchemy connection string if it is set\n\n :param connection: get the SQLAlchemy connection string #TODO\n :rtype: str" | 416 | false | cebel/pyuniprot | get_connection_string | 20,003 | |
LDU_FT/kxgames/vecrec/get_radians | LDU_FT | [
"<BEGIN>\n## `random`",
"Create a unit vector pointing in a random direction.\n<END>",
"<BEGIN>\n## `from_rectangle`",
"Create a vector randomly within the given rectangle.\n<END>",
"<BEGIN>\n## `interpolate`",
"Move this vector towards the given towards the target by the given \n extent. The exte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_radians API.
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_radians API.
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 the angle between this vector and the positive x-axis
measured in radians. Result will be between -pi and pi. | "Return the angle between this vector and the positive x-axis \n measured in radians. Result will be between -pi and pi." | 49 | false | kxgames/vecrec | get_radians | 20,004 | |
LDU_FT/what-studio/profiling/import_ | LDU_FT | [
"<BEGIN>\n## `by_own_time_per_call`",
"Sorting by exclusive elapsed time per call in descending order.\n<END>",
"<BEGIN>\n## `result`",
"Gets the frozen statistics to serialize by Pickle.\n<END>",
"<BEGIN>\n## `dump`",
"Saves the profiling result to a file",
" :param dump_filename: path to a file... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_ API.
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 import_ API.
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... | Imports an object by a relative module path::
Profiler = import_('profiling.profiler', 'Profiler') | "Imports an object by a relative module path::\n\n Profiler = import_('profiling.profiler', 'Profiler')" | 83 | false | what-studio/profiling | import_ | 20,005 | |
LDU_FT/spacetelescope/synphot_refactor/evaluate | LDU_FT | [
"<BEGIN>\n## `overlap_status`",
"Check overlap between two arrays.",
" Parameters\n ----------\n a, b : array-like\n Arrays to check. Assumed to be in the same unit.",
" Returns\n -------\n result : {'full', 'partial', 'none'}\n * 'full' - ``a`` is within or same as ``b``\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API.
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 evaluate API.
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... | Return flux in PHOTLAM. Assume input wavelength is in Angstrom. | "Return flux in PHOTLAM. Assume input wavelength is in Angstrom." | 519 | false | spacetelescope/synphot_refactor | evaluate | 20,006 | |
LDU_FT/autokey/autokey/show_error_dialog | LDU_FT | [
"<BEGIN>\n## `save`",
"Called by the parent settings dialog when the user clicks on the Save button.\n Stores the current settings in the ConfigManager.\n<END>",
"<BEGIN>\n## `_settings_str`",
"Returns a human readable settings representation for logging purposes.\n<END>",
"<BEGIN>\n## `_should_trigg... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_error_dialog API.
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 show_error_dialog API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Convenience method for showing an error dialog. | "Convenience method for showing an error dialog." | 363 | false | autokey/autokey | show_error_dialog | 20,007 | |
LDU_FT/vpelletier/pprofile/callgrind | LDU_FT | [
"<BEGIN>\n## `_iterOutFiles`",
"Yields path, data, mimetype for each file involved on or produced by\n profiling.\n<END>",
"<BEGIN>\n## `asMIMEString`",
"Return a mime-multipart representation of:\n - callgrind profiling statistics (cachegrind.out.pprofile)\n - any SQL query issued via ZM... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the callgrind API.
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 callgrind API.
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... | Dump statistics in callgrind format.
Contains:
- per-line hit count, time and time-per-hit
- call associations (call tree)
Note: hit count is not inclusive, in that it is not the sum of all
hits inside that call.
Time unit: microsecond (1e-6 second).
out (file... | "Dump statistics in callgrind format.\n Contains:\n - per-line hit count, time and time-per-hit\n - call associations (call tree)\n Note: hit count is not inclusive, in that it is not the sum of all\n hits inside that call.\n Time unit: microsecond (1e-6 second).\n o... | 32 | false | vpelletier/pprofile | callgrind | 20,008 | |
LDU_FT/CRS-support/ftw/parse_content_encoding | LDU_FT | [
"<BEGIN>\n## `parse_content_encoding`",
"Parses a response that contains Content-Encoding to retrieve\n response_data\n<END>",
"<BEGIN>\n## `process_response`",
"Parses an HTTP response after an HTTP request is sent\n<END>",
"<BEGIN>\n## `find_cookie`",
"Find a list of all cookies for a given domai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_content_encoding API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_content_encoding API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Parses a response that contains Content-Encoding to retrieve
response_data | "Parses a response that contains Content-Encoding to retrieve\n response_data" | 12 | false | CRS-support/ftw | parse_content_encoding | 20,009 | |
LDU_FT/NYUCCL/psiTurk/do_config | LDU_FT | [
"<BEGIN>\n## `check_auth`",
"This function is called to check if a username password combination\n is valid.\n<END>",
"<BEGIN>\n## `requires_auth`",
"Decorator to prompt for user name and password. Useful for data dumps,\n etc. That you don't want to be public.\n<END>",
"<BEGIN>\n## `get_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Usage:
config print
config reload
config help | "Usage:\n config print\n config reload\n config help" | 65 | false | NYUCCL/psiTurk | do_config | 20,010 | |
LDU_FT/Trax-air/swagger-parser/_validate_query_parameters | LDU_FT | [
"<BEGIN>\n## `_validate_post_body`",
"returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>",
"<BEGIN>\n## `build_definitions_example`",
"Parse all definitions in the swagger specification.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_query_parameters 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 _validate_query_parameters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Check the query parameter for the action specification.
Args:
query: query parameter to check.
action_spec: specification of the action.
Returns:
True if the query is valid. | "Check the query parameter for the action specification.\n\n Args:\n query: query parameter to check.\n action_spec: specification of the action.\n\n Returns:\n True if the query is valid." | 100 | false | Trax-air/swagger-parser | _validate_query_parameters | 20,011 | |
LDU_FT/genomoncology/related/to_mapping_field | LDU_FT | [
"<BEGIN>\n## `init_default`",
"Returns optional default if field is not required and\n default was not provided.",
" :param bool required: whether the field is required in a given model.\n :param default: default provided by creator of field.\n :param optional_default: default for the data type if n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_mapping_field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_mapping_field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns a callable instance that will convert a value to a Mapping.
:param cls: Valid class type of the items in the Sequence.
:param key: Attribute name of the key value in each item of cls instance.
:return: instance of the MappingConverter. | "Returns a callable instance that will convert a value to a Mapping.\n\n :param cls: Valid class type of the items in the Sequence.\n :param key: Attribute name of the key value in each item of cls instance.\n :return: instance of the MappingConverter." | 95 | false | genomoncology/related | to_mapping_field | 20,012 | |
LDU_FT/pybel/pybel/flatten_dict | LDU_FT | [
"<BEGIN>\n## `postpend_location`",
"Rip off the closing parentheses and adds canonicalized modification.",
" I did this because writing a whole new parsing model for the data would be sad and difficult",
" :param bel_string: BEL string representing node\n :param dict location_model: A dictionary cont... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Flatten a nested dictionary.
:param data: A nested dictionary
:type data: dict or MutableMapping
:param str parent_key: The parent's key. This is a value for tail recursion, so don't set it yourself.
:param str sep: The separator used between dictionary levels
:rtype: dict
.. seealso:: http://... | "Flatten a nested dictionary.\n\n :param data: A nested dictionary\n :type data: dict or MutableMapping\n :param str parent_key: The parent's key. This is a value for tail recursion, so don't set it yourself.\n :param str sep: The separator used between dictionary levels\n :rtype: dict\n\n .. seealso:... | 1,164 | true | pybel/pybel | flatten_dict | 20,013 | |
LDU_FT/rytilahti/python-songpal/print_settings | LDU_FT | [
"<BEGIN>\n## `make`",
"Create a container.",
" Reports extra keys as well as missing ones.\n Thanks to habnabit for the idea!\n<END>",
"<BEGIN>\n## `create_post_request`",
"Call the given method over POST.",
" :param method: Name of the method\n :param params: dict of parameters\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_settings API.
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 print_settings API.
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... | Print all available settings of the device. | "Print all available settings of the device." | 86 | false | rytilahti/python-songpal | print_settings | 20,014 | |
LDU_FT/inveniosoftware-contrib/invenio-workflows/restart_worker | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a new Workflow Object with given content.\n<END>",
"<BEGIN>\n## `query`",
"Wrap sqlalchemy query methods.",
" A wrapper for the filter and filter_by functions of sqlalchemy.\n Define a dict with which columns should be filtered by which values.",
" .. c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restart_worker API.
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 restart_worker API.
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... | Restart workflow from beginning with given engine UUID and any data.
``**kwargs`` can be used to pass custom arguments to the engine/object such
as ``data``. If ``data`` is not specified then it will load all
initial data for the data objects.
Data can be specified as list of objects or single id of
... | "Restart workflow from beginning with given engine UUID and any data.\n\n ``**kwargs`` can be used to pass custom arguments to the engine/object such\n as ``data``. If ``data`` is not specified then it will load all\n initial data for the data objects.\n\n Data can be specified as list of objects or single ... | 135 | false | inveniosoftware-contrib/invenio-workflows | restart_worker | 20,015 | |
LDU_FT/python-bonobo/bonobo/get_reader_factory_for | LDU_FT | [
"<BEGIN>\n## `run`",
"Main entry point of bonobo. It takes a graph and creates all the necessary plumbing around to execute it.",
" The only necessary argument is a :class:`Graph` instance, containing the logic you actually want to execute.",
" By default, this graph will be executed using the \"threadp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reader_factory_for API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reader_factory_for 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 a callable to build a reader for the provided filename, eventually forcing a format.
:param name: filename
:param format: format
:return: type | "Returns a callable to build a reader for the provided filename, eventually forcing a format.\n\n :param name: filename\n :param format: format\n :return: type" | 140 | false | python-bonobo/bonobo | get_reader_factory_for | 20,016 | |
LDU_FT/pyrogram/pyrogram/send_animation | LDU_FT | [
"<BEGIN>\n## `request_callback_answer`",
"Use this method to request a callback answer from bots.\n This is the equivalent of clicking an inline button containing callback data.",
" Args:\n chat_id (``int`` | ``str``):\n Unique identifier (int) or username (str) of the ta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_animation API.
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 send_animation API.
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... | Use this method to send animation files (animation or H.264/MPEG-4 AVC video without sound).
Args:
chat_id (``int`` | ``str``):
Unique identifier (int) or username (str) of the target chat.
For your personal cloud (Saved Messages) you can simply use "me" or "self".
... | "Use this method to send animation files (animation or H.264/MPEG-4 AVC video without sound).\n\n Args:\n chat_id (``int`` | ``str``):\n Unique identifier (int) or username (str) of the target chat.\n For your personal cloud (Saved Messages) you can simply use \"me\" or \... | 1,097 | true | pyrogram/pyrogram | send_animation | 20,017 | |
LDU_FT/jbaiter/gphoto2-cffi/list_cameras | LDU_FT | [
"<BEGIN>\n## `_logging_callback`",
"Callback that outputs libgphoto2's logging message via\n Python's standard logging facilities.",
" :param level: libgphoto2 logging level\n :param domain: component the message originates from\n :param message: logging message\n :param data: Other dat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_cameras API.
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 list_cameras API.
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... | List all attached USB cameras that are supported by libgphoto2.
:return: All recognized cameras
:rtype: list of :py:class:`Camera` | "List all attached USB cameras that are supported by libgphoto2.\n\n :return: All recognized cameras\n :rtype: list of :py:class:`Camera`" | 78 | false | jbaiter/gphoto2-cffi | list_cameras | 20,018 | |
LDU_FT/ClearcodeHQ/mirakuru/start | LDU_FT | [
"<BEGIN>\n## `pre_start_check`",
"Check if process accepts connections.",
" .. note::",
" Process will be considered started, when it'll be able to accept\n TCP connections as defined in initializer.\n<END>",
"<BEGIN>\n## `after_start_check`",
"Check if defined URL returns exp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d... | Start defined process.
After process gets started, timeout countdown begins as well.
:returns: itself
:rtype: SimpleExecutor
.. note::
We want to open ``stdin``, ``stdout`` and ``stderr`` as text
streams in universal newlines mode, so we have to set
... | "Start defined process.\n\n After process gets started, timeout countdown begins as well.\n\n :returns: itself\n :rtype: SimpleExecutor\n\n .. note::\n We want to open ``stdin``, ``stdout`` and ``stderr`` as text\n streams in universal newlines mode, so we have to set\n... | 49 | false | ClearcodeHQ/mirakuru | start | 20,019 | |
LDU_FT/astooke/gtimer/stop | 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 stop API.
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 stop API.
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 end of timing. Optionally performs a stamp, hence accepts the
same arguments.
Notes:
If keeping subdivisions and not calling a stamp, any awaiting subdivisions
will be assigned to a special 'UNASSIGNED' position to indicate that they
are not properly accounted for in the hiera... | "Mark the end of timing. Optionally performs a stamp, hence accepts the\n same arguments.\n\n Notes:\n If keeping subdivisions and not calling a stamp, any awaiting subdivisions\n will be assigned to a special 'UNASSIGNED' position to indicate that they\n are not properly accounted for in th... | 137 | false | astooke/gtimer | stop | 20,020 | |
LDU_FT/nfcpy/nfcpy/service_class_uuid_list | LDU_FT | [
"<BEGIN>\n## `reset_mode`",
"Send a Reset command to set the operation mode to 0.\n<END>",
"<BEGIN>\n## `sense_tta`",
"Activate the RF field and probe for a Type A Target.",
" The RC-S956 can discover all Type A Targets (Type 1 Tag, Type\n 2 Tag, and Type 4A Tag) at 106 kbps. Due to firmware\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the service_class_uuid_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the service_class_uuid_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Listq of Service Class UUIDs. Set and retrieved as a list
of complete 128-bit UUIDs. Decoded from and encoded as EIR
types 0x02/0x03 (16-bit partial/complete UUIDs), 0x04/0x05
(32-bit partial/complete UUIDs), 0x06/0x07 (128-bit
partial/complete UUIDs). | "Listq of Service Class UUIDs. Set and retrieved as a list\n of complete 128-bit UUIDs. Decoded from and encoded as EIR\n types 0x02/0x03 (16-bit partial/complete UUIDs), 0x04/0x05\n (32-bit partial/complete UUIDs), 0x06/0x07 (128-bit\n partial/complete UUIDs)." | 452 | false | nfcpy/nfcpy | service_class_uuid_list | 20,021 | |
LDU_FT/snowblink14/smatch/print_alignment | LDU_FT | [
"<BEGIN>\n## `build_arg_parser`",
"Build an argument parser using argparse. Use it when python version is 2.7 or later.\n<END>",
"<BEGIN>\n## `build_arg_parser2`",
"Build an argument parser using optparse. Use it when python version is 2.5 or 2.6.\n<END>",
"<BEGIN>\n## `get_best_match`",
"Get the highest ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_alignment API.
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 print_alignment API.
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... | print the alignment based on a node mapping
Args:
mapping: current node mapping list
instance1: nodes of AMR 1
instance2: nodes of AMR 2 | "print the alignment based on a node mapping\n Args:\n mapping: current node mapping list\n instance1: nodes of AMR 1\n instance2: nodes of AMR 2" | 54 | false | snowblink14/smatch | print_alignment | 20,022 | |
LDU_FT/kensho-technologies/grift/to_native | LDU_FT | [
"<BEGIN>\n## `load`",
"Load a value, converting it to the proper type if validation_type exists.\n<END>",
"<BEGIN>\n## `_iter_config_props`",
"Iterate over all ConfigProperty attributes, yielding (attr_name, config_property)\n<END>",
"<BEGIN>\n## `_update_property_keys`",
"Set unspecified property_keys fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_native API.
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 to_native API.
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... | Return the value as a dict, raising error if conversion to dict is not possible | "Return the value as a dict, raising error if conversion to dict is not possible" | 39 | false | kensho-technologies/grift | to_native | 20,023 | |
LDU_FT/python-fedex-devs/python-fedex/_assemble_and_send_request | LDU_FT | [
"<BEGIN>\n## `transfer_config_dict`",
"This is a utility function used in the certification modules to transfer\n the data dicts above to SOAP objects. This avoids repetition and allows\n us to store all of our variable configuration here rather than in\n each certification script.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _assemble_and_send_request 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 _assemble_and_send_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Fires off the Fedex request.
@warning: NEVER CALL THIS METHOD DIRECTLY. CALL send_request(), WHICH RESIDES
ON FedexBaseService AND IS INHERITED. | "Fires off the Fedex request.\n \n @warning: NEVER CALL THIS METHOD DIRECTLY. CALL send_request(), WHICH RESIDES\n ON FedexBaseService AND IS INHERITED." | 92 | false | python-fedex-devs/python-fedex | _assemble_and_send_request | 20,024 | |
LDU_FT/kevin-brown/drf-json-api/wrap_default | LDU_FT | [
"<BEGIN>\n## `camelcase`",
"Return a string in lowerCamelCase",
" Examples:\n \"people\" -> \"people\"\n \"profile images\" -> \"profileImages\"\n<END>",
"<BEGIN>\n## `render`",
"Convert native data to JSON API",
" Tries each of the methods in `wrappers`, using the first successful\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Convert native data to a JSON API resource collection
This wrapper expects a standard DRF data object (a dict-like
object with a `fields` dict-like attribute), or a list of
such data objects. | "Convert native data to a JSON API resource collection\n\n This wrapper expects a standard DRF data object (a dict-like\n object with a `fields` dict-like attribute), or a list of\n such data objects." | 34 | false | kevin-brown/drf-json-api | wrap_default | 20,025 | |
LDU_FT/tmr232/Sark/_make_unique_title | LDU_FT | [
"<BEGIN>\n## `get_idb_graph`",
"Export IDB to a NetworkX graph.",
" Use xrefs to and from functions to build a DiGraph containing all\n the functions in the IDB and all the links between them.\n The graph can later be used to perform analysis on the IDB.",
" :return: nx.DiGraph()\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_unique_title API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_unique_title API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Make the title unique.
Adds a counter to the title to prevent duplicates.
Prior to IDA 6.8, two graphs with the same title could crash IDA.
This has been fixed (https://www.hex-rays.com/products/ida/6.8/index.shtml).
The code will not change for support of older versions and as it is
... | "Make the title unique.\n\n Adds a counter to the title to prevent duplicates.\n\n Prior to IDA 6.8, two graphs with the same title could crash IDA.\n This has been fixed (https://www.hex-rays.com/products/ida/6.8/index.shtml).\n The code will not change for support of older versions and as ... | 137 | false | tmr232/Sark | _make_unique_title | 20,026 | |
LDU_FT/google/textfsm/TerminalSize | LDU_FT | [
"<BEGIN>\n## `_SetValues`",
"Set values from supplied dictionary or list.",
" Args:\n values: A Row, dict indexed by column name, or list.",
" Raises:\n TypeError: Argument is not a list or dict, or list is not equal row\n length or dictionary keys don't match.\n<END>",
"<BEGIN>\n## `Fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the TerminalSize API.
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 TerminalSize API.
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 terminal length and width as a tuple. | "Returns terminal length and width as a tuple." | 149 | false | google/textfsm | TerminalSize | 20,027 | |
LDU_FT/pyroscope/pyrocore/_influxdb_url | LDU_FT | [
"<BEGIN>\n## `resolve_slashed`",
"Resolve symlinked directories if they end in a '/',\n remove trailing '/' otherwise.\n<END>",
"<BEGIN>\n## `guarded`",
"Catch exceptions thrown by filesystem calls, and don't really\n execute them in dry-run mode.\n<END>",
"<BEGIN>\n## `_make_it_so`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _influxdb_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _influxdb_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return REST API URL to access time series. | "Return REST API URL to access time series." | 247 | false | pyroscope/pyrocore | _influxdb_url | 20,028 | |
LDU_FT/Jaymon/prom/value | LDU_FT | [
"<BEGIN>\n## `fields`",
"return all the fields and their raw values for this Orm instance. This\n property returns a dict with the field names and their current values",
" if you want to control the values for outputting to an api, use .jsonable()\n<END>",
"<BEGIN>\n## `create`",
"create an in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | convenience method to just get one value or tuple of values for the query | "convenience method to just get one value or tuple of values for the query" | 241 | false | Jaymon/prom | value | 20,029 | |
LDU_FT/BeyondTheClouds/enoslib/check_flavors | LDU_FT | [
"<BEGIN>\n## `_build_g5k_conf`",
"Build the conf of the g5k provider from the vmong5k conf.\n<END>",
"<BEGIN>\n## `cached`",
"Decorator for caching/retrieving api calls request.",
" Many calls to the API are getter on static parts (e.g site of a given\n cluster name won't change). By caching some resp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_flavors API.
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 check_flavors API.
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... | Build the flavors mapping
returns the mappings id <-> flavor | "Build the flavors mapping\n\n returns the mappings id <-> flavor" | 229 | false | BeyondTheClouds/enoslib | check_flavors | 20,030 | |
LDU_FT/ton/stash/_execute | LDU_FT | [
"<BEGIN>\n## `_execute`",
"Executes the specified command relative to the repository root.\n Returns a tuple containing the return code and the process output.\n<END>",
"<BEGIN>\n## `apply_patch`",
"Applies the patch located at *patch_path*. Returns the return code of\n the patch command.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Executes the specified command relative to the repository root.
Returns a tuple containing the return code and the process output. | "Executes the specified command relative to the repository root.\n Returns a tuple containing the return code and the process output." | 22 | false | ton/stash | _execute | 20,031 | |
LDU_FT/abarker/pdfCropMargins/fix_pdf_with_ghostscript_to_tmp_file | LDU_FT | [
"<BEGIN>\n## `get_bounding_box_list`",
"Calculate a bounding box for each page in the document. The first\n argument is the filename of the document's original PDF file, the second is\n the PdfFileReader for the document. The argument full_page_box_list is a list\n of the full-page-size boxes (which is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_pdf_with_ghostscript_to_tmp_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_pdf_with_ghostscript_to_tmp_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | Attempt to fix a bad PDF file with a Ghostscript command, writing the output
PDF to a temporary file and returning the filename. Caller is responsible for
deleting the file. | "Attempt to fix a bad PDF file with a Ghostscript command, writing the output\n PDF to a temporary file and returning the filename. Caller is responsible for\n deleting the file." | 71 | false | abarker/pdfCropMargins | fix_pdf_with_ghostscript_to_tmp_file | 20,032 | |
LDU_FT/NoneGG/aredis/block_pipeline_command | LDU_FT | [
"<BEGIN>\n## `merge_result`",
"Merge all items in `res` into a list.",
" This command is used when sending a command to multiple nodes\n and they result from each node should be merged into a single list.\n<END>",
"<BEGIN>\n## `first_key`",
"Returns the first result for the given command.",
" If ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the block_pipeline_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the block_pipeline_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Prints error because some pipelined commands should be blocked when running in cluster-mode | "Prints error because some pipelined commands should be blocked when running in cluster-mode" | 421 | false | NoneGG/aredis | block_pipeline_command | 20,033 | |
LDU_FT/SoftwareDefinedBuildings/XBOS/import_csv | LDU_FT | [
"<BEGIN>\n## `fillPelicanHole`",
"Fill a hole in a Pelican thermostat's data stream.",
" Arguments:\n site -- The thermostat's Pelican site name\n username -- The Pelican username for the site\n password -- The Pelican password for the site\n tstat_name -- The name of the thermost... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_csv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_csv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Imports csv file(s) and stores the result in data.
Note
----
1. If folder exists out of current directory, folder_name should contain correct regex
2. Assuming there's no file called "\*.csv"
Parameters
----------
file_name : str
CS... | "Imports csv file(s) and stores the result in data.\n \n Note\n ----\n 1. If folder exists out of current directory, folder_name should contain correct regex\n 2. Assuming there's no file called \"\\*.csv\"\n\n Parameters\n ----------\n file_name : str\n... | 305 | false | SoftwareDefinedBuildings/XBOS | import_csv | 20,034 | |
LDU_FT/BlackEarth/bxml/tempfile | LDU_FT | [
"<BEGIN>\n## `tempfile`",
"write the docx to a named tmpfile and return the tmpfile filename\n<END>",
"<BEGIN>\n## `match`",
"decorator that allows us to match by expression or by xpath for each transformation method\n<END>",
"<BEGIN>\n## `get_match`",
"for the given elem, return the @match function that ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tempfile API.
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 tempfile API.
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... | write the docx to a named tmpfile and return the tmpfile filename | "write the docx to a named tmpfile and return the tmpfile filename" | 91 | false | BlackEarth/bxml | tempfile | 20,035 | |
LDU_FT/adamrehn/slidingwindow/arrayCast | LDU_FT | [
"<BEGIN>\n## `generate`",
"Generates a set of sliding windows for the specified dataset.\n<END>",
"<BEGIN>\n## `generateForSize`",
"Generates a set of sliding windows for a dataset with the specified dimensions and order.\n<END>",
"<BEGIN>\n## `apply`",
"Slices the supplied matrix and applies any transfor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arrayCast API.
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 arrayCast API.
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... | Casts a NumPy array to the specified datatype, storing the copy
in memory if there is sufficient available space or else using a
memory-mapped temporary file to provide the underlying buffer. | "Casts a NumPy array to the specified datatype, storing the copy\n\tin memory if there is sufficient available space or else using a\n\tmemory-mapped temporary file to provide the underlying buffer." | 46 | false | adamrehn/slidingwindow | arrayCast | 20,036 | |
LDU_FT/fstab50/metal/os_parityPath | LDU_FT | [
"<BEGIN>\n## `compile_binary`",
"Prepare chkrootkit binary\n $ tar xzvf chkrootkit.tar.gz\n $ cd chkrootkit-0.52\n $ make sense\n sudo mv chkrootkit-0.52 /usr/local/chkrootkit\n sudo ln -s\n<END>",
"<BEGIN>\n## `valid_checksum`",
"Summary:\n Validate file checksum using md5 hash\n Arg... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the os_parityPath API.
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 os_parityPath API.
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... | Converts unix paths to correct windows equivalents.
Unix native paths remain unchanged (no effect) | "Converts unix paths to correct windows equivalents.\n Unix native paths remain unchanged (no effect)" | 67 | false | fstab50/metal | os_parityPath | 20,037 | |
LDU_FT/inveniosoftware/invenio-accounts/set_session_info | LDU_FT | [
"<BEGIN>\n## `check_security_settings`",
"Warn if session cookie is not secure in production.\n<END>",
"<BEGIN>\n## `mysql_aes_encrypt`",
"Mysql AES encrypt value with secret key.",
" :param val: Plain text value.\n :param key: The AES key.\n :returns: The encrypted AES value.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_session_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_session_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Add X-Session-ID and X-User-ID to http response. | "Add X-Session-ID and X-User-ID to http response." | 71 | false | inveniosoftware/invenio-accounts | set_session_info | 20,038 | |
LDU_FT/hubo1016/vlcp/get_connection | LDU_FT | [
"<BEGIN>\n## `get_connection`",
"Get an exclusive connection, useful for blocked commands and transactions.",
" You must call release or shutdown (not recommanded) to return the connection after use.",
" :param container: routine container",
" :returns: RedisClientBase object, with some... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connection API.
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_connection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get an exclusive connection, useful for blocked commands and transactions.
You must call release or shutdown (not recommanded) to return the connection after use.
:param container: routine container
:returns: RedisClientBase object, with some commands same as RedisClie... | "Get an exclusive connection, useful for blocked commands and transactions.\n \n You must call release or shutdown (not recommanded) to return the connection after use.\n \n :param container: routine container\n \n :returns: RedisClientBase object, with some commands same as Re... | 538 | false | hubo1016/vlcp | get_connection | 20,039 | |
LDU_FT/coldfix/udiskie/get_all_handleable_leaves | LDU_FT | [
"<BEGIN>\n## `_is_parent_of`",
"Check whether the first device is the parent of the second device.\n<END>",
"<BEGIN>\n## `prune_empty_node`",
"Recursively remove empty branches and return whether this makes the node\n itself empty.",
" The ``seen`` parameter is used to avoid infinite recursion due to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_handleable_leaves 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 get_all_handleable_leaves API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Get list of all handleable devices, return only those that represent
leaf nodes within the filtered device tree. | "Get list of all handleable devices, return only those that represent\n leaf nodes within the filtered device tree." | 228 | false | coldfix/udiskie | get_all_handleable_leaves | 20,040 | |
LDU_FT/cameronmaske/celery-once/kwargs_to_list | LDU_FT | [
"<BEGIN>\n## `parse_url`",
"Parse the argument url and return a redis connection.\n Two patterns of url are supported:\n * redis://host:port[/db][?options]\n * redis+socket:///path/to/redis.sock[?options]\n A ValueError is raised if the URL is not recognized.\n<END>",
"<BEGIN>\n## `raise_or_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kwargs_to_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kwargs_to_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Turns {'a': 1, 'b': 2} into ["a-1", "b-2"] | "Turns {'a': 1, 'b': 2} into [\"a-1\", \"b-2\"]" | 21 | false | cameronmaske/celery-once | kwargs_to_list | 20,041 | |
LDU_FT/bslatkin/dpxdt/sort_run | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds a work item to a queue.",
" Args:\n queue_name: Name of the queue to add the work item to.\n payload: Optional. Payload that describes the work to do as a string.\n If not a string and content_type is not provided, then this\n function assumes th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_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 extracte... | Sort function for runs within a release. | "Sort function for runs within a release." | 180 | false | bslatkin/dpxdt | sort_run | 20,042 | |
LDU_FT/openid/JWTConnect-Python-OidcService/choose_algorithm | LDU_FT | [
"<BEGIN>\n## `request_object_encryption`",
"Created an encrypted JSON Web token with *msg* as body.",
" :param msg: The mesaqg\n :param service_context:\n :param kwargs:\n :return:\n<END>",
"<BEGIN>\n## `construct_request_uri`",
"Constructs a special redirect_uri to be used when communicating wi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choose_algorithm API.
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 choose_algorithm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Pick signing algorithm
:param context: Signing context
:param kwargs: extra keyword arguments
:return: Name of a signing algorithm | "Pick signing algorithm\n\n :param context: Signing context\n :param kwargs: extra keyword arguments\n :return: Name of a signing algorithm" | 159 | false | openid/JWTConnect-Python-OidcService | choose_algorithm | 20,043 | |
LDU_FT/nccgroup/Scout2/no_camel | LDU_FT | [
"<BEGIN>\n## `get_keys`",
"Copies the value of keys from source object to dest object",
" :param src:\n :param dst:\n :param keys:\n :return:\n<END>",
"<BEGIN>\n## `no_camel`",
"Converts CamelCase to camel_case",
" :param name:\n :return:\n<END>",
"<BEGIN>\n## `is_throttled`",
"Deter... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the no_camel API.
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 no_camel API.
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 CamelCase to camel_case
:param name:
:return: | "Converts CamelCase to camel_case\n\n :param name:\n :return:" | 166 | false | nccgroup/Scout2 | no_camel | 20,044 | |
LDU_FT/Shizmob/pydle/handle_forever | LDU_FT | [
"<BEGIN>\n## `on_ctcp_version`",
"Built-in CTCP version as some networks seem to require it.\n<END>",
"<BEGIN>\n## `on_raw_privmsg`",
"Modify PRIVMSG to redirect CTCP messages.\n<END>",
"<BEGIN>\n## `on_raw_notice`",
"Modify NOTICE to redirect CTCP messages.\n<END>",
"<BEGIN>\n## `_register`",
"Hijack... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_forever API.
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 handle_forever API.
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... | Main loop of the pool: handle clients forever, until the event loop is stopped. | "Main loop of the pool: handle clients forever, until the event loop is stopped." | 96 | false | Shizmob/pydle | handle_forever | 20,045 | |
LDU_FT/m32/endesive/set_display_mode | LDU_FT | [
"<BEGIN>\n## `load_elements`",
"Initialize the internal element structures\n<END>",
"<BEGIN>\n## `parse_csv`",
"Parse template format csv file and create elements dict\n<END>",
"<BEGIN>\n## `split_multicell`",
"Divide (\\n) a string using a given element width\n<END>",
"<BEGIN>\n## `set_auto_page_break`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_display_mode API.
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 set_display_mode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Set display mode in viewer
The "zoom" argument may be 'fullpage', 'fullwidth', 'real',
'default', or a number, interpreted as a percentage. | "Set display mode in viewer\n \n The \"zoom\" argument may be 'fullpage', 'fullwidth', 'real',\n 'default', or a number, interpreted as a percentage." | 23 | false | m32/endesive | set_display_mode | 20,046 | |
LDU_FT/disqus/nexus/autodiscover | LDU_FT | [
"<BEGIN>\n## `get_request`",
"Get the HTTPRequest object from thread storage or from a callee by searching\n each frame in the call stack.\n<END>",
"<BEGIN>\n## `has_permission`",
"Returns True if the given HttpRequest has permission to view\n *at least one* page in the admin site.\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autodiscover API.
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 autodiscover API.
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... | Auto-discover INSTALLED_APPS nexus.py modules and fail silently when
not present. This forces an import on them to register any api bits they
may want.
Specifying ``site`` will register all auto discovered modules with the new site. | "Auto-discover INSTALLED_APPS nexus.py modules and fail silently when\n not present. This forces an import on them to register any api bits they\n may want.\n\n Specifying ``site`` will register all auto discovered modules with the new site." | 16 | false | disqus/nexus | autodiscover | 20,047 | |
LDU_FT/inveniosoftware-contrib/json-merger/dedupe_list | LDU_FT | [
"<BEGIN>\n## `dedupe_list`",
"Remove duplicates from a list preserving the order.",
" We might be tempted to use the list(set(l)) idiom, but it doesn't preserve\n the order, which hinders testability and does not work for lists with\n unhashable elements.\n<END>",
"<BEGIN>\n## `keep_longest`",
"Kee... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dedupe_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dedupe_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Remove duplicates from a list preserving the order.
We might be tempted to use the list(set(l)) idiom, but it doesn't preserve
the order, which hinders testability and does not work for lists with
unhashable elements. | "Remove duplicates from a list preserving the order.\n\n We might be tempted to use the list(set(l)) idiom, but it doesn't preserve\n the order, which hinders testability and does not work for lists with\n unhashable elements." | 54 | false | inveniosoftware-contrib/json-merger | dedupe_list | 20,048 | |
LDU_FT/bxlab/bx-python/ltrimboth | LDU_FT | [
"<BEGIN>\n## `abut`",
"Like the |Stat abut command. It concatenates two lists side-by-side\nand returns the result. '2D' lists are also accomodated for either argument\n(source or addon). CAUTION: If one list is shorter, it will be repeated\nuntil it is as long as the longest list. If this behavior is not de... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ltrimboth API.
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 ltrimboth API.
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... | Slices off the passed proportion of items from BOTH ends of the passed
list (i.e., with proportiontocut=0.1, slices 'leftmost' 10% AND 'rightmost'
10% of scores. Assumes list is sorted by magnitude. Slices off LESS if
proportion results in a non-integer slice index (i.e., conservatively
slices off proportiontocut).
... | "Slices off the passed proportion of items from BOTH ends of the passed\nlist (i.e., with proportiontocut=0.1, slices 'leftmost' 10% AND 'rightmost'\n10% of scores. Assumes list is sorted by magnitude. Slices off LESS if\nproportion results in a non-integer slice index (i.e., conservatively\nslices off proportiontocu... | 417 | false | bxlab/bx-python | ltrimboth | 20,049 | |
LDU_FT/yamcs/yamcs-python/set_algorithm | LDU_FT | [
"<BEGIN>\n## `verification_events`",
"Events related to command verification.",
" :type: List[:class:`.CommandHistoryEvent`]\n<END>",
"<BEGIN>\n## `events`",
"All events.",
" :type: List[:class:`.CommandHistoryEvent`]\n<END>",
"<BEGIN>\n## `generation_time`",
"The generation time as set ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_algorithm API.
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 set_algorithm API.
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... | Change an algorithm text. Can only be peformed on JavaScript or Python algorithms.
:param string text: new algorithm text (as it would appear in excel or XTCE)
:param str parameter: Either a fully-qualified XTCE name or an alias
in the format ``NAMESPACE/N... | "Change an algorithm text. Can only be peformed on JavaScript or Python algorithms.\n \n :param string text: new algorithm text (as it would appear in excel or XTCE)\n \n :param str parameter: Either a fully-qualified XTCE name or an alias\n in the format ``NAMES... | 402 | false | yamcs/yamcs-python | set_algorithm | 20,050 | |
LDU_FT/swift-nav/libsbp/write | LDU_FT | [
"<BEGIN>\n## `read`",
"Read wrapper.",
" Parameters\n ----------\n size : int\n Number of bytes to read.\n<END>",
"<BEGIN>\n## `handle_fields`",
"Helper for handling naming and sizing of fields. It's terrible.\n<END>",
"<BEGIN>\n## `convert`",
"Converts to a C language appr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
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 write API.
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... | Write wrapper.
Parameters
----------
s : bytes
Bytes to write | "Write wrapper.\n\n Parameters\n ----------\n s : bytes\n Bytes to write" | 114 | false | swift-nav/libsbp | write | 20,051 | |
LDU_FT/mnubo/kubernetes-py/_has_local_storage | LDU_FT | [
"<BEGIN>\n## `run`",
"Forces a K8sCronJob to run immediately.",
" - Fail if the K8sCronJob is currently running on-schedule.\n - Suspend the K8sCronJob.\n - Spawn a K8sPod.\n - Unsuspend a K8sCronJob.",
" :param timeout: The timeout, in seconds, after which to kill the K8sPo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _has_local_storage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _has_local_storage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Determines if a K8sPod has any local storage susceptible to be lost.
:param pod: The K8sPod we're interested in.
:return: a boolean. | "Determines if a K8sPod has any local storage susceptible to be lost.\n\n :param pod: The K8sPod we're interested in.\n\n :return: a boolean." | 53 | false | mnubo/kubernetes-py | _has_local_storage | 20,052 | |
LDU_FT/fabric-bolt/fabric-bolt/get_fabric_tasks | LDU_FT | [
"<BEGIN>\n## `form_valid`",
"After the form is valid lets let people know\n<END>",
"<BEGIN>\n## `form_valid`",
"First call the parent's form valid then let the user know it worked.\n<END>",
"<BEGIN>\n## `post`",
"Create the SSH file & then return the normal get method...\n<END>",
"<BEGIN>\n## `web_hooks... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fabric_tasks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fabric_tasks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Generate a list of fabric tasks that are available | "Generate a list of fabric tasks that are available" | 65 | false | fabric-bolt/fabric-bolt | get_fabric_tasks | 20,053 | |
LDU_FT/NikolayDachev/jadm/read | LDU_FT | [
"<BEGIN>\n## `recv`",
"Read from the standard output of the forked program.",
" :param int size: how many chars should be read",
" :return: the length of the read content, as an `int`\n<END>",
"<BEGIN>\n## `generate`",
"Generate a new private DSS key. This factory function can be used to\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Read at most ``size`` bytes from the file (less if we hit the end of the
file first). If the ``size`` argument is negative or omitted, read all
the remaining data in the file.
.. note::
``'b'`` mode flag is ignored (``self.FLAG_BINARY`` in
``self._flags``), because SSH ... | "Read at most ``size`` bytes from the file (less if we hit the end of the\n file first). If the ``size`` argument is negative or omitted, read all\n the remaining data in the file.\n\n .. note::\n ``'b'`` mode flag is ignored (``self.FLAG_BINARY`` in\n ``self._flags``), becau... | 141 | false | NikolayDachev/jadm | read | 20,054 | |
LDU_FT/Jaymon/prom/populate | LDU_FT | [
"<BEGIN>\n## `fields`",
"return all the fields and their raw values for this Orm instance. This\n property returns a dict with the field names and their current values",
" if you want to control the values for outputting to an api, use .jsonable()\n<END>",
"<BEGIN>\n## `create`",
"create an in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate API.
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 populate API.
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... | take the passed in fields, combine them with missing fields that should
be there and then run all those through appropriate methods to hydrate this
orm.
The method replaces cls.hydrate() since it was becoming hard to understand
what was going on with all these methods that did things ju... | "take the passed in fields, combine them with missing fields that should\n be there and then run all those through appropriate methods to hydrate this\n orm.\n\n The method replaces cls.hydrate() since it was becoming hard to understand\n what was going on with all these methods that did thi... | 241 | false | Jaymon/prom | populate | 20,055 | |
LDU_FT/mwouts/jupytext/simplify_soc_marker | LDU_FT | [
"<BEGIN>\n## `is_magic`",
"Is the current line a (possibly escaped) Jupyter magic, and should it be commented?\n<END>",
"<BEGIN>\n## `metadata_filter_as_dict`",
"Return the metadata filter represented as either None (no filter),\n or a dictionary with at most two keys: 'additional' and 'excluded',\n whi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simplify_soc_marker 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 simplify_soc_marker 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... | Simplify start of cell marker when previous line is blank | "Simplify start of cell marker when previous line is blank" | 229 | false | mwouts/jupytext | simplify_soc_marker | 20,056 | |
LDU_FT/inveniosoftware/invenio-records-rest/post | LDU_FT | [
"<BEGIN>\n## `build_default_endpoint_prefixes`",
"Build the default_endpoint_prefixes map.\n<END>",
"<BEGIN>\n## `obj_or_import_string`",
"Import string or return object.",
" :params value: Import path or class object to instantiate.\n :params default: Default object to return if the import fails.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
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 post API.
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... | Create a record.
Permissions: ``create_permission_factory``
Procedure description:
#. First of all, the `create_permission_factory` permissions are
checked.
#. Then, the record is deserialized by the proper loader.
#. A second call to the `create_permission_facto... | "Create a record.\n\n Permissions: ``create_permission_factory``\n\n Procedure description:\n\n #. First of all, the `create_permission_factory` permissions are\n checked.\n\n #. Then, the record is deserialized by the proper loader.\n\n #. A second call to the `create_perm... | 165 | false | inveniosoftware/invenio-records-rest | post | 20,057 | |
LDU_FT/peterldowns/lggr/remove | LDU_FT | [
"<BEGIN>\n## `FilePrinter`",
"Opens the given file and returns a printer to it.\n<END>",
"<BEGIN>\n## `Emailer`",
"Sends messages as emails to the given list\n of recipients.\n<END>",
"<BEGIN>\n## `GMailer`",
"Sends messages as emails to the given list\n of recipients, from a GMail account.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Given a level, remove a given logger function
if it is a member of that level, closing the logger
function either way. | "Given a level, remove a given logger function\n if it is a member of that level, closing the logger\n function either way." | 28 | false | peterldowns/lggr | remove | 20,058 | |
LDU_FT/flashingpumpkin/django-socialregistration/generate_username_and_redirect | LDU_FT | [
"<BEGIN>\n## `get_next`",
"Returns a url to redirect to after the login / signup.\n<END>",
"<BEGIN>\n## `create_profile`",
"Create a profile model.",
" :param user: A user object\n :param save: If this is set, the profile will\n be saved to DB straight away\n :type save: bool... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_username_and_redirect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_username_and_redirect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Generate a username and then redirect the user to the correct place.
This method is called when ``SOCIALREGISTRATION_GENERATE_USERNAME``
is set.
:param request: The current request object
:param user: The unsaved user object
:param profile: The unsaved profile object
:... | "Generate a username and then redirect the user to the correct place.\n This method is called when ``SOCIALREGISTRATION_GENERATE_USERNAME`` \n is set. \n\n :param request: The current request object\n :param user: The unsaved user object\n :param profile: The unsaved profile object\n ... | 72 | false | flashingpumpkin/django-socialregistration | generate_username_and_redirect | 20,059 | |
LDU_FT/llllllllll/codetransformer/transform_stringlike | LDU_FT | [
"<BEGIN>\n## `_new_lnotab`",
"The updated lnotab after the instructions have been transformed.",
" Parameters\n ----------\n instrs : iterable[Instruction]\n The new instructions.\n lnotab : dict[Instruction -> int]\n The lnotab for the old code object.",
" Returns\n -------\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_stringlike 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 transform_stringlike API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Yield instructions to process a str or bytes constant. | "Yield instructions to process a str or bytes constant." | 223 | false | llllllllll/codetransformer | transform_stringlike | 20,060 | |
LDU_FT/ethan92429/onshapepy/params | LDU_FT | [
"<BEGIN>\n## `log`",
"Logs a message to the console, with optional level paramater",
" Args:\n - msg (str): message to send to console\n - level (int): log level; 0 for info, 1 for error (default = 0)\n<END>",
"<BEGIN>\n## `parse_quantity`",
"Parse an OnShape units definition\n Args:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ... | Get the params of response data from the API.
Returns:
- d (dict): Dictionary mapping of all configuration values | "Get the params of response data from the API.\n\n Returns:\n - d (dict): Dictionary mapping of all configuration values" | 93 | false | ethan92429/onshapepy | params | 20,061 | |
LDU_FT/frawau/aiolifx/set_color | LDU_FT | [
"<BEGIN>\n## `mac_to_ipv6_linklocal`",
"Translate a MAC address into an IPv6 address in the prefixed network.",
" This function calculates the EUI (Extended Unique Identifier) from the given\n MAC address and prepend the needed prefix to come up with a valid IPv6 address.\n The default prefix is the li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_color API.
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 set_color API.
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... | Convenience method to set the colour status of the device
This method will send a LightSetColor message to the device, and request callb be executed
when an ACK is received. The default callback will simply cache the value.
:param value: The new state, a dictionary onf int with 4 keys Hue,... | "Convenience method to set the colour status of the device\n\n This method will send a LightSetColor message to the device, and request callb be executed\n when an ACK is received. The default callback will simply cache the value.\n\n :param value: The new state, a dictionary onf int with 4 key... | 134 | false | frawau/aiolifx | set_color | 20,062 | |
LDU_FT/misli/django-cms-articles/unpublish | LDU_FT | [
"<BEGIN>\n## `_get_article_by_untyped_arg`",
"The `article_lookup` argument can be of any of the following types:\n - Integer: interpreted as `pk` of the desired article\n - `dict`: a dictionary containing keyword arguments to find the desired article\n (for instance: `{'pk': 1}`)\n - `Article`: you c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpublish API.
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 unpublish API.
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... | Publish or unpublish a language of a article | "Publish or unpublish a language of a article" | 32 | false | misli/django-cms-articles | unpublish | 20,063 | |
LDU_FT/osrg/ryu/get_speakers | LDU_FT | [
"<BEGIN>\n## `update`",
"Updates global configuration settings with given values.",
" First checks if given configuration values differ from current values.\n If any of the configuration values changed, generates a change event.\n Currently we generate change event for any configuration cha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_speakers API.
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_speakers API.
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... | Gets the info of BGPSpeaker instance.
Usage:
======= ================
Method URI
======= ================
GET /vtep/speakers
======= ================
Example::
$ curl -X GET http://localhost:8080/vtep/speakers |
... | "Gets the info of BGPSpeaker instance.\n\n Usage:\n\n ======= ================\n Method URI\n ======= ================\n GET /vtep/speakers\n ======= ================\n\n Example::\n\n $ curl -X GET http://localhost:8080/vtep/speakers ... | 1,172 | true | osrg/ryu | get_speakers | 20,064 | |
LDU_FT/Shopify/shopify_python_api/get_prefix_source | LDU_FT | [
"<BEGIN>\n## `find`",
"Find an asset by key\n E.g.\n shopify.Asset.find('layout/theme.liquid', theme_id=99)\n<END>",
"<BEGIN>\n## `get_prefix_source`",
"Return the prefix source, by default derived from site.\n<END>",
"<BEGIN>\n## `calculate_hmac`",
"Calculate the HMAC of the given param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prefix_source API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prefix_source API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Return the prefix source, by default derived from site. | "Return the prefix source, by default derived from site." | 13 | false | Shopify/shopify_python_api | get_prefix_source | 20,065 | |
LDU_FT/stanfordnlp/stanza/log_proto | LDU_FT | [
"<BEGIN>\n## `validate`",
"Evaluate this model on `validation_instances` during training and\n output a report.",
" :param validation_instances: The data to use to validate the model.\n :type validation_instances: list(instance.Instance)",
" :param metrics: Functions like those fou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_proto API.
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 log_proto API.
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... | Log a Summary protobuf to the event file.
:param proto: a Summary protobuf
:param step_num: the iteration number at which this value was logged | "Log a Summary protobuf to the event file.\n\n :param proto: a Summary protobuf\n :param step_num: the iteration number at which this value was logged" | 309 | false | stanfordnlp/stanza | log_proto | 20,066 | |
LDU_FT/dronekit/dronekit-python/on_message | LDU_FT | [
"<BEGIN>\n## `condition_yaw`",
"Send MAV_CMD_CONDITION_YAW message to point vehicle at a specified heading (in degrees).",
" This method sets an absolute heading by default, but you can set the `relative` parameter\n to `True` to set yaw relative to the current yaw heading.",
" By default the yaw of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_message API.
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 on_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Decorator for message listener callback functions.
.. tip::
This is the most elegant way to define message listener callback functions.
Use :py:func:`add_message_listener` only if you need to be able to
:py:func:`remove the listener <remove_message_listener>` later.
... | "Decorator for message listener callback functions.\n\n .. tip::\n\n This is the most elegant way to define message listener callback functions.\n Use :py:func:`add_message_listener` only if you need to be able to\n :py:func:`remove the listener <remove_message_listener>` later.\... | 290 | false | dronekit/dronekit-python | on_message | 20,067 | |
LDU_FT/agoragames/leaderboard-python/members_from_rank_range | LDU_FT | [
"<BEGIN>\n## `pool`",
"Fetch a redis conenction pool for the unique combination of host\n and port. Will create a new one if there isn't one already.\n<END>",
"<BEGIN>\n## `rank_member`",
"Rank a member in the leaderboard.",
" @param member [String] Member name.\n @param score [float] M... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the members_from_rank_range API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the members_from_rank_range API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Retrieve members from the leaderboard within a given rank range.
@param starting_rank [int] Starting rank (inclusive).
@param ending_rank [int] Ending rank (inclusive).
@param options [Hash] Options to be used when retrieving the data from the leaderboard.
@return members from the leade... | "Retrieve members from the leaderboard within a given rank range.\n\n @param starting_rank [int] Starting rank (inclusive).\n @param ending_rank [int] Ending rank (inclusive).\n @param options [Hash] Options to be used when retrieving the data from the leaderboard.\n @return members from the... | 180 | false | agoragames/leaderboard-python | members_from_rank_range | 20,068 | |
LDU_FT/saghul/evergreen/spawn | LDU_FT | [
"<BEGIN>\n## `_double_prefix`",
"Grow the given deque by doubling, but don't split the second chunk just\n because the first one is small.\n<END>",
"<BEGIN>\n## `_merge_prefix`",
"Replace the first entries in a deque of strings with a single\n string of up to size bytes.",
" >>> d = col... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spawn API.
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 spawn API.
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... | Create a task to run ``func(*args, **kwargs)``. Returns a
:class:`Task` objec.
Execution control returns immediately to the caller; the created task
is merely scheduled to be run at the next available opportunity.
Use :func:`spawn_later` to arrange for tasks to be spawned
after a finite delay. | "Create a task to run ``func(*args, **kwargs)``. Returns a\n :class:`Task` objec.\n\n Execution control returns immediately to the caller; the created task\n is merely scheduled to be run at the next available opportunity.\n Use :func:`spawn_later` to arrange for tasks to be spawned\n after a finite de... | 79 | false | saghul/evergreen | spawn | 20,069 | |
LDU_FT/consbio/ncdjango/equal | LDU_FT | [
"<BEGIN>\n## `p_binary_operators`",
"conditional : conditional AND condition\n | conditional OR condition\n condition : condition LTE expression\n | condition GTE expression\n | condition LT expression\n | condition GT expression... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the equal API.
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 equal API.
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... | Calculate equal interval breaks.
Arguments:
data -- Array of values to classify.
num_breaks -- Number of breaks to perform. | "Calculate equal interval breaks.\n\n Arguments:\n data -- Array of values to classify.\n num_breaks -- Number of breaks to perform." | 146 | false | consbio/ncdjango | equal | 20,070 | |
LDU_FT/clarete/curdling/web_upload | LDU_FT | [
"<BEGIN>\n## `read_version`",
"Read version from curdling/version.py without loading any files\n<END>",
"<BEGIN>\n## `parse_requirements`",
"Rudimentary parser for the `requirements.txt` file",
" We just want to separate regular packages from links to pass them to the\n `install_requires` and `depende... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the web_upload API.
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 web_upload API.
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... | * Smart enough to not save things we already have
* Idempotent, you can call as many times as you need
* The caller names the package (its basename) | "* Smart enough to not save things we already have\n * Idempotent, you can call as many times as you need\n * The caller names the package (its basename)" | 14 | false | clarete/curdling | web_upload | 20,071 | |
LDU_FT/richardkiss/pycoin/electrum_seed | LDU_FT | [
"<BEGIN>\n## `parse_as_header`",
"Parse the Block header from the file-like object\n<END>",
"<BEGIN>\n## `stream_header_legacy`",
"Stream the block header in the standard way to the file-like object f.\n<END>",
"<BEGIN>\n## `stream_header`",
"Stream the block header in the standard way to the file-like ob... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the electrum_seed API.
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 electrum_seed API.
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... | Parse an electrum key from a text string in seed form ("E:xxx" where xxx
is a 32-character hex string).
Return a :class:`ElectrumWallet <pycoin.key.electrum.ElectrumWallet>` or None. | "Parse an electrum key from a text string in seed form (\"E:xxx\" where xxx\n is a 32-character hex string).\n Return a :class:`ElectrumWallet <pycoin.key.electrum.ElectrumWallet>` or None." | 336 | false | richardkiss/pycoin | electrum_seed | 20,072 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.