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/biocommons/bioutils/elide_sequence
LDU_FT
[ "<BEGIN>\n## `fetch_seq`", "Fetches sequences and subsequences from NCBI eutils and Ensembl\n REST interfaces.", " :param string ac: accession of sequence to fetch\n :param int start_i: start position of *interbase* interval\n :param int end_i: end position of *interbase* interval", " **IMPORTA...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elide_sequence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elide_sequence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
trim a sequence to include the left and right flanking sequences of size `flank`, with the intervening sequence elided by `elision`. >>> elide_sequence("ABCDEFGHIJKLMNOPQRSTUVWXYZ") 'ABCDE...VWXYZ' >>> elide_sequence("ABCDEFGHIJKLMNOPQRSTUVWXYZ", flank=3) 'ABC...XYZ' >>> elide_sequence("ABCDE...
"trim a sequence to include the left and right flanking sequences of\n size `flank`, with the intervening sequence elided by `elision`.\n\n >>> elide_sequence(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\")\n 'ABCDE...VWXYZ'\n\n >>> elide_sequence(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\", flank=3)\n 'ABC...XYZ'\n\n >>> elide_s...
172
false
biocommons/bioutils
elide_sequence
4,073
LDU_FT/3ll3d00d/vibe/getDataHandler
LDU_FT
[ "<BEGIN>\n## `get`", "Analyses the measurement with the given parameters\n :param measurementId:\n :return:\n<END>", "<BEGIN>\n## `start`", "Initialises the device if required then enters a read loop taking data from the provider and passing it to the\n handler. It will continue until ei...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getDataHandler API. 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 getDataHandler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
finds the handler. :param measurementId: the measurement :param deviceId: the device. :return: active measurement and handler
"finds the handler.\n :param measurementId: the measurement\n :param deviceId: the device.\n :return: active measurement and handler"
240
false
3ll3d00d/vibe
getDataHandler
4,074
LDU_FT/Vauxoo/cfdilib/get_element_from_clark
LDU_FT
[ "<BEGIN>\n## `send_s3_xsd`", "This method will not be re-run always, only locally and when xsd\n are regenerated, read the test_008_force_s3_creation on test folder\n<END>", "<BEGIN>\n## `check_s3`", "This method is a helper con `cache_s3`.\n Read method `cache_s3` for more information.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_element_from_clark 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_element_from_clark API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
**Helper method:** Given a Clark's Notation `{url:schema}Element` element, return the valid xpath on your xsd file, frequently it is not necesary overwrite this method but different xsd from different source can have different logic which I do not know now, then simply ta...
"**Helper method:** Given a Clark's Notation\n `{url:schema}Element` element, return the\n valid xpath on your xsd file, frequently\n it is not necesary overwrite this method but\n different xsd from different source\n can have different logic which I do not know now,\n then si...
42
false
Vauxoo/cfdilib
get_element_from_clark
4,075
LDU_FT/inveniosoftware/invenio-userprofiles/get_by_username
LDU_FT
[ "<BEGIN>\n## `register_form_factory`", "Factory for creating an extended user registration form.\n<END>", "<BEGIN>\n## `confirm_register_form_factory`", "Factory for creating a confirm register form.\n<END>", "<BEGIN>\n## `_update_with_csrf_disabled`", "Update the input dict with CSRF disabled depending o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_by_username API. 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_by_username API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get profile by username. :param username: A username to query for (case insensitive).
"Get profile by username.\n\n :param username: A username to query for (case insensitive)."
20
false
inveniosoftware/invenio-userprofiles
get_by_username
4,076
LDU_FT/peterwittek/somoclu/get_surface_state
LDU_FT
[ "<BEGIN>\n## `_check_cooling_parameters`", "Helper function to verify the cooling parameters of the training.\n<END>", "<BEGIN>\n## `_hexplot`", "Internal function to plot a hexagonal map.\n<END>", "<BEGIN>\n## `load_bmus`", "Load the best matching units from a file to the Somoclu object.", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_surface_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_surface_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return the Euclidean distance between codebook and data. :param data: Optional parameter to specify data, otherwise the data used previously to train the SOM is used. :type data: 2D numpy.array of float32. :returns: The the dot product of the codebook and the data. ...
"Return the Euclidean distance between codebook and data.\n\n :param data: Optional parameter to specify data, otherwise the\n data used previously to train the SOM is used.\n :type data: 2D numpy.array of float32.\n\n :returns: The the dot product of the codebook and the data.\...
55
false
peterwittek/somoclu
get_surface_state
4,077
LDU_FT/anomaly/prestans/get_attribute_keys
LDU_FT
[ "<BEGIN>\n## `_setup_serializers`", "Auto set the return serializer based on Accept headers\n http://docs.webob.org/en/latest/reference.html#header-getters", " Intersection of requested types and supported types tells us if we\n can in fact respond in one of the request formats\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns a list of managed attributes for the Model class Implemented for use with data adapters, can be used to quickly make a list of the attribute names in a prestans model
"Returns a list of managed attributes for the Model class\n\n Implemented for use with data adapters, can be used to quickly make a list of the\n attribute names in a prestans model"
99
false
anomaly/prestans
get_attribute_keys
4,078
LDU_FT/pywbem/pywbem/rollback
LDU_FT
[ "<BEGIN>\n## `_hash_item`", "Hash an item (CIM value, CIM object), by delegating to its hash function.", " The item may be `None`.\n<END>", "<BEGIN>\n## `_stacklevel_above_module`", "Return the stack level (with 1 = caller of this function) of the first\n caller that is not defined in the specified mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rollback API. 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 rollback API. 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...
Remove classes and instances from the underlying repository, that have been created in the local repository of this class. Limitation: At this point, only classes and instances will be removed, but not qualifiers.
"Remove classes and instances from the underlying repository, that have\n been created in the local repository of this class.\n\n Limitation: At this point, only classes and instances will be removed,\n but not qualifiers."
3,983
true
pywbem/pywbem
rollback
4,079
LDU_FT/mvn23/pyotgw/set_target_temp
LDU_FT
[ "<BEGIN>\n## `connection_made`", "Gets called when a connection to the gateway is established.\n Initialise the protocol object.\n<END>", "<BEGIN>\n## `connection_lost`", "Gets called when the connection to the gateway is lost.\n Tear down and clean up the protocol object.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_target_temp API. 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 set_target_temp API. 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...
Set the thermostat setpoint and return the newly accepted value. kwarg @temporary specifies whether or not the thermostat program may override this temperature. This method is a coroutine
"Set the thermostat setpoint and return the newly accepted\n value.\n kwarg @temporary specifies whether or not the thermostat\n program may override this temperature.\n\n This method is a coroutine"
115
false
mvn23/pyotgw
set_target_temp
4,080
LDU_FT/pydsigner/taskit/_package
LDU_FT
[ "<BEGIN>\n## `_wait`", "Based upon an extract from threading.Condition().wait(). Immediately \n tries to acquire the lock, and then sleeps for a period of time (going \n 1/2ms..1ms..2ms..4ms...50ms..50ms), repeating until the lock is \n acquired or the timeout limit is reached.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _package API. 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 _package API. 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...
Used internally. Simply wraps the arguments up in a list and encodes the list.
"Used internally. Simply wraps the arguments up in a list and encodes \n the list."
59
false
pydsigner/taskit
_package
4,081
LDU_FT/neighbordog/deviantart/auth
LDU_FT
[ "<BEGIN>\n## `auth`", "Authenticates user and retrieves (and refreshes) access token", " :param code: code provided after redirect (authorization_code only)\n :param refresh_token: the refresh_token to update access_token without authorization\n<END>", "<BEGIN>\n## `auth_uri`", "The authorzati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth API. 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 auth API. 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...
Authenticates user and retrieves (and refreshes) access token :param code: code provided after redirect (authorization_code only) :param refresh_token: the refresh_token to update access_token without authorization
"Authenticates user and retrieves (and refreshes) access token\n\n :param code: code provided after redirect (authorization_code only)\n :param refresh_token: the refresh_token to update access_token without authorization"
132
false
neighbordog/deviantart
auth
4,082
LDU_FT/lmjohns3/downhill/_log
LDU_FT
[ "<BEGIN>\n## `build`", "Build and return an optimizer for the rosenbrock function.", " In downhill, an optimizer can be constructed using the build() top-level\n function. This function requires several Theano quantities such as the loss\n being optimized and the parameters to update during optimizatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _log API. 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 _log API. 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...
Log the state of the optimizer on the console. Parameters ---------- monitors : OrderedDict A dictionary of monitor names mapped to values. These names and values are what is being logged. iteration : int Optimization iteration that we are logging. ...
"Log the state of the optimizer on the console.\n\n Parameters\n ----------\n monitors : OrderedDict\n A dictionary of monitor names mapped to values. These names and\n values are what is being logged.\n iteration : int\n Optimization iteration that we are lo...
79
false
lmjohns3/downhill
_log
4,083
LDU_FT/alpacahq/pipeline-live/_compute_root_mask
LDU_FT
[ "<BEGIN>\n## `get_stockprices`", "This is a proxy to the main fetch function to cache\n the result based on the chart range parameter.\n<END>", "<BEGIN>\n## `_get_stockprices`", "Get stock data (key stats and previous) from IEX.\n Just deal with IEX's 100 stocks limit per request.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_root_mask API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_root_mask API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Compute a lifetimes matrix from our AssetFinder, then drop columns that didn't exist at all during the query dates. Parameters ---------- start_date : pd.Timestamp Base start date for the matrix. end_date : pd.Timestamp End date for the matrix. ex...
"Compute a lifetimes matrix from our AssetFinder, then drop columns that\n didn't exist at all during the query dates.\n\n Parameters\n ----------\n start_date : pd.Timestamp\n Base start date for the matrix.\n end_date : pd.Timestamp\n End date for the matrix.\n...
23
false
alpacahq/pipeline-live
_compute_root_mask
4,084
LDU_FT/nickjj/ansigenome/exit_if_missing_graphviz
LDU_FT
[ "<BEGIN>\n## `epilogue`", "Return the epilogue for the help command.\n<END>", "<BEGIN>\n## `command_name`", "Return a snippet of help text for this command.\n<END>", "<BEGIN>\n## `has_colors`", "Determine if the terminal supports ansi colors.\n<END>", "<BEGIN>\n## `file_to_string`", "Return the conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exit_if_missing_graphviz API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exit_if_missing_graphviz API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Detect the presence of the dot utility to make a png graph.
"Detect the presence of the dot utility to make a png graph."
58
false
nickjj/ansigenome
exit_if_missing_graphviz
4,085
LDU_FT/ianclegg/winrmlib/recieve
LDU_FT
[ "<BEGIN>\n## `_get_rsa_public_key`", "PyOpenSSL does not provide a public method to export the public key from a certificate as a properly formatted\n ASN.1 RSAPublicKey structure. There are 'hacks' which use dump_privatekey(crypto.FILETYPE_ASN1, <public_key>),\n but this dumps the public key within...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recieve API. 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 recieve API. 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...
resource can be a URL or a ResourceLocator
"resource can be a URL or a ResourceLocator"
33
false
ianclegg/winrmlib
recieve
4,086
LDU_FT/Rockhopper-Technologies/enlighten/_height_and_width
LDU_FT
[ "<BEGIN>\n## `_check_bool`", "Used as an error handler for Windows calls\n Gets last error if call is not successful\n<END>", "<BEGIN>\n## `get_csbi`", "Returns a CONSOLE_SCREEN_BUFFER_INFO structure for the given console or stdout\n<END>", "<BEGIN>\n## `enable_vt_mode`", "Enables virtual terminal proc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _height_and_width API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _height_and_width API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Override for blessings.Terminal._height_and_width Adds caching
"Override for blessings.Terminal._height_and_width\n Adds caching"
104
false
Rockhopper-Technologies/enlighten
_height_and_width
4,087
LDU_FT/thautwarm/Redy/chunk_by
LDU_FT
[ "<BEGIN>\n## `map_by`", "when pycharm supports type hinting for any implementation of currying,\n map_with and map_on would be deprecated.\n >>> from Redy.Collections import Traversal, Flow\n >>> def double(x: int) -> int: return x * 2\n >>> lst: Iterable[int] = [1, 2, 3]\n >>> x = Flow(lst)[Traver...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunk_by API. 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 chunk_by API. 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...
>>> from Redy.Collections import Traversal, Flow >>> lst: Iterable[int] = [0, 1, 2, 3, 4, 5, 6] >>> x = Flow(lst)[Traversal.chunk_by(lambda x: x // 3)] >>> assert list(x.unbox) == [[0, 1, 2], [3, 4, 5], [6]] >>> x = Flow([])[Traversal.chunk_by(lambda x: x)] >>> assert list(x.unbox) == []
">>> from Redy.Collections import Traversal, Flow\n >>> lst: Iterable[int] = [0, 1, 2, 3, 4, 5, 6]\n >>> x = Flow(lst)[Traversal.chunk_by(lambda x: x // 3)]\n >>> assert list(x.unbox) == [[0, 1, 2], [3, 4, 5], [6]]\n >>> x = Flow([])[Traversal.chunk_by(lambda x: x)]\n >>> assert list(x.unbox) == []"
83
false
thautwarm/Redy
chunk_by
4,088
LDU_FT/crate/crate-python/visit_update
LDU_FT
[ "<BEGIN>\n## `coerce`", "Convert plain dictionaries to MutableDict.\n<END>", "<BEGIN>\n## `_raise_for_status`", "make sure that only crate.exceptions are raised that are defined in\n the DB-API specification\n<END>", "<BEGIN>\n## `_server_url`", "Normalizes a given server string to an url", " >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_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 extr...
used to compile <sql.expression.Update> expressions Parts are taken from the SQLCompiler base class.
"used to compile <sql.expression.Update> expressions\n Parts are taken from the SQLCompiler base class."
81
false
crate/crate-python
visit_update
4,089
LDU_FT/aparo/pyes/refresh
LDU_FT
[ "<BEGIN>\n## `serialize`", "Serialize the search to a structure as passed for a search body.\n<END>", "<BEGIN>\n## `symbol_by_name`", "Get symbol by qualified name.", " The name should be the full dot-separated path to the class::", " modulename.ClassName", " Example::", " celery.c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh API. 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 refresh API. 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...
Refresh one or more indices If a bulk is full, it sends it. (See :ref:`es-guide-reference-api-admin-indices-refresh`) :keyword indices: an index or a list of indices :keyword timesleep: seconds to wait :keyword timeout: seconds to wait before timing out when waiting for ...
"Refresh one or more indices\n If a bulk is full, it sends it.\n (See :ref:`es-guide-reference-api-admin-indices-refresh`)\n\n :keyword indices: an index or a list of indices\n :keyword timesleep: seconds to wait\n :keyword timeout: seconds to wait before timing out when waiting for\n...
350
false
aparo/pyes
refresh
4,090
LDU_FT/amol-/depot/make_app
LDU_FT
[ "<BEGIN>\n## `set_default`", "Replaces the current application default depot\n<END>", "<BEGIN>\n## `get`", "Gets the application wide depot instance.", " Might return ``None`` if :meth:`configure` has not been\n called yet.\n<END>", "<BEGIN>\n## `get_file`", "Retrieves a file by storage na...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_app API. 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 make_app API. 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...
Set depotexample up with the settings found in the PasteDeploy configuration file used. :param global_conf: The global settings for depotexample (those defined under the ``[DEFAULT]`` section). :type global_conf: dict :param full_stack: Should the whole TG2 stack be set up? :type full_s...
"Set depotexample up with the settings found in the PasteDeploy configuration\n file used.\n \n :param global_conf: The global settings for depotexample (those\n defined under the ``[DEFAULT]`` section).\n :type global_conf: dict\n :param full_stack: Should the whole TG2 stack be set up?\n :typ...
51
false
amol-/depot
make_app
4,091
LDU_FT/SheffieldML/GPy/plot
LDU_FT
[ "<BEGIN>\n## `pdf_link`", ":param link_f: latent variables link(f)\n :type link_f: Nx1 array\n :param y: data\n :type y: Nx1 array\n :param Y_metadata: includes censoring information in dictionary key 'censored'\n :returns: likelihood evaluated for this point\n :rtype: fl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. 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 plot API. 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...
Plot latent space X in 1D: See GPy.plotting.matplot_dep.variational_plots
"Plot latent space X in 1D:\n\n See GPy.plotting.matplot_dep.variational_plots"
1,670
true
SheffieldML/GPy
plot
4,092
LDU_FT/rshk/python-libxdo/mouse_up
LDU_FT
[ "<BEGIN>\n## `_errcheck`", "Error checker for functions returning an integer indicating\n success (0) / failure (1).", " Raises a XdoException in case of error, otherwise just\n returns ``None`` (returning the original code, 0, would be\n useless anyways..)\n<END>", "<BEGIN>\n## `move_mouse`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mouse_up API. 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 mouse_up API. 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...
Send a mouse release (aka mouse up) for a given button at the current mouse location. :param window: The window you want to send the event to or CURRENTWINDOW :param button: The mouse button. Generally, 1 is left, 2 is middle, 3 is right, 4 is wheel up, 5 is ...
"Send a mouse release (aka mouse up) for a given button at\n the current mouse location.\n\n :param window:\n The window you want to send the event to or CURRENTWINDOW\n :param button:\n The mouse button. Generally, 1 is left, 2 is middle, 3 is\n right, 4 is wheel u...
125
false
rshk/python-libxdo
mouse_up
4,093
LDU_FT/dswah/pyGAM/faithful
LDU_FT
[ "<BEGIN>\n## `validate_callback_data`", "wraps a callback's method to pull the desired arguments from the vars dict\n also checks to ensure the method's arguments are in the vars dict", " Parameters\n ----------\n method : callable", " Returns\n -------\n validated callable\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the faithful API. 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 faithful API. 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...
old-faithful dataset Parameters ---------- return_X_y : bool, if True, returns a model-ready tuple of data (X, y) otherwise, returns a Pandas DataFrame Returns ------- model-ready tuple of data (X, y) OR Pandas DataFrame Notes ----- The (X, y) tuple is ...
"old-faithful dataset\n\n Parameters\n ----------\n return_X_y : bool,\n if True, returns a model-ready tuple of data (X, y)\n otherwise, returns a Pandas DataFrame\n\n Returns\n -------\n model-ready tuple of data (X, y)\n OR\n Pandas DataFrame\n\n Notes\n -----\n The...
770
false
dswah/pyGAM
faithful
4,094
LDU_FT/jbeluch/xbmcswift2/finish
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 finish API. 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 finish API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Adds the provided items to the XBMC interface. :param items: an iterable of items where each item is either a dictionary with keys/values suitable for passing to :meth:`xbmcswift2.ListItem.from_dict` or an instance of :class:`xbmcswift2.ListItem`. :param sort_methods...
"Adds the provided items to the XBMC interface.\n\n :param items: an iterable of items where each item is either a\n dictionary with keys/values suitable for passing to\n :meth:`xbmcswift2.ListItem.from_dict` or an instance of\n :class:`xbmcswift2.ListItem`.\n :param sort_...
164
false
jbeluch/xbmcswift2
finish
4,095
LDU_FT/kata198/AdvancedHTMLParser/getElementsByName
LDU_FT
[ "<BEGIN>\n## `getRootNodes`", "getRootNodes - Gets all objects at the \"root\" (first level; no parent). Use this if you may have multiple roots (not children of <html>)\n Use this method to get objects, for example, in an AJAX request where <html> may not be your root.", " Note: I...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getElementsByName API. 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 getElementsByName API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
getElementsByName - Get elements within this collection having a specific name @param name - String of "name" attribute @return - TagCollection of unique elements within this collection with given "name"
"getElementsByName - Get elements within this collection having a specific name\n\n @param name - String of \"name\" attribute\n\n @return - TagCollection of unique elements within this collection with given \"name\""
541
false
kata198/AdvancedHTMLParser
getElementsByName
4,096
LDU_FT/chrisspen/dtree/create_decision_tree
LDU_FT
[ "<BEGIN>\n## `normalize`", "Scales each number in the sequence so that the sum of all numbers equals 1.\n<END>", "<BEGIN>\n## `normcdf`", "Describes the probability that a real-valued random variable X with a given\n probability distribution will be found at a value less than or equal to X\n in a normal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_decision_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_decision_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns a new decision tree based on the examples given.
"Returns a new decision tree based on the examples given."
100
false
chrisspen/dtree
create_decision_tree
4,097
LDU_FT/ryanpetrello/python-zombie/queryAll
LDU_FT
[ "<BEGIN>\n## `_send`", "Establishes a socket connection to the zombie.js server and sends\n Javascript instructions.", " :param js: the Javascript string to execute\n<END>", "<BEGIN>\n## `wait`", "Call a method on the zombie.js Browser instance and wait on a callback.", " :param metho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the queryAll API. 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 queryAll API. 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...
Evaluate a CSS selector against the document (or an optional context :class:`zombie.dom.DOMNode`) and return a list of :class:`zombie.dom.DOMNode` objects. :param selector: a string CSS selector (http://zombie.labnotes.org/selectors) :param context: an (optional)...
"Evaluate a CSS selector against the document (or an optional context\n :class:`zombie.dom.DOMNode`) and return a list of\n :class:`zombie.dom.DOMNode` objects.\n\n :param selector: a string CSS selector\n (http://zombie.labnotes.org/selectors)\n :param context: an (op...
33
false
ryanpetrello/python-zombie
queryAll
4,098
LDU_FT/MisterY/asset-allocation/__format_row
LDU_FT
[ "<BEGIN>\n## `get_symbols_with_positive_balances`", "Identifies all the securities with positive balances\n<END>", "<BEGIN>\n## `__get_pricedb_session`", "Provides initialization and access to module-level session\n<END>", "<BEGIN>\n## `format`", "Returns the view-friendly output of the aa model\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __format_row API. 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 __format_row API. 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...
display-format one row Formats one Asset Class record
"display-format one row\n Formats one Asset Class record"
56
false
MisterY/asset-allocation
__format_row
4,099
LDU_FT/oceanprotocol/squid-py/add_authentication
LDU_FT
[ "<BEGIN>\n## `get_requests_session`", "Set connection pool maxsize and block value to avoid `connection pool full` warnings.", " :return: requests session\n<END>", "<BEGIN>\n## `request_tokens`", "Request an amount of tokens for a particular address.\n This transaction has gas cost", " :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_authentication 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 add_authentication 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...
Add a authentication public key id and type to the list of authentications. :param key_id: Key id, Authentication :param authentication_type: Authentication type, str
"Add a authentication public key id and type to the list of authentications.\n\n :param key_id: Key id, Authentication\n :param authentication_type: Authentication type, str"
417
false
oceanprotocol/squid-py
add_authentication
4,100
LDU_FT/antocuni/pdb/do_track
LDU_FT
[ "<BEGIN>\n## `xpm`", "To be used inside an except clause, enter a post-mortem pdb\n related to the just catched exception.\n<END>", "<BEGIN>\n## `refresh_stack`", "Recompute the stack after e.g. show_hidden_frames has been modified\n<END>", "<BEGIN>\n## `complete`", "Handle completions from fancycomple...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_track API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_track API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
track expression Display a graph showing which objects are referred by the value of the expression. This command requires pypy to be in the current PYTHONPATH.
"track expression\n\n Display a graph showing which objects are referred by the\n value of the expression. This command requires pypy to be in\n the current PYTHONPATH."
36
false
antocuni/pdb
do_track
4,101
LDU_FT/colab/colab-superarchives-plugin/post
LDU_FT
[ "<BEGIN>\n## `update_score`", "Update the relevance score for this thread.", " The score is calculated with the following variables:", " * vote_weight: 100 - (minus) 1 for each 3 days since\n voted with minimum of 5.\n * replies_weight: 300 - (minus) 1 for each 3 days since\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 new email address that will wait for validation
"Create new email address that will wait for validation"
22
false
colab/colab-superarchives-plugin
post
4,102
LDU_FT/poppy-project/pypot/simxCallScriptFunction
LDU_FT
[ "<BEGIN>\n## `set_snap_server_variables`", "Change dynamically port and host variable in xml Snap! project file\n<END>", "<BEGIN>\n## `run`", "Start the tornado server, run forever.\n 'quiet' and 'server' arguments are no longer used, they are keep only for backward compatibility\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simxCallScriptFunction 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 simxCallScriptFunction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Please have a look at the function description/documentation in the V-REP user manual
"Please have a look at the function description/documentation in the V-REP user manual"
371
false
poppy-project/pypot
simxCallScriptFunction
4,103
LDU_FT/Shoobx/xmldiff/match_alphabet
LDU_FT
[ "<BEGIN>\n## `diff_main`", "Find the differences between two texts. Simplifies the problem by\n stripping any common prefix or suffix off the texts before diffing.", " Args:\n text1: Old string to be diffed.\n text2: New string to be diffed.\n checklines: Optional speedup flag. If prese...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_alphabet API. 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 match_alphabet API. 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...
Initialise the alphabet for the Bitap algorithm. Args: pattern: The text to encode. Returns: Hash of character locations.
"Initialise the alphabet for the Bitap algorithm.\n\n Args:\n pattern: The text to encode.\n\n Returns:\n Hash of character locations."
146
false
Shoobx/xmldiff
match_alphabet
4,104
LDU_FT/pyroscope/pyrocore/_get_datapath
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 _get_datapath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_datapath API. 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...
Get a valid datapath, else raise an exception.
"Get a valid datapath, else raise an exception."
247
false
pyroscope/pyrocore
_get_datapath
4,105
LDU_FT/wolfhong/formic/configure_google_analytics
LDU_FT
[ "<BEGIN>\n## `pylint_jenkins`", "Run PyLint on the code and produce a report suitable for the\n Jenkins plugin 'violations'.", " Note that there is a bug in the Violations plugin which means that\n absolute paths to source (produced by PyLint) are not read. The sed command\n removes the workspace pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_google_analytics 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 configure_google_analytics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
An optional task; if run, this will switch on Google Analystics, reporting documentation usage to Aviser. This is meant to be run only by Aviser when producing HTML for the main web site.
"An optional task; if run, this will switch on Google Analystics, reporting\n documentation usage to Aviser.\n\n This is meant to be run only by Aviser when producing HTML for the main\n web site."
98
false
wolfhong/formic
configure_google_analytics
4,106
LDU_FT/tropo/tropo-webapi-python/RenderJson
LDU_FT
[ "<BEGIN>\n## `HelloWorld`", "This is the traditional \"Hello, World\" function. The idiom is used throughout the API. We construct a Tropo object, and then flesh out that object by calling \"action\" functions (in this case, tropo.say). Then call tropo.Render, which translates the Tropo object into JSON format. F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the RenderJson API. 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 RenderJson API. 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...
Render a Tropo object into a Json string.
"Render a Tropo object into a Json string."
42
false
tropo/tropo-webapi-python
RenderJson
4,107
LDU_FT/zetaops/zengine/show_channel
LDU_FT
[ "<BEGIN>\n## `list_catalogs`", "Lists existing catalogs respect to ui view template format\n<END>", "<BEGIN>\n## `get_catalog`", "Get existing catalog and fill the form with the model data.\n If given key not found as catalog, it generates an empty catalog data form.\n<END>", "<BEGIN>\n## `save_catal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_channel API. 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 show_channel API. 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...
Initial display of channel content. Returns channel description, members, no of members, last 20 messages etc. .. code-block:: python # request: { 'view':'_zops_show_channel', 'key': key, } # response: { 'chann...
"Initial display of channel content.\n Returns channel description, members, no of members, last 20 messages etc.\n\n\n .. code-block:: python\n\n # request:\n {\n 'view':'_zops_show_channel',\n 'key': key,\n }\n\n # response:\n {\n ...
655
false
zetaops/zengine
show_channel
4,108
LDU_FT/bachya/pyairvisual/_nearest
LDU_FT
[ "<BEGIN>\n## `raise_error`", "Raise the appropriate error based on error message.\n<END>", "<BEGIN>\n## `_raise_on_error`", "Raise the appropriate exception on error.\n<END>", "<BEGIN>\n## `main`", "Create the aiohttp session and run the example.\n<END>", "<BEGIN>\n## `_nearest`", "Return data from ne...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _nearest API. 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 _nearest API. 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 data from nearest city/station (IP or coordinates).
"Return data from nearest city/station (IP or coordinates)."
16
false
bachya/pyairvisual
_nearest
4,109
LDU_FT/thunder-project/thunder/localcorr
LDU_FT
[ "<BEGIN>\n## `fromrdd`", "Load images from a Spark RDD.", " Input RDD must be a collection of key-value pairs\n where keys are singleton tuples indexing images,\n and values are 2d or 3d ndarrays.", " Parameters\n ----------\n rdd : SparkRDD\n An RDD containing the images.", " di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the localcorr API. 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 localcorr API. 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...
Correlate every pixel in an image sequence to the average of its local neighborhood. This algorithm computes, for every pixel, the correlation coefficient between the sequence of values for that pixel, and the average of all pixels in a local neighborhood. It does this by blurring the image(s) ...
"Correlate every pixel in an image sequence to the average of its local neighborhood.\n\n This algorithm computes, for every pixel, the correlation coefficient\n between the sequence of values for that pixel, and the average of all pixels\n in a local neighborhood. It does this by blurring the imag...
420
false
thunder-project/thunder
localcorr
4,110
LDU_FT/jart/fabulous/lorem_gotham
LDU_FT
[ "<BEGIN>\n## `lorem_gotham`", "Cheesy Gothic Poetry Generator", " Uses Python generators to yield eternal angst.", " When you need to generate random verbiage to test your code or\n typographic design, let's face it... Lorem Ipsum and \"the quick\n brown fox\" are old and boring!", " What you...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lorem_gotham API. 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 lorem_gotham API. 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...
Cheesy Gothic Poetry Generator Uses Python generators to yield eternal angst. When you need to generate random verbiage to test your code or typographic design, let's face it... Lorem Ipsum and "the quick brown fox" are old and boring! What you need is something with *flavor*, the kind of thing a...
"Cheesy Gothic Poetry Generator\n\n Uses Python generators to yield eternal angst.\n\n When you need to generate random verbiage to test your code or\n typographic design, let's face it... Lorem Ipsum and \"the quick\n brown fox\" are old and boring!\n\n What you need is something with *flavor*, the kind...
148
false
jart/fabulous
lorem_gotham
4,111
LDU_FT/census-instrumentation/opencensus-python/should_sample
LDU_FT
[ "<BEGIN>\n## `get_node`", "Generates Node message from params and system information.\n<END>", "<BEGIN>\n## `proto_ts_from_datetime_str`", "Converts string datetime in ISO format to protobuf timestamp.\n :type dt: str\n :param dt: string with datetime in ISO format\n :rtype: :class:`~google.protobuf....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the should_sample API. 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 should_sample API. 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...
Determine whether to sample this request or not. If the context enables tracing, return True. Else follow the decision of the sampler. :rtype: bool :returns: Whether to trace the request or not.
"Determine whether to sample this request or not.\n If the context enables tracing, return True.\n Else follow the decision of the sampler.\n\n :rtype: bool\n :returns: Whether to trace the request or not."
528
false
census-instrumentation/opencensus-python
should_sample
4,112
LDU_FT/alpha-xone/xone/save_data
LDU_FT
[ "<BEGIN>\n## `trade_day`", "Latest trading day w.r.t given dt", " Args:\n dt: date of reference\n cal: trading calendar", " Returns:\n pd.Timestamp: last trading day", " Examples:\n >>> trade_day('2018-12-25').strftime('%Y-%m-%d')\n '2018-12-24'\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Save data to file Args: data: pd.DataFrame file_fmt: data file format in terms of f-strings append: if append data to existing data drop_dups: list, drop duplicates in columns info: dict, infomation to be hashed and passed to f-strings **kwargs: additional parameters...
"Save data to file\n\n Args:\n data: pd.DataFrame\n file_fmt: data file format in terms of f-strings\n append: if append data to existing data\n drop_dups: list, drop duplicates in columns\n info: dict, infomation to be hashed and passed to f-strings\n **kwargs: additional p...
89
false
alpha-xone/xone
save_data
4,113
LDU_FT/btel/svg_utils/scale_xy
LDU_FT
[ "<BEGIN>\n## `fromfile`", "Open SVG figure from file.", " Parameters\n ----------\n fname : str\n name of the SVG file", " Returns\n -------\n SVGFigure\n newly created :py:class:`SVGFigure` initialised with the file content\n<END>", "<BEGIN>\n## `fromstring`", "Create a SV...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale_xy API. 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 scale_xy API. 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...
Scale element separately across the two axes x and y. If y is not provided, it is assumed equal to x (according to the W3 specification). Parameters ---------- x : float x-axis scaling factor. To scale down x < 1, scale up x > 1. y : (optional) float ...
"Scale element separately across the two axes x and y.\n If y is not provided, it is assumed equal to x (according to the\n W3 specification).\n\n Parameters\n ----------\n x : float\n x-axis scaling factor. To scale down x < 1, scale up x > 1.\n y : (optiona...
63
false
btel/svg_utils
scale_xy
4,114
LDU_FT/uktrade/directory-validators/case_study_social_link_linkedin
LDU_FT
[ "<BEGIN>\n## `keywords_special_characters`", "Confirms that the keywords don't contain special characters", " Args:\n keywords (str)", " Raises:\n django.forms.ValidationError\n<END>", "<BEGIN>\n## `image_format`", "Confirms that the uploaded image is of supported format.", " Args...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the case_study_social_link_linkedin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the case_study_social_link_linkedin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Confirms that the social media url is pointed at the correct domain. Args: value (string): The url to check. Raises: django.forms.ValidationError
"Confirms that the social media url is pointed at the correct domain.\n\n Args:\n value (string): The url to check.\n\n Raises:\n django.forms.ValidationError"
30
false
uktrade/directory-validators
case_study_social_link_linkedin
4,115
LDU_FT/IdentityPython/SATOSA/make_saml_response
LDU_FT
[ "<BEGIN>\n## `handle_authn_response`", "See super class method satosa.frontends.base.FrontendModule#handle_authn_response\n :type context: satosa.context.Context\n :type internal_response: satosa.internal.InternalData\n :rtype satosa.response.Response\n<END>", "<BEGIN>\n## `handle_authn_req...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_saml_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_saml_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. Th...
Creates a SAML response. :param binding: SAML response binding :param http_args: http arguments :return: response.Response
"Creates a SAML response.\n :param binding: SAML response binding\n :param http_args: http arguments\n :return: response.Response"
435
false
IdentityPython/SATOSA
make_saml_response
4,116
LDU_FT/BD2KOnFHIR/fhirtordf/subj_pred_idx_to_uri
LDU_FT
[ "<BEGIN>\n## `namespace_for`", "Reverse namespace lookup. Note that returned namespace may not be unique\n :param uri: namespace URI\n :return: namespace\n<END>", "<BEGIN>\n## `known_formats`", "Return a list of available formats in rdflib for the required task\n :param use: task (typically Serializ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subj_pred_idx_to_uri 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 subj_pred_idx_to_uri API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Convert FHIR subject, predicate and entry index into a URI. The resulting element can be substituted for the name of the target BNODE :param s: Subject URI (e.g. "fhir:Patient/f201", "fhir:Patient/f201.Patient.identifier_0", ...) :param p: Predicate URI (e.g. "fhir:Patient.identifier", "fhir.Identifier.use...
"Convert FHIR subject, predicate and entry index into a URI. The resulting element can be substituted\n for the name of the target BNODE\n :param s: Subject URI (e.g. \"fhir:Patient/f201\", \"fhir:Patient/f201.Patient.identifier_0\", ...)\n :param p: Predicate URI (e.g. \"fhir:Patient.identifier\", \"fhir.Ide...
75
false
BD2KOnFHIR/fhirtordf
subj_pred_idx_to_uri
4,117
LDU_FT/dhylands/rshell/cat
LDU_FT
[ "<BEGIN>\n## `add_device`", "Adds a device to the list of devices we know about.\n<END>", "<BEGIN>\n## `is_micropython_usb_device`", "Checks a USB device to see if it looks like a MicroPython device.\n<END>", "<BEGIN>\n## `is_micropython_usb_port`", "Checks to see if the indicated portname is a MicroPytho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Copies the contents of the indicated file to an already opened file.
"Copies the contents of the indicated file to an already opened file."
159
false
dhylands/rshell
cat
4,118
LDU_FT/yt-project/unyt/uintersect1d
LDU_FT
[ "<BEGIN>\n## `uconcatenate`", "Concatenate a sequence of arrays.", " This wrapper around numpy.concatenate preserves units. All input arrays\n must have the same units. See the documentation of numpy.concatenate for\n full details.", " Examples\n --------\n >>> from unyt import cm\n >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uintersect1d API. 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 uintersect1d API. 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...
Find the sorted unique elements of the two input arrays. A wrapper around numpy.intersect1d that preserves units. All input arrays must have the same units. See the documentation of numpy.intersect1d for full details. Examples -------- >>> from unyt import cm >>> A = [1, 2, 3]*cm >>>...
"Find the sorted unique elements of the two input arrays.\n\n A wrapper around numpy.intersect1d that preserves units. All input arrays\n must have the same units. See the documentation of numpy.intersect1d for\n full details.\n\n Examples\n --------\n >>> from unyt import cm\n >>> A = [1, 2, 3]*...
236
false
yt-project/unyt
uintersect1d
4,119
LDU_FT/askedrelic/libgreader/loadMoreItems
LDU_FT
[ "<BEGIN>\n## `get`", "Convenience method for requesting to google with proper cookies/params.\n<END>", "<BEGIN>\n## `post`", "Convenience method for requesting to google with proper cookies/params.\n<END>", "<BEGIN>\n## `_getAuth`", "Main step in authorizing with Reader.\n Sends request to Google C...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadMoreItems API. 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 loadMoreItems API. 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...
Load more items using the continuation parameters of previously loaded items.
"Load more items using the continuation parameters of previously loaded items."
47
false
askedrelic/libgreader
loadMoreItems
4,120
LDU_FT/FelixSchwarz/pymta/_start_new_worker_process
LDU_FT
[ "<BEGIN>\n## `_start_new_worker_process`", "Start a new child worker process which will listen on the given\n socket and return a reference to the new process.\n<END>", "<BEGIN>\n## `get_all_allowed_internal_commands`", "Returns an iterable which includes all allowed commands. This does\n not me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _start_new_worker_process 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 _start_new_worker_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Start a new child worker process which will listen on the given socket and return a reference to the new process.
"Start a new child worker process which will listen on the given\n socket and return a reference to the new process."
27
false
FelixSchwarz/pymta
_start_new_worker_process
4,121
LDU_FT/Robpol86/sphinxcontrib-imgur/filename
LDU_FT
[ "<BEGIN>\n## `query_api`", "Query the Imgur API.", " :raise APIError: When Imgur responds with errors or unexpected data.", " :param sphinx.application.Sphinx app: Sphinx application object.\n :param str client_id: Imgur API client ID to use. https://api.imgur.com/oauth2\n :param str imgur_id: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filename API. 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 filename API. 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...
Determine which resized Imgur filename to use based on the display width/height. Includes the extension. :param str display_width: Display width from Sphinx directive options (e.g. '100px', '50%'). :param str display_height: Display height from Sphinx directive options (e.g. '100px', '50%'). :p...
"Determine which resized Imgur filename to use based on the display width/height. Includes the extension.\n\n :param str display_width: Display width from Sphinx directive options (e.g. '100px', '50%').\n :param str display_height: Display height from Sphinx directive options (e.g. '100px', '50%').\n ...
90
false
Robpol86/sphinxcontrib-imgur
filename
4,122
LDU_FT/lltk/lltk/_needs_download
LDU_FT
[ "<BEGIN>\n## `pos`", "Tries to decide about the part of speech.\n<END>", "<BEGIN>\n## `articles`", "Tries to scrape the correct articles for singular and plural from uitmuntend.nl.\n<END>", "<BEGIN>\n## `plural`", "Tries to scrape the plural version from uitmuntend.nl.\n<END>", "<BEGIN>\n## `warning`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _needs_download API. 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 _needs_download API. 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...
Decorator used to make sure that the downloading happens prior to running the task.
"Decorator used to make sure that the downloading happens prior to running the task."
80
false
lltk/lltk
_needs_download
4,123
LDU_FT/huge-success/sanic/trigger_events
LDU_FT
[ "<BEGIN>\n## `group`", "Create a list of blueprints, optionally grouping them under a\n general URL prefix.", " :param blueprints: blueprints to be registered as a group\n :param url_prefix: URL route to be prepended to all sub-prefixes\n<END>", "<BEGIN>\n## `register`", "Register the b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trigger_events API. 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 trigger_events API. 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...
Trigger event callbacks (functions or async) :param events: one or more sync or async functions to execute :param loop: event loop
"Trigger event callbacks (functions or async)\n\n :param events: one or more sync or async functions to execute\n :param loop: event loop"
238
false
huge-success/sanic
trigger_events
4,124
LDU_FT/farshidce/touchworks-python/get_changes_patients
LDU_FT
[ "<BEGIN>\n## `get_token`", "get the security token by connecting to TouchWorks API\n<END>", "<BEGIN>\n## `_token_valid`", "checks if the token cached is valid or has expired by comparing\n the time token was created with current time\n :return: True if token has not expired yet and False is toke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_changes_patients 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_changes_patients API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
invokes TouchWorksMagicConstants.ACTION_GET_ENCOUNTER_LIST_FOR_PATIENT action :return: JSON response
"invokes TouchWorksMagicConstants.ACTION_GET_ENCOUNTER_LIST_FOR_PATIENT action\n :return: JSON response"
72
false
farshidce/touchworks-python
get_changes_patients
4,125
LDU_FT/openego/eTraGo/plot_stacked_gen
LDU_FT
[ "<BEGIN>\n## `tsam_cluster`", "Parameters\n ----------\n df : pd.DataFrame\n DataFrame with timeseries to cluster", " Returns\n -------\n timeseries : pd.DataFrame\n Clustered timeseries\n<END>", "<BEGIN>\n## `update_data_frames`", "Updates the snapshots, snapshots weights and t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_stacked_gen API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_stacked_gen API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Plot stacked sum of generation grouped by carrier type Parameters ---------- network : PyPSA network container bus: string Plot all generators at one specific bus. If none, sum is calulated for all buses resolution: string Unit for y-axis. Can be either GW/MW/KW Return...
"Plot stacked sum of generation grouped by carrier type\n\n\n Parameters\n ----------\n network : PyPSA network container\n bus: string\n Plot all generators at one specific bus. If none,\n sum is calulated for all buses\n resolution: string\n Unit for y-axis. Can be either GW/MW/KW\...
318
false
openego/eTraGo
plot_stacked_gen
4,126
LDU_FT/twitterdev/twitter-python-ads-sdk/demographics
LDU_FT
[ "<BEGIN>\n## `content_type`", "Returns the content-type value determined by file extension.\n<END>", "<BEGIN>\n## `__init_chunked_upload`", "Initialization for a multi-chunk upload.\n<END>", "<BEGIN>\n## `__upload_chunk`", "Uploads a single chunk of a multi-chunk upload.\n<END>", "<BEGIN>\n## `save`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the demographics API. 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 demographics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get the demographic breakdown for an input targeting criteria
"Get the demographic breakdown for an input targeting criteria"
74
false
twitterdev/twitter-python-ads-sdk
demographics
4,127
LDU_FT/pennersr/django-allauth/get_default_locale_callable
LDU_FT
[ "<BEGIN>\n## `_stash_user`", "Now, be aware, the following is quite ugly, let me explain:", " Even if the user credentials match, the authentication can fail because\n Django's default ModelBackend calls user_can_authenticate(), which\n checks `is_active`. Now, earlier versions of allauth d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_locale_callable 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_default_locale_callable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Wrapper function so that the default mapping is only built when needed
"Wrapper function so that the default mapping is only built when needed"
130
false
pennersr/django-allauth
get_default_locale_callable
4,128
LDU_FT/vmware/pyvmomi/makeUserLoginMethod
LDU_FT
[ "<BEGIN>\n## `_AddType`", "Note: Must be holding the _lazyLock, or in main init path\n<END>", "<BEGIN>\n## `GetServiceVersions`", "Get all the versions for the service with specified namespace (partially) ordered\n by compatibility (i.e. any version in the list that is compatible with some version\n v in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeUserLoginMethod 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 makeUserLoginMethod 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...
Return a function that will call the vim.SessionManager.Login() method with the given parameters. The result of this function can be passed as the "loginMethod" to a SessionOrientedStub constructor.
"Return a function that will call the vim.SessionManager.Login() method\n with the given parameters. The result of this function can be passed as\n the \"loginMethod\" to a SessionOrientedStub constructor."
128
false
vmware/pyvmomi
makeUserLoginMethod
4,129
LDU_FT/hearsaycorp/normalize/placeholder
LDU_FT
[ "<BEGIN>\n## `path`", "The path attribute returns a stringified, concise representation of\n the MultiFieldSelector. It can be reversed by the ``from_path``\n constructor.\n<END>", "<BEGIN>\n## `get`", "Creates a copy of the passed object which only contains the parts\n which are pointed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the placeholder API. 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 placeholder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the EmptyVal instance for the given type
"Returns the EmptyVal instance for the given type"
210
false
hearsaycorp/normalize
placeholder
4,130
LDU_FT/pysal/mapclassify/update
LDU_FT
[ "<BEGIN>\n## `quantile`", "Calculates the quantiles for an array", " Parameters\n ----------\n y : array\n (n,1), values to classify\n k : int\n number of quantiles", " Returns\n -------\n q : array\n (n,1), quantile values", " Examples\n -----...
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 ...
Add data or change classification parameters. Parameters ---------- y : array (n,1) array of data to classify inplace : bool whether to conduct the update in place or to return a copy estimated fro...
"Add data or change classification parameters.\n\n Parameters\n ----------\n y : array\n (n,1) array of data to classify\n inplace : bool\n whether to conduct the update in place or to return a\n copy esti...
87
false
pysal/mapclassify
update
4,131
LDU_FT/ContextLab/quail/load
LDU_FT
[ "<BEGIN>\n## `analyze`", "General analysis function that groups data by subject/list number and performs analysis.", " Parameters\n ----------\n egg : Egg data object\n The data to be analyzed", " subjgroup : list of strings or ints\n String/int variables indicating how to group over...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Loads eggs, fried eggs ands example data Parameters ---------- filepath : str Location of file update : bool If true, updates egg to latest format Returns ---------- data : quail.Egg or quail.FriedEgg Data loaded from disk
"Loads eggs, fried eggs ands example data\n\n Parameters\n ----------\n filepath : str\n Location of file\n\n update : bool\n If true, updates egg to latest format\n\n Returns\n ----------\n data : quail.Egg or quail.FriedEgg\n Data loaded from disk"
201
false
ContextLab/quail
load
4,132
LDU_FT/Autodesk/cryptorito/fingerprint_from_file
LDU_FT
[ "<BEGIN>\n## `polite_string`", "Returns a \"proper\" string that should work in both Py3/Py2\n<END>", "<BEGIN>\n## `not_a_string`", "It's probably not a string, in the sense\n that Python2/3 get confused about these things\n<END>", "<BEGIN>\n## `actually_flatten`", "Flatten iterables\n This is super...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fingerprint_from_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fingerprint_from_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. ...
Extract a fingerprint from a GPG public key file
"Extract a fingerprint from a GPG public key file"
36
false
Autodesk/cryptorito
fingerprint_from_file
4,133
LDU_FT/happyleavesaoc/python-firetv/get_properties
LDU_FT
[ "<BEGIN>\n## `_dump`", "Perform a service dump.", " :param service: Service to dump.\n :param grep: Grep for this string.\n :returns: Dump, optionally grepped.\n<END>", "<BEGIN>\n## `_dump_has`", "Check if a dump has particular content.", " :param service: Service to dump.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_properties API. 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_properties API. 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 the ``screen_on``, ``awake``, ``wake_lock_size``, ``current_app``, and ``running_apps`` properties.
"Get the ``screen_on``, ``awake``, ``wake_lock_size``, ``current_app``, and ``running_apps`` properties."
43
false
happyleavesaoc/python-firetv
get_properties
4,134
LDU_FT/iqbal-lab-org/cluster_vcf_records/make_separate_indels_and_one_alt_with_all_snps_no_combinations
LDU_FT
[ "<BEGIN>\n## `get_sample_name_from_vcf_header_lines`", "Given a list of header lines (made by either\n vcf_file_to_dict() or vcf_file_to_list()),\n returns the sample name. Assumes only one sample\n in the file.\n Raises error if badly formatted #CHROM line.\n Returns None if no #CHROM line found\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_separate_indels_and_one_alt_with_all_snps_no_combinations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_separate_indels_and_one_alt_with_all_snps_no_combinations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentat...
Returns a VCF record, where each indel from this cluster is in a separate ALT. Then all the remaining SNPs are applied to make one ALT. If >1 SNP in same place, either one might be used
"Returns a VCF record, where each indel from this\n cluster is in a separate ALT. Then all the remaining SNPs are\n applied to make one ALT. If >1 SNP in same place, either one\n might be used"
59
false
iqbal-lab-org/cluster_vcf_records
make_separate_indels_and_one_alt_with_all_snps_no_combinations
4,135
LDU_FT/eclipse/unide.python/device_message
LDU_FT
[ "<BEGIN>\n## `samples`", "Yield the samples as dicts, keyed by dimensions.\n<END>", "<BEGIN>\n## `device_measurement`", "Returns a JSON MeasurementPayload ready to be send through a\n transport.", " If `ts` is not given, the current time is used. `part` is an\n optional `Part` object, and `result` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the device_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the device_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 ex...
This quickly builds a time-stamped message. If `ts` is None, the current time is used.
"This quickly builds a time-stamped message. If `ts` is None, the\n current time is used."
25
false
eclipse/unide.python
device_message
4,136
LDU_FT/rwl/pylon/exciterInit
LDU_FT
[ "<BEGIN>\n## `performAction`", "perform an action on the world that changes it's internal state\n (maybe stochastically).", " All you have to do is pull one of the arm and receive a payout. Each\n arm has a distribution of different payouts that are delivered with\n different probabi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exciterInit API. 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 exciterInit API. 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...
Based on ExciterInit.m from MatDyn by Stijn Cole, developed at Katholieke Universiteit Leuven. See U{http://www.esat.kuleuven.be/ electa/teaching/matdyn/} for more information. @rtype: tuple @return: Exciter initial conditions.
"Based on ExciterInit.m from MatDyn by Stijn Cole, developed at\n Katholieke Universiteit Leuven. See U{http://www.esat.kuleuven.be/\n electa/teaching/matdyn/} for more information.\n\n @rtype: tuple\n @return: Exciter initial conditions."
527
false
rwl/pylon
exciterInit
4,137
LDU_FT/andresriancho/w3af-api-client/log_entry_generator
LDU_FT
[ "<BEGIN>\n## `log_entry_generator`", ":yield: The next LogEntry from the REST API\n :raise: StopIteration when there are no more log entries to show, please\n note that if you call this again at a later time the REST API\n could have different results and more data could be returned\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_entry_generator 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 log_entry_generator 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...
:yield: The next LogEntry from the REST API :raise: StopIteration when there are no more log entries to show, please note that if you call this again at a later time the REST API could have different results and more data could be returned
":yield: The next LogEntry from the REST API\n :raise: StopIteration when there are no more log entries to show, please\n note that if you call this again at a later time the REST API\n could have different results and more data could be returned"
15
false
andresriancho/w3af-api-client
log_entry_generator
4,138
LDU_FT/polyaxon/polyaxon/last_commit
LDU_FT
[ "<BEGIN>\n## `on_failure`", "Update query status and send email notification to a user\n<END>", "<BEGIN>\n## `on_success`", "Send email notification and a file, if requested to do so by a user\n<END>", "<BEGIN>\n## `user_write_events`", "Return event types where use acted on an object.", " The wr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last_commit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last_commit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a tuple (hash, and commit object)
"Returns a tuple (hash, and commit object)"
270
false
polyaxon/polyaxon
last_commit
4,139
LDU_FT/exosite-labs/pyonep/add_device
LDU_FT
[ "<BEGIN>\n## `request`", "Wraps HTTPConnection.request. On exception it calls exception_fn\n with the exception object. If exception_fn is None, it re-raises the\n exception. If notimeout is True, create a new connection (regardless of\n self.reuseconnection setting) that uses the global defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_device API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_device API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns 'device object' of newly created device. http://docs.exosite.com/portals/#create-device http://docs.exosite.com/portals/#device-object
"Returns 'device object' of newly created device.\n\n http://docs.exosite.com/portals/#create-device\n http://docs.exosite.com/portals/#device-object"
199
false
exosite-labs/pyonep
add_device
4,140
LDU_FT/go-macaroon-bakery/py-macaroon-bakery/_wait_for_macaroon
LDU_FT
[ "<BEGIN>\n## `encode_caveat`", "Encrypt a third-party caveat.", " The third_party_info key holds information about the\n third party we're encrypting the caveat for; the key is the\n public/private key pair of the party that's adding the caveat.", " The caveat will be encoded according to the vers...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wait_for_macaroon 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 _wait_for_macaroon API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns a macaroon from a legacy wait endpoint.
"Returns a macaroon from a legacy wait endpoint."
223
false
go-macaroon-bakery/py-macaroon-bakery
_wait_for_macaroon
4,141
LDU_FT/pavlin-policar/openTSNE/log_normalize
LDU_FT
[ "<BEGIN>\n## `has_c_library`", "Check whether a C/C++ library is available on the system to the compiler.", " Parameters\n ----------\n library: str\n The library we want to check for e.g. if we are interested in FFTW3, we\n want to check for `fftw3.h`, so this parameter will be `fftw3`.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_normalize API. 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 log_normalize API. 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...
Perform log transform log(x + 1). Parameters ---------- data : array_like
"Perform log transform log(x + 1).\n \n Parameters\n ----------\n data : array_like"
181
false
pavlin-policar/openTSNE
log_normalize
4,142
LDU_FT/envi-idl/envipyengine/execute
LDU_FT
[ "<BEGIN>\n## `task`", "Returns an ENVI Py Engine Task object. See ENVI Py Engine Task for examples.", " :param task_name: The name of the task to retrieve.\n :return: An ENVI Py Engine Task object.\n<END>", "<BEGIN>\n## `tasks`", "Returns a list of all tasks known to the engine.", " :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Execute a task with the provided input parameters :param input_params: Python dictionary containg all input parameters. This will be converted to JSON before being passed to the task engine. :param engine: String specifying Task Engine type to run (ENVI, IDL, e...
"Execute a task with the provided input parameters\n\n :param input_params: Python dictionary containg all input parameters.\n This will be converted to JSON before being passed\n to the task engine.\n :param engine: String specifying Task Engine type to run (ENVI, ...
42
false
envi-idl/envipyengine
execute
4,143
LDU_FT/btrevizan/pystrct/append
LDU_FT
[ "<BEGIN>\n## `size`", "Calculate and return the file size in bytes.\n<END>", "<BEGIN>\n## `prev`", "Get the previous n data from file.", " Keyword argument:\n n -- number of structs to be retrieved (default 1)\n Must be greater than 0.", " Return:\n A da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append API. 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 append API. 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 ...
Write the value into the file. Keyword arguments: value -- value to be writen (tuple)
"Write the value into the file.\n\n Keyword arguments:\n value -- value to be writen (tuple)"
22
false
btrevizan/pystrct
append
4,144
LDU_FT/agoragames/kairos/_unescape
LDU_FT
[ "<BEGIN>\n## `_resolve_time`", "Resolve the time in seconds of a configuration value.\n<END>", "<BEGIN>\n## `step_size`", "Return the time in seconds of a step. If a begin and end timestamp,\n return the time in seconds between them after adjusting for what buckets\n they alias to. If t1 and t0 resolve ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unescape API. 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 _unescape API. 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...
Recursively unescape values. Though slower, this doesn't require the user to know anything about the escaping when writing their own custom fetch functions.
"Recursively unescape values. Though slower, this doesn't require the user to\n know anything about the escaping when writing their own custom fetch functions."
74
false
agoragames/kairos
_unescape
4,145
LDU_FT/PredixDev/predixpy/add_to_manifest
LDU_FT
[ "<BEGIN>\n## `create`", "Create an instance of the US Weather Forecast Service with\n typical starting settings.\n<END>", "<BEGIN>\n## `add_to_manifest`", "Add useful details to the manifest about this service\n so that it can be used in an application.", " :param manifest: An predix.ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to_manifest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to_manifest API. 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...
Add useful details to the manifest about this service so that it can be used in an application. :param manifest: An predix.admin.app.Manifest object instance that manages reading/writing manifest config for a cloud foundry app.
"Add useful details to the manifest about this service\n so that it can be used in an application.\n\n :param manifest: An predix.admin.app.Manifest object\n instance that manages reading/writing manifest config\n for a cloud foundry app."
501
false
PredixDev/predixpy
add_to_manifest
4,146
LDU_FT/mozilla-releng/signtool/packmar
LDU_FT
[ "<BEGIN>\n## `uploadfile`", "Uploads file (given by `filename`) to server at `baseurl`.", " `sesson_key` and `nonce` are string values that get passed as POST\n parameters.\n<END>", "<BEGIN>\n## `is_authenticode_signed`", "Returns True if the file is signed with authenticode\n<END>", "<BEGIN>\n## `p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the packmar API. 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 packmar API. 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...
Create marfile from the contents of srcdir
"Create marfile from the contents of srcdir"
34
false
mozilla-releng/signtool
packmar
4,147
LDU_FT/Josef-Friedrich/tmep/tmpl_time
LDU_FT
[ "<BEGIN>\n## `ex_literal`", "An int, float, long, bool, string, or None literal with the given\n value.\n<END>", "<BEGIN>\n## `ex_varassign`", "Assign an expression into a single variable. The expression may\n either be an `ast.expr` object or a value to be used as a literal.\n<END>", "<BEGIN>\n## `ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tmpl_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tmpl_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 extract...
Format a time value using `strftime`. * synopsis: ``%time{date_time,format,curformat}`` * description: Return the date and time in any format accepted by \ strftime. For example, to get the year some music was added to \ your library, use %time{$added,%Y}.
"Format a time value using `strftime`.\n\n * synopsis: ``%time{date_time,format,curformat}``\n * description: Return the date and time in any format accepted by \\\n strftime. For example, to get the year some music was added to \\\n your library, use %time{$added,%Y}."
72
false
Josef-Friedrich/tmep
tmpl_time
4,148
LDU_FT/ramses-tech/ramses/reload_context
LDU_FT
[ "<BEGIN>\n## `get_existing_model`", "Try to find existing model class named `model_name`.", " :param model_name: String name of the model class.\n<END>", "<BEGIN>\n## `prepare_relationship`", "Create referenced model if it doesn't exist.", " When preparing a relationship, we check to see if the mode...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reload_context API. 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 reload_context API. 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...
Reload `self.context` object into a DB or ES object. A reload is performed by getting the object ID from :kwargs: and then getting a context key item from the new instance of `self._factory` which is an ACL class used by the current view. Arguments: :es_based: Boolean. Whet...
"Reload `self.context` object into a DB or ES object.\n\n A reload is performed by getting the object ID from :kwargs: and then\n getting a context key item from the new instance of `self._factory`\n which is an ACL class used by the current view.\n\n Arguments:\n :es_based: Boole...
180
false
ramses-tech/ramses
reload_context
4,149
LDU_FT/kmike/django-generic-images/attachedimage_form_factory
LDU_FT
[ "<BEGIN>\n## `attachedimage_form_factory`", "Returns ModelForm class to be used in admin.\n 'lang' is the language for GearsUploader (can be 'en' and 'ru' at the\n moment).\n<END>", "<BEGIN>\n## `attachedimages_inline_factory`", "Returns InlineModelAdmin for attached images.\n 'lang' is t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attachedimage_form_factory 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 attachedimage_form_factory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Returns ModelForm class to be used in admin. 'lang' is the language for GearsUploader (can be 'en' and 'ru' at the moment).
"Returns ModelForm class to be used in admin.\n 'lang' is the language for GearsUploader (can be 'en' and 'ru' at the\n moment)."
59
false
kmike/django-generic-images
attachedimage_form_factory
4,150
LDU_FT/architv/soccer-cli/team_scores
LDU_FT
[ "<BEGIN>\n## `get_team_scores`", "Queries the API and gets the particular team scores\n<END>", "<BEGIN>\n## `get_standings`", "Queries the API and gets the standings for a particular league\n<END>", "<BEGIN>\n## `get_league_scores`", "Queries the API and fetches the scores for fixtures\n based upon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the team_scores API. 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 team_scores API. 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...
Prints the teams scores in a pretty format
"Prints the teams scores in a pretty format"
50
false
architv/soccer-cli
team_scores
4,151
LDU_FT/loli/medpy/__range
LDU_FT
[ "<BEGIN>\n## `sls`", "r\"\"\"\n Computes the signed local similarity between two images.", " Compares a patch around each voxel of the minuend array to a number of patches\n centered at the points of a search neighbourhood in the subtrahend. Thus, creates\n a multi-dimensional measure of patch simil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Compute the histogram range of the values in the array a according to scipy.stats.histogram.
"Compute the histogram range of the values in the array a according to\n scipy.stats.histogram."
1,313
true
loli/medpy
__range
4,152
LDU_FT/silas/ops/run
LDU_FT
[ "<BEGIN>\n## `chmod`", "Changes file mode permissions.", " >>> if chmod('/tmp/one', 0755):\n ... print('OK')\n OK", " NOTE: The precending ``0`` is required when using a numerical mode.\n<END>", "<BEGIN>\n## `chown`", "Change file owner and group.", " >>> if chown('/tmp/one', ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run a shell command and wait for the response. The result object will resolve to True if result.code == 0 and output/error results can be retrieved from result.stdout and result.stderr variables. >>> result = run('echo ${content}', content='Some $%^$## "" + \' content') >>> result.code 0 ...
"Run a shell command and wait for the response. The result object will\n resolve to True if result.code == 0 and output/error results can be\n retrieved from result.stdout and result.stderr variables.\n\n >>> result = run('echo ${content}', content='Some $%^$## \"\" + \\' content')\n >>> result.code\n ...
25
false
silas/ops
run
4,153
LDU_FT/jpvanhal/inflection/humanize
LDU_FT
[ "<BEGIN>\n## `_irregular`", "A convenience function to add appropriate rules to plurals and singular\n for irregular words.", " :param singular: irregular word in singular form\n :param plural: irregular word in plural form\n<END>", "<BEGIN>\n## `camelize`", "Convert strings to CamelCase.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the humanize API. 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 humanize API. 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...
Capitalize the first word and turn underscores into spaces and strip a trailing ``"_id"``, if any. Like :func:`titleize`, this is meant for creating pretty output. Examples:: >>> humanize("employee_salary") "Employee salary" >>> humanize("author_id") "Author"
"Capitalize the first word and turn underscores into spaces and strip a\n trailing ``\"_id\"``, if any. Like :func:`titleize`, this is meant for\n creating pretty output.\n\n Examples::\n\n >>> humanize(\"employee_salary\")\n \"Employee salary\"\n >>> humanize(\"author_id\")\n \"Aut...
36
false
jpvanhal/inflection
humanize
4,154
LDU_FT/teepark/junction/select_peer
LDU_FT
[ "<BEGIN>\n## `wait_connected`", "Wait for connections to be made and their handshakes to finish", " :param conns:\n a single or list of (host, port) tuples with the connections that\n must be finished before the method will return. defaults to all the\n peers the :class:`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_peer API. 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 select_peer API. 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...
Choose a target from the available peers for a singular message :param peer_addrs: the ``(host, port)``s of the peers eligible to handle the RPC, and possibly a ``None`` entry if this hub can handle it locally :type peer_addrs: list :param service: the service of the message :type servi...
"Choose a target from the available peers for a singular message\n\n :param peer_addrs:\n the ``(host, port)``s of the peers eligible to handle the RPC, and\n possibly a ``None`` entry if this hub can handle it locally\n :type peer_addrs: list\n :param service: the service of the message\n :ty...
131
false
teepark/junction
select_peer
4,155
LDU_FT/mattaustin/django-storages-s3upload/get_upload_key_metadata
LDU_FT
[ "<BEGIN>\n## `_generate_processed_key_name`", "Returns a key name to use after processing based on timestamp and\n upload key name.\n<END>", "<BEGIN>\n## `clean_bucket_name`", "Validates that the bucket name in the provided data matches the\n bucket name from the storage backend.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_upload_key_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_upload_key_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Generate metadata dictionary from a bucket key.
"Generate metadata dictionary from a bucket key."
23
false
mattaustin/django-storages-s3upload
get_upload_key_metadata
4,156
LDU_FT/CZ-NIC/python-rt/merge_ticket
LDU_FT
[ "<BEGIN>\n## `__request`", "General request for :term:`API`.", " :keyword selector: End part of URL which completes self.url parameter\n set during class initialization.\n E.g.: ``ticket/123456/show``\n :keyword post_data: Dictionary with POST me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_ticket API. 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 merge_ticket API. 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...
Merge ticket into another (undocumented API feature). :param ticket_id: ID of ticket to be merged :param into: ID of destination ticket :returns: ``True`` Operation was successful ``False`` Either origin or destination ticket does no...
"Merge ticket into another (undocumented API feature).\n\n :param ticket_id: ID of ticket to be merged\n :param into: ID of destination ticket\n :returns: ``True``\n Operation was successful\n ``False``\n Either origin or destination ticket...
143
false
CZ-NIC/python-rt
merge_ticket
4,157
LDU_FT/frascoweb/frasco/pass_feature
LDU_FT
[ "<BEGIN>\n## `load_actions`", "Each item can be an action name as a string or a dict. When using a dict,\n one key/item pair must be the action name and its options and the rest action\n decorator names and their options.\n Example:\n load_actions([\"login_required\", {\"flash\": {\"message\": \"h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pass_feature API. 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 pass_feature API. 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...
Injects a feature instance into the kwargs
"Injects a feature instance into the kwargs"
80
false
frascoweb/frasco
pass_feature
4,158
LDU_FT/krinj/k-util/_special
LDU_FT
[ "<BEGIN>\n## `interpolate_color`", "Linear interpolate two 3-channel colors, using channel based interpolation.\n<END>", "<BEGIN>\n## `interpolate`", "Linearly interpolate between two float values.\n<END>", "<BEGIN>\n## `filter_value`", "Linearly interpolate between two float values.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _special API. 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 _special API. 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...
Logs a special (colored) message at the indent level.
"Logs a special (colored) message at the indent level."
30
false
krinj/k-util
_special
4,159
LDU_FT/project-rig/rig/root_chip
LDU_FT
[ "<BEGIN>\n## `minimise`", "Remove from the routing table any entries which could be replaced by\n default routing.", " Parameters\n ----------\n routing_table : [:py:class:`~rig.routing_table.RoutingTableEntry`, ...]\n Routing table from which to remove entries which could be handled by\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the root_chip API. 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 root_chip API. 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...
The coordinates (x, y) of the chip used to boot the machine.
"The coordinates (x, y) of the chip used to boot the machine."
983
false
project-rig/rig
root_chip
4,160
LDU_FT/Chilipp/psy-simple/mpl_weight2qt
LDU_FT
[ "<BEGIN>\n## `try_and_error`", "Apply multiple validation functions", " Parameters\n ----------\n ``*funcs``\n Validation functions to test", " Returns\n -------\n function\n<END>", "<BEGIN>\n## `validate_text`", "Validate a text formatoption", " Parameters\n ----------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mpl_weight2qt API. 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 mpl_weight2qt API. 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...
Convert a weight from matplotlib definition to a Qt weight Parameters ---------- weight: int or string Either an integer between 1 and 1000 or a string out of :attr:`weights_mpl2qt` Returns ------- int One type of the PyQt5.QtGui.QFont.Weight
"Convert a weight from matplotlib definition to a Qt weight\n\n Parameters\n ----------\n weight: int or string\n Either an integer between 1 and 1000 or a string out of\n :attr:`weights_mpl2qt`\n\n Returns\n -------\n int\n One type of the PyQt5.QtGui.QFont.Weight"
183
false
Chilipp/psy-simple
mpl_weight2qt
4,161
LDU_FT/The-Politico/politico-civic-election-night/get_precinctsreportingpct
LDU_FT
[ "<BEGIN>\n## `get_images`", "Object of images serialized by tag name.\n<END>", "<BEGIN>\n## `get_override_votes`", "Votes entered into backend.\n Only used if ``override_ap_votes = True``.\n<END>", "<BEGIN>\n## `get_queryset`", "Returns a queryset of all executive offices holding an election on\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_precinctsreportingpct 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_precinctsreportingpct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Precincts reporting percent if vote is top level result else ``None``.
"Precincts reporting percent if vote is top level result else ``None``."
62
false
The-Politico/politico-civic-election-night
get_precinctsreportingpct
4,162
LDU_FT/brentp/cruzdb/sequence
LDU_FT
[ "<BEGIN>\n## `relate`", "Produce a relationship between this mapped table and another\n one. ", " This makes usage of SQLAlchemy's :func:`sqlalchemy.orm.relationship`\n construct.\n<END>", "<BEGIN>\n## `execute`", "Execute a SQL statement.", " The statement may be a string SQL ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sequence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sequence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return the sequence for this feature. if per-exon is True, return an array of exon sequences This sequence is never reverse complemented
"Return the sequence for this feature.\n if per-exon is True, return an array of exon sequences\n This sequence is never reverse complemented"
169
false
brentp/cruzdb
sequence
4,163
LDU_FT/Yubico/python-yubico/all
LDU_FT
[ "<BEGIN>\n## `req_string`", "Return string describing model and version requirement.\n<END>", "<BEGIN>\n## `is_compatible`", "Check if this flag is compatible with a YubiKey of version 'ver'.\n<END>", "<BEGIN>\n## `get_set`", "Return the boolean value of 'flag'. If 'new' is set,\n the flag is updat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns a set of all USB modes, with optional filtering
"Returns a set of all USB modes, with optional filtering"
141
false
Yubico/python-yubico
all
4,164
LDU_FT/mnick/scikit-tensor/uttkrp
LDU_FT
[ "<BEGIN>\n## `asalsan`", "ASALSAN algorithm to compute the three-way DEDICOM decomposition\n of a tensor", " See\n ---\n .. [1] Brett W. Bader, Richard A. Harshman, Tamara G. Kolda\n \"Temporal analysis of semantic graphs using ASALSAN\"\n 7th International Conference on Data Mining, 200...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uttkrp API. 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 uttkrp API. 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 ...
Unfolded tensor times Khatri-Rao product for Kruskal tensors Parameters ---------- X : tensor_mixin Tensor whose unfolding should be multiplied. U : list of array_like Matrices whose Khatri-Rao product should be multiplied. mode : int Mode in ...
"Unfolded tensor times Khatri-Rao product for Kruskal tensors\n\n Parameters\n ----------\n X : tensor_mixin\n Tensor whose unfolding should be multiplied.\n U : list of array_like\n Matrices whose Khatri-Rao product should be multiplied.\n mode : int\n ...
114
false
mnick/scikit-tensor
uttkrp
4,165
LDU_FT/bradmontgomery/django-redis-metrics/delete_category
LDU_FT
[ "<BEGIN>\n## `categorize_metrics`", "Called only on a valid form, this method will place the chosen\n metrics in the given catgory.\n<END>", "<BEGIN>\n## `dedupe`", "Remove duplicates from a sequence (of hashable items) while maintaining\n order. NOTE: This only works if items in the list are hashab...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_category API. 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 delete_category API. 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...
Removes the category from Redis. This doesn't touch the metrics; they simply become uncategorized.
"Removes the category from Redis. This doesn't touch the metrics;\n they simply become uncategorized."
122
false
bradmontgomery/django-redis-metrics
delete_category
4,166
LDU_FT/PrefPy/prefpy/getInitialSample
LDU_FT
[ "<BEGIN>\n## `mse`", "Description:\r\n Calculates the Mean Squared Error (MSE) of\r\n an estimation on flat numpy ndarrays.\r\n Parameters:\r\n mean: actual value (numpy ndarray)\r\n estimator: estimated value of the mean (numpy ndarray)\n<END>", "<BEGIN>\n## `sse`", "Descr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getInitialSample API. 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 getInitialSample API. 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 an initial sample for the Markov chain. This function will return a list containing integer representations of each candidate in order of their rank in the current vote, from first to last. The list will be a complete strict ordering over the candidates. Initially, we rank the candida...
"Generate an initial sample for the Markov chain. This function will return a list \n containing integer representations of each candidate in order of their rank in the current \n vote, from first to last. The list will be a complete strict ordering over the candidates.\n Initially, we rank the can...
316
false
PrefPy/prefpy
getInitialSample
4,167
LDU_FT/SystemRDL/systemrdl-compiler/get_path
LDU_FT
[ "<BEGIN>\n## `derive_coordinates`", "Depending on the compilation source, some members of the SourceRef\n object may be incomplete.\n Calling this function performs the necessary derivations to complete the\n object.\n<END>", "<BEGIN>\n## `format_message`", "Formats the message prior to e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Generate an absolute path string to this node Parameters ---------- hier_separator: str Override the hierarchy separator array_suffix: str Override how array suffixes are represented when the index is known empty_array_suffix: str Override how...
"Generate an absolute path string to this node\n\n Parameters\n ----------\n hier_separator: str\n Override the hierarchy separator\n array_suffix: str\n Override how array suffixes are represented when the index is known\n empty_array_suffix: str\n Ov...
207
false
SystemRDL/systemrdl-compiler
get_path
4,168
LDU_FT/AnalogJ/lexicon/_list_records
LDU_FT
[ "<BEGIN>\n## `_authenticate`", "Authenticate with netcup server. Must be called first.\n<END>", "<BEGIN>\n## `_create_record`", "Create record. If it already exists, do nothing.\n<END>", "<BEGIN>\n## `_list_records`", "List all records. Return an empty list if no records found.\n ``rtype``, ``name`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _list_records API. 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 _list_records API. 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...
Connects to Hetzner account and returns a list of records filtered by record rtype, name and content. The list is empty if no records found.
"Connects to Hetzner account and returns a list of records filtered by record\n rtype, name and content. The list is empty if no records found."
218
false
AnalogJ/lexicon
_list_records
4,169
LDU_FT/HazardDede/dictmentor/_load_plain_yaml
LDU_FT
[ "<BEGIN>\n## `instance_of`", "Tests if the given key-value pairs (items) are instances of the given ``target_type``.\n Per default this function yields whether ``True`` or ``False`` depending on the fact if all\n items withstand the validation or not. Per default the validation / evaluation is\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_plain_yaml API. 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 _load_plain_yaml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Will just load the yaml without executing any extensions. You will get the plain dictionary without augmentation. It is equivalent to just perform `yaml.safe_load`. Besides that you can specify a stream, a file or just a string that contains yaml/json data. Examples: >>> jstr = '{"a...
"Will just load the yaml without executing any extensions. You will get the plain dictionary\n without augmentation. It is equivalent to just perform `yaml.safe_load`. Besides that you\n can specify a stream, a file or just a string that contains yaml/json data.\n\n Examples:\n >>> jstr ...
91
false
HazardDede/dictmentor
_load_plain_yaml
4,170
LDU_FT/ulule/django-badgify/get_unawarded_user_ids
LDU_FT
[ "<BEGIN>\n## `chunks`", "Yields successive n-sized chunks from l.\n<END>", "<BEGIN>\n## `log_queries`", "Logs recipe instance SQL queries (actually, only time).\n<END>", "<BEGIN>\n## `get_recipe_instance`", "Returns the recipe instance for the given badge slug.\n If badge has not been registered, r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unawarded_user_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unawarded_user_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns unawarded user ids (need to be saved) and the count.
"Returns unawarded user ids (need to be saved) and the count."
28
false
ulule/django-badgify
get_unawarded_user_ids
4,171
LDU_FT/stitchfix/pyxley/legend
LDU_FT
[ "<BEGIN>\n## `set_float`", "Set a float option.", " Args:\n option (str): name of option.\n value (float): value of the option.", " Raises:\n TypeError: Value must be a float.\n<END>", "<BEGIN>\n## `set_integer`", "Set an integer option.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the legend API. 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 legend API. 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 ...
Set the legend labels. Args: values (list): list of labels. Raises: ValueError: legend must be a list of labels.
"Set the legend labels.\n\n Args:\n values (list): list of labels.\n\n Raises:\n ValueError: legend must be a list of labels."
82
false
stitchfix/pyxley
legend
4,172