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/Sheeprider/BitBucket-api/get_user | LDU_FT | [
"<BEGIN>\n## `auth`",
"Return credentials for current Bitbucket user.\n<END>",
"<BEGIN>\n## `authorize`",
"Call this with your consumer key, secret and callback URL, to\n generate a token for verification.\n<END>",
"<BEGIN>\n## `verify`",
"After converting the token into verifier, call this to fina... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user API.
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_user API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Returns user informations.
If username is not defined, tries to return own informations. | "Returns user informations.\n If username is not defined, tries to return own informations." | 39 | false | Sheeprider/BitBucket-api | get_user | 14,573 | |
LDU_FT/modin-project/modin/_default_to_pandas | LDU_FT | [
"<BEGIN>\n## `_read_sql_with_offset_pandas_on_ray`",
"Use a Ray task to read a chunk of SQL source.",
" Note: Ray functions are not detected by codecov (thus pragma: no cover)\n<END>",
"<BEGIN>\n## `read_sql`",
"Read SQL query or database table into a DataFrame.",
" Args:\n sql: strin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _default_to_pandas 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 _default_to_pandas 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... | Helper method to use default pandas function | "Helper method to use default pandas function" | 811 | false | modin-project/modin | _default_to_pandas | 14,574 | |
LDU_FT/jaywink/federation/add_element_to_doc | LDU_FT | [
"<BEGIN>\n## `check_sender_and_entity_handle_match`",
"Ensure that sender and entity handles match.",
" Basically we've already verified the sender is who they say when receiving the payload. However, the sender might\n be trying to set another author in the payload itself, since Diaspora has the sender i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_element_to_doc 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_element_to_doc 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... | Set text value of an etree.Element of tag, appending a new element with given tag if it doesn't exist. | "Set text value of an etree.Element of tag, appending a new element with given tag if it doesn't exist." | 230 | false | jaywink/federation | add_element_to_doc | 14,575 | |
LDU_FT/miyuchina/mistletoe/parse_marker | LDU_FT | [
"<BEGIN>\n## `escape`",
"Replace special characters \"&\", \"<\" and \">\" to HTML-safe sequences.\n If the optional flag quote is true (the default), the quotation mark\n characters, both double quote (\") and single quote (') characters are also\n translated.\n<END>",
"<BEGIN>\n## `render_math`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_marker API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_marker API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Returns a pair (prepend, leader) iff the line has a valid leader. | "Returns a pair (prepend, leader) iff the line has a valid leader." | 29 | false | miyuchina/mistletoe | parse_marker | 14,576 | |
LDU_FT/stevearc/dynamo3/build_expression_values | LDU_FT | [
"<BEGIN>\n## `build_kwargs`",
"Construct the kwargs to pass to batch_get_item\n<END>",
"<BEGIN>\n## `set_request_args`",
"Set the Limit parameter into the request args\n<END>",
"<BEGIN>\n## `complete`",
"Return True if the limit has been reached\n<END>",
"<BEGIN>\n## `accept`",
"Apply the filter and i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_expression_values 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 build_expression_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Build ExpresionAttributeValues from a value or kwargs | "Build ExpresionAttributeValues from a value or kwargs" | 164 | false | stevearc/dynamo3 | build_expression_values | 14,577 | |
LDU_FT/yyuu/botornado/get_obj | LDU_FT | [
"<BEGIN>\n## `save`",
"Saves this item to SDB.",
" :param bool replace: If ``True``, delete any attributes on the remote\n SDB item that have a ``None`` value on this object.\n<END>",
"<BEGIN>\n## `add_value`",
"Helps set or add to attributes on this item. If you are adding a new\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_obj API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_obj API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Returns the AWS object associated with a given option.
The heuristics used are a bit lame. If the option name contains
the word 'bucket' it is assumed to be an S3 bucket, if the name
contains the word 'queue' it is assumed to be an SQS queue and
if it contains the word 'domain' it is a... | "Returns the AWS object associated with a given option.\n\n The heuristics used are a bit lame. If the option name contains\n the word 'bucket' it is assumed to be an S3 bucket, if the name\n contains the word 'queue' it is assumed to be an SQS queue and\n if it contains the word 'domain' i... | 2,931 | true | yyuu/botornado | get_obj | 14,578 | |
LDU_FT/bartromgens/geojsoncontour/angle | LDU_FT | [
"<BEGIN>\n## `angle`",
"Return the angle in radians between vectors 'v1' and 'v2'.\n<END>",
"<BEGIN>\n## `keep_high_angle`",
"Keep vertices with angles higher then given minimum.\n<END>",
"<BEGIN>\n## `contour_to_geojson`",
"Transform matplotlib.contour to geojson.\n<END>",
"<BEGIN>\n## `contourf_to_geo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the angle API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the angle API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Return the angle in radians between vectors 'v1' and 'v2'. | "Return the angle in radians between vectors 'v1' and 'v2'." | 10 | false | bartromgens/geojsoncontour | angle | 14,579 | |
LDU_FT/boatd/python-boatd/cross_track_distance | LDU_FT | [
"<BEGIN>\n## `from_radians`",
"Return a new instance of Point from a pair of coordinates in radians.\n<END>",
"<BEGIN>\n## `distance_to`",
"Return the distance between this point and another point in meters.",
" :param point: Point to measure distance to\n :type point: Point",
" :retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cross_track_distance 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 cross_track_distance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return the cross track distance from this point to the line between two
points::
* end_point
/
/
/ * this point
/
/
*
start_point
:param st... | "Return the cross track distance from this point to the line between two\n points::\n\n * end_point\n /\n /\n / * this point\n /\n /\n *\n start_point\n\n\n ... | 49 | false | boatd/python-boatd | cross_track_distance | 14,580 | |
LDU_FT/walkr/oi/call | LDU_FT | [
"<BEGIN>\n## `new_parser`",
"Create a command line argument parser",
" Add a few default flags, such as --version\n for displaying the program version when invoked\n<END>",
"<BEGIN>\n## `add_command`",
"Register a new function with a the name `command` and\n `description` (which will be... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API.
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 call API.
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... | Execute local OR remote command and show response | "Execute local OR remote command and show response" | 22 | false | walkr/oi | call | 14,581 | |
LDU_FT/shaunduncan/nosqlite/_gte | LDU_FT | [
"<BEGIN>\n## `_eq`",
"Returns True if the value of a document field is equal to a given value\n<END>",
"<BEGIN>\n## `_gt`",
"Returns True if the value of a document field is greater than a given value\n<END>",
"<BEGIN>\n## `_lt`",
"Returns True if the value of a document field is less than a given value\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gte API.
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 _gte API.
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... | Returns True if the value of a document field is greater than or
equal to a given value | "Returns True if the value of a document field is greater than or\n equal to a given value" | 53 | false | shaunduncan/nosqlite | _gte | 14,582 | |
LDU_FT/boydgreenfield/query/head | LDU_FT | [
"<BEGIN>\n## `head`",
"Get the first n entries for a given Table/Column. Additional keywords\n passed to QueryDb.query().",
" Requires that the given table has a primary key specified.\n<END>",
"<BEGIN>\n## `where`",
"Select from a given Table or Column with the specified WHERE clause\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the head API.
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 head API.
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... | Get the first n entries for a given Table/Column. Additional keywords
passed to QueryDb.query().
Requires that the given table has a primary key specified. | "Get the first n entries for a given Table/Column. Additional keywords\n passed to QueryDb.query().\n\n Requires that the given table has a primary key specified." | 18 | false | boydgreenfield/query | head | 14,583 | |
LDU_FT/ouroboroscoding/format-oc-python/default | LDU_FT | [
"<BEGIN>\n## `default`",
"Default",
"\t\tCalled when the regular Encoder can't figure out what to do with the type",
"\t\tArgs:\n\t\t\tself (CEncoder): A pointer to the current instance\n\t\t\tobj (mixed): An unknown object that needs to be encoded",
"\t\tReturns:\n\t\t\tstr: A valid JSON string representin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Default
Called when the regular Encoder can't figure out what to do with the type
Args:
self (CEncoder): A pointer to the current instance
obj (mixed): An unknown object that needs to be encoded
Returns:
str: A valid JSON string representing the object | "Default\n\n\t\tCalled when the regular Encoder can't figure out what to do with the type\n\n\t\tArgs:\n\t\t\tself (CEncoder): A pointer to the current instance\n\t\t\tobj (mixed): An unknown object that needs to be encoded\n\n\t\tReturns:\n\t\t\tstr: A valid JSON string representing the object" | 155 | false | ouroboroscoding/format-oc-python | default | 14,584 | |
LDU_FT/hmmlearn/hmmlearn/_log_multivariate_normal_density_spherical | LDU_FT | [
"<BEGIN>\n## `log_multivariate_normal_density`",
"Compute the log probability under a multivariate Gaussian distribution.\n Parameters\n ----------\n X : array_like, shape (n_samples, n_features)\n List of n_features-dimensional data points. Each row corresponds to a\n single data point.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _log_multivariate_normal_density_spherical API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _log_multivariate_normal_density_spherical API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic... | Compute Gaussian log-density at X for a spherical model. | "Compute Gaussian log-density at X for a spherical model." | 108 | false | hmmlearn/hmmlearn | _log_multivariate_normal_density_spherical | 14,585 | |
LDU_FT/steffann/pylisp/verify_authentication_data | LDU_FT | [
"<BEGIN>\n## `from_bytes`",
"Look at the type of the message, instantiate the correct class and\n let it parse the message.\n<END>",
"<BEGIN>\n## `sanitize`",
"Check if the current settings conform to the LISP specifications and\n fix them where possible.\n<END>",
"<BEGIN>\n## `calculate_authe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_authentication_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_authentication_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Verify the current authentication data based on the current key-id and
the given key. | "Verify the current authentication data based on the current key-id and\n the given key." | 85 | false | steffann/pylisp | verify_authentication_data | 14,586 | |
LDU_FT/nuSTORM/gnomon/sort_points | LDU_FT | [
"<BEGIN>\n## `objwalk`",
"Traverse a dictionary recursively and save path",
" Taken from:\n http://code.activestate.com/recipes/577982-recursively-walk-python-objects/\n<END>",
"<BEGIN>\n## `lookup_cc_partner`",
"Lookup the charge current partner",
" Takes as an input neutrino nu_pid is a PDG c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_points API.
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 sort_points API.
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... | Take points (z,x,q) and sort by increasing z | "Take points (z,x,q) and sort by increasing z" | 43 | false | nuSTORM/gnomon | sort_points | 14,587 | |
LDU_FT/althonos/pronto/obo | LDU_FT | [
"<BEGIN>\n## `_extract_resources`",
"Extract the children of an element as a key/value mapping.\n<END>",
"<BEGIN>\n## `_iter_rawterms`",
"Iterate through the raw terms (Classes) in the ontology.\n<END>",
"<BEGIN>\n## `_extract_obo_synonyms`",
"Extract the synonyms defined in the rawterm.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obo API.
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 obo API.
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... | str: the synonym serialized in obo format. | "str: the synonym serialized in obo format." | 120 | false | althonos/pronto | obo | 14,588 | |
LDU_FT/jmcarp/flask-apispec/marshal_with | LDU_FT | [
"<BEGIN>\n## `use_kwargs`",
"Inject keyword arguments from the specified webargs arguments into the\n decorated view function.",
" Usage:",
" .. code-block:: python",
" from marshmallow import fields",
" @use_kwargs({'name': fields.Str(), 'category': fields.Str()})\n def get_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marshal_with API.
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 marshal_with API.
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... | Marshal the return value of the decorated view function using the
specified schema.
Usage:
.. code-block:: python
class PetSchema(Schema):
class Meta:
fields = ('name', 'category')
@marshal_with(PetSchema)
def get_pet(pet_id):
return Pet.qu... | "Marshal the return value of the decorated view function using the\n specified schema.\n\n Usage:\n\n .. code-block:: python\n\n class PetSchema(Schema):\n class Meta:\n fields = ('name', 'category')\n\n @marshal_with(PetSchema)\n def get_pet(pet_id):\n ... | 29 | false | jmcarp/flask-apispec | marshal_with | 14,589 | |
LDU_FT/alerta/python-alerta-client/cli | LDU_FT | [
"<BEGIN>\n## `cli`",
"Suppress alerts for specified duration based on alert attributes.\n<END>",
"<BEGIN>\n## `cli`",
"Add group/org/domain/role-to-customer or delete lookup entry.\n<END>",
"<BEGIN>\n## `cli`",
"Create user or update user details, including password reset.\n<END>",
"<BEGIN>\n## `cli`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API.
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 cli API.
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... | Display API server switch status and usage metrics. | "Display API server switch status and usage metrics." | 30 | false | alerta/python-alerta-client | cli | 14,590 | |
LDU_FT/smira/py-numa/node_to_cpus | LDU_FT | [
"<BEGIN>\n## `get_node_size`",
"Get size of memory on C{node}.",
" @param node: node idx\n @type node: C{int}\n @return: free memory/total memory\n @rtype: C{tuple}(C{int}, C{int})\n<END>",
"<BEGIN>\n## `node_to_cpus`",
"Get CPUs available on C{node}.",
" @return: set of CPU ids\n @rtype... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the node_to_cpus API.
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 node_to_cpus API.
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 CPUs available on C{node}.
@return: set of CPU ids
@rtype: C{set} | "Get CPUs available on C{node}.\n\n @return: set of CPU ids\n @rtype: C{set}" | 44 | false | smira/py-numa | node_to_cpus | 14,591 | |
LDU_FT/FulcrumTechnologies/pyconfluence/get_page_name | LDU_FT | [
"<BEGIN>\n## `load_variables`",
"Load variables from environment variables.\n<END>",
"<BEGIN>\n## `rest`",
"Main function to be called from this module.",
" send a request using method 'req' and to the url. the _rest() function\n will add the base_url to this, so 'url' should be something like '/ips'.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_page_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_page_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return name of a page based on passed page id.
Parameters:
- id: id of a Confluence page. | "Return name of a page based on passed page id.\n Parameters:\n - id: id of a Confluence page." | 19 | false | FulcrumTechnologies/pyconfluence | get_page_name | 14,592 | |
LDU_FT/kkroening/ffmpeg-python/output | LDU_FT | [
"<BEGIN>\n## `get_args`",
"Build command-line arguments to be passed to ffmpeg.\n<END>",
"<BEGIN>\n## `compile`",
"Build command-line for invoking ffmpeg.",
" The :meth:`run` function uses this to build the commnad line\n arguments and should work in most cases, but calling this function\n directly... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Output file URL
Syntax:
`ffmpeg.output(stream1[, stream2, stream3...], filename, **ffmpeg_args)`
Any supplied keyword arguments are passed to ffmpeg verbatim (e.g.
``t=20``, ``f='mp4'``, ``acodec='pcm'``, ``vcodec='rawvideo'``,
etc.). Some keyword-arguments are handled specially, as shown bel... | "Output file URL\n\n Syntax:\n `ffmpeg.output(stream1[, stream2, stream3...], filename, **ffmpeg_args)`\n\n Any supplied keyword arguments are passed to ffmpeg verbatim (e.g.\n ``t=20``, ``f='mp4'``, ``acodec='pcm'``, ``vcodec='rawvideo'``,\n etc.). Some keyword-arguments are handled specially, as s... | 149 | false | kkroening/ffmpeg-python | output | 14,593 | |
LDU_FT/openstack/networking-hyperv/main | LDU_FT | [
"<BEGIN>\n## `handle_trunks`",
"Trunk data model change from the server.\n<END>",
"<BEGIN>\n## `handle_subports`",
"Subport data model change from the server.\n<END>",
"<BEGIN>\n## `_setup_trunk`",
"Sets up VLAN trunk and updates the trunk status.\n<END>",
"<BEGIN>\n## `main`",
"The entry point for ne... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
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 main API.
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... | The entry point for neutron-hnv-metadata-proxy. | "The entry point for neutron-hnv-metadata-proxy." | 45 | false | openstack/networking-hyperv | main | 14,594 | |
LDU_FT/adamziel/python_translate/get_domains | LDU_FT | [
"<BEGIN>\n## `load_messages`",
"Loads translation found in a directory.",
" @type directory: string\n @param directory: The directory to search",
" @type catalogue: MessageCatalogue\n @param catalogue: The message catalogue to dump",
" @raises: ValueError\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_domains API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_domains API.
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 domains affected by operation.
@rtype: list | "Returns domains affected by operation.\n @rtype: list" | 136 | false | adamziel/python_translate | get_domains | 14,595 | |
LDU_FT/mrstephenneal/mysql-toolkit/count_rows | LDU_FT | [
"<BEGIN>\n## `count_rows_duplicates`",
"Get the number of rows that do not contain distinct values.\n<END>",
"<BEGIN>\n## `count_rows`",
"Get the number of rows in a particular table.\n<END>",
"<BEGIN>\n## `count_rows_distinct`",
"Get the number distinct of rows in a particular table.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_rows API.
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 count_rows API.
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... | Get the number of rows in a particular table. | "Get the number of rows in a particular table." | 204 | false | mrstephenneal/mysql-toolkit | count_rows | 14,596 | |
LDU_FT/pyros-dev/pyzmp/discover | LDU_FT | [
"<BEGIN>\n## `discover`",
"discovers a service. If timeout is specified, waits for at least minimum_providers service instance to be available.\n Note : we do not want to make the discovery block undefinitely since we never know for sure if a service is running or not\n TODO : improve with future...... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discover API.
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 discover API.
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... | discovers a service. If timeout is specified, waits for at least minimum_providers service instance to be available.
Note : we do not want to make the discovery block undefinitely since we never know for sure if a service is running or not
TODO : improve with future...
:param name: name of the s... | "discovers a service. If timeout is specified, waits for at least minimum_providers service instance to be available.\n Note : we do not want to make the discovery block undefinitely since we never know for sure if a service is running or not\n TODO : improve with future...\n :param name: name of t... | 19 | false | pyros-dev/pyzmp | discover | 14,597 | |
LDU_FT/ejhigson/nestcheck/get_dummy_run | LDU_FT | [
"<BEGIN>\n## `save_load_result`",
"Saves and/or loads func output (must be picklable).\n<END>",
"<BEGIN>\n## `pickle_save`",
"Saves object with pickle.",
" Parameters\n ----------\n data: anything picklable\n Object to save.\n name: str\n Path to save to (includes dir, excludes ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dummy_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dummy_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 ext... | Generate dummy data for a nested sampling run.
Log-likelihood values of points are generated from a uniform distribution
in (0, 1), sorted, scaled by logl_range and shifted by logl_start (if it is
not -np.inf). Theta values of each point are each generated from a uniform
distribution in (0, 1).
Pa... | "Generate dummy data for a nested sampling run.\n\n Log-likelihood values of points are generated from a uniform distribution\n in (0, 1), sorted, scaled by logl_range and shifted by logl_start (if it is\n not -np.inf). Theta values of each point are each generated from a uniform\n distribution in (0, 1).\n... | 394 | false | ejhigson/nestcheck | get_dummy_run | 14,598 | |
LDU_FT/tensorflow/skflow/get_imported_modules | LDU_FT | [
"<BEGIN>\n## `collect_members`",
"Collect all symbols from a list of modules.",
" Args:\n module_to_name: Dictionary mapping modules to short names.",
" Returns:\n Dictionary mapping name to (fullname, member) pairs.\n<END>",
"<BEGIN>\n## `_get_anchor`",
"Turn a full member name into an anchor.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_imported_modules 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_imported_modules 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 the list of modules imported from `module`. | "Returns the list of modules imported from `module`." | 46 | false | tensorflow/skflow | get_imported_modules | 14,599 | |
LDU_FT/Robpol86/etaprogress/str_fraction | LDU_FT | [
"<BEGIN>\n## `terminal_width`",
"Returns the terminal's width (number of character columns).\n<END>",
"<BEGIN>\n## `get_remaining_width`",
"Returns the number of characters available if sample string were to be printed in the terminal.",
" Positional arguments:\n sample_string -- gets the length of th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_fraction API.
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 str_fraction API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Returns the fraction with additional whitespace. | "Returns the fraction with additional whitespace." | 76 | false | Robpol86/etaprogress | str_fraction | 14,600 | |
LDU_FT/CygnusNetworks/pypureomapi/add_net16string | LDU_FT | [
"<BEGIN>\n## `parse_chain`",
"Creates a new parser that executes the passed parsers (args) with the\n\tprevious results and yields a tuple of the results.",
"\t>>> list(parse_chain(lambda: (None, 1), lambda one: (None, 2)))\n\t[None, None, (1, 2)]",
"\t@param args: parsers\n\t@returns: parser\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_net16string API.
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_net16string API.
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... | >>> OutBuffer().add_net16string(b"x").getvalue() == b'\\x00\\x01x'
True
@type string: bytes
@param string: maximum length must fit in a 16bit integer
@returns: self
@raises OmapiSizeLimitError: | ">>> OutBuffer().add_net16string(b\"x\").getvalue() == b'\\\\x00\\\\x01x'\n\t\tTrue\n\n\t\t@type string: bytes\n\t\t@param string: maximum length must fit in a 16bit integer\n\t\t@returns: self\n\t\t@raises OmapiSizeLimitError:" | 114 | false | CygnusNetworks/pypureomapi | add_net16string | 14,601 | |
LDU_FT/libvips/pyvips/get | LDU_FT | [
"<BEGIN>\n## `print_all`",
"Print all objects.",
" Print a table of all active libvips objects. Handy for debugging.\n<END>",
"<BEGIN>\n## `get_typeof`",
"Get the GType of a GObject property.",
" This function returns 0 if the property does not exist.\n<END>",
"<BEGIN>\n## `get`",
"Get a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Get a GObject property.
The value of the property is converted to a Python value. | "Get a GObject property.\n\n The value of the property is converted to a Python value." | 73 | false | libvips/pyvips | get | 14,602 | |
LDU_FT/halcy/Mastodon.py/timeline | LDU_FT | [
"<BEGIN>\n## `parse_version_string`",
"Parses a semver version string, stripping off \"rc\" stuff if present.\n<END>",
"<BEGIN>\n## `bigger_version`",
"Returns the bigger version of two version strings.\n<END>",
"<BEGIN>\n## `api_version`",
"Version check decorator. Currently only checks Bigger Than.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeline API.
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 timeline API.
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... | Fetch statuses, most recent ones first. `timeline` can be 'home', 'local', 'public',
'tag/hashtag' or 'list/id'. See the following functions documentation for what those do.
Local hashtag timelines are supported via the `timeline_hashtag()`_ function.
The default timeline is the "home" ... | "Fetch statuses, most recent ones first. `timeline` can be 'home', 'local', 'public',\n 'tag/hashtag' or 'list/id'. See the following functions documentation for what those do.\n Local hashtag timelines are supported via the `timeline_hashtag()`_ function.\n \n The default timeline is the \"... | 313 | false | halcy/Mastodon.py | timeline | 14,603 | |
LDU_FT/ewiger/mlab/saveVarsInMat | LDU_FT | [
"<BEGIN>\n## `saveVarsInMat`",
"Hacky convinience function to dump a couple of python variables in a\n .mat file. See `awmstools.saveVars`.\n<END>",
"<BEGIN>\n## `_make_proxy`",
"Creates a proxy for a variable.",
" XXX create and cache nested proxies also here.\n<END>",
"<BEGIN>\n## `_do`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the saveVarsInMat API.
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 saveVarsInMat API.
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... | Hacky convinience function to dump a couple of python variables in a
.mat file. See `awmstools.saveVars`. | "Hacky convinience function to dump a couple of python variables in a\n .mat file. See `awmstools.saveVars`." | 247 | false | ewiger/mlab | saveVarsInMat | 14,604 | |
LDU_FT/google-research/batch-ppo/clear | LDU_FT | [
"<BEGIN>\n## `count_weights`",
"Count learnable parameters.",
" Args:\n scope: Restrict the count to a variable scope.\n exclude: Regex to match variable names to exclude.\n graph: Operate on a graph other than the current default graph.",
" Returns:\n Number of learnable parameters as integer.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Return the mean estimate and reset the streaming statistics. | "Return the mean estimate and reset the streaming statistics." | 362 | false | google-research/batch-ppo | clear | 14,605 | |
LDU_FT/niemasd/TreeSwift/condense | LDU_FT | [
"<BEGIN>\n## `plot_ltt`",
"Plot the Lineages Through Time (LTT) curve of a given tree",
" Args:\n ``lineages`` (``dict``): The ``lineages`` dictionary returned by a ``Tree`` object's ``lineages_through_time()`` function call",
" ``show_plot`` (``bool``): ``True`` to show the plot, otherwise `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the condense API.
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 condense API.
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... | If siblings have the same label, merge them. If they have edge lengths, the resulting ``Node`` will have the larger of the lengths | "If siblings have the same label, merge them. If they have edge lengths, the resulting ``Node`` will have the larger of the lengths" | 280 | false | niemasd/TreeSwift | condense | 14,606 | |
LDU_FT/ggravlingen/pytradfri/get_gateway_info | LDU_FT | [
"<BEGIN>\n## `combine_data`",
"Combines the data for this command with another.\n<END>",
"<BEGIN>\n## `load_json`",
"Load JSON data from a file and return as dict or list.",
" Defaults to returning empty dict if file is not found.\n<END>",
"<BEGIN>\n## `save_json`",
"Save JSON data to a file.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gateway_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gateway_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return the gateway info.
Returns a Command. | "Return the gateway info.\n\n Returns a Command." | 79 | false | ggravlingen/pytradfri | get_gateway_info | 14,607 | |
LDU_FT/mwouts/jupytext/md_to_notebook | LDU_FT | [
"<BEGIN>\n## `is_magic`",
"Is the current line a (possibly escaped) Jupyter magic, and should it be commented?\n<END>",
"<BEGIN>\n## `metadata_filter_as_dict`",
"Return the metadata filter represented as either None (no filter),\n or a dictionary with at most two keys: 'additional' and 'excluded',\n whi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the md_to_notebook API.
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 md_to_notebook API.
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... | Convert a Markdown text to a Jupyter notebook, using Pandoc | "Convert a Markdown text to a Jupyter notebook, using Pandoc" | 229 | false | mwouts/jupytext | md_to_notebook | 14,608 | |
LDU_FT/xsleonard/pystmark/send | LDU_FT | [
"<BEGIN>\n## `send`",
"Send a message.",
" :param message: Message to send.\n :type message: `dict` or :class:`Message`\n :param api_key: Your Postmark API key. Required, if `test` is not `True`.\n :param secure: Use the https scheme for the Postmark API.\n Defaults to `True`\n :param test... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Send request to Postmark API.
Returns result of :func:`requests.post`.
:param message: Your Postmark message data.
:type message: `dict` or :class:`Message`
:param api_key: Your Postmark API key.
:type api_key: `str`
:param test: Make a test request to the Postmark API.
... | "Send request to Postmark API.\n Returns result of :func:`requests.post`.\n\n :param message: Your Postmark message data.\n :type message: `dict` or :class:`Message`\n :param api_key: Your Postmark API key.\n :type api_key: `str`\n :param test: Make a test request to the Postma... | 113 | false | xsleonard/pystmark | send | 14,609 | |
LDU_FT/seibert-media/Highton/add_note | LDU_FT | [
"<BEGIN>\n## `decode`",
"Decode the object to the object",
" :param root_element: the parsed xml Element\n :type root_element: xml.etree.ElementTree.Element\n :return: the decoded Element as object\n :rtype: object\n<END>",
"<BEGIN>\n## `add_note`",
"Create a Note to current obje... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_note API.
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 add_note API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Create a Note to current object
:param body: the body of the note
:type body: str
:return: newly created Note
:rtype: Tag | "Create a Note to current object\n\n :param body: the body of the note\n :type body: str\n :return: newly created Note\n :rtype: Tag" | 80 | false | seibert-media/Highton | add_note | 14,610 | |
LDU_FT/sanoma/django-arctic/get_field_class | LDU_FT | [
"<BEGIN>\n## `get_all_fields`",
"Returns a list of all field names on the instance.\n<END>",
"<BEGIN>\n## `query_string_ordering`",
"Add ordering param to the given query string\n :param context: template context\n :param value: examples would be '-id' or 'id'. A minus indicates that the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_class API.
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_field_class API.
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... | Given a queryset and a field name, it will return the field's class | "Given a queryset and a field name, it will return the field's class" | 85 | false | sanoma/django-arctic | get_field_class | 14,611 | |
LDU_FT/idlesign/django-siteflags/get_flags_for_types | LDU_FT | [
"<BEGIN>\n## `update_filter_dict`",
"Helper. Updates filter dict for a queryset.",
" :param dict d:\n :param User|None user:\n :param int|None status:\n :return:\n<END>",
"<BEGIN>\n## `get_flags_for_types`",
"Returns a dictionary with flag objects associated with the given model classes (types).... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flags_for_types API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flags_for_types API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Returns a dictionary with flag objects associated with the given model classes (types).
The dictionary is indexed by model classes.
Each dict entry contains a list of associated flag objects.
:param list mdl_classes:
:param User user:
:param int status:
:param bool allow... | "Returns a dictionary with flag objects associated with the given model classes (types).\n The dictionary is indexed by model classes.\n Each dict entry contains a list of associated flag objects.\n\n :param list mdl_classes:\n :param User user:\n :param int status:\n :param bo... | 21 | false | idlesign/django-siteflags | get_flags_for_types | 14,612 | |
LDU_FT/InspectorMustache/base16-builder-python/build_single_worker | LDU_FT | [
"<BEGIN>\n## `get_parent_dir`",
"Get the directory $level levels above $base_dir.\n<END>",
"<BEGIN>\n## `get_pystache_parsed`",
"Return a ParsedTemplate instance based on the contents of\n $mustache_file.\n<END>",
"<BEGIN>\n## `get_template_dirs`",
"Return a set of all template directories.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_single_worker API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_single_worker API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Worker thread for picking up scheme files from $queue and building b16
templates using $templates until it receives None. | "Worker thread for picking up scheme files from $queue and building b16\n templates using $templates until it receives None." | 50 | false | InspectorMustache/base16-builder-python | build_single_worker | 14,613 | |
LDU_FT/asweigart/pysimplevalidate/validateInt | LDU_FT | [
"<BEGIN>\n## `_errstr`",
"Returns the value str, truncated to MAX_ERROR_STR_LEN characters. If\n it's truncated, the returned value will have '...' on the end.\n<END>",
"<BEGIN>\n## `_getStrippedValue`",
"Like the strip() string method, except the strip argument describes\n different behavior:",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validateInt API.
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 validateInt API.
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... | Raises ValidationException if value is not a int.
Returns value, so it can be used inline in an expression:
print(2 + validateInt(your_number))
Note that since int() and ignore leading or trailing whitespace
when converting a string to a number, so does this validateNum().
* value (str): The... | "Raises ValidationException if value is not a int.\n\n Returns value, so it can be used inline in an expression:\n\n print(2 + validateInt(your_number))\n\n Note that since int() and ignore leading or trailing whitespace\n when converting a string to a number, so does this validateNum().\n\n * value ... | 148 | false | asweigart/pysimplevalidate | validateInt | 14,614 | |
LDU_FT/dossier/dossier.label/split_by_connected_component | LDU_FT | [
"<BEGIN>\n## `get_related_coref_relationships`",
"Follow coreference relationships to get full related graph.",
" :rtype: dict mapping related identifier to list of documents\n coref to that identifier.\n<END>",
"<BEGIN>\n## `get_related_flat`",
"Follow coreference relationships to get full re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_by_connected_component API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_by_connected_component API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Split idents into equivalence classes based on connected
components. | "Split idents into equivalence classes based on connected\n components." | 88 | false | dossier/dossier.label | split_by_connected_component | 14,615 | |
LDU_FT/aluzzardi/wssh/_bridge | LDU_FT | [
"<BEGIN>\n## `_load_private_key`",
"Load a SSH private key (DSA or RSA) from a string",
" The private key may be encrypted. In that case, a passphrase\n must be supplied.\n<END>",
"<BEGIN>\n## `open`",
"Open a connection to a remote SSH server",
" In order to connect, either one of th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bridge API.
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 _bridge API.
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... | Full-duplex bridge between a websocket and a SSH channel | "Full-duplex bridge between a websocket and a SSH channel" | 20 | false | aluzzardi/wssh | _bridge | 14,616 | |
LDU_FT/getsentry/sentry-python/apply_to_event | LDU_FT | [
"<BEGIN>\n## `init`",
"Initializes the SDK and optionally integrations.",
" This takes the same arguments as the client constructor.\n<END>",
"<BEGIN>\n## `current`",
"Returns the current instance of the hub.\n<END>",
"<BEGIN>\n## `get_integration`",
"Returns the integration for this hub by name or c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_to_event API.
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 apply_to_event API.
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... | Applies the information contained on the scope to the given event. | "Applies the information contained on the scope to the given event." | 57 | false | getsentry/sentry-python | apply_to_event | 14,617 | |
LDU_FT/treycucco/bidon/find | LDU_FT | [
"<BEGIN>\n## `_normalize_name`",
"Returns a normalized element tag or attribute name. A tag name or attribute name can be given\n either as a string, or as a 2-tuple. If a 2-tuple, it is interpreted as (namespace, name) and is\n returned joined by a colon \":\"",
" :name: a string or a 2-tuple of strings\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Returns the first record that matches the given criteria.
:table_name: the name of the table to search on
:constraints: is any construct that can be parsed by SqlWriter.parse_constraints.
:columns: either a string or a list of column names
:order_by: the order by clause | "Returns the first record that matches the given criteria.\n\n :table_name: the name of the table to search on\n :constraints: is any construct that can be parsed by SqlWriter.parse_constraints.\n :columns: either a string or a list of column names\n :order_by: the order by clause" | 436 | false | treycucco/bidon | find | 14,618 | |
LDU_FT/agoragames/kairos/insert | 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 insert API.
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 insert API.
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 ... | Insert a value for the timeseries "name". For each interval in the
configuration, will insert the value into a bucket for the interval
"timestamp". If time is not supplied, will default to time.time(), else it
should be a floating point value.
If "intervals" is less than 0, inserts the value into times... | "Insert a value for the timeseries \"name\". For each interval in the\n configuration, will insert the value into a bucket for the interval\n \"timestamp\". If time is not supplied, will default to time.time(), else it\n should be a floating point value.\n\n If \"intervals\" is less than 0, inserts the valu... | 74 | false | agoragames/kairos | insert | 14,619 | |
LDU_FT/LEMS/pylems/parse_state_assignment | LDU_FT | [
"<BEGIN>\n## `toxml`",
"Exports this object into a LEMS XML object\n<END>",
"<BEGIN>\n## `toxml`",
"Exports this object into a LEMS XML object\n<END>",
"<BEGIN>\n## `tokenize`",
"Tokenizes the string stored in the parser object into a list\n of tokens.\n<END>",
"<BEGIN>\n## `parse_token_list_rec`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_state_assignment API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_state_assignment API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Parses <StateAssignment>
@param node: Node containing the <StateAssignment> element
@type node: xml.etree.Element | "Parses <StateAssignment>\n\n @param node: Node containing the <StateAssignment> element\n @type node: xml.etree.Element" | 441 | false | LEMS/pylems | parse_state_assignment | 14,620 | |
LDU_FT/fictorial/filesysdb/add_index | LDU_FT | [
"<BEGIN>\n## `object_path`",
"Returns path to the backing file of the object\n with the given ``id`` in the given ``collection``.\n Note that the ``id`` is made filesystem-safe by\n \"normalizing\" its string representation.\n<END>",
"<BEGIN>\n## `load_object_at_path`",
"Load an object from disk at e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Add a secondary index for a collection ``collection`` on one or
more ``fields``.
The values at each of the ``fields`` are loaded from existing
objects and their object ids added to the index.
You can later iterate the objects of an index via
``each_indexed_object``.
If you update an object an... | "Add a secondary index for a collection ``collection`` on one or\n more ``fields``.\n\n The values at each of the ``fields`` are loaded from existing\n objects and their object ids added to the index.\n\n You can later iterate the objects of an index via\n ``each_indexed_object``.\n\n If you update an... | 34 | false | fictorial/filesysdb | add_index | 14,621 | |
LDU_FT/xflr6/bitsets/chunkreverse | LDU_FT | [
"<BEGIN>\n## `chunkreverse`",
"Yield integers of dtype bit-length reverting their bit-order.",
" >>> list(chunkreverse([0b10000000, 0b11000000, 0b00000001], 'B'))\n [1, 3, 128]",
" >>> list(chunkreverse([0x8000, 0xC000, 0x0001], 'H'))\n [1, 3, 32768]\n<END>",
"<BEGIN>\n## `pack`",
"Return inte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunkreverse API.
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 chunkreverse API.
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... | Yield integers of dtype bit-length reverting their bit-order.
>>> list(chunkreverse([0b10000000, 0b11000000, 0b00000001], 'B'))
[1, 3, 128]
>>> list(chunkreverse([0x8000, 0xC000, 0x0001], 'H'))
[1, 3, 32768] | "Yield integers of dtype bit-length reverting their bit-order.\n\n >>> list(chunkreverse([0b10000000, 0b11000000, 0b00000001], 'B'))\n [1, 3, 128]\n\n >>> list(chunkreverse([0x8000, 0xC000, 0x0001], 'H'))\n [1, 3, 32768]" | 66 | false | xflr6/bitsets | chunkreverse | 14,622 | |
LDU_FT/mozilla/amo-validator/get_line | LDU_FT | [
"<BEGIN>\n## `decode`",
"Decode data employing some charset detection and including unicode BOM\n stripping.\n<END>",
"<BEGIN>\n## `get_context`",
"Returns a tuple containing the context for a line\n<END>",
"<BEGIN>\n## `_format_line`",
"Formats a line from the data to be the appropriate length\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_line API.
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_line API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Returns the line number that the given string position is found on | "Returns the line number that the given string position is found on" | 94 | false | mozilla/amo-validator | get_line | 14,623 | |
LDU_FT/google-research/batch-ppo/main | LDU_FT | [
"<BEGIN>\n## `count_weights`",
"Count learnable parameters.",
" Args:\n scope: Restrict the count to a variable scope.\n exclude: Regex to match variable names to exclude.\n graph: Operate on a graph other than the current default graph.",
" Returns:\n Number of learnable parameters as integer.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
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 main API.
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... | Load a trained algorithm and render videos. | "Load a trained algorithm and render videos." | 362 | false | google-research/batch-ppo | main | 14,624 | |
LDU_FT/onicagroup/runway/extract_boto_args_from_env | LDU_FT | [
"<BEGIN>\n## `fix_hyphen_commands`",
"Update options to match their module names with underscores.\n<END>",
"<BEGIN>\n## `calculate_hash_of_files`",
"Return a hash of all of the given files at the given root.",
" Adapted from stacker.hooks.aws_lambda; used according to its license:\n https://github.co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_boto_args_from_env 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 extract_boto_args_from_env API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Return boto3 client args dict with environment creds. | "Return boto3 client args dict with environment creds." | 130 | false | onicagroup/runway | extract_boto_args_from_env | 14,625 | |
LDU_FT/nabla-c0d3/sslyze/do_handshake_with_robot | LDU_FT | [
"<BEGIN>\n## `do_handshake_with_robot`",
"Modified do_handshake() to send a ROBOT payload and return the result.\n<END>",
"<BEGIN>\n## `get_client_key_exchange_record`",
"A client key exchange record with a hardcoded pre_master_secret, and a valid or invalid padding.\n<END>",
"<BEGIN>\n## `get_finished_reco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_handshake_with_robot 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 do_handshake_with_robot API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Modified do_handshake() to send a ROBOT payload and return the result. | "Modified do_handshake() to send a ROBOT payload and return the result." | 92 | false | nabla-c0d3/sslyze | do_handshake_with_robot | 14,626 | |
LDU_FT/lobocv/pyperform/validate | LDU_FT | [
"<BEGIN>\n## `validate`",
"Execute the code once to get it's results (to be used in function validation). Compare the result to the\n first function in the group.\n<END>",
"<BEGIN>\n## `summarize`",
"Tabulate and write the results of ComparisonBenchmarks to a file or standard out.\n :param str g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Execute the code once to get it's results (to be used in function validation). Compare the result to the
first function in the group. | "Execute the code once to get it's results (to be used in function validation). Compare the result to the\n first function in the group." | 30 | false | lobocv/pyperform | validate | 14,627 | |
LDU_FT/weld-project/weld/flatten_group | LDU_FT | [
"<BEGIN>\n## `to_weld_type`",
"Summary",
" Args:\n weld_type (TYPE): Description\n dim (TYPE): Description",
" Returns:\n TYPE: Description\n<END>",
"<BEGIN>\n## `evaluate`",
"Summary",
" Args:\n verbose (bool, optional): Description\n decode (bool... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Groups the given columns by the corresponding grouping column
value, and aggregate by summing values.
Args:
columns (List<WeldObject>): List of columns as WeldObjects
column_tys (List<str>): List of each column data ty
grouping_column (WeldObject): Column to group rest of columns by
... | "Groups the given columns by the corresponding grouping column\n value, and aggregate by summing values.\n\n Args:\n columns (List<WeldObject>): List of columns as WeldObjects\n column_tys (List<str>): List of each column data ty\n grouping_column (WeldObject): Column to group rest of columns... | 210 | false | weld-project/weld | flatten_group | 14,628 | |
LDU_FT/Kensuke-Mitsuzawa/JapaneseTokenizers/__is_valid_pos | LDU_FT | [
"<BEGIN>\n## `__check_mecab_dict_path`",
"check path to dict of Mecab in system environment\n<END>",
"<BEGIN>\n## `__feature_parser`",
"Parse the POS feature output by Mecab\n :param uni_feature unicode:\n :return ( (pos1, pos2, pos3), word_stem ):\n<END>",
"<BEGIN>\n## `__postprocess_analyzed... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __is_valid_pos API.
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 __is_valid_pos API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | This function checks token's pos is with in POS set that user specified.
If token meets all conditions, Return True; else return False | "This function checks token's pos is with in POS set that user specified.\n If token meets all conditions, Return True; else return False" | 58 | false | Kensuke-Mitsuzawa/JapaneseTokenizers | __is_valid_pos | 14,629 | |
LDU_FT/adafruit/Adafruit_Python_LED_Backpack/set_left_colon | LDU_FT | [
"<BEGIN>\n## `set_pixel`",
"Set pixel at position x, y to the given value. X and Y should be values\n of 0 to 8. Value should be OFF, GREEN, RED, or YELLOW.\n<END>",
"<BEGIN>\n## `set_image`",
"Set display buffer to Python Image Library image. Red pixels (r=255,\n g=0, b=0) will map to red LE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_left_colon API.
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 set_left_colon API.
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... | Turn the left colon on with show color True, or off with show colon
False. Only the large 1.2" 7-segment display has a left colon. | "Turn the left colon on with show color True, or off with show colon\n False. Only the large 1.2\" 7-segment display has a left colon." | 57 | false | adafruit/Adafruit_Python_LED_Backpack | set_left_colon | 14,630 | |
LDU_FT/deep-compute/logagg/elasticsearch_ispartial_log | LDU_FT | [
"<BEGIN>\n## `start_daemon_thread`",
"starts a deamon thread for a given target function and arguments.\n<END>",
"<BEGIN>\n## `serialize_dict_keys`",
"returns all the keys in a dictionary.",
" >>> serialize_dict_keys({\"a\": {\"b\": {\"c\": 1, \"b\": 2} } })\n ['a', 'a.b', 'a.b.c', 'a.b.b']\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elasticsearch_ispartial_log 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 elasticsearch_ispartial_log API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | >>> line1 = ' [2018-04-03T00:22:38,048][DEBUG][o.e.c.u.c.QueueResizingEsThreadPoolExecutor] [search17/search]: there were [2000] tasks in [809ms], avg task time [28.4micros], EWMA task execution [790nanos], [35165.36 tasks/s], optimal queue is [35165], current capacity [1000]'
>>> line2 = ' org.elasticsearch.Reso... | ">>> line1 = ' [2018-04-03T00:22:38,048][DEBUG][o.e.c.u.c.QueueResizingEsThreadPoolExecutor] [search17/search]: there were [2000] tasks in [809ms], avg task time [28.4micros], EWMA task execution [790nanos], [35165.36 tasks/s], optimal queue is [35165], current capacity [1000]'\n >>> line2 = ' org.elasticsearch.Re... | 59 | false | deep-compute/logagg | elasticsearch_ispartial_log | 14,631 | |
LDU_FT/p3trus/slave/calculate_statistics | LDU_FT | [
"<BEGIN>\n## `_typelist`",
"Helper function converting all items of x to instances.\n<END>",
"<BEGIN>\n## `write`",
"Generates and sends a command message unit.",
" :param transport: An object implementing the `.Transport` interface.\n It is used by the protocol to send the message.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_statistics 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 calculate_statistics API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Starts the statistics calculation.
:param start: The left limit of the time window in percent.
:param stop: The right limit of the time window in percent.
.. note::
The calculation takes some time. Check the status byte to see when
the operation is done. A running scan... | "Starts the statistics calculation.\n\n :param start: The left limit of the time window in percent.\n :param stop: The right limit of the time window in percent.\n\n .. note::\n\n The calculation takes some time. Check the status byte to see when\n the operation is done. A run... | 189 | false | p3trus/slave | calculate_statistics | 14,632 | |
LDU_FT/flowroute/txjason/stopServing | LDU_FT | [
"<BEGIN>\n## `addToService`",
"Add this Handler's exported methods to an RPC Service instance.\n<END>",
"<BEGIN>\n## `add`",
"Adds a new method to the jsonrpc service.",
" Arguments:\n f -- the remote function\n name -- name of the method in the jsonrpc service\n types -- list or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stopServing API.
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 stopServing API.
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 deferred that will fire immediately if there are
no pending requests, otherwise when the last request is removed
from self.pending. | "Returns a deferred that will fire immediately if there are\n no pending requests, otherwise when the last request is removed\n from self.pending." | 40 | false | flowroute/txjason | stopServing | 14,633 | |
LDU_FT/wohlgejm/accountable/users | LDU_FT | [
"<BEGIN>\n## `configure`",
"Initial configuration. Used to specify your username, password and domain.\n Configuration is stored in ~/.accountable/config.yaml.\n<END>",
"<BEGIN>\n## `issuetypes`",
"List all issue types. Optional parameter to list issue types by a given\n project.\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the users API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the users API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Executes a user search for the given query. | "Executes a user search for the given query." | 22 | false | wohlgejm/accountable | users | 14,634 | |
LDU_FT/raghakot/keras-vis/visualize_saliency | LDU_FT | [
"<BEGIN>\n## `visualize_activation_with_losses`",
"Generates the `input_tensor` that minimizes the weighted `losses`. This function is intended for advanced\n use cases where a custom loss is desired.",
" Args:\n input_tensor: An input tensor of shape: `(samples, channels, image_dims...)` if `image... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visualize_saliency 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 visualize_saliency 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... | Generates an attention heatmap over the `seed_input` for maximizing `filter_indices`
output in the given `layer_idx`.
Args:
model: The `keras.models.Model` instance. The model input shape must be: `(samples, channels, image_dims...)`
if `image_data_format=channels_first` or `(samples, image... | "Generates an attention heatmap over the `seed_input` for maximizing `filter_indices`\n output in the given `layer_idx`.\n\n Args:\n model: The `keras.models.Model` instance. The model input shape must be: `(samples, channels, image_dims...)`\n if `image_data_format=channels_first` or `(samples,... | 138 | false | raghakot/keras-vis | visualize_saliency | 14,635 | |
LDU_FT/davidfokkema/artist/_normalize_histogram2d | LDU_FT | [
"<BEGIN>\n## `render`",
"Render the plot using a template.",
" Once the plot is complete, it needs to be rendered. Artist uses\n the Jinja2 templating engine. The default template results in a\n LaTeX file which can be included in your document.",
" :param template: a user-suppli... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _normalize_histogram2d 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 _normalize_histogram2d API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Normalize the values of the counts for a 2D histogram.
This normalizes the values of a numpy array to the range 0-255.
:param counts: a NumPy array which is to be rescaled.
:param type: either 'bw' or 'reverse_bw'. | "Normalize the values of the counts for a 2D histogram.\n\n This normalizes the values of a numpy array to the range 0-255.\n\n :param counts: a NumPy array which is to be rescaled.\n :param type: either 'bw' or 'reverse_bw'." | 278 | false | davidfokkema/artist | _normalize_histogram2d | 14,636 | |
LDU_FT/tkhyn/dirsync/sync | LDU_FT | [
"<BEGIN>\n## `load_cfg`",
"Load defaults from configuration file:\r\n - from the source/directory/.dirsync file (prioritary)\r\n - and/or a %HOME%/.dirsync user config file\n<END>",
"<BEGIN>\n## `_cmptimestamps`",
"Compare time stamps of two files and return True\n if file1 (source) is ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API.
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 sync API.
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... | Synchronize will try to synchronize two directories w.r.t
each other's contents, copying files if necessary from source
to target, and creating directories if necessary. If the optional
argument purge is True, directories in target (dir2) that are
not present in the source (dir1) will be... | "Synchronize will try to synchronize two directories w.r.t\n each other's contents, copying files if necessary from source\n to target, and creating directories if necessary. If the optional\n argument purge is True, directories in target (dir2) that are\n not present in the source (dir1) wi... | 20 | false | tkhyn/dirsync | sync | 14,637 | |
LDU_FT/sods/paramz/notify_observers | LDU_FT | [
"<BEGIN>\n## `adjust_name_for_printing`",
"Make sure a name can be printed, alongside used as a variable name.\n<END>",
"<BEGIN>\n## `name`",
"Set the name of this object.\n Tell the parent if the name has changed.\n<END>",
"<BEGIN>\n## `hierarchy_name`",
"return the name for this object with the p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notify_observers API.
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 notify_observers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Notifies all observers. Which is the element, which kicked off this
notification loop. The first argument will be self, the second `which`.
.. note::
notifies only observers with priority p > min_priority!
:param min_priority: only notify observers with priori... | "Notifies all observers. Which is the element, which kicked off this\n notification loop. The first argument will be self, the second `which`.\n\n .. note::\n \n notifies only observers with priority p > min_priority!\n \n :param min_priority: only notify observers wit... | 225 | false | sods/paramz | notify_observers | 14,638 | |
LDU_FT/deginner/mq-client/start_consuming | LDU_FT | [
"<BEGIN>\n## `_on_message`",
"Invoked by pika when a message is delivered from RabbitMQ. The\n channel is passed for your convenience. The basic_deliver object that\n is passed in carries the exchange, routing key, delivery tag and\n a redelivered flag for the message. The properties passed in is an\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_consuming API.
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 start_consuming API.
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... | This method sets up the consumer by first calling
add_on_cancel_callback so that the object is notified if RabbitMQ
cancels the consumer. It then issues the Basic.Consume RPC command
which returns the consumer tag that is used to uniquely identify the
consumer with RabbitMQ. We keep the ... | "This method sets up the consumer by first calling\n add_on_cancel_callback so that the object is notified if RabbitMQ\n cancels the consumer. It then issues the Basic.Consume RPC command\n which returns the consumer tag that is used to uniquely identify the\n consumer with RabbitMQ. We keep... | 61 | false | deginner/mq-client | start_consuming | 14,639 | |
LDU_FT/django-de/django-simple-ratings/rate_url | LDU_FT | [
"<BEGIN>\n## `delete_manager`",
"Returns a queryset based on the related model's base manager (rather\n than the default manager, as returned by __get__). Used by\n Model.delete().\n<END>",
"<BEGIN>\n## `create_manager`",
"Dynamically create a RelatedManager to handle the back side of the (G)FK\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rate_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rate_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Generates a link to "rate" the given object with the provided score - this
can be used as a form target or for POSTing via Ajax. | "Generates a link to \"rate\" the given object with the provided score - this\n can be used as a form target or for POSTing via Ajax." | 10 | false | django-de/django-simple-ratings | rate_url | 14,640 | |
LDU_FT/mjirik/imtools/prettify | LDU_FT | [
"<BEGIN>\n## `get_superpxl_intensities`",
"Calculates mean intensities of pixels in superpixels\n inputs:\n im ... grayscale image, ndarray [MxN]\n suppxls ... image with suppxls labels, ndarray -same shape as im\n outputs:\n suppxl_intens ... vector with suppxls mean intensities\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prettify API.
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 prettify API.
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 a pretty-printed XML string for the Element. | "Return a pretty-printed XML string for the Element." | 75 | false | mjirik/imtools | prettify | 14,641 | |
LDU_FT/ehansis/ozelot/indicator_summary_table | LDU_FT | [
"<BEGIN>\n## `_query`",
"Base query for an url and xpath",
" Args:\n url (str): URL to search\n xpath (str): xpath to search (may be ``None``)\n<END>",
"<BEGIN>\n## `get`",
"Get a URL via the cache.",
" If the URL exists in the cache, return the cached value. Otherwise ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indicator_summary_table 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 indicator_summary_table API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Export a table listing all NUTS2 regions with their (most current) data.
Output is a CSV file and an Excel file, saved as 'characters.csv/.xlsx' in the output directory. | "Export a table listing all NUTS2 regions with their (most current) data.\n\n Output is a CSV file and an Excel file, saved as 'characters.csv/.xlsx' in the output directory." | 203 | false | ehansis/ozelot | indicator_summary_table | 14,642 | |
LDU_FT/klmitch/turnstile/compactor | LDU_FT | [
"<BEGIN>\n## `add_argument`",
"Define an argument for the function when running in console script\n mode. The positional and keyword arguments are the same as for\n ArgumentParser.add_argument().\n<END>",
"<BEGIN>\n## `add_preprocessor`",
"Define a preprocessor to run after the arguments are parsed and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compactor API.
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 compactor API.
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 compactor daemon. This fuction watches the sorted set
containing bucket keys that need to be compacted, performing the
necessary compaction.
:param conf: A turnstile.config.Config instance containing the
configuration for the compactor daemon. Note that a
ControlDaem... | "The compactor daemon. This fuction watches the sorted set\n containing bucket keys that need to be compacted, performing the\n necessary compaction.\n\n :param conf: A turnstile.config.Config instance containing the\n configuration for the compactor daemon. Note that a\n Cont... | 208 | false | klmitch/turnstile | compactor | 14,643 | |
LDU_FT/openid/JWTConnect-Python-OidcMsg/deserialize | LDU_FT | [
"<BEGIN>\n## `make_openid_request`",
"Construct the JWT to be passed by value (the request parameter) or by\n reference (request_uri).\n The request will be signed",
" :param arq: The Authorization request\n :param keys: Keys to use for signing/encrypting. A KeyJar instance\n :param issuer: Who i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API.
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 deserialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Convert from an external representation to an internal.
:param info: The input
:param method: The method used to deserialize the info
:param kwargs: extra Keyword arguments
:return: In the normal case the Message instance | "Convert from an external representation to an internal.\n \n :param info: The input \n :param method: The method used to deserialize the info\n :param kwargs: extra Keyword arguments\n :return: In the normal case the Message instance" | 75 | false | openid/JWTConnect-Python-OidcMsg | deserialize | 14,644 | |
LDU_FT/mrstephenneal/dirutility/make_octal_permissions_mode | LDU_FT | [
"<BEGIN>\n## `connect`",
"Connect and login to an FTP server and return ftplib.FTP object.\n<END>",
"<BEGIN>\n## `get`",
"Download a remote file on the fto sever to a local directory.",
" :param remote: File path of remote source file\n :param local: Directory of local destination directory\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_octal_permissions_mode 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 make_octal_permissions_mode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Create a permissions bit in absolute notation (octal).
The user, group and other parameters are tuples representing Read, Write and Execute values.
All are set disallowed (set to false) by default and can be individually permitted.
:param user: User permissions
:param group: Group permissions
:par... | "Create a permissions bit in absolute notation (octal).\n\n The user, group and other parameters are tuples representing Read, Write and Execute values.\n All are set disallowed (set to false) by default and can be individually permitted.\n\n :param user: User permissions\n :param group: Group permissions\n... | 92 | false | mrstephenneal/dirutility | make_octal_permissions_mode | 14,645 | |
LDU_FT/openfisca/openfisca-core/get_variables | LDU_FT | [
"<BEGIN>\n## `apply_thresholds`",
"Return one of the choices depending on the input position compared to thresholds, for each input.",
" >>> apply_thresholds(np.array([4]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_thresholds(np.array([5]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_variables API.
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_variables API.
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... | Gets all variables contained in a tax and benefit system.
:param <Entity subclass> entity: If set, returns only the variable defined for the given entity.
:returns: A dictionnary, indexed by variable names.
:rtype: dict | "Gets all variables contained in a tax and benefit system.\n\n :param <Entity subclass> entity: If set, returns only the variable defined for the given entity.\n\n :returns: A dictionnary, indexed by variable names.\n :rtype: dict" | 322 | false | openfisca/openfisca-core | get_variables | 14,646 | |
LDU_FT/onnx/onnx-mxnet/_pad_sequence_fix | LDU_FT | [
"<BEGIN>\n## `_convert_operator`",
"Convert from onnx operator to mxnet operator.\n The converter must specify conversions explicitly for incompatible name, and\n apply handlers to operator attributes.",
" Parameters\n ----------\n op_name : str\n Operator name, such as Convolution, FullyC... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pad_sequence_fix API.
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 _pad_sequence_fix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Changing onnx's pads sequence to match with mxnet's pad_width
mxnet: (x1_begin, x1_end, ... , xn_begin, xn_end)
onnx: (x1_begin, x2_begin, ... , xn_end, xn_end) | "Changing onnx's pads sequence to match with mxnet's pad_width\n mxnet: (x1_begin, x1_end, ... , xn_begin, xn_end)\n onnx: (x1_begin, x2_begin, ... , xn_end, xn_end)" | 55 | false | onnx/onnx-mxnet | _pad_sequence_fix | 14,647 | |
LDU_FT/giancosta86/Iris/resolve | LDU_FT | [
"<BEGIN>\n## `getFlag`",
"Creates a flag having path <variables dir path><os.sep><flagName>\n<END>",
"<BEGIN>\n## `getFriendlyString`",
"Returns the version, printed in a friendly way.",
" More precisely, it trims trailing zero components.\n<END>",
"<BEGIN>\n## `getVersions`",
"Returns the versio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve API.
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 resolve API.
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... | Resolves the requested key to an object instance, raising a KeyError if the key is missing | "Resolves the requested key to an object instance, raising a KeyError if the key is missing" | 45 | false | giancosta86/Iris | resolve | 14,648 | |
LDU_FT/grigi/talkey/configure | LDU_FT | [
"<BEGIN>\n## `find_executable`",
"Finds executable in PATH",
" Returns:\n string or None\n<END>",
"<BEGIN>\n## `check_network_connection`",
"Checks if jasper can connect a network server.\n Arguments:\n server -- (optional) the server to connect with (Default:\n \"www.go... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API.
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 configure API.
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... | Sets language-specific configuration.
Raises TTSError on error. | "Sets language-specific configuration.\n\n Raises TTSError on error." | 28 | false | grigi/talkey | configure | 14,649 | |
LDU_FT/inveniosoftware/invenio-jsonschemas/_merge_dicts | LDU_FT | [
"<BEGIN>\n## `jsonresolver_loader`",
"JSON resolver plugin that loads the schema endpoint.",
" Injected into Invenio-Records JSON resolver.\n<END>",
"<BEGIN>\n## `resolve_schema`",
"Transform JSON schemas \"allOf\".",
" This is the default schema resolver.",
" This function was created because ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _merge_dicts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _merge_dicts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Merge the 'second' multiple-dictionary into the 'first' one. | "Merge the 'second' multiple-dictionary into the 'first' one." | 42 | false | inveniosoftware/invenio-jsonschemas | _merge_dicts | 14,650 | |
LDU_FT/WhyNotHugo/django-afip/populate_all | LDU_FT | [
"<BEGIN>\n## `catch_errors`",
"Catches specific errors in admin actions and shows a friendly error.\n<END>",
"<BEGIN>\n## `numbers`",
"Returns the barcode's number without the verification digit.",
" :return: list(int)\n<END>",
"<BEGIN>\n## `verification_digit`",
"Returns the verification digit f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate_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 extr... | Fetch and store all metadata from the AFIP. | "Fetch and store all metadata from the AFIP." | 96 | false | WhyNotHugo/django-afip | populate_all | 14,651 | |
LDU_FT/tsileo/globster/match | LDU_FT | [
"<BEGIN>\n## `normalize_pattern`",
"Converts backslashes in path patterns to forward slashes.",
" Doesn't normalize regular expressions - they may contain escapes.\n<END>",
"<BEGIN>\n## `add`",
"r\"\"\"Add a pattern and replacement.",
" The pattern must not contain capturing groups.\n The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Searches for a pattern that matches the given filename.
:return A matching pattern or None if there is no matching pattern. | "Searches for a pattern that matches the given filename.\n\n :return A matching pattern or None if there is no matching pattern." | 18 | false | tsileo/globster | match | 14,652 | |
LDU_FT/gboeing/osmnx/overpass_request | LDU_FT | [
"<BEGIN>\n## `config`",
"Configure osmnx by setting the default global vars to desired values.",
" Parameters\n ---------\n data_folder : string\n where to save and load data files\n logs_folder : string\n where to write the log files\n imgs_folder : string\n where to save fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overpass_request API.
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 overpass_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Send a request to the Overpass API via HTTP POST and return the JSON
response.
Parameters
----------
data : dict or OrderedDict
key-value pairs of parameters to post to the API
pause_duration : int
how long to pause in seconds before requests, if None, will query API
status ... | "Send a request to the Overpass API via HTTP POST and return the JSON\n response.\n\n Parameters\n ----------\n data : dict or OrderedDict\n key-value pairs of parameters to post to the API\n pause_duration : int\n how long to pause in seconds before requests, if None, will query API\n ... | 479 | false | gboeing/osmnx | overpass_request | 14,653 | |
LDU_FT/jdoda/sdl2hl/union | LDU_FT | [
"<BEGIN>\n## `was_init`",
"This function returns the subsystems which have previously been initialized.",
" Returns:\n Set[InitFlag]: Flags indicating which subsystems have been initialized.\n<END>",
"<BEGIN>\n## `load_bmp`",
"Load a surface from a file.",
" Args:\n path (str):... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the union API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the union API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Calculate the union of this rectangle and another rectangle.
Args:
other (Rect): The other rectangle.
Returns:
Rect: The union of this rectangle and the given other rectangle. | "Calculate the union of this rectangle and another rectangle.\n\n Args:\n other (Rect): The other rectangle.\n\n Returns:\n Rect: The union of this rectangle and the given other rectangle." | 134 | false | jdoda/sdl2hl | union | 14,654 | |
LDU_FT/holgern/pyedflib/stackplot_t | LDU_FT | [
"<BEGIN>\n## `short_path`",
"Return relative or absolute path name, whichever is shortest.\n<END>",
"<BEGIN>\n## `get_all_dict`",
"Return a copy of the __all__ dict with irrelevant items removed.\n<END>",
"<BEGIN>\n## `compare`",
"Return sets of objects only in __all__, refguide, or completely missing.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stackplot_t API.
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 stackplot_t API.
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... | will plot a stack of traces one above the other assuming
tarray.shape = numSamples, numRows | "will plot a stack of traces one above the other assuming\n tarray.shape = numSamples, numRows" | 135 | false | holgern/pyedflib | stackplot_t | 14,655 | |
LDU_FT/jjkester/django-auditlog/get_for_object | LDU_FT | [
"<BEGIN>\n## `process_request`",
"Gets the current user from the request and prepares and connects a signal receiver with the user already\n attached to it.\n<END>",
"<BEGIN>\n## `process_response`",
"Disconnects the signal receiver to prevent it from staying active.\n<END>",
"<BEGIN>\n## `process_ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_for_object API.
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_for_object API.
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 log entries for the specified model instance.
:param instance: The model instance to get log entries for.
:type instance: Model
:return: QuerySet of log entries for the given model instance.
:rtype: QuerySet | "Get log entries for the specified model instance.\n\n :param instance: The model instance to get log entries for.\n :type instance: Model\n :return: QuerySet of log entries for the given model instance.\n :rtype: QuerySet" | 51 | false | jjkester/django-auditlog | get_for_object | 14,656 | |
LDU_FT/saxix/django-sysinfo/get_network | LDU_FT | [
"<BEGIN>\n## `merge`",
"merges b into a",
" >>> a={1:{\"a\":\"A\"},2:{\"b\":\"B\"}, 8:[]}\n >>> b={2:{\"c\":\"C\"},3:{\"d\":\"D\"}}",
" >>> c = merge(a, b)\n >>> c == a == {8: [], 1: {\"a\": \"A\"}, 2: {\"c\": \"C\", \"b\": \"B\"}, 3: {\"d\": \"D\"}}\n True",
" >>> c = merge(a, {1: \"a\"})... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_network API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_network API.
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... | # >>> from psutil._common import snic
>>> import mock
>>> from collections import namedtuple
>>> snic = namedtuple('snic', ['family', 'address', 'netmask', 'broadcast', 'ptp'])
>>> MOCK = {
... "awdl0": [snic(family=30, address="fe80::3854:80ff:fe54:7bf8%awdl0", netmask="ffff:ffff:ffff:ffff::", broa... | "# >>> from psutil._common import snic\n >>> import mock\n >>> from collections import namedtuple\n >>> snic = namedtuple('snic', ['family', 'address', 'netmask', 'broadcast', 'ptp'])\n >>> MOCK = {\n ... \"awdl0\": [snic(family=30, address=\"fe80::3854:80ff:fe54:7bf8%awdl0\", netmask=\"ffff:ffff:ffff:ff... | 33 | false | saxix/django-sysinfo | get_network | 14,657 | |
LDU_FT/EventTeam/beliefs/is_contradictory | LDU_FT | [
"<BEGIN>\n## `size`",
"Size of LazyCell: the size of the intension plus accounting for\n excluded and included additions.",
" The exclusions are assumed to be part of the set\n The inclusions are assumed to NOT be part of the intension\n<END>",
"<BEGIN>\n## `update`",
"Updates intensio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_contradictory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_contradictory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | What does it mean for a set to contradict another? If a merge results
in the empty set -- when both sets are disjoint.
CONTRADICTION: self = {4} other = {3}
NOT CONTRADICTION: self = {4} other = {3,4}
NOT CONTRADICTION: self = {3,4} other = {3} | "What does it mean for a set to contradict another? If a merge results\n in the empty set -- when both sets are disjoint.\n\n CONTRADICTION: self = {4} other = {3}\n NOT CONTRADICTION: self = {4} other = {3,4}\n NOT CONTRADICTION: self = {3,4} other = {3}" | 158 | false | EventTeam/beliefs | is_contradictory | 14,658 | |
LDU_FT/emory-libraries/eulxml/load_xmlobject_from_string | LDU_FT | [
"<BEGIN>\n## `_serialize`",
"Generate token strings which, when joined together, form a valid\n XPath serialization of the AST.\n<END>",
"<BEGIN>\n## `download_schema`",
"Download a schema from a specified URI and save it locally.",
" :param uri: url where the schema should be downloaded\n :param p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_xmlobject_from_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_xmlobject_from_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Initialize an XmlObject from a string.
If an xmlclass is specified, construct an instance of that class instead
of :class:`~eulxml.xmlmap.XmlObject`. It should be a subclass of XmlObject.
The constructor will be passed a single node.
If validation is requested and the specified subclass of :class:`Xml... | "Initialize an XmlObject from a string.\n\n If an xmlclass is specified, construct an instance of that class instead\n of :class:`~eulxml.xmlmap.XmlObject`. It should be a subclass of XmlObject.\n The constructor will be passed a single node.\n\n If validation is requested and the specified subclass of :cla... | 109 | false | emory-libraries/eulxml | load_xmlobject_from_string | 14,659 | |
LDU_FT/RiotGames/cloud-inquisitor/update_snapshots | LDU_FT | [
"<BEGIN>\n## `options`",
"Returns metadata information required for User Creation\n<END>",
"<BEGIN>\n## `run`",
"Update the cache of all DNS entries and perform checks",
" Args:\n *args: Optional list of arguments\n **kwargs: Optional list of keyword arguments",
" Retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_snapshots API.
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 update_snapshots API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Update list of EBS Snapshots for the account / region
Returns:
`None` | "Update list of EBS Snapshots for the account / region\n\n Returns:\n `None`" | 693 | false | RiotGames/cloud-inquisitor | update_snapshots | 14,660 | |
LDU_FT/bennyrowland/suspect/frequency_axis | LDU_FT | [
"<BEGIN>\n## `write_all_files`",
"Creates an LCModel control file for processing the supplied MRSData, and\n optional water reference data, updating the default parameters with any\n values supplied through params.",
" :param filename: the location where the control file should be saved.\n :param da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the frequency_axis API.
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 frequency_axis API.
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... | Returns an array of frequencies in Hertz ranging from -sw/2 to
sw/2.
:return: an array of frequencies in Hertz ranging from -sw/2 to sw/2. | "Returns an array of frequencies in Hertz ranging from -sw/2 to\n sw/2.\n\n :return: an array of frequencies in Hertz ranging from -sw/2 to sw/2." | 71 | false | bennyrowland/suspect | frequency_axis | 14,661 | |
LDU_FT/Naresh1318/crystal/get_figure_stats | LDU_FT | [
"<BEGIN>\n## `adapt_array`",
"http://stackoverflow.com/a/31312102/190597 (SoulNibbler)\n<END>",
"<BEGIN>\n## `open_data_base_connection`",
"Creates a connections to the crystal database.\n :param skip_dir_check: bool, True -> Skips checking database file and creates a new one if not present.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_figure_stats API.
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_figure_stats API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns the latest variable names
:param run_table_name: str, required run table name
:return: dict -> {<int_keys>: <variable_name>} | "Returns the latest variable names\n :param run_table_name: str, required run table name\n :return: dict -> {<int_keys>: <variable_name>}" | 52 | false | Naresh1318/crystal | get_figure_stats | 14,662 | |
LDU_FT/WoLpH/python-progressbar/example | LDU_FT | [
"<BEGIN>\n## `_handle_resize`",
"Tries to catch resize signals sent from the terminal.\n<END>",
"<BEGIN>\n## `init`",
"(re)initialize values to original state so the progressbar can be\n used (again)\n<END>",
"<BEGIN>\n## `percentage`",
"Return current percentage, returns None if no max_value is gi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the example API.
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 example API.
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... | Wrap the examples so they generate readable output | "Wrap the examples so they generate readable output" | 22 | false | WoLpH/python-progressbar | example | 14,663 | |
LDU_FT/thiagopbueno/tf-rddlsim/render | LDU_FT | [
"<BEGIN>\n## `interm_size`",
"Returns the MDP intermediate state size.\n<END>",
"<BEGIN>\n## `output_size`",
"Returns the simulation cell output size.\n<END>",
"<BEGIN>\n## `_dtype`",
"Converts `tensor` to tf.float32 datatype if needed.\n<END>",
"<BEGIN>\n## `timesteps`",
"Returns the input tensor for... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Render the simulated state-action `trajectories` for Navigation domain.
Args:
stats: Performance statistics.
trajectories: NonFluents, states, actions, interms and rewards.
batch: Number of batches to render. | "Render the simulated state-action `trajectories` for Navigation domain.\n\n Args:\n stats: Performance statistics.\n trajectories: NonFluents, states, actions, interms and rewards.\n batch: Number of batches to render." | 64 | false | thiagopbueno/tf-rddlsim | render | 14,664 | |
LDU_FT/google/textfsm/main | LDU_FT | [
"<BEGIN>\n## `_SetValues`",
"Set values from supplied dictionary or list.",
" Args:\n values: A Row, dict indexed by column name, or list.",
" Raises:\n TypeError: Argument is not a list or dict, or list is not equal row\n length or dictionary keys don't match.\n<END>",
"<BEGIN>\n## `Fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
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 main API.
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... | Routine to page text or determine window size via command line. | "Routine to page text or determine window size via command line." | 149 | false | google/textfsm | main | 14,665 | |
LDU_FT/richardchien/nonebot/load_plugin | LDU_FT | [
"<BEGIN>\n## `handle_cancellation`",
"If the input is a string of cancellation word, finish the command session.\n<END>",
"<BEGIN>\n## `on_command`",
"Decorator to register a function as a command.",
" :param name: command name (e.g. 'echo' or ('random', 'number'))\n :param aliases: aliases of command... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_plugin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_plugin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Load a module as a plugin.
:param module_name: name of module to import
:return: successful or not | "Load a module as a plugin.\n\n :param module_name: name of module to import\n :return: successful or not" | 105 | false | richardchien/nonebot | load_plugin | 14,666 | |
LDU_FT/derpston/python-multitail2/reopen | LDU_FT | [
"<BEGIN>\n## `_open`",
"Open `path`, optionally seeking to the end if `skip_to_end` is True.\n<END>",
"<BEGIN>\n## `_read`",
"Checks the file for new data and refills the buffer if it finds any.\n<END>",
"<BEGIN>\n## `hasBeenRotated`",
"Returns a boolean indicating whether the file has been removed and re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reopen API.
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 reopen API.
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 ... | Reopens the file. Usually used after it has been rotated. | "Reopens the file. Usually used after it has been rotated." | 16 | false | derpston/python-multitail2 | reopen | 14,667 | |
LDU_FT/KeplerGO/K2fov/declinationRotationMatrix | LDU_FT | [
"<BEGIN>\n## `angSepVincenty`",
"Vincenty formula for distances on a sphere\n<END>",
"<BEGIN>\n## `parse_file`",
"Parse a comma-separated file with columns \"ra,dec,magnitude\".\n<END>",
"<BEGIN>\n## `K2onSilicon`",
"Checks whether targets are on silicon during a given campaign.",
" This function wil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the declinationRotationMatrix 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 declinationRotationMatrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Construct the rotation matrix for a rotation of the declination
coords (i.e around the axis of ra=90, dec=0)
Taken from Section 3.3 of Arfken and Weber (Eqn 3.91)
Modfied the signs of the sines so that a rotation of the zenith
vector by 90 degrees ends up at ra, dec = 0,0 | "Construct the rotation matrix for a rotation of the declination\n coords (i.e around the axis of ra=90, dec=0)\n\n Taken from Section 3.3 of Arfken and Weber (Eqn 3.91)\n Modfied the signs of the sines so that a rotation of the zenith\n vector by 90 degrees ends up at ra, dec = 0,0" | 185 | false | KeplerGO/K2fov | declinationRotationMatrix | 14,668 | |
LDU_FT/chriso/timeseries/trend | LDU_FT | [
"<BEGIN>\n## `trend`",
"Override Series.trend() to return a TimeSeries instance.\n<END>",
"<BEGIN>\n## `trend_coefficients`",
"Calculate trend coefficients for the specified order.\n<END>",
"<BEGIN>\n## `moving_average`",
"Calculate a moving average using the specified method and window\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trend API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trend API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Calculate a trend for all series in the group. See the
`TimeSeries.trend()` method for more information. | "Calculate a trend for all series in the group. See the\n `TimeSeries.trend()` method for more information." | 18 | false | chriso/timeseries | trend | 14,669 | |
LDU_FT/hozn/coilmq/make_simple | LDU_FT | [
"<BEGIN>\n## `server_from_config`",
"Gets a configured L{coilmq.server.StompServer} from specified config.",
" If `config` is None, global L{coilmq.config.config} var will be used instead.",
" The `server_class` and `additional_kwargs` are primarily hooks for using this method\n from a testing enviro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_simple API.
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 make_simple API.
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... | Create a L{SimpleAuthenticator} instance using values read from coilmq configuration.
@return: The configured L{SimpleAuthenticator}
@rtype: L{SimpleAuthenticator}
@raise ConfigError: If there is a configuration error. | "Create a L{SimpleAuthenticator} instance using values read from coilmq configuration.\n\n @return: The configured L{SimpleAuthenticator}\n @rtype: L{SimpleAuthenticator}\n @raise ConfigError: If there is a configuration error." | 211 | false | hozn/coilmq | make_simple | 14,670 | |
LDU_FT/uogbuji/versa/add | LDU_FT | [
"<BEGIN>\n## `link`",
"Action function generator to create a link based on the context's current link, or on provided parameters",
" :param origin: IRI/string, or list of same; origins for the created relationships.\n If None, the action context provides the parameter.",
" :param rel: IRI/string, or ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Add one relationship to the extent
subj - subject or origin of the relationship, an IRI coded as a unicode object
pred - predicate or type of the relationship, an IRI coded as a unicode object
obj - object of the relationship, a boolean, floating point or unicode object
attrs - optional... | "Add one relationship to the extent\n\n subj - subject or origin of the relationship, an IRI coded as a unicode object\n pred - predicate or type of the relationship, an IRI coded as a unicode object\n obj - object of the relationship, a boolean, floating point or unicode object\n attrs - op... | 146 | false | uogbuji/versa | add | 14,671 | |
LDU_FT/lrq3000/pyFileFixity/is_dynamic | LDU_FT | [
"<BEGIN>\n## `discard`",
"Remove the first occurrence of *val*.",
" If *val* is not a member, does nothing.\n<END>",
"<BEGIN>\n## `remove`",
"Remove first occurrence of *val*.",
" Raises ValueError if *val* is not present.\n<END>",
"<BEGIN>\n## `_delete`",
"Delete the item at the given (... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_dynamic API.
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 is_dynamic API.
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... | Return true if the route contains dynamic parts | "Return true if the route contains dynamic parts" | 1,045 | true | lrq3000/pyFileFixity | is_dynamic | 14,672 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.