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/maxfischer2781/chainlet/run | LDU_FT | [
"<BEGIN>\n## `skip_pickle_inject`",
"skip global wrapper._raw_slave names used only for pickle support\n<END>",
"<BEGIN>\n## `wraplet_signature`",
"have wrapplets use the signature of the slave\n<END>",
"<BEGIN>\n## `_chain_forks`",
"Detect whether a sequence of elements leads to a fork of streams\n<END>"... | 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... | Start driving the chain, block until done | "Start driving the chain, block until done" | 95 | false | maxfischer2781/chainlet | run | 40,673 | |
LDU_FT/jason-weirather/pythologist/drop_scored_calls | LDU_FT | [
"<BEGIN>\n## `get_valid_cell_indecies`",
"Return a dataframe of images present with 'valid' being a list of cell indecies that can be included\n<END>",
"<BEGIN>\n## `prune_neighbors`",
"If the CellDataFrame has been subsetted, some of the cell-cell contacts may no longer be part of the the dataset. This prun... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop_scored_calls API.
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 drop_scored_calls API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Take a name or list of scored call names and drop those from the scored calls
Args:
names (list): list of names to drop or a single string name to drop
Returns:
CellDataFrame: The CellDataFrame modified. | "Take a name or list of scored call names and drop those from the scored calls\n\n Args:\n names (list): list of names to drop or a single string name to drop\n\n Returns:\n CellDataFrame: The CellDataFrame modified." | 98 | false | jason-weirather/pythologist | drop_scored_calls | 40,674 | |
LDU_FT/kipe/enocean/build | LDU_FT | [
"<BEGIN>\n## `_get_raw`",
"Get raw data as integer, based on offset and size\n<END>",
"<BEGIN>\n## `_get_enum`",
"Get enum value, based on the data in XML\n<END>",
"<BEGIN>\n## `_get_boolean`",
"Get boolean value, based on the data in XML\n<END>",
"<BEGIN>\n## `_set_value`",
"set given numeric value t... | 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 d... | 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 d... | Build Packet for sending to EnOcean controller | "Build Packet for sending to EnOcean controller" | 38 | false | kipe/enocean | build | 40,675 | |
LDU_FT/roclark/sportsreference/_parse_game_date_and_location | LDU_FT | [
"<BEGIN>\n## `dataframe`",
"Returns a ``pandas DataFrame`` containing all other relevant class\n properties and values for the specified game.\n<END>",
"<BEGIN>\n## `_extract_player_stats`",
"Combine all player stats into a single object.",
" Since each player generally has a couple of rows wo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_game_date_and_location API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_game_date_and_location API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Retrieve the game's date and location.
The games' meta information, such as date, location, attendance, and
duration, follow a complex parsing scheme that changes based on the
layout of the page. The information should be able to be parsed and set
regardless of the order and how much in... | "Retrieve the game's date and location.\n\n The games' meta information, such as date, location, attendance, and\n duration, follow a complex parsing scheme that changes based on the\n layout of the page. The information should be able to be parsed and set\n regardless of the order and how m... | 588 | false | roclark/sportsreference | _parse_game_date_and_location | 40,676 | |
LDU_FT/PSPC-SPAC-buyandsell/von_agent/get_cred_def | LDU_FT | [
"<BEGIN>\n## `validate_config`",
"Call jsonschema validation to raise JSONValidation on non-compliance or silently pass.",
" :param key: validation schema key of interest\n :param config: configuration dict to validate\n<END>",
"<BEGIN>\n## `_seed2did`",
"Derive DID, as per indy-sdk, from seed.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cred_def API.
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_cred_def API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Get credential definition from ledger by its identifier.
Raise AbsentCredDef for no such credential definition, logging any error condition and raising
BadLedgerTxn on bad request. Raise ClosedPool if cred def not in cache and pool is closed.
Retrieve the credential definition from the agent's... | "Get credential definition from ledger by its identifier.\n\n Raise AbsentCredDef for no such credential definition, logging any error condition and raising\n BadLedgerTxn on bad request. Raise ClosedPool if cred def not in cache and pool is closed.\n\n Retrieve the credential definition from the a... | 285 | false | PSPC-SPAC-buyandsell/von_agent | get_cred_def | 40,677 | |
LDU_FT/latchset/jwcrypto/decrypt | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"Encrypt according to the selected encryption and hashing\n functions.",
" :param k: Encryption key (optional)\n :param a: Additional Authentication Data\n :param m: Plaintext",
" Returns a dictionary with the computed data.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt API.
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 decrypt API.
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... | Decrypt a JWE token.
:param key: The (:class:`jwcrypto.jwk.JWK`) decryption key.
:param key: A (:class:`jwcrypto.jwk.JWK`) decryption key or a password
string (optional).
:raises InvalidJWEOperation: if the key is not a JWK object.
:raises InvalidJWEData: if the ciphertext can... | "Decrypt a JWE token.\n\n :param key: The (:class:`jwcrypto.jwk.JWK`) decryption key.\n :param key: A (:class:`jwcrypto.jwk.JWK`) decryption key or a password\n string (optional).\n\n :raises InvalidJWEOperation: if the key is not a JWK object.\n :raises InvalidJWEData: if the cipher... | 101 | false | latchset/jwcrypto | decrypt | 40,678 | |
LDU_FT/singingwolfboy/flask-dance/make_meetup_blueprint | LDU_FT | [
"<BEGIN>\n## `make_discord_blueprint`",
"Make a blueprint for authenticating with Discord using OAuth 2. This requires\n a client ID and client secret from Discord. You should either pass them to\n this constructor, or make sure that your Flask application config defines\n them, using the variables :envv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_meetup_blueprint 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 make_meetup_blueprint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Make a blueprint for authenticating with Meetup using OAuth 2. This requires
an OAuth consumer from Meetup. You should either pass the key and secret to
this constructor, or make sure that your Flask application config defines
them, using the variables :envvar:`MEETUP_OAUTH_CLIENT_ID` and
:envvar:`MEETU... | "Make a blueprint for authenticating with Meetup using OAuth 2. This requires\n an OAuth consumer from Meetup. You should either pass the key and secret to\n this constructor, or make sure that your Flask application config defines\n them, using the variables :envvar:`MEETUP_OAUTH_CLIENT_ID` and\n :envvar:`... | 123 | false | singingwolfboy/flask-dance | make_meetup_blueprint | 40,679 | |
LDU_FT/EwilDawe/typy/move_line | LDU_FT | [
"<BEGIN>\n## `move_line`",
"Moves the cursor in a straight line to (x, y) at a certain speed",
" :param x: target x-ordinate\n :param y: target y-ordinate\n :param speed: pixel traversal rate\n :return: None\n<END>",
"<BEGIN>\n## `move_arc`",
"Moves the cursor in an arc of radius r to (x, y) at ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_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 extract... | Moves the cursor in a straight line to (x, y) at a certain speed
:param x: target x-ordinate
:param y: target y-ordinate
:param speed: pixel traversal rate
:return: None | "Moves the cursor in a straight line to (x, y) at a certain speed\n\n :param x: target x-ordinate\n :param y: target y-ordinate\n :param speed: pixel traversal rate\n :return: None" | 27 | false | EwilDawe/typy | move_line | 40,680 | |
LDU_FT/linnarsson-lab/loompy/to_html | LDU_FT | [
"<BEGIN>\n## `create_append`",
"**DEPRECATED** - Use `new` instead; see https://github.com/linnarsson-lab/loompy/issues/42\n<END>",
"<BEGIN>\n## `new`",
"Create an empty Loom file, and return it as a context manager.\n<END>",
"<BEGIN>\n## `create`",
"Create a new Loom file from the given data.",
"\tArgs... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_html API.
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_html API.
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 an HTML representation of the loom file or view, showing the upper-left 10x10 corner. | "Return an HTML representation of the loom file or view, showing the upper-left 10x10 corner." | 170 | false | linnarsson-lab/loompy | to_html | 40,681 | |
LDU_FT/mfcloud/python-zvm-sdk/send_request | LDU_FT | [
"<BEGIN>\n## `getConsole`",
"Get the virtual machine's console output.",
" Input:\n Request Handle with the following properties:\n function - 'CMDVM'\n subfunction - 'CMD'\n userid - userid of the virtual machine",
" Output:\n Request Handle updated with t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Refer to SDK API documentation.
:param api_name: SDK API name
:param *api_args: SDK API sequence parameters
:param **api_kwargs: SDK API keyword parameters | "Refer to SDK API documentation.\n\n :param api_name: SDK API name\n :param *api_args: SDK API sequence parameters\n :param **api_kwargs: SDK API keyword parameters" | 643 | false | mfcloud/python-zvm-sdk | send_request | 40,682 | |
LDU_FT/benmack/eo-box/from_eocube | LDU_FT | [
"<BEGIN>\n## `buildvrt`",
"Build a VRT",
" See also: https://www.gdal.org/gdalbuildvrt.html",
" You can find the possible BuildVRTOptions (**kwargs**) here:\n https://github.com/nextgis/pygdal/blob/78a793057d2162c292af4f6b240e19da5d5e52e2/2.1.0/osgeo/gdal.py#L1051",
" Arguments:\n input_f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_eocube API.
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 from_eocube API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Create a EOCubeChunk object from an EOCube object. | "Create a EOCubeChunk object from an EOCube object." | 98 | false | benmack/eo-box | from_eocube | 40,683 | |
LDU_FT/matllubos/django-is-core/_check_permission | LDU_FT | [
"<BEGIN>\n## `short_description`",
"Sets 'short_description' attribute (this attribute is in exports to generate header name).\n<END>",
"<BEGIN>\n## `redirect_to_login`",
"Redirects the user to the login page, passing the given 'next' page\n<END>",
"<BEGIN>\n## `_check_permission`",
"If customer is not au... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_permission API.
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 _check_permission API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | If customer is not authorized he should not get information that object is exists.
Therefore 403 is returned if object was not found or is redirected to the login page.
If custmer is authorized and object was not found is returned 404.
If object was found and user is not authorized is returned 4... | "If customer is not authorized he should not get information that object is exists.\n Therefore 403 is returned if object was not found or is redirected to the login page.\n If custmer is authorized and object was not found is returned 404.\n If object was found and user is not authorized is return... | 66 | false | matllubos/django-is-core | _check_permission | 40,684 | |
LDU_FT/chrisnorman7/confmanager/parse_json | LDU_FT | [
"<BEGIN>\n## `Show`",
"Before we show the frame, we need to add the finishing touches:\n<END>",
"<BEGIN>\n## `apply`",
"Before self.onOk closes the window, it calls this function to sync the config changes from the GUI back to self.config.\n<END>",
"<BEGIN>\n## `displayError`",
"Complain about something t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Given a confmanager object and a dictionary object, import the values from the dictionary into the object, optionally adding sections and options as it goes. | "Given a confmanager object and a dictionary object, import the values from the dictionary into the object, optionally adding sections and options as it goes." | 22 | false | chrisnorman7/confmanager | parse_json | 40,685 | |
LDU_FT/numat/midas/get | LDU_FT | [
"<BEGIN>\n## `get`",
"Get current state from the Midas gas detector.\n<END>",
"<BEGIN>\n## `_parse`",
"Parse the response, returning a dictionary.\n<END>",
"<BEGIN>\n## `read_registers`",
"Read modbus registers.",
" The Modbus protocol doesn't allow responses longer than 250 bytes\n (ie. 1... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Get current state from the Midas gas detector. | "Get current state from the Midas gas detector." | 15 | false | numat/midas | get | 40,686 | |
LDU_FT/classam/silly/slugify_argument | LDU_FT | [
"<BEGIN>\n## `_slugify`",
"This is not as good as a proper slugification function, but the input space is limited",
" >>> _slugify(\"beets\")\n 'beets'\n >>> _slugify(\"Toaster Strudel\")\n 'toaster-strudel'",
" Here's why: It handles very little. It doesn't handle esoteric whitespace or symbol... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slugify_argument API.
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 slugify_argument API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Wraps a function that returns a string, adding the 'slugify' argument.
>>> slugified_fn = slugify_argument(lambda *args, **kwargs: "YOU ARE A NICE LADY")
>>> slugified_fn()
'YOU ARE A NICE LADY'
>>> slugified_fn(slugify=True)
'you-are-a-nice-lady' | "Wraps a function that returns a string, adding the 'slugify' argument.\n\n >>> slugified_fn = slugify_argument(lambda *args, **kwargs: \"YOU ARE A NICE LADY\")\n >>> slugified_fn()\n 'YOU ARE A NICE LADY'\n >>> slugified_fn(slugify=True)\n 'you-are-a-nice-lady'" | 80 | false | classam/silly | slugify_argument | 40,687 | |
LDU_FT/biocommons/hgvs/_get_ref_alt | LDU_FT | [
"<BEGIN>\n## `_expose_rule_functions`",
"add parse functions for public grammar rules",
" Defines a function for each public grammar rule, based on\n introspecting the grammar. For example, the `c_interval` rule\n is exposed as a method `parse_c_interval` and used like this::",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_ref_alt API.
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_ref_alt API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Get reference allele and alternative allele of the variant | "Get reference allele and alternative allele of the variant" | 210 | false | biocommons/hgvs | _get_ref_alt | 40,688 | |
LDU_FT/pyviz/geoviews/range | LDU_FT | [
"<BEGIN>\n## `coord_to_dimension`",
"Converts an iris coordinate to a HoloViews dimension.\n<END>",
"<BEGIN>\n## `sort_coords`",
"Sorts a list of DimCoords trying to ensure that\n dates and pressure levels appear first and the\n longitude and latitude appear last in the correct\n order.\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the range API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the range API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Computes the range along a particular dimension. | "Computes the range along a particular dimension." | 106 | false | pyviz/geoviews | range | 40,689 | |
LDU_FT/scarface-4711/denonavr/_get_renamed_deleted_sources | LDU_FT | [
"<BEGIN>\n## `exec_appcommand_post`",
"Prepare and execute a HTTP POST call to AppCommand.xml end point.",
" Returns XML ElementTree on success and None on fail.\n<END>",
"<BEGIN>\n## `get_status_xml`",
"Get status XML via HTTP and return it as XML ElementTree.\n<END>",
"<BEGIN>\n## `create_zones`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_renamed_deleted_sources API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_renamed_deleted_sources API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Get renamed and deleted sources lists from receiver .
Internal method which queries device via HTTP to get names of renamed
input sources. | "Get renamed and deleted sources lists from receiver .\n\n Internal method which queries device via HTTP to get names of renamed\n input sources." | 85 | false | scarface-4711/denonavr | _get_renamed_deleted_sources | 40,690 | |
LDU_FT/SuryaSankar/flask-sqlalchemy-booster/_convert | LDU_FT | [
"<BEGIN>\n## `_isinstance`",
"Checks if the specified model instance matches the class model.\n By default this method will raise a `ValueError` if the model is not of\n expected type.",
" Args:",
" model (Model) : The instance to be type checked",
" raise_error (b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert API.
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 _convert API.
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... | Validate and convert a dict-like object into values for set()ing.
This is called behind the scenes when a MappedCollection is replaced
entirely by another collection, as in::
myobj.mappedcollection = {'a':obj1, 'b': obj2} # ...
Raises a TypeError if the key in any (key, value) pair ... | "Validate and convert a dict-like object into values for set()ing.\n\n This is called behind the scenes when a MappedCollection is replaced\n entirely by another collection, as in::\n\n myobj.mappedcollection = {'a':obj1, 'b': obj2} # ...\n\n Raises a TypeError if the key in any (key, valu... | 177 | false | SuryaSankar/flask-sqlalchemy-booster | _convert | 40,691 | |
LDU_FT/sphinx-contrib/paverutils/run_script | LDU_FT | [
"<BEGIN>\n## `pdf`",
"Generate PDF output.",
" Use Sphinx to produce LaTeX, then use external tools such as\n TeXLive to convert the .tex file to a PDF.",
" This task uses the following options, searching first in the\n \"pdf\" then \"sphinx\" section of the options.",
" docroot\n the ro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_script API.
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 run_script API.
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... | Run a script in the context of the input_file's directory,
return the text output formatted to be included as an rst
literal text block.
Arguments:
input_file
The name of the file being processed by cog. Usually passed as
cog.inFile.
script_name
The name of the Python script... | "Run a script in the context of the input_file's directory,\n return the text output formatted to be included as an rst\n literal text block.\n\n Arguments:\n\n input_file\n The name of the file being processed by cog. Usually passed as\n cog.inFile.\n\n script_name\n The name of the P... | 38 | false | sphinx-contrib/paverutils | run_script | 40,692 | |
LDU_FT/zrong/rookout/dump | LDU_FT | [
"<BEGIN>\n## `copy_from_dict`",
"从一个已经存在的 dict 中复制所有的值。",
" :param adict: 被复制的 dict。\n :type adict: dict\n :param parent: 复制到哪个父对象。\n 若为 None 则复制到 self 。\n :type parent: rookout.PYConf\n<END>",
"<BEGIN>\n## `dump`",
"将自身内容打印成字符串",
" :param bool hu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API.
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 dump API.
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... | 将自身内容打印成字符串
:param bool human: 若值为 True ,则打印成易读格式。 | "将自身内容打印成字符串\n\n :param bool human: 若值为 True ,则打印成易读格式。" | 77 | false | zrong/rookout | dump | 40,693 | |
LDU_FT/satori-ng/hooker/hook | LDU_FT | [
"<BEGIN>\n## `isloaded`",
"Checks if given hook module has been loaded",
" Args:\n name (str): The name of the module to check",
" Returns:\n bool. The return code::",
" True -- Loaded\n False -- Not Loaded\n<END>",
"<BEGIN>\n## `hook`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hook API.
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 hook API.
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... | Tries to load the hook to the event
Args:
function (func): Function that will be called when the event is called
Kwargs:
dependencies (str): String or Iterable with modules whose hooks should be called before this one
Raises:
NameError
Note that th... | "Tries to load the hook to the event\n\n Args:\n function (func): Function that will be called when the event is called\n\n Kwargs:\n dependencies (str): String or Iterable with modules whose hooks should be called before this one\n\n Raises:\n NameError\n\n ... | 31 | false | satori-ng/hooker | hook | 40,694 | |
LDU_FT/zeroSteiner/smoke-zephyr/unique | LDU_FT | [
"<BEGIN>\n## `normalize_job_id`",
"Convert a value to a job id.",
"\t:param job_id: Value to convert.\n\t:type job_id: int, str\n\t:return: The job id.\n\t:rtype: :py:class:`uuid.UUID`\n<END>",
"<BEGIN>\n## `now`",
"Return a :py:class:`datetime.datetime` instance representing the current time.",
"\t\t:rty... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unique API.
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 unique API.
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 a unique list or tuple from a provided list or tuple and preserve the
order.
:param seq: The list or tuple to preserve unique items from.
:type seq: list, tuple
:param key: If key is provided it will be called during the
comparison process.
:type key: function, None | "Create a unique list or tuple from a provided list or tuple and preserve the\n\torder.\n\n\t:param seq: The list or tuple to preserve unique items from.\n\t:type seq: list, tuple\n\t:param key: If key is provided it will be called during the\n\t\tcomparison process.\n\t:type key: function, None" | 116 | false | zeroSteiner/smoke-zephyr | unique | 40,695 | |
LDU_FT/RealTimeWeb/datasets/_lookup | LDU_FT | [
"<BEGIN>\n## `_parse_int`",
"Attempt to cast *value* into an integer, returning *default* if it fails.\n<END>",
"<BEGIN>\n## `_parse_float`",
"Attempt to cast *value* into a float, returning *default* if it fails.\n<END>",
"<BEGIN>\n## `_parse_type`",
"Attempt to cast *value* into *type_func*, returning *... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lookup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lookup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Internal method that looks up a key in the local cache.
:param key: Get the value based on the key from the cache.
:type key: string
:returns: void | "Internal method that looks up a key in the local cache.\n :param key: Get the value based on the key from the cache.\n :type key: string\n :returns: void" | 76 | false | RealTimeWeb/datasets | _lookup | 40,696 | |
LDU_FT/niemasd/TreeSwift/traverse_preorder | LDU_FT | [
"<BEGIN>\n## `plot_ltt`",
"Plot the Lineages Through Time (LTT) curve of a given tree",
" Args:\n ``lineages`` (``dict``): The ``lineages`` dictionary returned by a ``Tree`` object's ``lineages_through_time()`` function call",
" ``show_plot`` (``bool``): ``True`` to show the plot, otherwise `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traverse_preorder API.
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 traverse_preorder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Perform a preorder traversal of the ``Node`` objects in this ``Tree``
Args:
``leaves`` (``bool``): ``True`` to include leaves, otherwise ``False``
``internal`` (``bool``): ``True`` to include internal nodes, otherwise ``False`` | "Perform a preorder traversal of the ``Node`` objects in this ``Tree``\n\n Args:\n ``leaves`` (``bool``): ``True`` to include leaves, otherwise ``False``\n\n ``internal`` (``bool``): ``True`` to include internal nodes, otherwise ``False``" | 280 | false | niemasd/TreeSwift | traverse_preorder | 40,697 | |
LDU_FT/mcocdawc/chemcoord/apply_grad_zmat_tensor | LDU_FT | [
"<BEGIN>\n## `_check_construction_table`",
"Checks if a construction table uses valid references.\n Raises an exception (UndefinedCoordinateSystem) otherwise.\n<END>",
"<BEGIN>\n## `_get_frag_constr_table`",
"Create a construction table for a Zmatrix.",
" A construction table is basically a Zm... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_grad_zmat_tensor 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 apply_grad_zmat_tensor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Apply the gradient for transformation to Zmatrix space onto cart_dist.
Args:
grad_C (:class:`numpy.ndarray`): A ``(3, n, n, 3)`` array.
The mathematical details of the index layout is explained in
:meth:`~chemcoord.Cartesian.get_grad_zmat()`.
construction_table (pandas.DataF... | "Apply the gradient for transformation to Zmatrix space onto cart_dist.\n\n Args:\n grad_C (:class:`numpy.ndarray`): A ``(3, n, n, 3)`` array.\n The mathematical details of the index layout is explained in\n :meth:`~chemcoord.Cartesian.get_grad_zmat()`.\n construction_table (panda... | 503 | false | mcocdawc/chemcoord | apply_grad_zmat_tensor | 40,698 | |
LDU_FT/J535D165/recordlinkage/specificity | LDU_FT | [
"<BEGIN>\n## `_map_tril_1d_on_2d`",
"Map 1d indices on lower triangular matrix in 2d.\n<END>",
"<BEGIN>\n## `random_pairs_without_replacement_large_frames`",
"Make a sample of random pairs with replacement\n<END>",
"<BEGIN>\n## `clean`",
"Clean string variables.",
" Clean strings in the Series by rem... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the specificity API.
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 specificity API.
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... | specificity(links_true, links_pred, total)
Compute the specificity.
The specificity is given by TN/(FP+TN).
Parameters
----------
links_true: pandas.MultiIndex, pandas.DataFrame, pandas.Series
The true (or actual) collection of links.
links_pred: pandas.MultiIndex, pandas.DataFrame, p... | "specificity(links_true, links_pred, total)\n\n Compute the specificity.\n\n The specificity is given by TN/(FP+TN).\n\n Parameters\n ----------\n links_true: pandas.MultiIndex, pandas.DataFrame, pandas.Series\n The true (or actual) collection of links.\n links_pred: pandas.MultiIndex, pandas.D... | 339 | false | J535D165/recordlinkage | specificity | 40,699 | |
LDU_FT/eventable/vobject/setProfile | LDU_FT | [
"<BEGIN>\n## `toVName`",
"Turn a Python name into an iCalendar style name,\n optionally uppercase and with characters stripped off.\n<END>",
"<BEGIN>\n## `dquoteEscape`",
"Return param, or \"param\" if ',' or ';' or ':' is in param.\n<END>",
"<BEGIN>\n## `readComponents`",
"Generate one Component at a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setProfile API.
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 setProfile API.
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... | Assign a PROFILE to this unnamed component.
Used by vCard, not by vCalendar. | "Assign a PROFILE to this unnamed component.\n\n Used by vCard, not by vCalendar." | 138 | false | eventable/vobject | setProfile | 40,700 | |
LDU_FT/napalm-automation/napalm-logs/start_engine | LDU_FT | [
"<BEGIN>\n## `_setup_ipc`",
"Setup the IPC pub and sub.\n Subscript to the listener IPC\n and publish to the device specific IPC.\n<END>",
"<BEGIN>\n## `_compile_prefixes`",
"Create a dict of all OS prefixes and their compiled regexs\n<END>",
"<BEGIN>\n## `_identify_prefix`",
"Check the mess... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_engine API.
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 start_engine API.
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... | Start the child processes (one per device OS) | "Start the child processes (one per device OS)" | 82 | false | napalm-automation/napalm-logs | start_engine | 40,701 | |
LDU_FT/olivier-m/rafter/filter_validate_response | LDU_FT | [
"<BEGIN>\n## `model_node`",
"Decorates a ``schematics.Model`` class to add it as a field\n of type ``schematic.types.ModelType``.",
" Keyword arguments are passed to ``schematic.types.ModelType``.",
" Example:",
" .. code-block:: python\n :emphasize-lines: 8,13",
" from schematic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_validate_response 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 filter_validate_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | This filter process the returned response. It does 2 things:
- If the response is a ``sanic.response.HTTPResponse`` and not a
:class:`rafter.http.Response`, return it immediately.
- It processes, validates and serializes this response when a schema
is provided.
That means that you can always r... | "This filter process the returned response. It does 2 things:\n\n - If the response is a ``sanic.response.HTTPResponse`` and not a\n :class:`rafter.http.Response`, return it immediately.\n - It processes, validates and serializes this response when a schema\n is provided.\n\n That means that you can ... | 41 | false | olivier-m/rafter | filter_validate_response | 40,702 | |
LDU_FT/rapidpro/dash/org_task | LDU_FT | [
"<BEGIN>\n## `intersection`",
"Return the intersection of lists, using the first list to determine item order\n<END>",
"<BEGIN>\n## `union`",
"Return the union of lists, ordering by first seen in any list\n<END>",
"<BEGIN>\n## `filter_dict`",
"Creates a new dict from an existing dict that only has the giv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the org_task API.
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 org_task API.
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... | Decorator to create an org task.
:param task_key: the task key used for state storage and locking, e.g. 'do-stuff'
:param lock_timeout: the lock timeout in seconds | "Decorator to create an org task.\n :param task_key: the task key used for state storage and locking, e.g. 'do-stuff'\n :param lock_timeout: the lock timeout in seconds" | 55 | false | rapidpro/dash | org_task | 40,703 | |
LDU_FT/sethmlarson/virtualbox-python/install | LDU_FT | [
"<BEGIN>\n## `register_on_network_adapter_changed`",
"Set the callback function to consume on network adapter changed\n events.",
" Callback receives a INetworkAdapterChangedEvent object.",
" Returns the callback_id\n<END>",
"<BEGIN>\n## `register_on_serial_port_changed`",
"Set the ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install API.
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 install API.
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... | Install the extension pack.
in replace of type bool
Set this to automatically uninstall any existing extension pack with
the same name as the one being installed.
in display_info of type str
Platform specific display information. Reserved for future hacks.
... | "Install the extension pack.\n\n in replace of type bool\n Set this to automatically uninstall any existing extension pack with\n the same name as the one being installed.\n\n in display_info of type str\n Platform specific display information. Reserved for future hacks.\n... | 2,484 | true | sethmlarson/virtualbox-python | install | 40,704 | |
LDU_FT/nitmir/django-cas-server/verify_ticket | LDU_FT | [
"<BEGIN>\n## `clean_deleted_sessions`",
"remove old :class:`FederateSLO` object for which the session do not exists anymore\n<END>",
"<BEGIN>\n## `send_mails`",
"For each new django-cas-server version, if the current instance is not up to date\n send one mail to ``settings.ADMINS``.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_ticket API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_ticket API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Verifies CAS 1.0 authentication ticket.
Returns username on success and None on failure. | "Verifies CAS 1.0 authentication ticket.\n\n Returns username on success and None on failure." | 182 | false | nitmir/django-cas-server | verify_ticket | 40,705 | |
LDU_FT/ilblackdragon/django-misc/_resolve_lookup | LDU_FT | [
"<BEGIN>\n## `filter`",
"If id or pk was specified as a kwargs, return even if it's deleteted.\n<END>",
"<BEGIN>\n## `formatrow`",
"Internal function used to clean up the incoming excel data\n<END>",
"<BEGIN>\n## `get_hierarchy_uploader`",
"Returns uploader, that uses get_hierarch_path to store files\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_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 e... | Performs resolution of a real variable (i.e. not a literal) against the
given context.
As indicated by the method's name, this method is an implementation
detail and shouldn't be called by external code. Use Variable.resolve()
instead. | "Performs resolution of a real variable (i.e. not a literal) against the\n given context.\n\n As indicated by the method's name, this method is an implementation\n detail and shouldn't be called by external code. Use Variable.resolve()\n instead." | 49 | false | ilblackdragon/django-misc | _resolve_lookup | 40,706 | |
LDU_FT/simpleai-team/simpleai/find_location | LDU_FT | [
"<BEGIN>\n## `_all_expander`",
"Expander that expands all nodes on the fringe.\n<END>",
"<BEGIN>\n## `beam`",
"Beam search.",
" beam_size is the size of the beam.\n If iterations_limit is specified, the algorithm will end after that\n number of iterations. Else, it will continue until it can't find... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_location API.
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 find_location API.
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... | Find the location of a piece in the puzzle.
Returns a tuple: row, column | "Find the location of a piece in the puzzle.\n Returns a tuple: row, column" | 130 | false | simpleai-team/simpleai | find_location | 40,707 | |
LDU_FT/sbjorn/vici/terminate | LDU_FT | [
"<BEGIN>\n## `initiate`",
"Initiate an SA.",
" :param sa: the SA to initiate\n :type sa: dict\n :return: logs emitted by command, with `errmsg` given on failure\n :rtype: :py:class:`vici.session.CommandResult`\n<END>",
"<BEGIN>\n## `terminate`",
"Terminate an SA.",
" :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the terminate API.
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 terminate API.
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... | Terminate an SA.
:param sa: the SA to terminate
:type sa: dict
:return: logs emitted by command, with `errmsg` given on failure
:rtype: :py:class:`vici.session.CommandResult` | "Terminate an SA.\n\n :param sa: the SA to terminate\n :type sa: dict\n :return: logs emitted by command, with `errmsg` given on failure\n :rtype: :py:class:`vici.session.CommandResult`" | 30 | false | sbjorn/vici | terminate | 40,708 | |
LDU_FT/pre-commit/pre-commit-hooks/parse_blocks | LDU_FT | [
"<BEGIN>\n## `check_docstring_first`",
"Returns nonzero if the source has what looks like a docstring that is\n not at the beginning of the source.",
" A string will be considered a docstring if it is a STRING token with a\n col offset of 0.\n<END>",
"<BEGIN>\n## `get_aws_secrets_from_env`",
"Extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_blocks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_blocks API.
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... | Parse and return all possible blocks, popping off the start of `lines`.
:param lines: list of lines
:return: list of blocks, where each block is a list of lines | "Parse and return all possible blocks, popping off the start of `lines`.\n\n :param lines: list of lines\n :return: list of blocks, where each block is a list of lines" | 25 | false | pre-commit/pre-commit-hooks | parse_blocks | 40,709 | |
LDU_FT/brianhie/scanorama/_fit | LDU_FT | [
"<BEGIN>\n## `silhouette_score`",
"Compute the mean Silhouette Coefficient of all samples.",
" The Silhouette Coefficient is calculated using the mean intra-cluster\n distance (``a``) and the mean nearest-cluster distance (``b``) for each\n sample. The Silhouette Coefficient for a sample is ``(b - a) ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Fit the model using X as training data.
Note that sparse arrays can only be handled by method='exact'.
It is recommended that you convert your sparse array to dense
(e.g. `X.toarray()`) if it fits in memory, or otherwise using a
dimensionality reduction technique (e.g. TruncatedSVD).
... | "Fit the model using X as training data.\n\n Note that sparse arrays can only be handled by method='exact'.\n It is recommended that you convert your sparse array to dense\n (e.g. `X.toarray()`) if it fits in memory, or otherwise using a\n dimensionality reduction technique (e.g. TruncatedSV... | 137 | false | brianhie/scanorama | _fit | 40,710 | |
LDU_FT/robertmartin8/PyPortfolioOpt/efficient_return | LDU_FT | [
"<BEGIN>\n## `negative_sharpe`",
"Calculate the negative Sharpe ratio of a portfolio",
" :param weights: asset weights of the portfolio\n :type weights: np.ndarray\n :param expected_returns: expected return of each asset\n :type expected_returns: pd.Series\n :param cov_matrix: the covariance matr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the efficient_return API.
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 efficient_return API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Calculate the 'Markowitz portfolio', minimising volatility for a given target return.
:param target_return: the desired return of the resulting portfolio.
:type target_return: float
:param market_neutral: whether the portfolio should be market neutral (weights sum to zero),
... | "Calculate the 'Markowitz portfolio', minimising volatility for a given target return.\n\n :param target_return: the desired return of the resulting portfolio.\n :type target_return: float\n :param market_neutral: whether the portfolio should be market neutral (weights sum to zero),\n ... | 90 | false | robertmartin8/PyPortfolioOpt | efficient_return | 40,711 | |
LDU_FT/ml4ai/delphi/is_grounded_statement | LDU_FT | [
"<BEGIN>\n## `all_subs`",
"given a list of tuples specifying the bounds of an array, all_subs()\n returns a list of all the tuples of subscripts for that array.\n<END>",
"<BEGIN>\n## `idx2subs`",
"Given a list idx_list of index values for each dimension of an array, \n idx2subs() returns a list of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_grounded_statement 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 is_grounded_statement API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Check if an Influence statement is grounded | "Check if an Influence statement is grounded" | 336 | false | ml4ai/delphi | is_grounded_statement | 40,712 | |
LDU_FT/golemhq/webdriver-manager/clean | LDU_FT | [
"<BEGIN>\n## `normalize_outputdir`",
"if output dir is None try using the ./drivers directory\n if it already exists, otherwise use the current working directory\n<END>",
"<BEGIN>\n## `get_platform`",
"Get the current platform data.\n Returns a dictionary with keys: `os_name`, `os_bits`\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API.
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 clean API.
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... | Remove driver executables from the specified outputdir.
drivers can be a list of drivers to filter which executables
to remove. Specify a version using an equal sign i.e.: 'chrome=2.2' | "Remove driver executables from the specified outputdir.\n\n drivers can be a list of drivers to filter which executables\n to remove. Specify a version using an equal sign i.e.: 'chrome=2.2'" | 15 | false | golemhq/webdriver-manager | clean | 40,713 | |
LDU_FT/googlefonts/ufo2ft/parseAnchorName | LDU_FT | [
"<BEGIN>\n## `isValidFeatureWriter`",
"Return True if 'klass' is a valid feature writer class.\n A valid feature writer class is a class (of type 'type'), that has\n two required attributes:\n 1) 'tableTag' (str), which can be \"GSUB\", \"GPOS\", or other similar tags.\n 2) 'write' (bound method), wit... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parseAnchorName API.
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 parseAnchorName API.
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... | Parse anchor name and return a tuple that specifies:
1) whether the anchor is a "mark" anchor (bool);
2) the "key" name of the anchor, i.e. the name after stripping all the
prefixes and suffixes, which identifies the class it belongs to (str);
3) An optional number (int), starting from 1, which ident... | "Parse anchor name and return a tuple that specifies:\n 1) whether the anchor is a \"mark\" anchor (bool);\n 2) the \"key\" name of the anchor, i.e. the name after stripping all the\n prefixes and suffixes, which identifies the class it belongs to (str);\n 3) An optional number (int), starting from 1, wh... | 224 | false | googlefonts/ufo2ft | parseAnchorName | 40,714 | |
LDU_FT/openearth/bmi-python/inq_compound | LDU_FT | [
"<BEGIN>\n## `colorlogs`",
"Append a rainbow logging handler and a formatter to the root logger\n<END>",
"<BEGIN>\n## `create_string_buffer`",
"create_string_buffer(aString) -> character array\n create_string_buffer(anInteger) -> character array\n create_string_buffer(aString, anInteger) -> character ar... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inq_compound API.
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 inq_compound API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return the number of fields and size (not yet) of a compound type. | "Return the number of fields and size (not yet) of a compound type." | 39 | false | openearth/bmi-python | inq_compound | 40,715 | |
LDU_FT/aws/aws-dynamodb-encryption-python/unwrap | LDU_FT | [
"<BEGIN>\n## `encrypt_item`",
"Demonstrate use of EncryptedTable to transparently encrypt an item.\n<END>",
"<BEGIN>\n## `to_str`",
"Takes an input str or bytes object and returns an equivalent str object.",
" :param data: Input data\n :type data: str or bytes\n :returns: Data normalized to str\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unwrap API.
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 unwrap API.
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 ... | Unwrap key using AES keywrap.
:param bytes wrapping_key: Loaded key with which to unwrap
:param bytes wrapped_key: Wrapped key to unwrap
:returns: Unwrapped key
:rtype: bytes | "Unwrap key using AES keywrap.\n\n :param bytes wrapping_key: Loaded key with which to unwrap\n :param bytes wrapped_key: Wrapped key to unwrap\n :returns: Unwrapped key\n :rtype: bytes" | 175 | false | aws/aws-dynamodb-encryption-python | unwrap | 40,716 | |
LDU_FT/tamasgal/km3pipe/theta | LDU_FT | [
"<BEGIN>\n## `count_multiplicities`",
"Calculate an array of multiplicities and corresponding coincidence IDs",
" Note that this algorithm does not take care about DOM IDs, so it has to\n be fed with DOM hits.",
" Parameters\n ----------\n times: array[float], shape=(n,)\n Hit times for ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the theta API.
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 theta API.
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... | Neutrino direction in polar coordinates.
Downgoing event: theta = 180deg
Horizont: 90deg
Upgoing: theta = 0
Angles in radians. | "Neutrino direction in polar coordinates.\n\n Downgoing event: theta = 180deg\n Horizont: 90deg\n Upgoing: theta = 0\n\n Angles in radians." | 418 | false | tamasgal/km3pipe | theta | 40,717 | |
LDU_FT/heitzmann/gdspy/get_bounding_box | LDU_FT | [
"<BEGIN>\n## `_eight_byte_real`",
"Convert a number into the GDSII 8 byte real format.",
" Parameters\n ----------\n value : number\n The number to be converted.",
" Returns\n -------\n out : string\n The GDSII binary string that represents ``value``.\n<END>",
"<BEGIN>\n## `_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bounding_box API.
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_bounding_box API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns the bounding box for this cell.
Returns
-------
out : Numpy array[2,2] or ``None``
Bounding box of this cell [[x_min, y_min], [x_max, y_max]],
or ``None`` if the cell is empty. | "Returns the bounding box for this cell.\n\n Returns\n -------\n out : Numpy array[2,2] or ``None``\n Bounding box of this cell [[x_min, y_min], [x_max, y_max]],\n or ``None`` if the cell is empty." | 254 | false | heitzmann/gdspy | get_bounding_box | 40,718 | |
LDU_FT/iblancasa/GitHubCity/getConfig | LDU_FT | [
"<BEGIN>\n## `export`",
"Export all attributes of the user to a dict.",
" :return: attributes of the user.\n :rtype: dict.\n<END>",
"<BEGIN>\n## `__getContributions`",
"Scrap the contributions from a GitHub profile.",
" :param web: parsed web.\n :type web: BeautifulSoup node.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getConfig API.
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 getConfig API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return the configuration of the city.
:return: configuration of the city.
:rtype: dict. | "Return the configuration of the city.\n\n :return: configuration of the city.\n :rtype: dict." | 97 | false | iblancasa/GitHubCity | getConfig | 40,719 | |
LDU_FT/okpy/ok-client/show_guidance_msg | LDU_FT | [
"<BEGIN>\n## `load`",
"Prepares a set of setup, test, and teardown code to be\n run in the console.",
" PARAMETERS:\n code -- list; processed lines of code. Elements in the list are\n either strings (input) or CodeAnswer objects (output)\n setup -- str; raw ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_guidance_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_guidance_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... | Based on the student's answer (input_lines), we grab each associated
message if its corresponding misunderstanding's count is above the threshold | "Based on the student's answer (input_lines), we grab each associated\n message if its corresponding misunderstanding's count is above the threshold" | 141 | false | okpy/ok-client | show_guidance_msg | 40,720 | |
LDU_FT/ramrod-project/database-brain/get_targets | LDU_FT | [
"<BEGIN>\n## `deprecated_function`",
"decorator to annotate deprecated functions",
" usage @decorator(replacement=\"brain.whatever.new_function\")",
" :param func_: <callable>\n :param replacement: <str>\n :param args: positional arguments\n :param kwargs:\n :return: <func_'s return value>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_targets API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_targets API.
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... | get_brain_targets function from Brain.Targets table.
:return: <generator> yields dict objects | "get_brain_targets function from Brain.Targets table.\n\n :return: <generator> yields dict objects" | 165 | false | ramrod-project/database-brain | get_targets | 40,721 | |
LDU_FT/mLewisLogic/foursquare/_attach_endpoints | LDU_FT | [
"<BEGIN>\n## `_log_and_raise_exception`",
"Calls log.error() then raises an exception of class cls\n<END>",
"<BEGIN>\n## `_get`",
"Tries to GET data from an endpoint using retries\n<END>",
"<BEGIN>\n## `_process_response`",
"Make the request and handle exception processing\n<END>",
"<BEGIN>\n## `_foursq... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _attach_endpoints API.
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 _attach_endpoints API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Dynamically attach endpoint callables to this client | "Dynamically attach endpoint callables to this client" | 10 | false | mLewisLogic/foursquare | _attach_endpoints | 40,722 | |
LDU_FT/cdgriffith/puremagic/_identify_all | LDU_FT | [
"<BEGIN>\n## `_max_lengths`",
"The length of the largest magic string + its offset\n<END>",
"<BEGIN>\n## `_confidence`",
"Rough confidence based on string length and file extension\n<END>",
"<BEGIN>\n## `_identify_all`",
"Attempt to identify 'data' by its magic numbers\n<END>",
"<BEGIN>\n## `_magic`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _identify_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _identify_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 ext... | Attempt to identify 'data' by its magic numbers | "Attempt to identify 'data' by its magic numbers" | 23 | false | cdgriffith/puremagic | _identify_all | 40,723 | |
LDU_FT/SciTools/biggus/size | LDU_FT | [
"<BEGIN>\n## `_groups_of_size`",
"Collect data into fixed-length chunks or blocks.\n<END>",
"<BEGIN>\n## `slice_repr`",
"Turn things like `slice(None, 2, -1)` into `:2:-1`.\n<END>",
"<BEGIN>\n## `biggus_chunk`",
"A function that lazily evaluates a biggus.Chunk. This is useful for\n passing through ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size API.
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 size API.
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... | Return a human-readable description of the number of bytes required
to store the data of the given array.
For example::
>>> array.nbytes
14000000
>> biggus.size(array)
'13.35 MiB'
Parameters
----------
array : array-like object
The array object must provide... | "Return a human-readable description of the number of bytes required\n to store the data of the given array.\n\n For example::\n\n >>> array.nbytes\n 14000000\n >> biggus.size(array)\n '13.35 MiB'\n\n Parameters\n ----------\n array : array-like object\n The array objec... | 105 | false | SciTools/biggus | size | 40,724 | |
LDU_FT/soasme/rio/get_data_by_hex_uuid_or_404 | LDU_FT | [
"<BEGIN>\n## `urlopen`",
"A slightly safer version of ``urlib2.urlopen`` which prevents redirection\n and ensures the URL isn't attempting to hit a blacklisted IP range.\n<END>",
"<BEGIN>\n## `extract_response`",
"Extract requests response object.",
" only extract those status_code in [200, 300).",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_by_hex_uuid_or_404 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_data_by_hex_uuid_or_404 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 instance data by uuid and kind. Raise 404 Not Found if there is no data.
This requires model has a `bin_uuid` column.
:param model: a string, model name in rio.models
:param hex_uuid: a hex uuid string in 24-bytes human-readable representation.
:return: a dict. | "Get instance data by uuid and kind. Raise 404 Not Found if there is no data.\n\n This requires model has a `bin_uuid` column.\n\n :param model: a string, model name in rio.models\n :param hex_uuid: a hex uuid string in 24-bytes human-readable representation.\n :return: a dict." | 88 | false | soasme/rio | get_data_by_hex_uuid_or_404 | 40,725 | |
LDU_FT/Rockhopper-Technologies/pluginlib/get_plugin | LDU_FT | [
"<BEGIN>\n## `_items`",
"Args:\n type_filter(list): Optional iterable of types to return (GroupDict only)\n name(str): Only return key by this name",
" Alternative generator for items() method\n<END>",
"<BEGIN>\n## `_filter`",
"Args:\n blacklist(tuple): Iterable of of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_plugin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_plugin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Args:
plugin_type(str): Parent type
name(str): Plugin name
version(str): Plugin version
Returns:
:py:class:`Plugin`: Plugin, or :py:data:`None` if plugin can't be found
Retrieve a specific plugin. ``blacklist`` and ``type_filter`` still apply.
I... | "Args:\n plugin_type(str): Parent type\n name(str): Plugin name\n version(str): Plugin version\n\n Returns:\n :py:class:`Plugin`: Plugin, or :py:data:`None` if plugin can't be found\n\n Retrieve a specific plugin. ``blacklist`` and ``type_filter`` still apply.\n... | 65 | false | Rockhopper-Technologies/pluginlib | get_plugin | 40,726 | |
LDU_FT/FlorianRhiem/pyGLFW/get_monitor_physical_size | LDU_FT | [
"<BEGIN>\n## `_find_library_candidates`",
"Finds and returns filenames which might be the library you are looking for.\n<END>",
"<BEGIN>\n## `_load_library`",
"Finds, loads and returns the most recent version of the library.\n<END>",
"<BEGIN>\n## `_get_library_search_paths`",
"Returns a list of library se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_monitor_physical_size 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_monitor_physical_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Returns the physical size of the monitor.
Wrapper for:
void glfwGetMonitorPhysicalSize(GLFWmonitor* monitor, int* width, int* height); | "Returns the physical size of the monitor.\n\n Wrapper for:\n void glfwGetMonitorPhysicalSize(GLFWmonitor* monitor, int* width, int* height);" | 105 | false | FlorianRhiem/pyGLFW | get_monitor_physical_size | 40,727 | |
LDU_FT/jbm950/pygame_toolbox/set_position | LDU_FT | [
"<BEGIN>\n## `initialize_shade`",
"This method will create semi-transparent surfaces with a specified\n color. The surface can be toggled on and off.\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n Inputs:\n Shade_name - String of the name that you want... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_position API.
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 set_position API.
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... | This method allows the button to be moved manually and keep the click
on functionality.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Inputs:
position - This is the x, y position of the top left corner of the
button. (defining po... | "This method allows the button to be moved manually and keep the click\n on functionality.\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n Inputs:\n position - This is the x, y position of the top left corner of the\n button. (defin... | 35 | false | jbm950/pygame_toolbox | set_position | 40,728 | |
LDU_FT/ConsenSys/mythril-classic/get | LDU_FT | [
"<BEGIN>\n## `_get_account`",
"Get account by address.",
" :param address:\n :return:\n<END>",
"<BEGIN>\n## `_get_block_hash`",
"Get block hash by block number.",
" :param number:\n :return:\n<END>",
"<BEGIN>\n## `_get_head_block`",
"Get head block header.",
" :ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Get a function text signature for a byte signature 1) try local
cache 2) try online lookup (if enabled; if not flagged as unavailable)
:param byte_sig: function signature hash as hexstr
:param online_timeout: online lookup timeout
:return: list of matching function text signatures | "Get a function text signature for a byte signature 1) try local\n cache 2) try online lookup (if enabled; if not flagged as unavailable)\n\n :param byte_sig: function signature hash as hexstr\n :param online_timeout: online lookup timeout\n :return: list of matching function text signatures... | 376 | false | ConsenSys/mythril-classic | get | 40,729 | |
LDU_FT/wuher/devil/_create_object | LDU_FT | [
"<BEGIN>\n## `create`",
"Create object from the given data.",
" The given data may or may not have been validated prior to calling\n this function. This function will try its best in creating the object.\n If the resulting object cannot be produced, raises ``ValidationError``.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Create a python object from the given data.
This will use ``self.factory`` object's ``create()`` function to
create the data.
If no factory is defined, this will simply return the same data
that was given. | "Create a python object from the given data.\n\n This will use ``self.factory`` object's ``create()`` function to\n create the data.\n\n If no factory is defined, this will simply return the same data\n that was given." | 193 | false | wuher/devil | _create_object | 40,730 | |
LDU_FT/geronimp/graftM/write_tabular_otu_table | LDU_FT | [
"<BEGIN>\n## `_write_consensus_strings`",
"Writes the taxonomy of each leaf to a file. If the leaf has no\n taxonomy, a taxonomy string will be created using the annotations\n provided to the ancestor nodes of that leaf (meaning, it will be\n decorated).",
" Parameters\n -----... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_tabular_otu_table API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_tabular_otu_table API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | A function that takes a hash of trusted placements, and compiles them
into an OTU-esque table. | "A function that takes a hash of trusted placements, and compiles them\n into an OTU-esque table." | 334 | false | geronimp/graftM | write_tabular_otu_table | 40,731 | |
LDU_FT/cebel/pyuniprot/db_import_xml | LDU_FT | [
"<BEGIN>\n## `get_args`",
"Check allowed argument names and return is as dictionary\n<END>",
"<BEGIN>\n## `query_disease`",
"Returns list of diseases by query parameters\n ---",
" tags:",
" - Query functions",
" parameters:",
" - name: identifier\n in: query\n type: st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db_import_xml API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db_import_xml API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Updates the CTD database
1. downloads gzipped XML
2. drops all tables in database
3. creates all tables in database
4. import XML
5. close session
:param Optional[list[int]] taxids: list of NCBI taxonomy identifier
:param str url: iterable of URL strings... | "Updates the CTD database\n \n 1. downloads gzipped XML\n 2. drops all tables in database\n 3. creates all tables in database\n 4. import XML\n 5. close session\n\n :param Optional[list[int]] taxids: list of NCBI taxonomy identifier\n :param str url: iterable of U... | 416 | false | cebel/pyuniprot | db_import_xml | 40,732 | |
LDU_FT/tango-controls/pytango/__to_dev_failed | LDU_FT | [
"<BEGIN>\n## `get_object_executor`",
"Returns the proper executor for the given object.",
" If the object has *_executors* and *_green_mode* members it returns\n the submit callable for the executor corresponding to the green_mode.\n Otherwise it returns the global executor for the given green_mode.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __to_dev_failed API.
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 __to_dev_failed API.
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... | to_dev_failed(exc_type, exc_value, traceback) -> tango.DevFailed
Generate a TANGO DevFailed exception.
The exception is created with a single :class:`~tango.DevError`
object. A default value *tango.ErrSeverity.ERR* is defined for
the :class:`~tango.DevError` severity fie... | "to_dev_failed(exc_type, exc_value, traceback) -> tango.DevFailed\n\n Generate a TANGO DevFailed exception.\n The exception is created with a single :class:`~tango.DevError`\n object. A default value *tango.ErrSeverity.ERR* is defined for\n the :class:`~tango.DevError` severi... | 577 | false | tango-controls/pytango | __to_dev_failed | 40,733 | |
LDU_FT/tcalmant/ipopo/matches | LDU_FT | [
"<BEGIN>\n## `__conn_listener`",
"Connection event listener",
" :param state: The new connection state\n<END>",
"<BEGIN>\n## `__path`",
"Adds the prefix to the given path",
" :param path: Z-Path\n :return: Prefixed Z-Path\n<END>",
"<BEGIN>\n## `create`",
"Creates a ZooKeeper node"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the matches API.
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 matches API.
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... | Tests if the given properties matches this LDAP filter and its children
:param properties: A dictionary of properties
:return: True if the properties matches this filter, else False | "Tests if the given properties matches this LDAP filter and its children\n\n :param properties: A dictionary of properties\n :return: True if the properties matches this filter, else False" | 1,396 | true | tcalmant/ipopo | matches | 40,734 | |
LDU_FT/keans/lmnotify/discover_upnp_devices | LDU_FT | [
"<BEGIN>\n## `_exec`",
"execute a command at the device using the RESTful API",
" :param str cmd: one of the REST commands, e.g. GET or POST\n :param str url: URL of the REST API the command should be applied to\n :param dict json_data: json data that should be attached to the command\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discover_upnp_devices 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 discover_upnp_devices API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | sends an SSDP discovery packet to the network and collects
the devices that replies to it. A dictionary is returned
using the devices unique usn as key | "sends an SSDP discovery packet to the network and collects\n the devices that replies to it. A dictionary is returned\n using the devices unique usn as key" | 69 | false | keans/lmnotify | discover_upnp_devices | 40,735 | |
LDU_FT/GoogleCloudPlatform/python-repo-tools/update_req | LDU_FT | [
"<BEGIN>\n## `read_config`",
"Reads pylintrc config into native ConfigParser object.",
" Args:\n contents (str): The contents of the file containing the INI config.",
" Returns:\n ConfigParser.ConfigParser: The parsed configuration.\n<END>",
"<BEGIN>\n## `load_local_config`",
"Loads th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_req API.
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 update_req API.
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... | Updates a given req object with the latest version. | "Updates a given req object with the latest version." | 57 | false | GoogleCloudPlatform/python-repo-tools | update_req | 40,736 | |
LDU_FT/signaturit/python-sdk/get_branding | LDU_FT | [
"<BEGIN>\n## `get_signature`",
"Get a concrete Signature\n @return Signature data\n<END>",
"<BEGIN>\n## `download_audit_trail`",
"Get the audit trail of concrete document\n @signature_id: Id of signature\n @document_id: Id of document\n<END>",
"<BEGIN>\n## `download_signed_document`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_branding API.
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_branding API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Get a concrete branding
@branding_id: Id of the branding to fetch
@return Branding | "Get a concrete branding\n @branding_id: Id of the branding to fetch\n @return Branding" | 52 | false | signaturit/python-sdk | get_branding | 40,737 | |
LDU_FT/guma44/GEOparse/_get_metadata_as_string | LDU_FT | [
"<BEGIN>\n## `download`",
"Download SRA files.",
" Returns:\n :obj:`list` of :obj:`str`: List of downloaded files.\n<END>",
"<BEGIN>\n## `add_log_file`",
"Add log file.",
" Args:\n path (:obj:`str`): Path to the log file.\n<END>",
"<BEGIN>\n## `_sra_download_worker`",
"A wo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_metadata_as_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_metadata_as_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... | Get the metadata as SOFT formatted string. | "Get the metadata as SOFT formatted string." | 142 | false | guma44/GEOparse | _get_metadata_as_string | 40,738 | |
LDU_FT/mbr/tinyrpc/call_all | LDU_FT | [
"<BEGIN>\n## `error_respond`",
"Converts the error to an error response object.",
" :return: An error response object ready to be serialized and sent to the client.\n :rtype: :py:class:`JSONRPCErrorResponse`\n<END>",
"<BEGIN>\n## `error_respond`",
"Create an error response to this request.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_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 extracte... | Calls the methods in the request in parallel.
When the :py:mod:`gevent` module is already loaded it is assumed to be
correctly initialized, including monkey patching if necessary.
In that case the RPC calls defined by ``requests`` is performed in
parallel otherwise the methods are calle... | "Calls the methods in the request in parallel.\n\n When the :py:mod:`gevent` module is already loaded it is assumed to be\n correctly initialized, including monkey patching if necessary.\n In that case the RPC calls defined by ``requests`` is performed in\n parallel otherwise the methods are... | 120 | false | mbr/tinyrpc | call_all | 40,739 | |
LDU_FT/common-workflow-language/schema_salad/make_field_objects | LDU_FT | [
"<BEGIN>\n## `declare_type`",
"Add this type to our collection, if needed.\n<END>",
"<BEGIN>\n## `add_namespaces`",
"Collect the provided namespaces, checking for conflicts.\n<END>",
"<BEGIN>\n## `collect_namespaces`",
"Walk through the metadata object, collecting namespace declarations.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_field_objects API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_field_objects API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | We're going to need to make message parameters too. | "We're going to need to make message parameters too." | 53 | false | common-workflow-language/schema_salad | make_field_objects | 40,740 | |
LDU_FT/econ-ark/HARK/derivativeY | LDU_FT | [
"<BEGIN>\n## `calcLogSumChoiceProbs`",
"Returns the final optimal value and choice probabilities given the choice\n specific value functions `Vals`. Probabilities are degenerate if sigma == 0.0.\n Parameters\n ----------\n Vals : [numpy.array]\n A numpy.array that holds choice specific values a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the derivativeY API.
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 derivativeY API.
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... | Evaluates the partial derivative with respect to y (the third argument)
of the interpolated function at the given input.
Parameters
----------
w : np.array or float
Real values to be evaluated in the interpolated function.
x : np.array or float
Real value... | "Evaluates the partial derivative with respect to y (the third argument)\n of the interpolated function at the given input.\n\n Parameters\n ----------\n w : np.array or float\n Real values to be evaluated in the interpolated function.\n x : np.array or float\n R... | 1,253 | true | econ-ark/HARK | derivativeY | 40,741 | |
LDU_FT/jorisroovers/gitlint/from_local_repository | LDU_FT | [
"<BEGIN>\n## `find_rule_classes`",
"Searches a given directory or python module for rule classes. This is done by\n adding the directory path to the python path, importing the modules and then finding\n any Rule class in those modules.",
" :param extra_path: absolute directory or file path to search fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_local_repository 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 from_local_repository API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Retrieves the git context from a local git repository.
:param repository_path: Path to the git repository to retrieve the context from
:param refspec: The commit(s) to retrieve | "Retrieves the git context from a local git repository.\n :param repository_path: Path to the git repository to retrieve the context from\n :param refspec: The commit(s) to retrieve" | 58 | false | jorisroovers/gitlint | from_local_repository | 40,742 | |
LDU_FT/harlowja/notifier/is_registered | LDU_FT | [
"<BEGIN>\n## `register_deregister`",
"Context manager that registers a callback, then deregisters on exit.",
" NOTE(harlowja): if the callback is none, then this registers nothing, which\n is different from the behavior of the ``register`` method\n which will *not* accep... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_registered API.
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 is_registered API.
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... | Check if a callback is registered.
:param event_type: event type callback was registered to
:param callback: callback that was used during registration
:param details_filter: details filter that was used during
registration
:returns: if the callback is re... | "Check if a callback is registered.\n\n :param event_type: event type callback was registered to\n :param callback: callback that was used during registration\n :param details_filter: details filter that was used during\n registration\n\n :returns: if the callba... | 42 | false | harlowja/notifier | is_registered | 40,743 | |
LDU_FT/ludbb/secp256k1-py/ecdsa_signature_normalize | LDU_FT | [
"<BEGIN>\n## `ecdsa_signature_normalize`",
"Check and optionally convert a signature to a normalized lower-S form.\n If check_only is True then the normalized signature is not returned.",
" This function always return a tuple containing a boolean (True if\n not previously normalized or Fals... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ecdsa_signature_normalize 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 ecdsa_signature_normalize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Check and optionally convert a signature to a normalized lower-S form.
If check_only is True then the normalized signature is not returned.
This function always return a tuple containing a boolean (True if
not previously normalized or False if signature was already
normalized), and the ... | "Check and optionally convert a signature to a normalized lower-S form.\n If check_only is True then the normalized signature is not returned.\n\n This function always return a tuple containing a boolean (True if\n not previously normalized or False if signature was already\n normalized), an... | 13 | false | ludbb/secp256k1-py | ecdsa_signature_normalize | 40,744 | |
LDU_FT/treycucco/bidon/open | LDU_FT | [
"<BEGIN>\n## `_normalize_name`",
"Returns a normalized element tag or attribute name. A tag name or attribute name can be given\n either as a string, or as a 2-tuple. If a 2-tuple, it is interpreted as (namespace, name) and is\n returned joined by a colon \":\"",
" :name: a string or a 2-tuple of strings\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Writes an opening element.
:name: the name of the element
:attrs: a dict of attributes
:close: if True, close will be called immediately after writing the element | "Writes an opening element.\n\n :name: the name of the element\n :attrs: a dict of attributes\n :close: if True, close will be called immediately after writing the element" | 436 | false | treycucco/bidon | open | 40,745 | |
LDU_FT/mpapi/lazylights/_retry | LDU_FT | [
"<BEGIN>\n## `parse_packet`",
"Parses a Lifx data packet (as a bytestring), returning into a Header object\n for the fields that are common to all data packets, and a bytestring of\n payload data for the type-specific fields (suitable for passing to\n `parse_payload`).\n<END>",
"<BEGIN>\n## `parse_payl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _retry API.
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 _retry API.
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 ... | An iterator of pairs of (attempt number, event set), checking whether
`event` is set up to `attempts` number of times, and delaying `delay`
seconds in between.
Terminates as soon as `event` is set, or until `attempts` have been made.
Intended to be used in a loop, as in:
for num, ok in _retry... | "An iterator of pairs of (attempt number, event set), checking whether\n `event` is set up to `attempts` number of times, and delaying `delay`\n seconds in between.\n\n Terminates as soon as `event` is set, or until `attempts` have been made.\n\n Intended to be used in a loop, as in:\n\n for num, ok ... | 63 | false | mpapi/lazylights | _retry | 40,746 | |
LDU_FT/adamhadani/python-yelp/by_phone | LDU_FT | [
"<BEGIN>\n## `_http_request`",
"Perform an HTTP Request using base_url and parameters\n given by kwargs. \n Results are expected to be given in JSON format\n and are parsed to python data structures.\n<END>",
"<BEGIN>\n## `by_bounding_box`",
"Perform a Yelp Review Search based on a map bo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_phone API.
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 by_phone API.
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... | Perform a Yelp Phone API Search based on phone number given.
Args:
phone - Phone number to search by
cc - ISO 3166-1 alpha-2 country code. (Optional) | "Perform a Yelp Phone API Search based on phone number given.\n\n Args:\n phone - Phone number to search by\n cc - ISO 3166-1 alpha-2 country code. (Optional)" | 20 | false | adamhadani/python-yelp | by_phone | 40,747 | |
LDU_FT/zhemao/funktown/assoc | LDU_FT | [
"<BEGIN>\n## `assoc`",
"Returns a new ImmutableDict instance with value associated with key.\n The implicit parameter is not modified.\n<END>",
"<BEGIN>\n## `update`",
"Takes the same arguments as the update method in the builtin dict\n class. However, this version returns a new ImmutableDict in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assoc API.
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 assoc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Return a new vector with value associated at index. The implicit
parameter is not modified. | "Return a new vector with value associated at index. The implicit\n parameter is not modified." | 18 | false | zhemao/funktown | assoc | 40,748 | |
LDU_FT/thombashi/pytablereader/create_from_format_name | LDU_FT | [
"<BEGIN>\n## `load`",
"Extract tabular data as |TableData| instances from a CSV file.\n |load_source_desc_file|",
" :return:\n Loaded table data.\n |load_table_name_desc|",
" =================== ========================================\n Format specif... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_format_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_format_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Create a file loader from a format name.
Supported file formats are as follows:
========================== ======================================
Format name Loader
========================== ======================================
``"csv"`` ... | "Create a file loader from a format name.\n Supported file formats are as follows:\n\n ========================== ======================================\n Format name Loader\n ========================== ======================================\n ``\"csv... | 140 | false | thombashi/pytablereader | create_from_format_name | 40,749 | |
LDU_FT/matthiask/django-cte-forest/_ensure_parameters | LDU_FT | [
"<BEGIN>\n## `_ensure_parameters`",
"Attempts to load and verify the CTE node parameters. Will use\n default values for all missing parameters, and raise an exception if\n a parameter's value cannot be verified. This method will only\n perform these actions once, and set the :attr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ensure_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ensure_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.
Th... | Attempts to load and verify the CTE node parameters. Will use
default values for all missing parameters, and raise an exception if
a parameter's value cannot be verified. This method will only
perform these actions once, and set the :attr:`_parameters_checked`
attribute t... | "Attempts to load and verify the CTE node parameters. Will use\n default values for all missing parameters, and raise an exception if\n a parameter's value cannot be verified. This method will only\n perform these actions once, and set the :attr:`_parameters_checked`\n attrib... | 153 | false | matthiask/django-cte-forest | _ensure_parameters | 40,750 | |
LDU_FT/nephila/djangocms-page-tags/get_page_tags_from_request | LDU_FT | [
"<BEGIN>\n## `get_cache_key`",
"Create the cache key for the current page and tag type\n<END>",
"<BEGIN>\n## `get_page_tags`",
"Retrieves all the tags for a Page instance.",
" :param page: a Page instance",
" :return: list or queryset of attached tags\n :type: List\n<END>",
"<BEGIN>\n## `page_h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_page_tags_from_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_page_tags_from_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Get the list of tags attached to a Page or a Title from a request from usual
`page_lookup` parameters.
:param request: request object
:param page_lookup: a valid page_lookup argument
:param lang: a language code
:param site: a site id
:param title: a boolean to extract the Page (if False) or T... | "Get the list of tags attached to a Page or a Title from a request from usual\n `page_lookup` parameters.\n\n :param request: request object\n :param page_lookup: a valid page_lookup argument\n :param lang: a language code\n :param site: a site id\n :param title: a boolean to extract the Page (if Fal... | 26 | false | nephila/djangocms-page-tags | get_page_tags_from_request | 40,751 | |
LDU_FT/nameko/nameko/_kill_worker_threads | LDU_FT | [
"<BEGIN>\n## `run_services`",
"Serves a number of services for a contextual block.\n The caller can specify a number of service classes then serve them either\n stopping (default) or killing them on exiting the contextual block.",
" Example::",
" with run_services(config, Foobar, Spam) as runn... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _kill_worker_threads 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 _kill_worker_threads API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Kill any currently executing worker threads.
See :meth:`ServiceContainer.spawn_worker` | "Kill any currently executing worker threads.\n\n See :meth:`ServiceContainer.spawn_worker`" | 155 | false | nameko/nameko | _kill_worker_threads | 40,752 | |
LDU_FT/combust/mleap/sent2vec | LDU_FT | [
"<BEGIN>\n## `fit`",
"Fit label encoder",
" Parameters\n ----------\n y : array-like of shape (n_samples,)\n Target values.",
" Returns\n -------\n self : returns an instance of self.\n<END>",
"<BEGIN>\n## `fit_transform`",
"Fit label encoder and return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sent2vec API.
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 sent2vec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Used with sqrt kernel
:param words:
:param transformer:
:return: | "Used with sqrt kernel\n :param words:\n :param transformer:\n :return:" | 34 | false | combust/mleap | sent2vec | 40,753 | |
LDU_FT/TheGhouls/oct/configure_for_turret | LDU_FT | [
"<BEGIN>\n## `copy_config`",
"Copy current config file to output directory\n<END>",
"<BEGIN>\n## `run`",
"Start an oct project",
" :param Namespace args: the commande-line arguments\n<END>",
"<BEGIN>\n## `from_template`",
"Create a new oct project from existing template",
" :param Namespace args... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_for_turret 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 configure_for_turret API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Load the configuration file in python dict and check for keys that will be set to default value if not present
:param str project_name: the name of the project
:param str config_file: the path of the configuration file
:return: the loaded configuration
:rtype: dict | "Load the configuration file in python dict and check for keys that will be set to default value if not present\n\n :param str project_name: the name of the project\n :param str config_file: the path of the configuration file\n :return: the loaded configuration\n :rtype: dict" | 101 | false | TheGhouls/oct | configure_for_turret | 40,754 | |
LDU_FT/Murali-group/halp/add_hypernode | LDU_FT | [
"<BEGIN>\n## `_combine_attribute_arguments`",
"Combines attr_dict and attr dictionaries, by updating attr_dict\n with attr.",
" :param attr_dict: dictionary of attributes of the node.\n :param attr: keyword arguments of attributes of the node;\n attr's values will ove... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_hypernode API.
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 add_hypernode API.
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... | Adds a hypernode to the graph, along with any related attributes
of the hypernode.
:param hypernode: reference to the hypernode being added.
:param nodes: reference to the set of nodes that compose
the hypernode.
:param in_hypernodes: set of references to the hypernodes th... | "Adds a hypernode to the graph, along with any related attributes\n of the hypernode.\n\n :param hypernode: reference to the hypernode being added.\n :param nodes: reference to the set of nodes that compose\n \t\t\tthe hypernode.\n :param in_hypernodes: set of references to the hyp... | 278 | false | Murali-group/halp | add_hypernode | 40,755 | |
LDU_FT/MillionIntegrals/vel/restore | LDU_FT | [
"<BEGIN>\n## `histogram_info`",
"Return extra information about histogram\n<END>",
"<BEGIN>\n## `sample`",
"Sample from a greedy strategy with given q-value histogram\n<END>",
"<BEGIN>\n## `sample_forward_transitions`",
"Sample transitions from replay buffer with _forward steps_.\n That is, instead... | 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 learning from intermediate state. | "Restore learning from intermediate state." | 279 | false | MillionIntegrals/vel | restore | 40,756 | |
LDU_FT/instaloader/instaloader/download_highlights | LDU_FT | [
"<BEGIN>\n## `save_structure_to_file`",
"Saves a :class:`Post`, :class:`Profile` or :class:`StoryItem` to a '.json' or '.json.xz' file such that it can\n later be loaded by :func:`load_structure_from_file`.",
" If the specified filename ends in '.xz', the file will be LZMA compressed. Otherwise, a pretty-... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_highlights 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 download_highlights 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... | Download available highlights from a user whose ID is given.
To use this, one needs to be logged in.
.. versionadded:: 4.1
:param user: ID or Profile of the user whose highlights should get downloaded.
:param fast_update: If true, abort when first already-downloaded picture is encounte... | "Download available highlights from a user whose ID is given.\n To use this, one needs to be logged in.\n\n .. versionadded:: 4.1\n\n :param user: ID or Profile of the user whose highlights should get downloaded.\n :param fast_update: If true, abort when first already-downloaded picture is e... | 227 | false | instaloader/instaloader | download_highlights | 40,757 | |
LDU_FT/jreese/tasky/sigint | LDU_FT | [
"<BEGIN>\n## `sleep`",
"Simple wrapper around `asyncio.sleep()`.\n<END>",
"<BEGIN>\n## `stop`",
"Cancel the task if it hasn't yet started, or tell it to\n gracefully stop running if it has.\n<END>",
"<BEGIN>\n## `task`",
"Return a running Task object matching the given name or class.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sigint API.
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 sigint API.
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 ... | Handle the user pressing Ctrl-C by stopping tasks nicely at first,
then forcibly upon further presses. | "Handle the user pressing Ctrl-C by stopping tasks nicely at first,\n then forcibly upon further presses." | 42 | false | jreese/tasky | sigint | 40,758 | |
LDU_FT/twidi/django-adv-cache-tag/hash_args | LDU_FT | [
"<BEGIN>\n## `prepare_params`",
"Prepare the parameters passed to the templatetag\n<END>",
"<BEGIN>\n## `get_expire_time`",
"Return the expire time passed to the templatetag.\n Must be None or an integer.\n<END>",
"<BEGIN>\n## `get_version`",
"Return the stringified version passed to the templateta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_args API.
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 hash_args API.
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... | Take all the arguments passed after the fragment name and return a
hashed version which will be used in the cache key | "Take all the arguments passed after the fragment name and return a\n hashed version which will be used in the cache key" | 34 | false | twidi/django-adv-cache-tag | hash_args | 40,759 | |
LDU_FT/apple/turicreate/hash | LDU_FT | [
"<BEGIN>\n## `ReadTag`",
"Read a tag from the buffer, and return a (tag_bytes, new_pos) tuple.",
" We return the raw bytes of the tag rather than decoding them. The raw\n bytes can then be used to look up the proper decoder. This effectively allows\n us to trade some work that would be done in pure-python ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash API.
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 hash API.
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 an SArray with a hash of each element. seed can be used
to change the hash function to allow this method to be used for
random number generation.
Parameters
----------
seed : int
Defaults to 0. Can be changed to different values to get
different h... | "Returns an SArray with a hash of each element. seed can be used\n to change the hash function to allow this method to be used for\n random number generation.\n\n Parameters\n ----------\n seed : int\n Defaults to 0. Can be changed to different values to get\n di... | 7,340 | true | apple/turicreate | hash | 40,760 | |
LDU_FT/pytroll/pyorbital/avhrr_gac | LDU_FT | [
"<BEGIN>\n## `gmst`",
"Greenwich mean sidereal utc_time, in radians.",
" As defined in the AIAA 2006 implementation:\n http://www.celestrak.com/publications/AIAA/2006-6753/\n<END>",
"<BEGIN>\n## `sun_ecliptic_longitude`",
"Ecliptic longitude of the sun at *utc_time*.\n<END>",
"<BEGIN>\n## `sun_ra_de... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the avhrr_gac API.
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 avhrr_gac API.
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... | Definition of the avhrr instrument, gac version
Source: NOAA KLM User's Guide, Appendix J
http://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/klm/html/j/app-j.htm | "Definition of the avhrr instrument, gac version\n\n Source: NOAA KLM User's Guide, Appendix J\n http://www.ncdc.noaa.gov/oa/pod-guide/ncdc/docs/klm/html/j/app-j.htm" | 83 | false | pytroll/pyorbital | avhrr_gac | 40,761 | |
LDU_FT/carpedm20/ndrive/getDiskSpace | LDU_FT | [
"<BEGIN>\n## `login`",
"Log in Naver and get cookie",
" Agrs:\n user_id: Naver account's login id\n password: Naver account's login password",
" Returns:\n True: Login success\n False: Login failed",
" Remarks:\n self.cookie is a di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getDiskSpace API.
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 getDiskSpace API.
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... | getDiskSpace
Args:
file_path: Full path for a file you want to checkUpload
upload_path: Ndrive path where you want to upload file
ex) /Picture/
Returns:
True: Possible to upload a file with a given file_size
False: Impossible to upload a ... | "getDiskSpace\n\n Args:\n file_path: Full path for a file you want to checkUpload\n upload_path: Ndrive path where you want to upload file\n ex) /Picture/\n\n Returns:\n True: Possible to upload a file with a given file_size\n False: Impossible to... | 170 | false | carpedm20/ndrive | getDiskSpace | 40,762 | |
LDU_FT/pseudo-lang/pseudo/generate | LDU_FT | [
"<BEGIN>\n## `safe_serialize_type`",
"serialize only with letters, numbers and _\n<END>",
"<BEGIN>\n## `generate`",
"generates code based on templates and gen functions\n defined in the <x> lang generator\n<END>",
"<BEGIN>\n## `_parse_template`",
"Pare smart indented templates",
" Takes a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API.
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 generate API.
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 output code in `language`
`pseudo_ast` can be a plain `dict` with ast data or
it can use the internal `pseudo` `Node(type, **fields)` format
if you want to play with it, you can use `generate_main` which
expects just a dict node / a list of dict nodes and a language
`language` can be 'p... | "generate output code in `language`\n\n `pseudo_ast` can be a plain `dict` with ast data or\n it can use the internal `pseudo` `Node(type, **fields)` format\n\n if you want to play with it, you can use `generate_main` which \n expects just a dict node / a list of dict nodes and a language\n\n `language` ... | 34 | false | pseudo-lang/pseudo | generate | 40,763 | |
LDU_FT/senaite/senaite.jsonapi/get_parent_info | LDU_FT | [
"<BEGIN>\n## `get`",
"Get a JSON compatible structure for the named attribute\n<END>",
"<BEGIN>\n## `json_data`",
"Get a JSON compatible value of the field\n<END>",
"<BEGIN>\n## `set`",
"Set the attribute to the given value.",
" The keyword arguments represent the other attribute values\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parent_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parent_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 e... | Generate url information for the parent object
:param brain_or_object: A single catalog brain or content object
:type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
:param endpoint: The named URL endpoint for the root of the items
:type endpoint: str/unicode
:returns: URL informat... | "Generate url information for the parent object\n\n :param brain_or_object: A single catalog brain or content object\n :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain\n :param endpoint: The named URL endpoint for the root of the items\n :type endpoint: str/unicode\n :returns: URL i... | 205 | false | senaite/senaite.jsonapi | get_parent_info | 40,764 | |
LDU_FT/bashu/django-watermark/determine_scale | LDU_FT | [
"<BEGIN>\n## `watermark`",
"Returns the URL to a watermarked copy of the image specified.\n<END>",
"<BEGIN>\n## `_get_filesystem_path`",
"Makes a filesystem path from the specified URL path\n<END>",
"<BEGIN>\n## `generate_filename`",
"Comes up with a good filename for the watermarked image\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_scale API.
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 determine_scale API.
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... | Scales an image using a specified ratio, 'F' or 'R'. If `scale` is
'F', the image is scaled to be as big as possible to fit in `img`
without falling off the edges. If `scale` is 'R', the watermark
resizes to a percentage of minimum size of source image. Returns
the scaled `mark`. | "Scales an image using a specified ratio, 'F' or 'R'. If `scale` is\n 'F', the image is scaled to be as big as possible to fit in `img`\n without falling off the edges. If `scale` is 'R', the watermark\n resizes to a percentage of minimum size of source image. Returns\n the scaled `mark`." | 18 | false | bashu/django-watermark | determine_scale | 40,765 | |
LDU_FT/LaoLiulaoliu/pgwrapper/update | LDU_FT | [
"<BEGIN>\n## `_create_connection`",
".. :py:method::",
" If we hava several hosts, we can random choice one to connect\n<END>",
"<BEGIN>\n## `execute`",
".. :py:method::",
" :param bool result: whether query return result\n :rtype: bool",
" .. note::\n True f... | 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 ... | .. :py:method:: update
All module update can user this function.
condition only support string and dictionary.
Usage::
>>> update('dept', {'name': 'design', 'quantity': 3}, {'id': 'we4d'})
update dept set name='design', quantity=3 where id='we4d';
... | ".. :py:method:: update\n\n All module update can user this function.\n condition only support string and dictionary.\n\n Usage::\n\n >>> update('dept', {'name': 'design', 'quantity': 3}, {'id': 'we4d'})\n update dept set name='design', quantity=3 where id='we4d';\n\n ... | 48 | false | LaoLiulaoliu/pgwrapper | update | 40,766 | |
LDU_FT/nkmathew/yasi-sexp-indenter/indent_files | LDU_FT | [
"<BEGIN>\n## `parse_options`",
"Reads command-line arguments",
" >>> parse_options('--indent-comments')\n<END>",
"<BEGIN>\n## `read_file`",
"read_file(fname : str) -> str",
" >>> read_file(r'C:\\\\mine\\\\test.lisp')\n r'(print \"No, no, there\\'s \\\\r\\\\nlife in him!. \")\\\\r\\\\n\\\\r\\\\n'"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indent_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indent_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 extr... | indent_files(fname : str)
1. Creates a backup of the source file(backup_source_file())
2. Reads the files contents(read_file())
3. Indents the code(indent_code())
4. Writes the file or print the indented code(_after_indentation()) | "indent_files(fname : str)\n\n 1. Creates a backup of the source file(backup_source_file())\n 2. Reads the files contents(read_file())\n 3. Indents the code(indent_code())\n 4. Writes the file or print the indented code(_after_indentation())" | 73 | false | nkmathew/yasi-sexp-indenter | indent_files | 40,767 | |
LDU_FT/Autodesk/aomi/diff | LDU_FT | [
"<BEGIN>\n## `seed`",
"Will provision vault based on the definition within a Secretfile\n<END>",
"<BEGIN>\n## `render`",
"Render any provided template. This includes the Secretfile,\n Vault policies, and inline AWS roles\n<END>",
"<BEGIN>\n## `export`",
"Export contents of a Secretfile from the Vault s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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.
The extracted do... | Determine if something has changed or not | "Determine if something has changed or not" | 231 | false | Autodesk/aomi | diff | 40,768 | |
LDU_FT/flatangle/flatlib/isConjNorthNode | LDU_FT | [
"<BEGIN>\n## `_roundSlist`",
"Rounds a signed list over the last element and removes it.\n<END>",
"<BEGIN>\n## `toFloat`",
"Converts string or signed list to float.\n<END>",
"<BEGIN>\n## `inDignities`",
"Returns the dignities of A which belong to B.\n<END>",
"<BEGIN>\n## `receives`",
"Returns the dign... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isConjNorthNode API.
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 isConjNorthNode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Returns if object is conjunct north node. | "Returns if object is conjunct north node." | 248 | false | flatangle/flatlib | isConjNorthNode | 40,769 | |
LDU_FT/nateshmbhat/pyttsx3/setProperty | LDU_FT | [
"<BEGIN>\n## `init`",
"Constructs a new TTS engine instance or reuses the existing instance for\n the driver name.",
" @param driverName: Name of the platform specific driver to use. If\n None, selects the default driver for the operating system.\n @type: str\n @param debug: Debugging output ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setProperty API.
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 setProperty API.
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... | Called by the engine to set a driver property value.
@param name: Name of the property
@type name: str
@param value: Property value
@type value: object | "Called by the engine to set a driver property value.\n\n @param name: Name of the property\n @type name: str\n @param value: Property value\n @type value: object" | 73 | false | nateshmbhat/pyttsx3 | setProperty | 40,770 | |
LDU_FT/bfontaine/term2048/__collapseLineOrCol | LDU_FT | [
"<BEGIN>\n## `adjustColors`",
"Change a few colors depending on the mode to use. The default mode\n doesn't assume anything and avoid using white & black colors. The dark\n mode use white and avoid dark blue while the light mode use black and\n avoid yellow, to give a few examples.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __collapseLineOrCol 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 __collapseLineOrCol 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... | Merge tiles in a line or column according to a direction and return a
tuple with the new line and the score for the move on this line | "Merge tiles in a line or column according to a direction and return a\n tuple with the new line and the score for the move on this line" | 28 | false | bfontaine/term2048 | __collapseLineOrCol | 40,771 | |
LDU_FT/miku/gluish/iter_tsv | LDU_FT | [
"<BEGIN>\n## `write_tsv`",
"Write argument list in `tup` out as a tab-separeated row to the stream.\n<END>",
"<BEGIN>\n## `iter_tsv`",
"If a tuple is given in cols, use the elements as names to construct\n a namedtuple.",
" Columns can be marked as ignored by using ``X`` or ``0`` as column name.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_tsv API.
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 iter_tsv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | If a tuple is given in cols, use the elements as names to construct
a namedtuple.
Columns can be marked as ignored by using ``X`` or ``0`` as column name.
Example (ignore the first four columns of a five column TSV):
::
def run(self):
with self.input().open() as handle:
... | "If a tuple is given in cols, use the elements as names to construct\n a namedtuple.\n\n Columns can be marked as ignored by using ``X`` or ``0`` as column name.\n\n Example (ignore the first four columns of a five column TSV):\n\n ::\n\n def run(self):\n with self.input().open() as handle... | 34 | false | miku/gluish | iter_tsv | 40,772 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.