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/stephenmcd/django-forms-builder/get_queryset | LDU_FT | [
"<BEGIN>\n## `email_to`",
"Return the value entered for the first field of type EmailField.\n<END>",
"<BEGIN>\n## `posted_data`",
"Wrapper for self.cleaned_data that returns True on\n field_id_export fields when the form hasn't been posted to,\n to facilitate show/export URLs that export all ent... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_queryset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_queryset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Annotate the queryset with the entries count for use in the
admin list view. | "Annotate the queryset with the entries count for use in the\n admin list view." | 17 | false | stephenmcd/django-forms-builder | get_queryset | 23,673 | |
LDU_FT/zarr-developers/zarr/set_basic_selection | LDU_FT | [
"<BEGIN>\n## `group`",
"Create a group.",
" Parameters\n ----------\n store : MutableMapping or string, optional\n Store or path to directory in file system.\n overwrite : bool, optional\n If True, delete any pre-existing data in `store` at `path` before\n creating the group.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_basic_selection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_basic_selection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Modify data for an item or region of the array.
Parameters
----------
selection : tuple
An integer index or slice or tuple of int/slice specifying the requested
region for each dimension of the array.
value : scalar or array-like
Value to be stored in... | "Modify data for an item or region of the array.\n\n Parameters\n ----------\n selection : tuple\n An integer index or slice or tuple of int/slice specifying the requested\n region for each dimension of the array.\n value : scalar or array-like\n Value to be ... | 436 | false | zarr-developers/zarr | set_basic_selection | 23,674 | |
LDU_FT/neighbordog/deviantart/get_comments | LDU_FT | [
"<BEGIN>\n## `auth`",
"Authenticates user and retrieves (and refreshes) access token",
" :param code: code provided after redirect (authorization_code only)\n :param refresh_token: the refresh_token to update access_token without authorization\n<END>",
"<BEGIN>\n## `auth_uri`",
"The authorzati... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_comments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_comments API.
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 comments
:param endpoint: The source/endpoint you want to fetch comments from (deviation/profile/status/siblings)
:param deviationid: The deviationid you want to fetch
:param commentid: The commentid you want to fetch
:param username: The username you want to get a list of status ... | "Fetch comments\n\n :param endpoint: The source/endpoint you want to fetch comments from (deviation/profile/status/siblings)\n :param deviationid: The deviationid you want to fetch\n :param commentid: The commentid you want to fetch\n :param username: The username you want to get a list of s... | 132 | false | neighbordog/deviantart | get_comments | 23,675 | |
LDU_FT/kbr/fritzconnection/str_max_bit_rate | LDU_FT | [
"<BEGIN>\n## `set_fraction`",
"Set the meter indicator. Value should be between 0 and 1.\n<END>",
"<BEGIN>\n## `update_status`",
"Update status informations in tkinter window.\n<END>",
"<BEGIN>\n## `format_num`",
"Returns a human readable string of a byte-value.\n If 'num' is bits, set unit='bits'.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_max_bit_rate API.
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 str_max_bit_rate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns a human readable maximun upstream- and downstream-rate
of the given connection. The rate is given in bits/sec. | "Returns a human readable maximun upstream- and downstream-rate\n of the given connection. The rate is given in bits/sec." | 38 | false | kbr/fritzconnection | str_max_bit_rate | 23,676 | |
LDU_FT/danielhrisca/asammdf/start_time | LDU_FT | [
"<BEGIN>\n## `extract_cncomment_xml`",
"extract *TX* tag or otherwise the *common_properties* from a xml comment",
" Paremeters\n ----------\n comment : str\n xml string comment",
" Returns\n -------\n comment : str\n extracted string\n<END>",
"<BEGIN>\n## `matlab_compatible`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_time API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_time API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | getter and setter the measurement start timestamp
Returns
-------
timestamp : datetime.datetime
start timestamp | "getter and setter the measurement start timestamp\n\n Returns\n -------\n timestamp : datetime.datetime\n start timestamp" | 381 | false | danielhrisca/asammdf | start_time | 23,677 | |
LDU_FT/asyrjasalo/RESTinstance/null | LDU_FT | [
"<BEGIN>\n## `set_client_cert`",
"*Sets the client cert for the requests.*",
" The cert is either a path to a .pem file, or a JSON array, or a list\n having the cert path and the key path.",
" Values ``null`` and ``${None}`` can be used for clearing the cert.",
" *Examples*",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the null API.
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 null API.
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... | *Asserts the field as JSON null.*
The field consists of parts separated by spaces, the parts being
object property names or array indices starting from 0, and the root
being the instance created by the last request (see `Output` for it).
For asserting deeply nested properties or multip... | "*Asserts the field as JSON null.*\n\n The field consists of parts separated by spaces, the parts being\n object property names or array indices starting from 0, and the root\n being the instance created by the last request (see `Output` for it).\n\n For asserting deeply nested properties or... | 135 | false | asyrjasalo/RESTinstance | null | 23,678 | |
LDU_FT/philgyford/django-spectator/get_countries | LDU_FT | [
"<BEGIN>\n## `generate_slug`",
"A copy of spectator.core.models.SluggedModelMixin._generate_slug()\n<END>",
"<BEGIN>\n## `set_slug`",
"Create a slug for each Work already in the DB.\n<END>",
"<BEGIN>\n## `get_kinds_data`",
"Returns a dict of all the data about the kinds, keyed to the kind\n value. ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_countries API.
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_countries API.
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... | Returns a list of dicts, one per country that has at least one Venue
in it.
Each dict has 'code' and 'name' elements.
The list is sorted by the country 'name's. | "Returns a list of dicts, one per country that has at least one Venue\n in it.\n\n Each dict has 'code' and 'name' elements.\n The list is sorted by the country 'name's." | 169 | false | philgyford/django-spectator | get_countries | 23,679 | |
LDU_FT/p3trus/slave/pass_control_back | 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 pass_control_back API.
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 pass_control_back API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | The address to which the controll is to be passed back.
Tells a potential controller device the address to which the control is
to be passed back.
:param primary: An integer in the range 0 to 30 representing the
primary address of the controller sending the command.
:param ... | "The address to which the controll is to be passed back.\n\n Tells a potential controller device the address to which the control is\n to be passed back.\n\n :param primary: An integer in the range 0 to 30 representing the\n primary address of the controller sending the command.\n ... | 189 | false | p3trus/slave | pass_control_back | 23,680 | |
LDU_FT/ambitioninc/django-entity-event/create_event | LDU_FT | [
"<BEGIN>\n## `get_context_hints_per_source`",
"Given a list of context renderers, return a dictionary of context hints per source.\n<END>",
"<BEGIN>\n## `get_querysets_for_context_hints`",
"Given a list of context hint dictionaries, return a dictionary\n of querysets for efficient context loading. The retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extr... | Create events with actors.
This method can be used in place of ``Event.objects.create``
to create events, and the appropriate actors. It takes all the
same keywords as ``Event.objects.create`` for the event
creation, but additionally takes a list of actors, and can be
told to no... | "Create events with actors.\n\n This method can be used in place of ``Event.objects.create``\n to create events, and the appropriate actors. It takes all the\n same keywords as ``Event.objects.create`` for the event\n creation, but additionally takes a list of actors, and can be\n tol... | 46 | false | ambitioninc/django-entity-event | create_event | 23,681 | |
LDU_FT/Arvedui/picuplib/check_rotation | LDU_FT | [
"<BEGIN>\n## `gen_user_agent`",
"generating the user agent witch will be used for most requests",
" monkey patching system and release functions from platform module\n to prevent disclosure of the OS and it's version\n<END>",
"<BEGIN>\n## `check_rotation`",
"checks rotation parameter if illegal value ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_rotation API.
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 check_rotation API.
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... | checks rotation parameter if illegal value raises exception | "checks rotation parameter if illegal value raises exception" | 27 | false | Arvedui/picuplib | check_rotation | 23,682 | |
LDU_FT/05bit/peewee-async/get_data | LDU_FT | [
"<BEGIN>\n## `execute`",
"Execute *SELECT*, *INSERT*, *UPDATE* or *DELETE* query asyncronously.",
" :param query: peewee query instance created with ``Model.select()``,\n ``Model.update()`` etc.\n :return: result depends on query type, it's the same as for sync\n ``query.execute()`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Get dict stored for current running task. Return `None`
or an empty dict if no data was found depending on the
`create` argument value.
:param create: if argument is `True`, create empty dict
for task, default: `False` | "Get dict stored for current running task. Return `None`\n or an empty dict if no data was found depending on the\n `create` argument value.\n\n :param create: if argument is `True`, create empty dict\n for task, default: `False`" | 92 | false | 05bit/peewee-async | get_data | 23,683 | |
LDU_FT/merll/docker-map/get_container_stop_kwargs | LDU_FT | [
"<BEGIN>\n## `get_state_actions`",
"For attached volumes, missing containers are created and initial containers are started and prepared with\n permissions. Outdated containers or containers with errors are recreated. The latter also applies to instance\n containers. Similarly, instance containers a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_container_stop_kwargs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_container_stop_kwargs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Generates keyword arguments for the Docker client to stop a container.
:param action: Action configuration.
:type action: ActionConfig
:param container_name: Container name or id.
:type container_name: unicode | str
:param kwargs: Additional keyword arguments to complement or ov... | "Generates keyword arguments for the Docker client to stop a container.\n\n :param action: Action configuration.\n :type action: ActionConfig\n :param container_name: Container name or id.\n :type container_name: unicode | str\n :param kwargs: Additional keyword arguments to complemen... | 584 | false | merll/docker-map | get_container_stop_kwargs | 23,684 | |
LDU_FT/HttpRunner/HttpRunner/stringify_summary | LDU_FT | [
"<BEGIN>\n## `setup_logger`",
"setup root logger with ColoredFormatter.\n<END>",
"<BEGIN>\n## `_handle_skip_feature`",
"handle skip feature for test\n - skip: skip current test unconditionally\n - skipIf: skip current test if condition is true\n - skipUnless: skip current test... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stringify_summary API.
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 stringify_summary API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | stringify summary, in order to dump json file and generate html report. | "stringify summary, in order to dump json file and generate html report." | 267 | false | HttpRunner/HttpRunner | stringify_summary | 23,685 | |
LDU_FT/darothen/xbpch/get_valid_varname | LDU_FT | [
"<BEGIN>\n## `from_model`",
"Define a grid using the specifications of a given model.",
" Parameters\n ----------\n model_name : string\n Name the model (see :func:`get_supported_models` for available\n model names).\n Supports multiple formats (e.g., 'GEOS5... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_valid_varname API.
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_valid_varname API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Replace characters (e.g., ':', '$', '=', '-') of a variable name, which
may cause problems when using with (CF-)netCDF based packages.
Parameters
----------
varname : string
variable name.
Notes
-----
Characters replacement is based on the table stored in
:attr:`VARNAME_MAP_CHA... | "Replace characters (e.g., ':', '$', '=', '-') of a variable name, which\n may cause problems when using with (CF-)netCDF based packages.\n\n Parameters\n ----------\n varname : string\n variable name.\n\n Notes\n -----\n Characters replacement is based on the table stored in\n :attr:`VAR... | 122 | false | darothen/xbpch | get_valid_varname | 23,686 | |
LDU_FT/AguaClara/aguaclara/vol_per_rev_LS | LDU_FT | [
"<BEGIN>\n## `density_water`",
"Return the density of water at a given temperature.",
" If given units, the function will automatically convert to Kelvin.\n If not given units, the function will assume Kelvin.\n<END>",
"<BEGIN>\n## `viscosity_kinematic`",
"Return the kinematic viscosity of water at a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vol_per_rev_LS API.
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 vol_per_rev_LS API.
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... | Look up the volume per revolution output by a Masterflex L/S pump
through L/S tubing of the given ID number.
:param id_number: Identification number of the L/S tubing. Valid numbers are 13-18, 24, 35, and 36.
:type id_number: int
:return: Volume per revolution output by a Masterflex L/S pump through t... | "Look up the volume per revolution output by a Masterflex L/S pump\n through L/S tubing of the given ID number.\n\n :param id_number: Identification number of the L/S tubing. Valid numbers are 13-18, 24, 35, and 36.\n :type id_number: int\n\n :return: Volume per revolution output by a Masterflex L/S pump th... | 554 | false | AguaClara/aguaclara | vol_per_rev_LS | 23,687 | |
LDU_FT/twisted/twistedchecker/errorRecorder | LDU_FT | [
"<BEGIN>\n## `_isInner`",
"Determine whether the given node is, at any point in its syntactic\n parentage, defined within a function.",
" @param node: The node to inspect.\n @type node: L{logilab.astng.bases.NodeNG}",
" @return: a boolean indicating if the given node is defined as an inner\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the errorRecorder API.
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 errorRecorder API.
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... | A function to override report_error in pycodestyle.
And record output warnings.
@param lineNumber: line number
@param offset: column offset
@param text: warning message
@param check: check object in pycodestyle | "A function to override report_error in pycodestyle.\n And record output warnings.\n\n @param lineNumber: line number\n @param offset: column offset\n @param text: warning message\n @param check: check object in pycodestyle" | 146 | false | twisted/twistedchecker | errorRecorder | 23,688 | |
LDU_FT/hyperledger-archives/indy-client/_getRole | LDU_FT | [
"<BEGIN>\n## `_getRole`",
":param matchedVars:\n :return: NULL or the role's integer value\n<END>",
"<BEGIN>\n## `addAttribute`",
"Used to create a new attribute on Sovrin\n :param attrib: attribute to add\n :return: number of pending txns\n<END>",
"<BEGIN>\n## `addNode`",
"Used to ad... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getRole API.
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 _getRole API.
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... | :param matchedVars:
:return: NULL or the role's integer value | ":param matchedVars:\n :return: NULL or the role's integer value" | 16 | false | hyperledger-archives/indy-client | _getRole | 23,689 | |
LDU_FT/mapbox/mapboxgl-jupyter/scale_between | LDU_FT | [
"<BEGIN>\n## `generate_vector_color_map`",
"Generate color stops array for use with match expression in mapbox template\n<END>",
"<BEGIN>\n## `generate_vector_numeric_map`",
"Generate stops array for use with match expression in mapbox template\n<END>",
"<BEGIN>\n## `check_vector_template`",
"Determines i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale_between API.
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 scale_between API.
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... | Scale a min and max value to equal interval domain with
numStops discrete values | "Scale a min and max value to equal interval domain with\n numStops discrete values" | 57 | false | mapbox/mapboxgl-jupyter | scale_between | 23,690 | |
LDU_FT/croscon/fleaker/post_create_app | LDU_FT | [
"<BEGIN>\n## `install`",
"Install Fleaker.",
" In a function so we can protect this file so it's only run when we\n explicitly invoke it and not, say, when py.test collects all Python\n modules.\n<END>",
"<BEGIN>\n## `python_value`",
"Return the JSON in the database as a ``dict``.",
" Retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_create_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_create_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Register the errorhandler for the AppException to the passed in
App.
Args:
app (fleaker.base.BaseApplication): A Flask application that
extends the Fleaker Base Application, such that the hooks are
implemented.
Kwargs:
register_errorhandl... | "Register the errorhandler for the AppException to the passed in\n App.\n\n Args:\n app (fleaker.base.BaseApplication): A Flask application that\n extends the Fleaker Base Application, such that the hooks are\n implemented.\n\n Kwargs:\n register_... | 259 | false | croscon/fleaker | post_create_app | 23,691 | |
LDU_FT/secdev/scapy/ikev2scan | LDU_FT | [
"<BEGIN>\n## `_get_npcap_config`",
"Get a Npcap parameter matching key in the registry.",
" List:\n AdminOnly, DefaultFilterSettings, DltNull, Dot11Adapters, Dot11Support\n LoopbackAdapter, LoopbackSupport, NdisImPlatformBindingOptions, VlanSupport\n WinPcapCompatible\n<END>",
"<BEGIN>\n## `_exec_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ikev2scan API.
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 ikev2scan API.
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... | Send a IKEv2 SA to an IP and wait for answers. | "Send a IKEv2 SA to an IP and wait for answers." | 1,329 | true | secdev/scapy | ikev2scan | 23,692 | |
LDU_FT/msuozzo/Aduro/from_str | LDU_FT | [
"<BEGIN>\n## `calc_update_events`",
"Calculate and return an iterable of `KindleEvent`s which, when\n applied to the current snapshot, result in the the current snapshot\n reflecting the progress state of the `asin_to_progress` mapping.",
" Functionally, this method generates `AddEvent`s an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_str API.
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 from_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Generate a `SetReadingEvent` object from a string | "Generate a `SetReadingEvent` object from a string" | 29 | false | msuozzo/Aduro | from_str | 23,693 | |
LDU_FT/budacom/trading-bots/loop | LDU_FT | [
"<BEGIN>\n## `fetch_deposits`",
"Fetch latest deposits, must provide a limit.\n<END>",
"<BEGIN>\n## `fetch_deposits_since`",
"Fetch all deposits since the given timestamp.\n<END>",
"<BEGIN>\n## `fetch_withdrawals`",
"Fetch latest withdrawals, must provide a limit.\n<END>",
"<BEGIN>\n## `fetch_withdrawal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loop API.
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 loop API.
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... | Schedule a BOT (by label) to run on an interval, e.g. 'MyBot -i 60 | "Schedule a BOT (by label) to run on an interval, e.g. 'MyBot -i 60" | 62 | false | budacom/trading-bots | loop | 23,694 | |
LDU_FT/petl-developers/petlx/vcfmeltsamples | LDU_FT | [
"<BEGIN>\n## `fromvcf`",
"Returns a table providing access to data from a variant call file (VCF).\n E.g.::",
" >>> import petl as etl\n >>> # activate bio extensions\n ... import petlx.bio\n >>> table1 = etl.fromvcf('fixture/sample.vcf')\n >>> table1.look(truncate=20)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vcfmeltsamples API.
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 vcfmeltsamples API.
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... | Melt the samples columns. E.g.::
>>> import petl as etl
>>> # activate bio extensions
... import petlx.bio
>>> table1 = (
... etl
... .fromvcf('fixture/sample.vcf')
... .vcfmeltsamples()
... )
>>> table1
+-------+-----+----... | "Melt the samples columns. E.g.::\n \n >>> import petl as etl\n >>> # activate bio extensions\n ... import petlx.bio\n >>> table1 = (\n ... etl\n ... .fromvcf('fixture/sample.vcf')\n ... .vcfmeltsamples()\n ... )\n >>> table1\n +------... | 34 | false | petl-developers/petlx | vcfmeltsamples | 23,695 | |
LDU_FT/rosshamish/catan-py/restore | LDU_FT | [
"<BEGIN>\n## `do`",
"Does the command using the undo_manager's stack\n :param command: Command\n<END>",
"<BEGIN>\n## `restore`",
"Restore this Game object to match the properties and state of the given Game object\n :param game: properties to restore to the current (self) Game\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore API.
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 restore API.
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... | Restore this Board object to match the properties and state of the given Board object
:param board: properties to restore to the current (self) Board | "Restore this Board object to match the properties and state of the given Board object\n :param board: properties to restore to the current (self) Board" | 52 | false | rosshamish/catan-py | restore | 23,696 | |
LDU_FT/Metatab/metatab/as_dict | LDU_FT | [
"<BEGIN>\n## `split_term`",
"Split a term in to parent and record term components\n :param term: combined term text\n :return: Tuple of parent and record term\n<END>",
"<BEGIN>\n## `split_term_lower`",
"Like split_term, but also lowercases both parent and record term\n :param term: combin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Iterate, link terms and convert to a dict | "Iterate, link terms and convert to a dict" | 102 | false | Metatab/metatab | as_dict | 23,697 | |
LDU_FT/remind101/stacker_blueprints/generate_policy_statements | LDU_FT | [
"<BEGIN>\n## `create_sqs_policy`",
"This method creates the SQS policy needed for an SNS subscription. It\n also takes the ARN of the SQS queue and converts it to the URL needed\n for the subscription, as that takes a URL rather than the ARN.\n<END>",
"<BEGIN>\n## `create_topic`",
"Creates the S... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_policy_statements 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 generate_policy_statements API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Generates the policy statements for the role used by the function.
To add additional statements you can either override the
`extended_policy_statements` method to return a list of Statements
to be added to the policy, or override this method itself if you
need more control.
Ret... | "Generates the policy statements for the role used by the function.\n\n To add additional statements you can either override the\n `extended_policy_statements` method to return a list of Statements\n to be added to the policy, or override this method itself if you\n need more control.\n\n ... | 53 | false | remind101/stacker_blueprints | generate_policy_statements | 23,698 | |
LDU_FT/jjkester/django-auditlog/model_instance_diff | 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 model_instance_diff 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 model_instance_diff 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... | Calculates the differences between two model instances. One of the instances may be ``None`` (i.e., a newly
created model or deleted model). This will cause all fields with a value to have changed (from ``None``).
:param old: The old state of the model instance.
:type old: Model
:param new: The new sta... | "Calculates the differences between two model instances. One of the instances may be ``None`` (i.e., a newly\n created model or deleted model). This will cause all fields with a value to have changed (from ``None``).\n\n :param old: The old state of the model instance.\n :type old: Model\n :param new: The n... | 51 | false | jjkester/django-auditlog | model_instance_diff | 23,699 | |
LDU_FT/kstaniek/condoor/get_version_text | LDU_FT | [
"<BEGIN>\n## `_prepare_patterns`",
"Return two dictionaries: compiled and text prompts.\n<END>",
"<BEGIN>\n## `_platform_patterns`",
"Return all the patterns for specific platform.\n<END>",
"<BEGIN>\n## `pattern`",
"Return the pattern defined by the key string specific to the platform.",
" :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return the version information from Unix host. | "Return the version information from Unix host." | 229 | false | kstaniek/condoor | get_version_text | 23,700 | |
LDU_FT/disqus/durabledict/_setdefault | LDU_FT | [
"<BEGIN>\n## `validate_key`",
"Decorator to validate a key for zookeeper.\n<END>",
"<BEGIN>\n## `persist`",
"Encode and save ``value`` at ``key``.",
" :param key: Key to store ``value`` at in Zookeeper.\n :type key: string\n :param value: Value to store. Encoded before being stored.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setdefault API.
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 _setdefault API.
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... | If ``key`` is not present, set it as ``default`` and return it. If
``key`` is present, return its value.
:param key: Key to add to Zookeeper
:type key: string
:param default: Default object to return if ``key`` is present.
:type default: object
Will retry trying to get... | "If ``key`` is not present, set it as ``default`` and return it. If\n ``key`` is present, return its value.\n\n :param key: Key to add to Zookeeper\n :type key: string\n :param default: Default object to return if ``key`` is present.\n :type default: object\n\n Will retry tryi... | 21 | false | disqus/durabledict | _setdefault | 23,701 | |
LDU_FT/QUANTAXIS/QUANTAXIS/QA_util_sql_async_mongo_setting | LDU_FT | [
"<BEGIN>\n## `start_market`",
"start the market thread and register backtest broker thread\n QAMarket 继承QATrader, QATrader 中有 trade_engine属性 , trade_engine类型是QA_Engine从 QA_Thread继承\n<END>",
"<BEGIN>\n## `message`",
"the standard message which can be transfer\n<END>",
"<BEGIN>\n## `init_hold_with_acco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the QA_util_sql_async_mongo_setting API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the QA_util_sql_async_mongo_setting API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | 异步mongo示例
Keyword Arguments:
uri {str} -- [description] (default: {'mongodb://localhost:27017/quantaxis'})
Returns:
[type] -- [description] | "异步mongo示例\n\n Keyword Arguments:\n uri {str} -- [description] (default: {'mongodb://localhost:27017/quantaxis'})\n\n Returns:\n [type] -- [description]" | 835 | false | QUANTAXIS/QUANTAXIS | QA_util_sql_async_mongo_setting | 23,702 | |
LDU_FT/non-Jedi/gyr/join | LDU_FT | [
"<BEGIN>\n## `register`",
"Performs /register with type: m.login.application_service",
" Args:\n username(str): Username to register.\n<END>",
"<BEGIN>\n## `add_handlers`",
"Adds routes to Application that use specified handlers.\n<END>",
"<BEGIN>\n## `is_full_mxid`",
"Returns True if ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join API.
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 join API.
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... | Joins room id or alias even if it must first be created. | "Joins room id or alias even if it must first be created." | 21 | false | non-Jedi/gyr | join | 23,703 | |
LDU_FT/BoboTiG/python-mss/_set_cfunctions | LDU_FT | [
"<BEGIN>\n## `to_png`",
"Dump data to a PNG file. If `output` is `None`, create no file but return\n the whole PNG data.",
" :param bytes data: RGBRGB...RGB data.\n :param tuple size: The (width, height) pair.\n :param int level: PNG compression level.\n :param str output: Output file name.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_cfunctions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_cfunctions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Set all ctypes functions and attach them to attributes. | "Set all ctypes functions and attach them to attributes." | 62 | false | BoboTiG/python-mss | _set_cfunctions | 23,704 | |
LDU_FT/SpikeInterface/spikeextractors/get_epoch_names | LDU_FT | [
"<BEGIN>\n## `write_recording`",
"Save recording extractor to MEArec format.\n Parameters\n ----------\n recording: RecordingExtractor\n Recording extractor object to be saved\n save_path: str\n .h5 or .hdf5 path\n<END>",
"<BEGIN>\n## `write_sorting`",
"Save s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_epoch_names API.
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_epoch_names API.
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 function returns a list of all the epoch names in your recording
Returns
----------
epoch_names: list
List of epoch names in the recording extractor | "This function returns a list of all the epoch names in your recording\n\n Returns\n ----------\n epoch_names: list\n List of epoch names in the recording extractor" | 115 | false | SpikeInterface/spikeextractors | get_epoch_names | 23,705 | |
LDU_FT/auth0/auth0-python/all | LDU_FT | [
"<BEGIN>\n## `authorization_code`",
"Authorization code grant",
" This is the OAuth 2.0 grant that regular web apps utilize in order\n to access an API. Use this endpoint to exchange an Authorization Code\n for a Token.",
" Args:\n grant_type (str): Denotes the flow you'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Retrieves a list of all the applications.
Important: The client_secret and encryption_key attributes can only be
retrieved with the read:client_keys scope.
Args:
fields (list of str, optional): A list of fields to include or
exclude from the result (depending on includ... | "Retrieves a list of all the applications.\n\n Important: The client_secret and encryption_key attributes can only be\n retrieved with the read:client_keys scope.\n\n Args:\n fields (list of str, optional): A list of fields to include or\n exclude from the result (depending o... | 337 | false | auth0/auth0-python | all | 23,706 | |
LDU_FT/DomainTools/python_api/risk | LDU_FT | [
"<BEGIN>\n## `parse`",
"Defines how to parse CLI arguments for the DomainTools API\n<END>",
"<BEGIN>\n## `run`",
"Defines how to start the CLI for the DomainTools API\n<END>",
"<BEGIN>\n## `flattened`",
"Returns a flattened version of the parsed whois data\n<END>",
"<BEGIN>\n## `delimited`",
"Returns ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the risk API.
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 risk API.
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 back the risk score for a given domain | "Returns back the risk score for a given domain" | 58 | false | DomainTools/python_api | risk | 23,707 | |
LDU_FT/aspiers/git-deps/tree_lookup | LDU_FT | [
"<BEGIN>\n## `find_dependencies`",
"Find all dependencies of the given revision, recursively traversing\n the dependency tree if requested.\n<END>",
"<BEGIN>\n## `find_dependencies_with_parent`",
"Find all dependencies of the given revision caused by the\n given parent commit. This will be call... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree_lookup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree_lookup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Navigate to the tree or blob object pointed to by the given target
path for the given commit. This is necessary because each git
tree only contains entries for the directory it refers to, not
recursively for all subdirectories. | "Navigate to the tree or blob object pointed to by the given target\n path for the given commit. This is necessary because each git\n tree only contains entries for the directory it refers to, not\n recursively for all subdirectories." | 14 | false | aspiers/git-deps | tree_lookup | 23,708 | |
LDU_FT/mattupstate/flask-social/connect_handler | LDU_FT | [
"<BEGIN>\n## `get_authorize_callback`",
"Get a qualified URL for the provider to return to upon authorization",
" param: endpoint: Absolute path to append to the application's host\n<END>",
"<BEGIN>\n## `delete_connection`",
"Remove a single connection to a provider for the specified user.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_handler API.
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 connect_handler API.
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... | Shared method to handle the connection process
:param connection_values: A dictionary containing the connection values
:param provider_id: The provider ID the connection shoudl be made to | "Shared method to handle the connection process\n\n :param connection_values: A dictionary containing the connection values\n :param provider_id: The provider ID the connection shoudl be made to" | 21 | false | mattupstate/flask-social | connect_handler | 23,709 | |
LDU_FT/doanguyen/lasotuvi/jdToDate | LDU_FT | [
"<BEGIN>\n## `nhapDaiHan`",
"Nhap dai han",
" Args:\n cucSo (TYPE): Description\n gioiTinh (TYPE): Description",
" Returns:\n TYPE: Description\n<END>",
"<BEGIN>\n## `ngayThangNam`",
"Summary",
" Args:\n nn (TYPE): ngay\n tt (TYPE): thang\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jdToDate API.
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 jdToDate API.
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... | def jdToDate(jd): Convert a Julian day number to day/month/year.
jd is an integer. | "def jdToDate(jd): Convert a Julian day number to day/month/year.\n jd is an integer." | 47 | false | doanguyen/lasotuvi | jdToDate | 23,710 | |
LDU_FT/mvantellingen/localshop/search | LDU_FT | [
"<BEGIN>\n## `get_search_names`",
"Return a list of values to search on when we are looking for a package\n with the given name.",
" This is required to search on both pyramid_debugtoolbar and\n pyramid-debugtoolbar.\n<END>",
"<BEGIN>\n## `alter_old_distutils_request`",
"Alter the request body for ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
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 search API.
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 ... | Implement xmlrpc search command.
This only searches through the mirrored and private packages | "Implement xmlrpc search command.\n\n This only searches through the mirrored and private packages" | 27 | false | mvantellingen/localshop | search | 23,711 | |
LDU_FT/clinicedc/edc-notification/get_template_options | LDU_FT | [
"<BEGIN>\n## `notify`",
"Overridden to only call `notify` if model matches.\n<END>",
"<BEGIN>\n## `notification_on_post_create_historical_record`",
"Checks and processes any notifications for this model.",
" Processes if `label_lower` is in site_notifications.models.",
" Note, this is the post_creat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_template_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_template_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns a dictionary of message template options.
Extend using `extra_template_options`. | "Returns a dictionary of message template options.\n\n Extend using `extra_template_options`." | 54 | false | clinicedc/edc-notification | get_template_options | 23,712 | |
LDU_FT/jfilter/text-classification-keras/read_pos_neg_data | LDU_FT | [
"<BEGIN>\n## `check_output_input`",
"Run command with arguments and return its output as a byte string.",
" If the exit code was non-zero it raises a CalledProcessError. The\n CalledProcessError object will have the return code in the returncode\n attribute and output in the output attribute.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_pos_neg_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_pos_neg_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | returns array with positive and negative examples | "returns array with positive and negative examples" | 104 | false | jfilter/text-classification-keras | read_pos_neg_data | 23,713 | |
LDU_FT/project-rig/rig/get_chip_info | LDU_FT | [
"<BEGIN>\n## `minimise`",
"Remove from the routing table any entries which could be replaced by\n default routing.",
" Parameters\n ----------\n routing_table : [:py:class:`~rig.routing_table.RoutingTableEntry`, ...]\n Routing table from which to remove entries which could be handled by\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_chip_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_chip_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 ext... | Get general information about the resources available on a chip.
Returns
-------
:py:class:`.ChipInfo`
A named tuple indicating the number of working cores, the states of
all working cores, the set of working links and the size of the
largest free block in SD... | "Get general information about the resources available on a chip.\n\n Returns\n -------\n :py:class:`.ChipInfo`\n A named tuple indicating the number of working cores, the states of\n all working cores, the set of working links and the size of the\n largest free blo... | 983 | false | project-rig/rig | get_chip_info | 23,714 | |
LDU_FT/isislovecruft/python-gnupg/import_ownertrust | LDU_FT | [
"<BEGIN>\n## `get_requirements`",
"Extract the list of requirements from our requirements.txt.",
" :rtype: 2-tuple\n :returns: Two lists, the first is a list of requirements in the form of\n pkgname==version. The second is a list of URIs or VCS checkout strings\n which specify the dependency... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_ownertrust API.
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 import_ownertrust API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Import ownertrust from a trustdb file.
:param str trustdb: The path to the trustdb.gpg file. If not given,
defaults to :file:`trustdb.gpg` in the current GnuPG
homedir. | "Import ownertrust from a trustdb file.\n\n :param str trustdb: The path to the trustdb.gpg file. If not given,\n defaults to :file:`trustdb.gpg` in the current GnuPG\n homedir." | 371 | false | isislovecruft/python-gnupg | import_ownertrust | 23,715 | |
LDU_FT/callowayproject/django-categories/recursetree | LDU_FT | [
"<BEGIN>\n## `_process_registry`",
"Given a dictionary, and a registration function, process the registry\n<END>",
"<BEGIN>\n## `register_model`",
"Process for Django 1.7 +\n app: app name/label\n model_name: name of the model\n field_definitions: a string, tuple or list of field configur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recursetree API.
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 recursetree API.
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... | Iterates over the nodes in the tree, and renders the contained block for each node.
This tag will recursively render children into the template variable {{ children }}.
Only one database query is required (children are cached for the whole tree)
Usage:
<ul>
{% recursetree nodes ... | "Iterates over the nodes in the tree, and renders the contained block for each node.\n This tag will recursively render children into the template variable {{ children }}.\n Only one database query is required (children are cached for the whole tree)\n\n Usage:\n <ul>\n {% recursetree... | 73 | false | callowayproject/django-categories | recursetree | 23,716 | |
LDU_FT/firecat53/urlscan/decode_msg | LDU_FT | [
"<BEGIN>\n## `load_tlds`",
"Load all legal TLD extensions from assets\n<END>",
"<BEGIN>\n## `parse_text_urls`",
"Parse a block of text, splitting it into its url and non-url\n components.\n<END>",
"<BEGIN>\n## `extract_with_context`",
"Extract URL and context from a given chunk.\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_msg API.
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 decode_msg API.
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... | Decodes a message fragment.
Args: msg - A Message object representing the fragment
enc - The encoding to use for decoding the message | "Decodes a message fragment.\n\n Args: msg - A Message object representing the fragment\n enc - The encoding to use for decoding the message" | 37 | false | firecat53/urlscan | decode_msg | 23,717 | |
LDU_FT/ulfalizer/Kconfiglib/custom_str | LDU_FT | [
"<BEGIN>\n## `oldconfig`",
"Prompts the user for a value if node.item is a visible symbol/choice with\n no user value.\n<END>",
"<BEGIN>\n## `all_arch_srcarch_pairs`",
"Generates all valid (ARCH, SRCARCH) tuples for the kernel, corresponding to\n different architectures. SRCARCH holds the arch/ subdirec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the custom_str API.
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 custom_str API.
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... | Works like Symbol.__str__(), but allows a custom format to be used for
all symbol/choice references. See expr_str(). | "Works like Symbol.__str__(), but allows a custom format to be used for\n all symbol/choice references. See expr_str()." | 139 | false | ulfalizer/Kconfiglib | custom_str | 23,718 | |
LDU_FT/ORCID/python-orcid/get_search_token_from_orcid | LDU_FT | [
"<BEGIN>\n## `get_login_url`",
"Return a URL for a user to login/register with ORCID.",
" Parameters\n ----------\n :param scope: string or iterable of strings\n The scope(s) of the authorization request.\n For example '/authenticate'\n :param redirect_uri: stri... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_search_token_from_orcid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_search_token_from_orcid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Get a token for searching ORCID records.
Parameters
----------
:param scope: string
/read-public or /read-member
Returns
-------
:returns: string
The token. | "Get a token for searching ORCID records.\n\n Parameters\n ----------\n :param scope: string\n /read-public or /read-member\n\n Returns\n -------\n :returns: string\n The token." | 54 | false | ORCID/python-orcid | get_search_token_from_orcid | 23,719 | |
LDU_FT/jaijuneja/PyTLDR/_remove_whitespace | LDU_FT | [
"<BEGIN>\n## `summarize`",
"Implements the TextRank summarization algorithm, which follows closely to the PageRank algorithm for ranking\n web pages.",
" :param text: a string of text to be summarized, path to a text file, or URL starting with http\n :param length: the length of the output ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_whitespace API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_whitespace API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Remove excess whitespace from the ends of a given input string. | "Remove excess whitespace from the ends of a given input string." | 30 | false | jaijuneja/PyTLDR | _remove_whitespace | 23,720 | |
LDU_FT/mardix/Mocha/set_view_attr | LDU_FT | [
"<BEGIN>\n## `_normalize_response_tuple`",
"Helper function to normalize view return values .\n It always returns (dict, status, headers). Missing values will be None.\n For example in such cases when tuple_ is\n (dict, status), (dict, headers), (dict, status, headers),\n (dict, headers, status)",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_view_attr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_view_attr API.
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... | Set the view attributes
:param view: object (class or instance method)
:param key: string - the key
:param value: mixed - the value
:param cls_name: str - To pass the class name associated to the view
in the case of decorators that may not give the real class name
:return: | "Set the view attributes\n :param view: object (class or instance method)\n :param key: string - the key\n :param value: mixed - the value\n :param cls_name: str - To pass the class name associated to the view\n in the case of decorators that may not give the real class name\n :return:" | 276 | false | mardix/Mocha | set_view_attr | 23,721 | |
LDU_FT/fishtown-analytics/dbt/_checkout | LDU_FT | [
"<BEGIN>\n## `patch`",
"Given a ParsedNodePatch, add the new information to the node.\n<END>",
"<BEGIN>\n## `build_edges`",
"Build the forward and backward edges on the given list of ParsedNodes\n and return them as two separate dictionaries, each mapping unique IDs to\n lists of edges.\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _checkout API.
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 _checkout API.
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... | Performs a shallow clone of the repository into the downloads
directory. This function can be called repeatedly. If the project has
already been checked out at this version, it will be a no-op. Returns
the path to the checked out directory. | "Performs a shallow clone of the repository into the downloads\n directory. This function can be called repeatedly. If the project has\n already been checked out at this version, it will be a no-op. Returns\n the path to the checked out directory." | 419 | false | fishtown-analytics/dbt | _checkout | 23,722 | |
LDU_FT/ASKIDA/Selenium2LibraryExtension/element_height_should_be | LDU_FT | [
"<BEGIN>\n## `wait_until_element_has_focus`",
"Waits until the element identified by `locator` has focus.\n\t\tYou might rather want to use `Element Focus Should Be Set`",
"\t\t| *Argument* | *Description* | *Example* |\n\t\t| locator | Selenium 2 element locator | id=my_id |\n\t\t| timeout | maximum time to wa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the element_height_should_be API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the element_height_should_be API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Verifies the element identified by `locator` has the expected
height. Expected height should be in pixels.
| *Argument* | *Description* | *Example* |
| locator | Selenium 2 element locator | id=my_id |
| expected | expected height | 600 | | "Verifies the element identified by `locator` has the expected\n\t\theight. Expected height should be in pixels.\n\n\t\t| *Argument* | *Description* | *Example* |\n\t\t| locator | Selenium 2 element locator | id=my_id |\n\t\t| expected | expected height | 600 |" | 76 | false | ASKIDA/Selenium2LibraryExtension | element_height_should_be | 23,723 | |
LDU_FT/skorch-dev/skorch/predict_proba | LDU_FT | [
"<BEGIN>\n## `get_data`",
"Get synthetic classification data with n_samples samples.\n<END>",
"<BEGIN>\n## `get_model`",
"Get a multi-layer perceptron model.",
" Optionally, put it in a pipeline that scales the data.\n<END>",
"<BEGIN>\n## `net`",
"Train an MLP classifier on synthetic data.",
" n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict_proba API.
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 predict_proba API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return the output of the module's forward method as a numpy
array.
If the module's forward method returns multiple outputs as a
tuple, it is assumed that the first output contains the
relevant information and the other values are ignored. If all
values are relevant, consider usi... | "Return the output of the module's forward method as a numpy\n array.\n\n If the module's forward method returns multiple outputs as a\n tuple, it is assumed that the first output contains the\n relevant information and the other values are ignored. If all\n values are relevant, consi... | 394 | false | skorch-dev/skorch | predict_proba | 23,724 | |
LDU_FT/humilis/humilis-lambdautils/send_cf_response | LDU_FT | [
"<BEGIN>\n## `unpack_kinesis_event`",
"Extracts events (a list of dicts) from a Kinesis event.\n<END>",
"<BEGIN>\n## `send_to_delivery_stream`",
"Sends a list of events to a Firehose delivery stream.\n<END>",
"<BEGIN>\n## `_secrets_table_name`",
"Name of the secrets table associated to a humilis deploymen... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_cf_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_cf_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Responds to Cloudformation after a create/update/delete operation. | "Responds to Cloudformation after a create/update/delete operation." | 40 | false | humilis/humilis-lambdautils | send_cf_response | 23,725 | |
LDU_FT/hickeroar/LatLon23/_update | LDU_FT | [
"<BEGIN>\n## `string2geocoord`",
"Create a GeoCoord object (e.g. Latitude or Longitude) from a string.\n Inputs:\n coord_str (str) - a string representation of a geographic coordinate (e.g. '5.083 N'). Each\n section of the string must be separated by some kind of a separator character ('5.083N... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Calculate heading and distance from dx and dy | "Calculate heading and distance from dx and dy" | 30 | false | hickeroar/LatLon23 | _update | 23,726 | |
LDU_FT/wmayner/pyphi/evaluate_partition | LDU_FT | [
"<BEGIN>\n## `memory_full`",
"Check if the memory is too full for further caching.\n<END>",
"<BEGIN>\n## `cache`",
"Memory-limited cache decorator.",
" ``maxmem`` is a float between 0 and 100, inclusive, specifying the maximum\n percentage of physical memory that the cache can use.",
" If ``typed... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate_partition 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 evaluate_partition API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Return the |small_phi| of a mechanism over a purview for the given
partition.
Args:
direction (Direction): |CAUSE| or |EFFECT|.
mechanism (tuple[int]): The nodes in the mechanism.
purview (tuple[int]): The nodes in the purview.
partition (Bipartition): Th... | "Return the |small_phi| of a mechanism over a purview for the given\n partition.\n\n Args:\n direction (Direction): |CAUSE| or |EFFECT|.\n mechanism (tuple[int]): The nodes in the mechanism.\n purview (tuple[int]): The nodes in the purview.\n partition (Bipartit... | 914 | false | wmayner/pyphi | evaluate_partition | 23,727 | |
LDU_FT/crm416/semantic/extractDates | LDU_FT | [
"<BEGIN>\n## `parseUnits`",
"Carries out a conversion (represented as a string) and returns the\n result as a human-readable string.",
" Args:\n inp (str): Text representing a unit conversion, which should\n include a magnitude, a description of the initial units,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extractDates API.
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 extractDates API.
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... | Extract semantic date information from an input string.
In effect, runs both parseDay and parseTime on the input
string and merges the results to produce a comprehensive
datetime object.
Args:
inp (str): Input string to be parsed.
Returns:
A list of date... | "Extract semantic date information from an input string.\n In effect, runs both parseDay and parseTime on the input\n string and merges the results to produce a comprehensive\n datetime object.\n\n Args:\n inp (str): Input string to be parsed.\n\n Returns:\n A li... | 75 | false | crm416/semantic | extractDates | 23,728 | |
LDU_FT/JarryShaw/PyPCAPKit/_read_para_from | LDU_FT | [
"<BEGIN>\n## `_missing_`",
"Lookup function used when value is not found.\n<END>",
"<BEGIN>\n## `count`",
"S.count(value) -> integer -- return number of occurrences of value\n<END>",
"<BEGIN>\n## `index`",
"S.index(value, [start, [stop]]) -> integer -- return first index of value.\n Raises Value... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_para_from API.
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 _read_para_from API.
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... | Read HIP FROM parameter.
Structure of HIP FROM parameter [RFC 8004]:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
... | "Read HIP FROM parameter.\n\n Structure of HIP FROM parameter [RFC 8004]:\n 0 1 2 3\n 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1\n +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n ... | 733 | false | JarryShaw/PyPCAPKit | _read_para_from | 23,729 | |
LDU_FT/etcher-be/elib_config/write_example_config | LDU_FT | [
"<BEGIN>\n## `check`",
"Verifies that all necessary values for the package to be used have been provided",
" :raises: `elib_config._exc.IncompleteSetupError`\n<END>",
"<BEGIN>\n## `setup`",
"Configures elib_config in one fell swoop",
" :param app_version: version of the application\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_example_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_example_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Writes an example config file using the config values declared so far
:param example_file_path: path to write to | "Writes an example config file using the config values declared so far\n\n :param example_file_path: path to write to" | 35 | false | etcher-be/elib_config | write_example_config | 23,730 | |
LDU_FT/exa-analytics/exa/head | LDU_FT | [
"<BEGIN>\n## `_create`",
"Globally called function for creating the isotope/element API.\n<END>",
"<BEGIN>\n## `read_tarball`",
"Read a (possibly compressed) tarball archive and return a dictionary of\n editors.",
" .. code-block:: python",
" eds = read_tarball(path, classes=MyEditor) # Al... | 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... | Display the top of the file.
Args:
n (int): Number of lines to display | "Display the top of the file.\n\n Args:\n n (int): Number of lines to display" | 194 | false | exa-analytics/exa | head | 23,731 | |
LDU_FT/MAVENSDC/cdflib/write_var | LDU_FT | [
"<BEGIN>\n## `encode`",
"Encodes the epoch(s) into UTC string(s).",
" For CDF_EPOCH:\n The input should be either a float or list of floats\n (in numpy, a np.float64 or a np.ndarray of np.float64)\n Each epoch is encoded, by default to a ISO 8601 form:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_var API.
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 write_var API.
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... | Writes a variable, along with variable attributes and data.
Parameters
----------
var_spec : dict
The specifications of the variable.
The required/optional keys for creating a variable:
Required keys:
- ['Variable']: The name of the variable
... | "Writes a variable, along with variable attributes and data.\n\n Parameters\n ----------\n var_spec : dict\n The specifications of the variable.\n\n The required/optional keys for creating a variable:\n Required keys:\n\n - ['Variable']: The name of the v... | 229 | false | MAVENSDC/cdflib | write_var | 23,732 | |
LDU_FT/pasztorpisti/json-cfg/load_config | LDU_FT | [
"<BEGIN>\n## `default_number_converter`",
"Converts the string representation of a json number into its python object equivalent, an\n int, long, float or whatever type suits.\n<END>",
"<BEGIN>\n## `load_utf_text_file`",
"Loads the specified text file and tries to decode it using one of the UTF encodings.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Does exactly the same as loads_config() but instead of a json string this function
receives the path to a file containing the json string or a file like object with a read()
method.
:param file_: Filename or a file like object with read() method.
:param default_encoding: The encoding to be used if the f... | "Does exactly the same as loads_config() but instead of a json string this function\n receives the path to a file containing the json string or a file like object with a read()\n method.\n :param file_: Filename or a file like object with read() method.\n :param default_encoding: The encoding to be used if ... | 39 | false | pasztorpisti/json-cfg | load_config | 23,733 | |
LDU_FT/WalletGuild/desw/create_debit | LDU_FT | [
"<BEGIN>\n## `confirm_send`",
"Confirm that a send has completed. Does not actually check confirmations,\n but instead assumes that if this is called, the transaction has been\n completed. This is because we assume our own sends are safe.",
" :param session:\n :param str ref_id: The updated ref_id f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_debit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_debit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Create a new debit, sending tokens out of your User's account.
---
parameters:
- name: debit
in: body
description: The debit you would like to create.
required: true
schema:
$ref: '#/definitions/Debit'
responses:
'200':
description: The Debit rec... | "Create a new debit, sending tokens out of your User's account.\n ---\n parameters:\n - name: debit\n in: body\n description: The debit you would like to create.\n required: true\n schema:\n $ref: '#/definitions/Debit'\n responses:\n '200':\n description: T... | 28 | false | WalletGuild/desw | create_debit | 23,734 | |
LDU_FT/kervi/kervi-core/display_unit | LDU_FT | [
"<BEGIN>\n## `set_channels`",
"Sets the state of multiple channels in one operation.",
" :param channels:\n A dictionary where keys are channels and values the value to set for each channel.",
" :type channels: ``dict``\n<END>",
"<BEGIN>\n## `action`",
"Decorator that turns a func... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display_unit API.
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 display_unit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Display unit of value.
:type: ``str`` | "Display unit of value.\n\n :type: ``str``" | 101 | false | kervi/kervi-core | display_unit | 23,735 | |
LDU_FT/resonai/ybt/fetch_url | LDU_FT | [
"<BEGIN>\n## `norm_name`",
"Return a normalized canonical target name for the `target_name`\n observed in build module `build_module`.",
" A normalized canonical target name is of the form \"<build module>:<name>\",\n where <build module> is the relative normalized path from the project root\n to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_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 extract... | Helper function to fetch a file from a URL. | "Helper function to fetch a file from a URL." | 284 | false | resonai/ybt | fetch_url | 23,736 | |
LDU_FT/tdsmith/eleven/validate_sample_frame | LDU_FT | [
"<BEGIN>\n## `average_cq`",
"Given a set of Cq values, return the Cq value that represents the\n average expression level of the input.",
" The intent is to average the expression levels of the samples,\n since the average of Cq values is not biologically meaningful.",
" :param iterable seq: A seq... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_sample_frame API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_sample_frame API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Makes sure that `sample_frame` has the columns we expect.
:param DataFrame sample_frame: A sample data frame.
:return: True (or raises an exception)
:raises TypeError: if sample_frame is not a pandas DataFrame
:raises ValueError: if columns are missing or the wrong type | "Makes sure that `sample_frame` has the columns we expect.\n\n :param DataFrame sample_frame: A sample data frame.\n :return: True (or raises an exception)\n :raises TypeError: if sample_frame is not a pandas DataFrame\n :raises ValueError: if columns are missing or the wrong type" | 35 | false | tdsmith/eleven | validate_sample_frame | 23,737 | |
LDU_FT/justquick/django-native-tags/template_string | LDU_FT | [
"<BEGIN>\n## `calendar`",
"Creates a formatted ``HTMLCalendar``. \n Argument ``format`` can be one of ``month``, ``year``, or ``yearpage``\n Keyword arguments are collected and passed into ``HTMLCalendar.formatmonth``, \n ``HTMLCalendar.formatyear``, and ``HTMLCalendar.formatyearpage``",
" Synta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the template_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the template_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return the rendered template content with the current context | "Return the rendered template content with the current context" | 161 | false | justquick/django-native-tags | template_string | 23,738 | |
LDU_FT/borntyping/python-riemann-client/send_events | LDU_FT | [
"<BEGIN>\n## `socket_recvall`",
"A helper method to read of bytes from a socket to a maximum length\n<END>",
"<BEGIN>\n## `send`",
"Sends a message, but does not return a response",
" :returns: None - can't receive a response over UDP\n<END>",
"<BEGIN>\n## `send`",
"Sends a message to a Riemann s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_events API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_events API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Adds multiple events to the queued message
:returns: None - nothing has been sent to the Riemann server yet | "Adds multiple events to the queued message\n\n :returns: None - nothing has been sent to the Riemann server yet" | 43 | false | borntyping/python-riemann-client | send_events | 23,739 | |
LDU_FT/wroberts/fsed/boundary_words | LDU_FT | [
"<BEGIN>\n## `open_file`",
"Opens a file for access with the given mode. This function\n transparently wraps gzip and xz files as well as normal files.\n You can also open zip files using syntax like:",
" f = utils.open_file('../semcor-parsed.zip:semcor000.txt')\n<END>",
"<BEGIN>\n## `boundary_trans... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the boundary_words API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the boundary_words API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Wraps all word transitions with a boundary token character (\x00).
Arguments:
- `seq`: | "Wraps all word transitions with a boundary token character (\\x00).\n\n Arguments:\n - `seq`:" | 50 | false | wroberts/fsed | boundary_words | 23,740 | |
LDU_FT/zengbin93/zb/propagate | LDU_FT | [
"<BEGIN>\n## `layer_sizes`",
"Arguments:\n X -- input dataset of shape (input size, number of examples)\n Y -- labels of shape (output size, number of examples)",
" Returns:\n n_x -- the size of the input layer\n n_h -- the size of the hidden layer\n n_y -- the size of the output layer\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the propagate API.
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 propagate API.
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... | Implement the cost function and its gradient for the propagation
Arguments:
w weights, a numpy array of size (dim, 1)
b bias, a scalar
X data of size (dim, number of examples)
Y true "label" vector of size (1, number of examples)
Return:
cost negative log-likelih... | "Implement the cost function and its gradient for the propagation\n\n Arguments:\n w weights, a numpy array of size (dim, 1)\n b bias, a scalar\n X data of size (dim, number of examples)\n Y true \"label\" vector of size (1, number of examples)\n\n Return:\n cost negative... | 101 | false | zengbin93/zb | propagate | 23,741 | |
LDU_FT/cuzzo/iw_parse/matching_line | LDU_FT | [
"<BEGIN>\n## `get_quality`",
"Gets the quality of a network / cell.\n @param string cell\n A network / cell from iwlist scan.",
" @return string\n The quality of the network.\n<END>",
"<BEGIN>\n## `get_signal_level`",
"Gets the signal level of a network / cell.\n @param string cell\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the matching_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the matching_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 ext... | Returns the first matching line in a list of lines.
@see match() | "Returns the first matching line in a list of lines.\n @see match()" | 25 | false | cuzzo/iw_parse | matching_line | 23,742 | |
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... | Query for alerts based on search filter criteria. | "Query for alerts based on search filter criteria." | 30 | false | alerta/python-alerta-client | cli | 23,743 | |
LDU_FT/pyviz/holoviews/select_mask | LDU_FT | [
"<BEGIN>\n## `initialize_plot`",
"Initializes a new plot object with the last available frame.\n<END>",
"<BEGIN>\n## `_get_axis_dims`",
"Returns the dimensions corresponding to each axis.",
" Should return a list of dimensions or list of lists of\n dimensions, which will be formatted to label ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_mask API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_mask API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Given a Dataset object and a dictionary with dimension keys and
selection keys (i.e tuple ranges, slices, sets, lists or literals)
return a boolean mask over the rows in the Dataset object that
have been selected. | "Given a Dataset object and a dictionary with dimension keys and\n selection keys (i.e tuple ranges, slices, sets, lists or literals)\n return a boolean mask over the rows in the Dataset object that\n have been selected." | 1,961 | true | pyviz/holoviews | select_mask | 23,744 | |
LDU_FT/SwissDataScienceCenter/renku-python/create | LDU_FT | [
"<BEGIN>\n## `_jsonld`",
"Return formatted graph in JSON-LD ``format`` function.\n<END>",
"<BEGIN>\n## `_rdf2dot_simple`",
"Create a simple graph of processes and artifacts.\n<END>",
"<BEGIN>\n## `_rdf2dot_reduced`",
"A reduced dot graph.",
" Adapted from original source:\n https://rdflib.readthed... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create an empty dataset in the current repo. | "Create an empty dataset in the current repo." | 121 | false | SwissDataScienceCenter/renku-python | create | 23,745 | |
LDU_FT/artefactual-labs/mets-reader-writer/_get_el_attributes | LDU_FT | [
"<BEGIN>\n## `register_id`",
"Register a manually assigned id as used, to avoid collisions.\n<END>",
"<BEGIN>\n## `parse`",
"Create a new AMDSec by parsing root.",
" :param root: Element or ElementTree to be parsed into an object.\n<END>",
"<BEGIN>\n## `serialize`",
"Serialize this amdSec and all... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_el_attributes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_el_attributes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Return the XML attributes of lxml ``Element`` instance lxml_el as a dict
where namespaced attributes are represented via colon-delimiting and using
snake case. | "Return the XML attributes of lxml ``Element`` instance lxml_el as a dict\n where namespaced attributes are represented via colon-delimiting and using\n snake case." | 179 | false | artefactual-labs/mets-reader-writer | _get_el_attributes | 23,746 | |
LDU_FT/deepmind/sonnet/_build | LDU_FT | [
"<BEGIN>\n## `generate_code`",
"Generates code samples.",
" Args:\n max_length: int. max literal length.\n max_nest: int. max nesting level.\n ops: CodeOp. set of allowable operations.",
" Returns:\n 1. (str) output value.\n 2. (str) Code operation.\n<END>",
"<BEGIN>\n## `get_tokens`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build API.
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 _build API.
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 ... | Dynamic unroll across input objects.
Args:
inputs: tensor (input_sequence_length x batch x feature_size). Encoder
sequence.
targets: tensor (output_sequence_length x batch x feature_size). Decoder
sequence.
input_sequence_length: tensor (batch). Size of each batched input
... | "Dynamic unroll across input objects.\n\n Args:\n inputs: tensor (input_sequence_length x batch x feature_size). Encoder\n sequence.\n targets: tensor (output_sequence_length x batch x feature_size). Decoder\n sequence.\n input_sequence_length: tensor (batch). Size of each batched in... | 937 | false | deepmind/sonnet | _build | 23,747 | |
LDU_FT/EpistasisLab/scikit-rebate/ramp_function | LDU_FT | [
"<BEGIN>\n## `fit`",
"Scikit-learn required: Computes the feature importance scores from the training data.",
" Parameters\n ----------\n X: array-like {n_samples, n_features}\n Training instances to compute the feature importance scores from\n y: array-like {n_samples}\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ramp_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ramp_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Our own user simplified variation of the ramp function suggested by Hong 1994, 1997. Hong's method requires the user to specifiy two thresholds
that indicate the max difference before a score of 1 is given, as well a min difference before a score of 0 is given, and any in the middle get a
score that is the no... | "Our own user simplified variation of the ramp function suggested by Hong 1994, 1997. Hong's method requires the user to specifiy two thresholds\r\n that indicate the max difference before a score of 1 is given, as well a min difference before a score of 0 is given, and any in the middle get a\r\n score that is t... | 46 | false | EpistasisLab/scikit-rebate | ramp_function | 23,748 | |
LDU_FT/roamanalytics/mittens/_get_cost_function | LDU_FT | [
"<BEGIN>\n## `_apply_updates`",
"Apply AdaGrad update to parameters.",
" Parameters\n ----------\n gradients",
" Returns\n -------\n<END>",
"<BEGIN>\n## `get_step`",
"Computes the 'step' to take for the next gradient descent update.",
" Returns the step rather t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cost_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cost_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Compute the cost of the Mittens objective function.
If self.mittens = 0, this is the same as the cost of GloVe. | "Compute the cost of the Mittens objective function.\n\n If self.mittens = 0, this is the same as the cost of GloVe." | 47 | false | roamanalytics/mittens | _get_cost_function | 23,749 | |
LDU_FT/ebu/PlugIt/build_base_parameters | LDU_FT | [
"<BEGIN>\n## `doQuery`",
"Send a request to the server and return the result\n<END>",
"<BEGIN>\n## `ping`",
"Return true if the server successfully pinged\n<END>",
"<BEGIN>\n## `checkVersion`",
"Check if the server use the same version of our protocol\n<END>",
"<BEGIN>\n## `getMedia`",
"Return a tuple... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_base_parameters 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_base_parameters 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 the list of parameters to forward from the post and get parameters | "Build the list of parameters to forward from the post and get parameters" | 75 | false | ebu/PlugIt | build_base_parameters | 23,750 | |
LDU_FT/Laufire/ec/group | LDU_FT | [
"<BEGIN>\n## `registerExitCall`",
"r\"\"\"Registers an exit call to start the core.",
" The core would be started after the main module is loaded. Ec would be exited from the core.\n<END>",
"<BEGIN>\n## `run`",
"Excecutes the given command while transfering control, till the execution is complete.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d... | r"""A decorator to make groups out of classes.
Config:
* name (str): The name of the group. Defaults to __decorated__.__name__.
* desc (str): The description of the group (optional).
* alias (str): The alias for the group (optional). | "r\"\"\"A decorator to make groups out of classes.\n\n Config:\n * name (str): The name of the group. Defaults to __decorated__.__name__.\n * desc (str): The description of the group (optional).\n * alias (str): The alias for the group (optional)." | 64 | false | Laufire/ec | group | 23,751 | |
LDU_FT/michael-lazar/rtv/get_flair_list | LDU_FT | [
"<BEGIN>\n## `refresh_content`",
"Re-download all subscriptions and reset the page index\n<END>",
"<BEGIN>\n## `select_subreddit`",
"Store the selected subreddit and return to the subreddit page\n<END>",
"<BEGIN>\n## `alias_function`",
"Create a RedditContentObject function mapped to a BaseReddit function... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flair_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flair_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return a get_content generator of flair mappings.
:param subreddit: Either a Subreddit object or the name of the
subreddit to return the flair list for.
The additional parameters are passed directly into
:meth:`.get_content`. Note: the `url`, `root_field`, `thing_field`, and
... | "Return a get_content generator of flair mappings.\n\n :param subreddit: Either a Subreddit object or the name of the\n subreddit to return the flair list for.\n\n The additional parameters are passed directly into\n :meth:`.get_content`. Note: the `url`, `root_field`, `thing_field`, and... | 919 | false | michael-lazar/rtv | get_flair_list | 23,752 | |
LDU_FT/NiklasRosenstein-Python/nr-deprecated/addtobase | LDU_FT | [
"<BEGIN>\n## `skip`",
"Must be called from within `__enter__()`. Performs some magic to have a\n #ContextSkipped exception be raised the moment the with context is entered.\n The #ContextSkipped must then be handled in `__exit__()` to suppress the\n propagation of the exception.",
" > Important: This functi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addtobase API.
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 addtobase API.
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... | Adds the string *base_suffix* to the basename of *subject*. | "Adds the string *base_suffix* to the basename of *subject*." | 305 | false | NiklasRosenstein-Python/nr-deprecated | addtobase | 23,753 | |
LDU_FT/edeposit/edeposit.amqp.storage/from_comm | LDU_FT | [
"<BEGIN>\n## `render_trees`",
"Render list of `trees` to HTML.",
" Args:\n trees (list): List of :class:`.Tree`.\n path_composer (fn reference): Function used to compose paths from UUID.\n Look at :func:`.compose_tree_path` from :mod:`.web_tools`.",
" Returns:\n str: HTML... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_comm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_comm API.
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... | Convert communication namedtuple to this class.
Args:
pub (obj): :class:`.Archive` instance which will be converted.
Returns:
obj: :class:`DBArchive` instance. | "Convert communication namedtuple to this class.\n\n Args:\n pub (obj): :class:`.Archive` instance which will be converted.\n\n Returns:\n obj: :class:`DBArchive` instance." | 140 | false | edeposit/edeposit.amqp.storage | from_comm | 23,754 | |
LDU_FT/genepattern/genepattern-python/_zip_files | LDU_FT | [
"<BEGIN>\n## `GCT`",
"Create a Dataframe with the contents of the GCT file\n<END>",
"<BEGIN>\n## `ODF`",
"Create a Dataframe with the contents of the ODF file",
" For more information on the ODF format see:\n http://software.broadinstitute.org/cancer/software/genepattern/file-formats-guide",
" :o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _zip_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _zip_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Adds the manifest and all support files to the zip file
:return: | "Adds the manifest and all support files to the zip file\n :return:" | 156 | false | genepattern/genepattern-python | _zip_files | 23,755 | |
LDU_FT/iskandr/serializable/to_dict | LDU_FT | [
"<BEGIN>\n## `return_primitive`",
"Decorator which wraps a single argument function to ignore any\n arguments of primitive type (simply returning them unmodified).\n<END>",
"<BEGIN>\n## `write_json_file`",
"Serialize this VariantCollection to a JSON representation and write it\n out to a text file.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | If value wasn't isn't a primitive scalar or collection then it needs to
either implement to_dict (instances of Serializable) or has member
data matching each required arg of __init__. | "If value wasn't isn't a primitive scalar or collection then it needs to\n either implement to_dict (instances of Serializable) or has member\n data matching each required arg of __init__." | 20 | false | iskandr/serializable | to_dict | 23,756 | |
LDU_FT/locuslab/qpth/pre_factor_kkt | LDU_FT | [
"<BEGIN>\n## `forward`",
"Solve a batch of QPs.",
" This function solves a batch of QPs, each optimizing over\n `nz` variables and having `nineq` inequality constraints\n and `neq` equality constraints.\n The optimization problem for each instance in the batch\n (dropping inde... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pre_factor_kkt API.
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 pre_factor_kkt API.
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... | Perform all one-time factorizations and cache relevant matrix products | "Perform all one-time factorizations and cache relevant matrix products" | 22 | false | locuslab/qpth | pre_factor_kkt | 23,757 | |
LDU_FT/nabla-c0d3/sslyze/_add_plugin_options | 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 _add_plugin_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_plugin_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Recovers the list of command line options implemented by the available plugins and adds them to the command
line parser. | "Recovers the list of command line options implemented by the available plugins and adds them to the command\n line parser." | 92 | false | nabla-c0d3/sslyze | _add_plugin_options | 23,758 | |
LDU_FT/mrstephenneal/dirutility/listdir | 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 listdir API.
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 listdir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return a list of files and directories in a given directory.
:param directory_path: Optional str (defaults to current directory)
:param hidden_files: Include hidden files
:return: Directory listing | "Return a list of files and directories in a given directory.\n\n :param directory_path: Optional str (defaults to current directory)\n :param hidden_files: Include hidden files\n :return: Directory listing" | 92 | false | mrstephenneal/dirutility | listdir | 23,759 | |
LDU_FT/edx/bok-choy/_check_rules | LDU_FT | [
"<BEGIN>\n## `wait_for_js`",
"Method decorator that waits for JavaScript dependencies before executing `function`.\n If the function is not a method, the decorator has no effect.",
" Args:\n function (callable): Method to decorate.",
" Returns:\n Decorated method\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_rules API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_rules API.
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... | Run an accessibility audit on the page using the axe-core ruleset.
Args:
browser: a browser instance.
rules_js: the ruleset JavaScript as a string.
config: an AxsAuditConfig instance.
Returns:
A list of violations.
Related documentation:
... | "Run an accessibility audit on the page using the axe-core ruleset.\n\n Args:\n browser: a browser instance.\n rules_js: the ruleset JavaScript as a string.\n config: an AxsAuditConfig instance.\n\n Returns:\n A list of violations.\n\n Related documentati... | 254 | false | edx/bok-choy | _check_rules | 23,760 | |
LDU_FT/Unidata/siphon/parse_xml_dataset | LDU_FT | [
"<BEGIN>\n## `open_store_variable`",
"Turn CDMRemote variable into something like a numpy.ndarray.\n<END>",
"<BEGIN>\n## `get_attrs`",
"Get the global attributes from underlying data set.\n<END>",
"<BEGIN>\n## `get_dimensions`",
"Get the dimensions from underlying data set.\n<END>",
"<BEGIN>\n## `_find_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_xml_dataset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_xml_dataset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Create a netCDF-like dataset from XML data. | "Create a netCDF-like dataset from XML data." | 309 | false | Unidata/siphon | parse_xml_dataset | 23,761 | |
LDU_FT/paulgb/penkit/project_texture_on_surface | LDU_FT | [
"<BEGIN>\n## `rotate_texture`",
"Rotates the given texture by a given angle.",
" Args:\n texture (texture): the texture to rotate\n rotation (float): the angle of rotation in degrees\n x_offset (float): the x component of the center of rotation (optional)\n y_offset (float): the y... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the project_texture_on_surface 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 project_texture_on_surface API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Maps a texture onto a surface, then projects to 2D and returns a layer.
Args:
texture (texture): the texture to project
surface (surface): the surface to project onto
angle (float): the projection angle in degrees (0 = top-down, 90 = side view)
Returns:
layer: A layer. | "Maps a texture onto a surface, then projects to 2D and returns a layer.\n\n Args:\n texture (texture): the texture to project\n surface (surface): the surface to project onto\n angle (float): the projection angle in degrees (0 = top-down, 90 = side view)\n\n Returns:\n layer: A layer.... | 134 | false | paulgb/penkit | project_texture_on_surface | 23,762 | |
LDU_FT/happyleavesaoc/python-orvibo/_discovery_resp | LDU_FT | [
"<BEGIN>\n## `_setup`",
"Set up module.",
" Open a UDP socket, and listen in a thread.\n<END>",
"<BEGIN>\n## `discover`",
"Discover devices on the local network.",
" :param timeout: Optional timeout in seconds.\n :returns: Set of discovered host addresses.\n<END>",
"<BEGIN>\n## `_discover_mac`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _discovery_resp API.
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 _discovery_resp API.
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... | Handle a discovery response.
:param data: Payload.
:param addr: Address tuple.
:returns: MAC and reversed MAC. | "Handle a discovery response.\n\n :param data: Payload.\n :param addr: Address tuple.\n :returns: MAC and reversed MAC." | 31 | false | happyleavesaoc/python-orvibo | _discovery_resp | 23,763 | |
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 `Relationship` serialized in an ``[Typedef]`` stanza.
Note:
The following guide was used:
ftp://ftp.geneontology.org/pub/go/www/GO.format.obo-1_4.shtml | "str: the `Relationship` serialized in an ``[Typedef]`` stanza.\n\n Note:\n The following guide was used:\n ftp://ftp.geneontology.org/pub/go/www/GO.format.obo-1_4.shtml" | 120 | false | althonos/pronto | obo | 23,764 | |
LDU_FT/FujiMakoto/IPS-Vagrant/_read_zip | LDU_FT | [
"<BEGIN>\n## `dev_tools_installer`",
"Installer factory\n @param cv: Current version (The version of Developer Tools we are installing)\n @type cv: ips_vagrant.common.version.Version\n @return: Installer instance\n @rtype: ips_vagrant.installer.dev_tools.latest.DevToolsInstaller\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_zip API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_zip API.
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... | Read an IPS installation zipfile and return the core version number
@type filepath: str
@rtype: Version | "Read an IPS installation zipfile and return the core version number\n @type filepath: str\n @rtype: Version" | 87 | false | FujiMakoto/IPS-Vagrant | _read_zip | 23,765 | |
LDU_FT/tobami/littlechef/_generate_metadata | LDU_FT | [
"<BEGIN>\n## `save_config`",
"Saves node configuration\n if no nodes/hostname.json exists, or force=True, it creates one\n it also saves to tmp_node.json\n<END>",
"<BEGIN>\n## `_get_ipaddress`",
"Adds the ipaddress attribute to the given node object if not already\n present and it is correctly given ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Checks whether metadata.rb has changed and regenerate metadata.json | "Checks whether metadata.rb has changed and regenerate metadata.json" | 96 | false | tobami/littlechef | _generate_metadata | 23,766 | |
LDU_FT/tkrajina/srtm.py/_add_interval_elevations | LDU_FT | [
"<BEGIN>\n## `get_color_between`",
"i is a number between 0 and 1, if 0 then color1, if 1 color2, ...\n<END>",
"<BEGIN>\n## `_IDW`",
"Return the interpolated elevation at a point.",
" Load the correct tile for latitude and longitude given.\n If the tile doesn't exist, return None. Otherwise,\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_interval_elevations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_interval_elevations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Adds elevation on points every min_interval_length and add missing
elevation between | "Adds elevation on points every min_interval_length and add missing\n elevation between" | 36 | false | tkrajina/srtm.py | _add_interval_elevations | 23,767 | |
LDU_FT/ihabunek/toot/_get_error_message | LDU_FT | [
"<BEGIN>\n## `_wc_hard_wrap`",
"Wrap text to length characters, breaking when target length is reached,\n taking into account character width.",
" Used to wrap lines which cannot be wrapped on whitespace.\n<END>",
"<BEGIN>\n## `wc_wrap`",
"Wrap text to given length, breaking on whitespace and taking i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_error_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_error_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Attempt to extract an error message from response body | "Attempt to extract an error message from response body" | 44 | false | ihabunek/toot | _get_error_message | 23,768 | |
LDU_FT/explosion/thinc/metalayerize | LDU_FT | [
"<BEGIN>\n## `compounding`",
"Yield an infinite series of compounding values. Each time the\n generator is called, a value is produced by multiplying the previous\n value by the compound rate.",
" EXAMPLE:\n >>> sizes = compounding(1., 10., 1.5)\n >>> assert next(sizes) == 1.\n >>> asser... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metalayerize API.
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 metalayerize API.
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... | Wrap a function over a sequence of layers and an input into a layer. | "Wrap a function over a sequence of layers and an input into a layer." | 75 | false | explosion/thinc | metalayerize | 23,769 | |
LDU_FT/burnash/gspread/import_csv | LDU_FT | [
"<BEGIN>\n## `authorize`",
"Login to Google API using OAuth2 credentials.\n This is a shortcut function which\n instantiates :class:`gspread.client.Client`\n and performs login right away.",
" :returns: :class:`gspread.Client` instance.\n<END>",
"<BEGIN>\n## `batch_update`",
"Lower-level method ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_csv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_csv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Imports data into the first page of the spreadsheet.
:param str data: A CSV string of data.
Example:
.. code::
# Read CSV file contents
content = open('file_to_import.csv', 'r').read()
gc.import_csv(spreadsheet.id, content)
.. note::
... | "Imports data into the first page of the spreadsheet.\n\n :param str data: A CSV string of data.\n\n Example:\n\n .. code::\n\n # Read CSV file contents\n content = open('file_to_import.csv', 'r').read()\n\n gc.import_csv(spreadsheet.id, content)\n\n .. note:... | 226 | false | burnash/gspread | import_csv | 23,770 | |
LDU_FT/guaix-ucm/numina/zerocombine | LDU_FT | [
"<BEGIN>\n## `combine`",
"Combine HDUList objects using algorithm 'method\n<END>",
"<BEGIN>\n## `logging_from_debugplot`",
"Set debugging level based on debugplot value.",
" Parameters\n ----------\n debugplot : int\n Debugging level for messages and plots. For details see\n '... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zerocombine API.
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 zerocombine API.
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... | Combine zero arrays.
:param arrays: a list of arrays
:param masks: a list of mask arrays, True values are masked
:param dtype: data type of the output
:param scales:
:return: median, variance of the median and number of points stored | "Combine zero arrays.\n\n :param arrays: a list of arrays\n :param masks: a list of mask arrays, True values are masked\n :param dtype: data type of the output\n :param scales:\n :return: median, variance of the median and number of points stored" | 605 | false | guaix-ucm/numina | zerocombine | 23,771 | |
LDU_FT/noirbizarre/minibench/run | LDU_FT | [
"<BEGIN>\n## `load_module`",
"Load a module into name given its filename\n<END>",
"<BEGIN>\n## `humanize`",
"Transform code conventions to human readable strings\n<END>",
"<BEGIN>\n## `end`",
"Dump the report into the output file.",
" If the file directory does not exists, it will be created.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Run all benchmarks.
Extras kwargs are passed to benchmarks construtors. | "Run all benchmarks.\n\n Extras kwargs are passed to benchmarks construtors." | 17 | false | noirbizarre/minibench | run | 23,772 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.