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/pmacosta/pmisc/_isreal | LDU_FT | [
"<BEGIN>\n## `make_dir`",
"Create the directory of a fully qualified file name if it does not exist.",
" :param fname: File name\n :type fname: string",
" Equivalent to these Bash shell commands:",
" .. code-block:: bash",
" $ fname=\"${HOME}/mydir/myfile.txt\"\n $ dir=$(dirname... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _isreal API.
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 _isreal API.
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... | Determine if an object is a real number.
Both Python standard data types and Numpy data types are supported.
:param obj: Object
:type obj: any
:rtype: boolean | "Determine if an object is a real number.\n\n Both Python standard data types and Numpy data types are supported.\n\n :param obj: Object\n :type obj: any\n\n :rtype: boolean" | 151 | false | pmacosta/pmisc | _isreal | 4,973 | |
LDU_FT/treyhunner/django-simple-history/most_recent | LDU_FT | [
"<BEGIN>\n## `register`",
"Create historical model for `model` and attach history manager to `model`.",
" Keyword arguments:\n app -- App to install historical model into (defaults to model.__module__)\n manager_name -- class attribute name to use for historical manager\n records_class -- class to u... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the most_recent API.
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 most_recent API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns the most recent copy of the instance available in the history. | "Returns the most recent copy of the instance available in the history." | 36 | false | treyhunner/django-simple-history | most_recent | 4,974 | |
LDU_FT/juergberinger/cmdhelper/write | LDU_FT | [
"<BEGIN>\n## `getLogLevelNo`",
"Return numerical log level or raise ValueError.",
" A valid level is either an integer or a string such as WARNING etc.\n<END>",
"<BEGIN>\n## `cmdLine`",
"Return full command line with any necessary quoting.\n<END>",
"<BEGIN>\n## `handleError`",
"Error handling utility... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Write text. An additional attribute terminator with a value of
None is added to the logging record to indicate that StreamHandler
should not add a newline. | "Write text. An additional attribute terminator with a value of\n None is added to the logging record to indicate that StreamHandler\n should not add a newline." | 43 | false | juergberinger/cmdhelper | write | 4,975 | |
LDU_FT/fp12/achallonge/create_tournament | LDU_FT | [
"<BEGIN>\n## `report_winner`",
"report scores and give a winner",
" |methcoro|",
" Args:\n winner: :class:Participant instance\n scores_csv: Comma separated set/game scores with player 1 score first (e.g. \"1-3,3-0,3-2\")",
" Raises:\n ValueError: scores... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_tournament API.
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 create_tournament API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | creates a simple tournament with basic options
|methcoro|
Args:
name: name of the new tournament
url: url of the new tournament (http://challonge.com/url)
tournament_type: Defaults to TournamentType.single_elimination
params: optional params (see http://... | "creates a simple tournament with basic options\n\n |methcoro|\n\n Args:\n name: name of the new tournament\n url: url of the new tournament (http://challonge.com/url)\n tournament_type: Defaults to TournamentType.single_elimination\n params: optional params (se... | 173 | false | fp12/achallonge | create_tournament | 4,976 | |
LDU_FT/maljovec/topopy/build | LDU_FT | [
"<BEGIN>\n## `build`",
"Assigns data to this object and builds the Morse-Smale\n Complex\n @ In, X, an m-by-n array of values specifying m\n n-dimensional samples\n @ In, Y, a m vector of values specifying the output\n responses corresponding to the m samples... | 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... | Assigns data to this object and builds the Morse-Smale
Complex
@ In, X, an m-by-n array of values specifying m
n-dimensional samples
@ In, Y, a m vector of values specifying the output
responses corresponding to the m samples specified by X
@ In, w... | "Assigns data to this object and builds the Morse-Smale\n Complex\n @ In, X, an m-by-n array of values specifying m\n n-dimensional samples\n @ In, Y, a m vector of values specifying the output\n responses corresponding to the m samples specified by X\n ... | 57 | false | maljovec/topopy | build | 4,977 | |
LDU_FT/ewels/MultiQC/exclude_file | LDU_FT | [
"<BEGIN>\n## `star_stats_table`",
"Take the parsed stats from the STAR report and add them to the\n basic stats table at the top of the report\n<END>",
"<BEGIN>\n## `mirtrace_length_plot`",
"Generate the miRTrace Read Length Distribution\n<END>",
"<BEGIN>\n## `mirtrace_contamination_check`",
"Gener... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exclude_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exclude_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Exclude discovered files if they match the special exclude_
search pattern keys | "Exclude discovered files if they match the special exclude_\n search pattern keys" | 532 | false | ewels/MultiQC | exclude_file | 4,978 | |
LDU_FT/RetailMeNotSandbox/acky/Launcher | LDU_FT | [
"<BEGIN>\n## `destroy`",
"Release an EIP. If the EIP was allocated for a VPC instance, an\n AllocationId(aid) must be provided instead of a PublicIp. Setting\n disassociate to True will attempt to disassociate the IP before\n releasing it (required for associated nondefault VPC instances).\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Launcher API.
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 Launcher API.
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... | Provides a configurable launcher for EC2 instances. | "Provides a configurable launcher for EC2 instances." | 32 | false | RetailMeNotSandbox/acky | Launcher | 4,979 | |
LDU_FT/OTA-Insight/djangosaml2idp/get_processor | LDU_FT | [
"<BEGIN>\n## `get_user_id`",
"Get identifier for a user. Take the one defined in settings.SAML_IDP_DJANGO_USERNAME_FIELD first, if not set\n use the USERNAME_FIELD property which is set on the user Model. This defaults to the user.username field.\n<END>",
"<BEGIN>\n## `create_identity`",
"Generate ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_processor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_processor API.
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... | Instantiate user-specified processor or default to an all-access base processor.
Raises an exception if the configured processor class can not be found or initialized. | "Instantiate user-specified processor or default to an all-access base processor.\n Raises an exception if the configured processor class can not be found or initialized." | 16 | false | OTA-Insight/djangosaml2idp | get_processor | 4,980 | |
LDU_FT/isambard-uob/ampal/naccess_available | LDU_FT | [
"<BEGIN>\n## `write_pdb`",
"Writes a pdb file for a list of residues.",
" Parameters\n ----------\n residues : list\n List of Residue objects.\n chain_id : str\n String of the chain id, defaults to ' '.\n alt_states : bool, optional\n If true, include all occupancy states of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the naccess_available API.
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 naccess_available API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | True if naccess is available on the path. | "True if naccess is available on the path." | 84 | false | isambard-uob/ampal | naccess_available | 4,981 | |
LDU_FT/swisscom/cleanerversion/create_current_version_unique_identity_indexes | LDU_FT | [
"<BEGIN>\n## `get_readonly_fields`",
"This is required a subclass of VersionedAdmin has readonly_fields\n ours won't be undone\n<END>",
"<BEGIN>\n## `get_list_display`",
"This method determines which fields go in the changelist\n<END>",
"<BEGIN>\n## `get_list_filter`",
"Adds versionable custom filt... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_current_version_unique_identity_indexes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_current_version_unique_identity_indexes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> i... | Add partial unique indexes for the the identity column of versionable
models.
This enforces that no two *current* versions can have the same identity.
This will only try to create indexes if they do not exist in the database,
so it should be safe to run in a post_migrate signal handler. Running it
... | "Add partial unique indexes for the the identity column of versionable\n models.\n\n This enforces that no two *current* versions can have the same identity.\n\n This will only try to create indexes if they do not exist in the database,\n so it should be safe to run in a post_migrate signal handler. Runnin... | 149 | false | swisscom/cleanerversion | create_current_version_unique_identity_indexes | 4,982 | |
LDU_FT/niklasb/webkit-server/headers | LDU_FT | [
"<BEGIN>\n## `xpath`",
"Finds another node by XPath originating at the current node.\n<END>",
"<BEGIN>\n## `css`",
"Finds another node by a CSS selector relative to the current node.\n<END>",
"<BEGIN>\n## `get_bool_attr`",
"Returns the value of a boolean HTML attribute like `checked` or `disabled`\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the headers API.
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 headers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Returns a list of the last HTTP response headers.
Header keys are normalized to capitalized form, as in `User-Agent`. | "Returns a list of the last HTTP response headers.\n Header keys are normalized to capitalized form, as in `User-Agent`." | 30 | false | niklasb/webkit-server | headers | 4,983 | |
LDU_FT/blockstack/virtualchain/get_backup_blocks | LDU_FT | [
"<BEGIN>\n## `lpad`",
"Left-pad a given string (msg) with a character (symbol) for a given number of bytes (length).\n Return the padded string\n<END>",
"<BEGIN>\n## `changebase`",
"Change a string's characters from one base to another.\n Return the re-encoded string\n<END>",
"<BEGIN>\n## `num_to_var_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_backup_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_backup_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... | Get the set of block IDs that were backed up | "Get the set of block IDs that were backed up" | 491 | false | blockstack/virtualchain | get_backup_blocks | 4,984 | |
LDU_FT/Grokzen/pykwalify/_load_extensions | LDU_FT | [
"<BEGIN>\n## `is_float`",
"Valid types are:\n - objects of float type\n - Strings that can be converted to float. For example '1e-06'\n<END>",
"<BEGIN>\n## `is_timestamp`",
"Yaml either have automatically converted it to a datetime object\n or it is a string that will be validated later.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_extensions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_extensions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Load all extension files into the namespace pykwalify.ext | "Load all extension files into the namespace pykwalify.ext" | 22 | false | Grokzen/pykwalify | _load_extensions | 4,985 | |
LDU_FT/eventbrite/pysoa/close | LDU_FT | [
"<BEGIN>\n## `dict_to_hashable`",
"Takes a dict and returns an immutable, hashable version of that dict that can be used as a key in dicts or as a\n set value. Any two dicts passed in with the same content are guaranteed to return the same value. Any two dicts\n passed in with different content are guarante... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
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 close API.
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... | Only call super().close() if the server is shutting down (not between requests).
:param for_shutdown: If `False` (the default) | "Only call super().close() if the server is shutting down (not between requests).\n\n :param for_shutdown: If `False` (the default)" | 178 | false | eventbrite/pysoa | close | 4,986 | |
LDU_FT/insilichem/ommprotocol/process_forcefield | LDU_FT | [
"<BEGIN>\n## `protocol`",
"Run all the stages in protocol",
" Parameters\n ----------\n handler : SystemHandler\n Container of initial conditions of simulation",
" cfg : dict\n Imported YAML file.\n<END>",
"<BEGIN>\n## `run`",
"Launch MD simulation, which may consist of:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_forcefield 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 process_forcefield 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... | Given a list of filenames, check which ones are `frcmods`. If so,
convert them to ffxml. Else, just return them. | "Given a list of filenames, check which ones are `frcmods`. If so,\n convert them to ffxml. Else, just return them." | 84 | false | insilichem/ommprotocol | process_forcefield | 4,987 | |
LDU_FT/nschloe/meshio/write | LDU_FT | [
"<BEGIN>\n## `read`",
"Reads a (compressed) PERMAS dato or post file.\n<END>",
"<BEGIN>\n## `write`",
"Writes PERMAS dat files, cf.\n http://www.intes.de # PERMAS-ASCII-file-format\n<END>",
"<BEGIN>\n## `_write_families`",
"Write point/cell tag information under FAS/[mesh_name]\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Writes mdpa files, cf.
<https://github.com/KratosMultiphysics/Kratos/wiki/Input-data>. | "Writes mdpa files, cf.\n <https://github.com/KratosMultiphysics/Kratos/wiki/Input-data>." | 33 | false | nschloe/meshio | write | 4,988 | |
LDU_FT/redhat-cip/dci-control-server/_check | LDU_FT | [
"<BEGIN>\n## `get_user_and_check_auth`",
"Check the combination username/password that is valid on the\n database.\n<END>",
"<BEGIN>\n## `retrieve_info`",
"Query the Github API to retrieve the needed infos.\n<END>",
"<BEGIN>\n## `get_last_rconfiguration_id`",
"Get the rconfiguration_id of the last ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check API.
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 _check API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | If the topic has it's export_control set to True then all the teams
under the product team can access to the topic's resources.
:param user:
:param topic:
:return: True if check is ok, False otherwise | "If the topic has it's export_control set to True then all the teams\n under the product team can access to the topic's resources.\n\n :param user:\n :param topic:\n :return: True if check is ok, False otherwise" | 86 | false | redhat-cip/dci-control-server | _check | 4,989 | |
LDU_FT/minrk/findspark/find | LDU_FT | [
"<BEGIN>\n## `find`",
"Find a local spark installation.",
" Will first check the SPARK_HOME env variable, and otherwise\n search common installation locations, e.g. from homebrew\n<END>",
"<BEGIN>\n## `change_rc`",
"Persists changes to environment by changing shell config.",
" Adds lines to .bash... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Find a local spark installation.
Will first check the SPARK_HOME env variable, and otherwise
search common installation locations, e.g. from homebrew | "Find a local spark installation.\n\n Will first check the SPARK_HOME env variable, and otherwise\n search common installation locations, e.g. from homebrew" | 25 | false | minrk/findspark | find | 4,990 | |
LDU_FT/exa-analytics/exa/replace | LDU_FT | [
"<BEGIN>\n## `_create`",
"Globally called function for creating the isotope/element API.\n<END>",
"<BEGIN>\n## `read_tarball`",
"Read a (possibly compressed) tarball archive and return a dictionary of\n editors.",
" .. code-block:: python",
" eds = read_tarball(path, classes=MyEditor) # Al... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace API.
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 replace API.
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... | Replace all instances of a pattern with a replacement.
Args:
pattern (str): Pattern to replace
replacement (str): Text to insert | "Replace all instances of a pattern with a replacement.\n\n Args:\n pattern (str): Pattern to replace\n replacement (str): Text to insert" | 194 | false | exa-analytics/exa | replace | 4,991 | |
LDU_FT/openthread/openthread/__convertIp6PrefixStringToIp6Address | LDU_FT | [
"<BEGIN>\n## `wait_until`",
"Wait until `what` return True",
" Args:\n what (Callable[bool]): Call `wait()` again and again until it returns True\n times (int): Maximum times of trials before giving up",
" Returns:\n True if success, False if times threshold reached\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __convertIp6PrefixStringToIp6Address API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __convertIp6PrefixStringToIp6Address API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | convert IPv6 prefix string to IPv6 dotted-quad format
for example:
2001000000000000 -> 2001::
Args:
strIp6Prefix: IPv6 address string
Returns:
IPv6 address dotted-quad format | "convert IPv6 prefix string to IPv6 dotted-quad format\n for example:\n 2001000000000000 -> 2001::\n\n Args:\n strIp6Prefix: IPv6 address string\n\n Returns:\n IPv6 address dotted-quad format" | 403 | false | openthread/openthread | __convertIp6PrefixStringToIp6Address | 4,992 | |
LDU_FT/frictionlessdata/datapackage-pipelines/is_excluded | LDU_FT | [
"<BEGIN>\n## `_filehash`",
"Return the hash object for the file `filepath', processing the file\n by chunk of `blocksize'.",
" :type filepath: str\n :param filepath: Path to file",
" :type blocksize: int\n :param blocksize: Size of the chunk when processing the file\n<END>",
"<BEGIN>\n## `com... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_excluded API.
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 is_excluded API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return True if `path' should be excluded
given patterns in the `exclude_file'. | "Return True if `path' should be excluded\n given patterns in the `exclude_file'." | 51 | false | frictionlessdata/datapackage-pipelines | is_excluded | 4,993 | |
LDU_FT/nerdynick/PySQLPool/Terminate | LDU_FT | [
"<BEGIN>\n## `getNewConnection`",
"Quickly Create a new PySQLConnection class",
"\t@param host: Hostname for your database\n\t@param username: Username to use to connect to database\n\t@param password: Password to use to connect to database \n\t@param schema: Schema to use\n\t@param port: Port to connect on\n\t... | 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... | Close all open connections
Loop though all the connections and commit all queries and close all the connections.
This should be called at the end of your application.
@author: Nick Verbeck
@since: 5/12/2008 | "Close all open connections\n\t\t\n\t\tLoop though all the connections and commit all queries and close all the connections. \n\t\tThis should be called at the end of your application.\n\t\t\n\t\t@author: Nick Verbeck\n\t\t@since: 5/12/2008" | 59 | false | nerdynick/PySQLPool | Terminate | 4,994 | |
LDU_FT/astroML/gatspy/score_frequency_grid | LDU_FT | [
"<BEGIN>\n## `mode_in_range`",
"Find the mode of values to within a certain range\n<END>",
"<BEGIN>\n## `scores`",
"Compute the scores under the various models",
" Parameters\n ----------\n periods : array_like\n array of periods at which to compute scores",
" Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score_frequency_grid 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 score_frequency_grid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Compute the score on a frequency grid.
Some models can compute results faster if the inputs are passed in this
manner.
Parameters
----------
f0, df, N : (float, float, int)
parameters describing the frequency grid freq = f0 + df * arange(N)
Note that the... | "Compute the score on a frequency grid.\n\n Some models can compute results faster if the inputs are passed in this\n manner.\n\n Parameters\n ----------\n f0, df, N : (float, float, int)\n parameters describing the frequency grid freq = f0 + df * arange(N)\n Not... | 123 | false | astroML/gatspy | score_frequency_grid | 4,995 | |
LDU_FT/LuminosoInsight/ordered-set/symmetric_difference | LDU_FT | [
"<BEGIN>\n## `is_iterable`",
"Are we being asked to look up a list of things, instead of a single thing?\n We check for the `__iter__` attribute so that this can cover types that\n don't have to be known by this module, such as NumPy arrays.",
" Strings, however, should be considered as atomic values t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symmetric_difference 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 symmetric_difference API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return the symmetric difference of two OrderedSets as a new set.
That is, the new set will contain all elements that are in exactly
one of the sets.
Their order will be preserved, with elements from `self` preceding
elements from `other`.
Example:
>>> this = Ordered... | "Return the symmetric difference of two OrderedSets as a new set.\n That is, the new set will contain all elements that are in exactly\n one of the sets.\n\n Their order will be preserved, with elements from `self` preceding\n elements from `other`.\n\n Example:\n >>> this ... | 42 | false | LuminosoInsight/ordered-set | symmetric_difference | 4,996 | |
LDU_FT/isislovecruft/python-gnupg/createKey | LDU_FT | [
"<BEGIN>\n## `get_requirements`",
"Extract the list of requirements from our requirements.txt.",
" :rtype: 2-tuple\n :returns: Two lists, the first is a list of requirements in the form of\n pkgname==version. The second is a list of URIs or VCS checkout strings\n which specify the dependency... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createKey API.
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 createKey API.
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... | Create a new keypair from a **batchfile**.
Writes the new keys into keyrings named after ``NAME_EMAIL`` inside the
``NEWKEY_DIR``.
:params str batchfile: A GnuPG batchfile. See :func:`createBatchfile`. | "Create a new keypair from a **batchfile**.\n\n Writes the new keys into keyrings named after ``NAME_EMAIL`` inside the\n ``NEWKEY_DIR``.\n\n :params str batchfile: A GnuPG batchfile. See :func:`createBatchfile`." | 371 | false | isislovecruft/python-gnupg | createKey | 4,997 | |
LDU_FT/fogcitymarathoner/s3_mysql_backup/s3_get_dir_backup | LDU_FT | [
"<BEGIN>\n## `backup`",
"zips into db_backups_dir and uploads to bucket_name/s3_folder\n fab -f ./fabfile.py backup_dbs\n<END>",
"<BEGIN>\n## `s3_get_dir_backup`",
"get last uploaded directory backup\n :param aws_access_key_id:\n :param aws_secret_access_key:\n :param bucket_name:\n :param s3_f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the s3_get_dir_backup API.
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 s3_get_dir_backup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | get last uploaded directory backup
:param aws_access_key_id:
:param aws_secret_access_key:
:param bucket_name:
:param s3_folder:
:param zip_backups_dir:
:param project:
:return: | "get last uploaded directory backup\n :param aws_access_key_id:\n :param aws_secret_access_key:\n :param bucket_name:\n :param s3_folder:\n :param zip_backups_dir:\n :param project:\n :return:" | 10 | false | fogcitymarathoner/s3_mysql_backup | s3_get_dir_backup | 4,998 | |
LDU_FT/ArtoLabs/SimpleSteem/goodnode | LDU_FT | [
"<BEGIN>\n## `setup`",
"Runs only the first time SimpleSteem() \n is instantiated. Prompts user for the values\n that are then written to config.py\n<END>",
"<BEGIN>\n## `make`",
"takes the arguments and writes them as \n variable / value pairs to config.py\n<END>",
"<BEGIN>\n## `goodno... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the goodnode API.
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 goodnode API.
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... | Goes through the provided list
and returns the first server node
that does not return an error. | "Goes through the provided list\n and returns the first server node\n that does not return an error." | 74 | false | ArtoLabs/SimpleSteem | goodnode | 4,999 | |
LDU_FT/graphql-python/graphql-core/ast_to_code | LDU_FT | [
"<BEGIN>\n## `is_valid_value`",
"Given a type and any value, return True if that value is valid.\n<END>",
"<BEGIN>\n## `get_key_for_schema_and_document_string`",
"This method returns a unique key given a schema and a request_string\n<END>",
"<BEGIN>\n## `document_from_string`",
"This method returns a Grap... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ast_to_code API.
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 ast_to_code API.
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... | Converts an ast into a python code representation of the AST. | "Converts an ast into a python code representation of the AST." | 128 | false | graphql-python/graphql-core | ast_to_code | 5,000 | |
LDU_FT/dingusdk/PythonIhcSdk/re_authenticate | LDU_FT | [
"<BEGIN>\n## `authenticate`",
"Authenticate and enable the registered notifications\n<END>",
"<BEGIN>\n## `get_runtime_value`",
"Get runtime value with re-authenticate if needed\n<END>",
"<BEGIN>\n## `set_runtime_value_bool`",
"Set bool runtime value with re-authenticate if needed\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the re_authenticate API.
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 re_authenticate API.
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... | Authenticate again after failure.
Keep trying with 10 sec interval. If called from the notify thread
we will not have a timeout, but will end if the notify thread has
been cancled.
Will return True if authentication was successful. | "Authenticate again after failure.\n Keep trying with 10 sec interval. If called from the notify thread\n we will not have a timeout, but will end if the notify thread has\n been cancled.\n Will return True if authentication was successful." | 28 | false | dingusdk/PythonIhcSdk | re_authenticate | 5,001 | |
LDU_FT/timknip/pyswf/readBUTTONCONDACTIONSs | LDU_FT | [
"<BEGIN>\n## `export`",
"Export this SWF using the specified exporter. \n When no exporter is passed in the default exporter used \n is swf.export.SVGExporter.",
" Exporters should extend the swf.export.BaseExporter class.",
" @param exporter : the exporter to use\n @param f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readBUTTONCONDACTIONSs 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 readBUTTONCONDACTIONSs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Read zero or more button-condition actions | "Read zero or more button-condition actions" | 43 | false | timknip/pyswf | readBUTTONCONDACTIONSs | 5,002 | |
LDU_FT/reorx/torext/_fix_paths | LDU_FT | [
"<BEGIN>\n## `format_request`",
"Override for better log format",
" Tornado format:\n [INFO 2015-03-24 11:29:57 app:521] 200 GET /static/css/lib/pure-min.css (127.0.0.1) 6.76ms\n Current format:\n [gevent.wsgi] INFO 127.0.0.1 - - [2015-03-24 11:18:45] \"GET /test HTTP/1.1\" 200 304 0... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fix_paths API.
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 _fix_paths API.
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... | fix `static_path` and `template_path` to be absolute
path according to self.root_path so that PWD can be ignoreed. | "fix `static_path` and `template_path` to be absolute\n path according to self.root_path so that PWD can be ignoreed." | 70 | false | reorx/torext | _fix_paths | 5,003 | |
LDU_FT/jermnelson/flask-fedora-commons/replace | LDU_FT | [
"<BEGIN>\n## `build_prefixes`",
"Internal function takes a list of prefix, namespace uri tuples and\n generates a SPARQL PREFIX string.",
" Args:\n namespaces(list): List of tuples, defaults to BIBFRAME and\n Schema.org",
" Returns:\n string\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace API.
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 replace API.
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... | Method replaces a triple for the given entity/subject. Property
name is from the schema.org vocabulary.
Args:
entity_id(string): Unique ID of Fedora object
property_name(string): Prefix and property name i.e. schema:name
old_value(string): Literal or URI of old value... | "Method replaces a triple for the given entity/subject. Property\n name is from the schema.org vocabulary.\n\n Args:\n entity_id(string): Unique ID of Fedora object\n property_name(string): Prefix and property name i.e. schema:name\n old_value(string): Literal or URI of ol... | 57 | false | jermnelson/flask-fedora-commons | replace | 5,004 | |
LDU_FT/gtalarico/airtable-python-wrapper/batch_insert | LDU_FT | [
"<BEGIN>\n## `to_param_dict`",
"Sorts to ensure Order is consistent for Testing\n<END>",
"<BEGIN>\n## `_discover_params`",
"Returns a dict where filter keyword is key, and class is value.\r\n To handle param alias (maxRecords or max_records), both versions are\r\n added.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_insert API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_insert API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Calls :any:`insert` repetitively, following set API Rate Limit (5/sec)
To change the rate limit use ``airtable.API_LIMIT = 0.2``
(5 per second)
>>> records = [{'Name': 'John'}, {'Name': 'Marc'}]
>>> airtable.batch_insert(records)
Args:
records(``list``): Rec... | "Calls :any:`insert` repetitively, following set API Rate Limit (5/sec)\r\n To change the rate limit use ``airtable.API_LIMIT = 0.2``\r\n (5 per second)\r\n\r\n >>> records = [{'Name': 'John'}, {'Name': 'Marc'}]\r\n >>> airtable.batch_insert(records)\r\n\r\n Args:\r\n recor... | 90 | false | gtalarico/airtable-python-wrapper | batch_insert | 5,005 | |
LDU_FT/andymccurdy/redis-py/xtrim | LDU_FT | [
"<BEGIN>\n## `acquire`",
"Use Redis to hold a shared, distributed lock named ``name``.\n Returns True once the lock is acquired.",
" If ``blocking`` is False, always return immediately. If the lock\n was acquired, return True, otherwise return False.",
" ``blocking_timeout`` specif... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xtrim API.
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 xtrim API.
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... | Trims old messages from a stream.
name: name of the stream.
maxlen: truncate old stream messages beyond this size
approximate: actual stream length may be slightly more than maxlen | "Trims old messages from a stream.\n name: name of the stream.\n maxlen: truncate old stream messages beyond this size\n approximate: actual stream length may be slightly more than maxlen" | 308 | false | andymccurdy/redis-py | xtrim | 5,006 | |
LDU_FT/infobloxopen/infoblox-client/delete_object | LDU_FT | [
"<BEGIN>\n## `generate_duid`",
"DUID is consisted of 10 hex numbers.",
" 0x00 + mac with last 3 hex + mac with 6 hex\n<END>",
"<BEGIN>\n## `try_value_to_bool`",
"Tries to convert value into boolean.",
" strict_mode is True:\n - Only string representation of str(True) and str(False)\n are con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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 ext... | Remove an Infoblox object
Args:
ref (str): Object reference
delete_arguments (dict): Extra delete arguments
Returns:
The object reference of the removed object
Raises:
InfobloxException | "Remove an Infoblox object\n\n Args:\n ref (str): Object reference\n delete_arguments (dict): Extra delete arguments\n Returns:\n The object reference of the removed object\n Raises:\n InfobloxException" | 56 | false | infobloxopen/infoblox-client | delete_object | 5,007 | |
LDU_FT/buildbot/buildbot/loadOptionsFile | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parse messages sent by the 'buildbot-cvs-mail' program.\n<END>",
"<BEGIN>\n## `parse`",
"Parse messages sent by the svn 'commit-email.pl' trigger.\n<END>",
"<BEGIN>\n## `parse`",
"Parse branch notification messages sent by Launchpad.\n<END>",
"<BEGIN>\n## `remote_write`",
"Call... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadOptionsFile API.
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 loadOptionsFile API.
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... | Find the .buildbot/options file. Crawl from the current directory
up towards the root, and also look in ~/.buildbot . The first directory
that's owned by the user and has the file we're looking for wins.
Windows skips the owned-by-user test.
@rtype: dict
@return: a dictionary o... | "Find the .buildbot/options file. Crawl from the current directory\n up towards the root, and also look in ~/.buildbot . The first directory\n that's owned by the user and has the file we're looking for wins.\n Windows skips the owned-by-user test.\n\n @rtype: dict\n @return: a dicti... | 518 | false | buildbot/buildbot | loadOptionsFile | 5,008 | |
LDU_FT/collectiveacuity/labPack/_key_digest | LDU_FT | [
"<BEGIN>\n## `_delete`",
"a helper method for non-blocking deletion of files\r",
" :param _file_path: string with path to file to remove \r\n :param _method_title: string with name of method calling _delete\r\n :param _record_key: string with name of record key to delete\r\n :return:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _key_digest API.
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 _key_digest API.
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... | a helper method for creating a base 64 encoded secret key and digest
:param secret_key: string with key to encrypt/decrypt data
:return: string with base64 key, string with base64 digest | "a helper method for creating a base 64 encoded secret key and digest\n :param secret_key: string with key to encrypt/decrypt data\n :return: string with base64 key, string with base64 digest" | 886 | false | collectiveacuity/labPack | _key_digest | 5,009 | |
LDU_FT/morse-talk/morse-talk/samples_nb | LDU_FT | [
"<BEGIN>\n## `decode`",
"Converts a string of morse code into English message",
" The encoded message can also be decoded using the same morse chart\n backwards.",
" >>> code = '... --- ...'\n >>> decode(code)\n 'SOS'\n<END>",
"<BEGIN>\n## `grouper`",
"grouper(3, 'ABCDEFG', 'x') --> ABC... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the samples_nb API.
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 samples_nb API.
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... | Calculate the number of samples for a given word at a given framerate (samples / seconds)
>>> samples_nb('SOS', 15)
23814 | "Calculate the number of samples for a given word at a given framerate (samples / seconds)\n\n >>> samples_nb('SOS', 15)\n 23814" | 111 | false | morse-talk/morse-talk | samples_nb | 5,010 | |
LDU_FT/PSPC-SPAC-buyandsell/von_agent/rev_reg_id2cred_def_id__tag | 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 rev_reg_id2cred_def_id__tag 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 rev_reg_id2cred_def_id__tag API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Given a revocation registry identifier, return its corresponding credential definition identifier and
(stringified int) tag.
:param rr_id: revocation registry identifier
:return: credential definition identifier and tag | "Given a revocation registry identifier, return its corresponding credential definition identifier and\n (stringified int) tag.\n\n :param rr_id: revocation registry identifier\n :return: credential definition identifier and tag" | 285 | false | PSPC-SPAC-buyandsell/von_agent | rev_reg_id2cred_def_id__tag | 5,011 | |
LDU_FT/ARMmbed/mbed-cloud-sdk-python/get_bulk_device_enrollment | LDU_FT | [
"<BEGIN>\n## `add_resource_subscription`",
"Subscribe to a resource path # noqa: E501",
"The Device Management Connect eventing model consists of observable resources. This means that endpoints can deliver updated resource content, periodically or with a more sophisticated solution-dependent logic. The OMA LwM... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bulk_device_enrollment 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_bulk_device_enrollment 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 bulk upload entity # noqa: E501
Provides information on bulk upload for the given ID. For example, the bulk status and the number of processed enrollment identities. Also links to the bulk upload reports are provided. **Example usage:** ``` curl -X GET \\ -H 'Authorization: Bearer <valid access token>' \\... | "Get bulk upload entity # noqa: E501\n\n Provides information on bulk upload for the given ID. For example, the bulk status and the number of processed enrollment identities. Also links to the bulk upload reports are provided. **Example usage:** ``` curl -X GET \\\\ -H 'Authorization: Bearer <valid access token... | 1,479 | true | ARMmbed/mbed-cloud-sdk-python | get_bulk_device_enrollment | 5,012 | |
LDU_FT/saxix/django-sysinfo/get_package_version | LDU_FT | [
"<BEGIN>\n## `merge`",
"merges b into a",
" >>> a={1:{\"a\":\"A\"},2:{\"b\":\"B\"}, 8:[]}\n >>> b={2:{\"c\":\"C\"},3:{\"d\":\"D\"}}",
" >>> c = merge(a, b)\n >>> c == a == {8: [], 1: {\"a\": \"A\"}, 2: {\"c\": \"C\", \"b\": \"B\"}, 3: {\"d\": \"D\"}}\n True",
" >>> c = merge(a, {1: \"a\"})... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_package_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_package_version 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... | # >>> get_package_version('django_sysinfo') == django_sysinfo.__version__
# True
# >>> with mock.patch('pkg_resources.get_distribution', None):
# ... get_package_version('django_sysinfo') == django_sysinfo.__version__
# True
:param application_name:
:param app:
:return:
>>> from mo... | "# >>> get_package_version('django_sysinfo') == django_sysinfo.__version__\n # True\n # >>> with mock.patch('pkg_resources.get_distribution', None):\n # ... get_package_version('django_sysinfo') == django_sysinfo.__version__\n # True\n\n :param application_name:\n :param app:\n :return:\n\n ... | 33 | false | saxix/django-sysinfo | get_package_version | 5,013 | |
LDU_FT/Datary/scrapbag/translate_month_abbr | LDU_FT | [
"<BEGIN>\n## `parse_spss_headerfile`",
"Parse spss header file",
" Arguments:\n path {str} -- path al fichero de cabecera.\n leyend_position -- posicion del la leyenda en el header.\n<END>",
"<BEGIN>\n## `parse_spss_datafile`",
"Parse spss data file",
" Arguments:\n path {str} -... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate_month_abbr 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 translate_month_abbr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Translate the month abbreviation from one locale to another. | "Translate the month abbreviation from one locale to another." | 119 | false | Datary/scrapbag | translate_month_abbr | 5,014 | |
LDU_FT/pvlib/pvlib-python/format_index | LDU_FT | [
"<BEGIN>\n## `systemdef`",
"Generates a dict of system parameters used throughout a simulation.",
" Parameters\n ----------",
" meta : dict\n meta dict either generated from a TMY file using readtmy2 or\n readtmy3, or a dict containing at least the following fields:",
" ===... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Create DatetimeIndex for the Dataframe localized to the timezone provided
as the label of the second (time) column.
Parameters
----------
data: Dataframe
Must contain 'DATE (MM/DD/YYYY)' column, second column must be labeled
with the timezone and contain times in 'HH:MM' format.
Re... | "Create DatetimeIndex for the Dataframe localized to the timezone provided\n as the label of the second (time) column.\n\n Parameters\n ----------\n data: Dataframe\n Must contain 'DATE (MM/DD/YYYY)' column, second column must be labeled\n with the timezone and contain times in 'HH:MM' format.... | 1,499 | true | pvlib/pvlib-python | format_index | 5,015 | |
LDU_FT/ml4ai/delphi/clear | 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 clear API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Clear variable nodes for next computation. | "Clear variable nodes for next computation." | 336 | false | ml4ai/delphi | clear | 5,016 | |
LDU_FT/zardus/idalink/_dict_values_sorted_by_key | LDU_FT | [
"<BEGIN>\n## `_dict_values_sorted_by_key`",
"Internal helper to return the values of a dictionary, sorted by key.\n<END>",
"<BEGIN>\n## `_ondemand`",
"Decorator to only request information if not in cache already.\n<END>",
"<BEGIN>\n## `get_memory`",
"Retrieve an area of memory from IDA.\n Returns ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dict_values_sorted_by_key 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 _dict_values_sorted_by_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Internal helper to return the values of a dictionary, sorted by key. | "Internal helper to return the values of a dictionary, sorted by key." | 12 | false | zardus/idalink | _dict_values_sorted_by_key | 5,017 | |
LDU_FT/signaturit/python-sdk/remove_seat | 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 remove_seat API.
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 remove_seat API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Remove a seat from your team
:param seat_id: Id of user | "Remove a seat from your team\n :param seat_id: Id of user" | 52 | false | signaturit/python-sdk | remove_seat | 5,018 | |
LDU_FT/Rambatino/CHAID/best_cat_heuristic_split | LDU_FT | [
"<BEGIN>\n## `chisquare`",
"Calculates the chisquare for a matrix of ind_v x dep_v\n for the unweighted and SPSS weighted case\n<END>",
"<BEGIN>\n## `best_split`",
"determine which splitting function to apply\n<END>",
"<BEGIN>\n## `best_cat_heuristic_split`",
"determine best categorical variable split ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the best_cat_heuristic_split 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 best_cat_heuristic_split API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | determine best categorical variable split using heuristic methods | "determine best categorical variable split using heuristic methods" | 34 | false | Rambatino/CHAID | best_cat_heuristic_split | 5,019 | |
LDU_FT/sublee/etc/get | LDU_FT | [
"<BEGIN>\n## `registry`",
"Generates a meta class to index sub classes by their keys.\n<END>",
"<BEGIN>\n## `refresh`",
"Sets only a TTL of a key. The waiters doesn't receive notification\n by this operation.\n<END>",
"<BEGIN>\n## `append`",
"Creates a new automatically increasing key in the given... | 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... | Requests to get a node by the given key. | "Requests to get a node by the given key." | 24 | false | sublee/etc | get | 5,020 | |
LDU_FT/TimSC/python-oauth10a/_split_header | LDU_FT | [
"<BEGIN>\n## `to_unicode`",
"Convert to unicode, raise exception with instructive error\n message if s is not unicode, ascii, or utf-8.\n<END>",
"<BEGIN>\n## `to_postdata`",
"Serialize as post data for a POST request.\n<END>",
"<BEGIN>\n## `_split_header`",
"Turn Authorization: header into parameters.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _split_header API.
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 _split_header API.
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... | Turn Authorization: header into parameters. | "Turn Authorization: header into parameters." | 12 | false | TimSC/python-oauth10a | _split_header | 5,021 | |
LDU_FT/r-barnes/richdem/FlowAccumulation | LDU_FT | [
"<BEGIN>\n## `LoadGDAL`",
"Read a GDAL file.",
" Opens any file GDAL can read, selects the first raster band, and loads it\n and its metadata into a RichDEM array of the appropriate data type.",
" If you need to do something more complicated, look at the source of this\n function.",
" Ar... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FlowAccumulation API.
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 FlowAccumulation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Calculates flow accumulation. A variety of methods are available.
Args:
dem (rdarray): An elevation model
method (str): Flow accumulation method to use. (See below.)
exponent (float): Some methods require an exponent; refer to the
relevant publ... | "Calculates flow accumulation. A variety of methods are available.\n\n Args:\n dem (rdarray): An elevation model\n method (str): Flow accumulation method to use. (See below.)\n exponent (float): Some methods require an exponent; refer to the \n releva... | 47 | false | r-barnes/richdem | FlowAccumulation | 5,022 | |
LDU_FT/nvictus/priority-queue-dictionary/pop | LDU_FT | [
"<BEGIN>\n## `nlargest`",
"Takes a mapping and returns the n keys associated with the largest values\n in descending order. If the mapping has fewer than n items, all its keys\n are returned.",
" Equivalent to:\n ``next(zip(*heapq.nlargest(mapping.items(), key=lambda x: x[1])))``",
" Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop API.
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 pop API.
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... | If ``key`` is in the pqdict, remove it and return its priority value,
else return ``default``. If ``default`` is not provided and ``key`` is
not in the pqdict, raise a ``KeyError``.
If ``key`` is not provided, remove the top item and return its key, or
raise ``KeyError`` if the pqdict i... | "If ``key`` is in the pqdict, remove it and return its priority value,\n else return ``default``. If ``default`` is not provided and ``key`` is\n not in the pqdict, raise a ``KeyError``.\n\n If ``key`` is not provided, remove the top item and return its key, or\n raise ``KeyError`` if the pq... | 25 | false | nvictus/priority-queue-dictionary | pop | 5,023 | |
LDU_FT/openstack/python-saharaclient/update_image | LDU_FT | [
"<BEGIN>\n## `update`",
"Update a Data Source.",
" :param dict update_data: dict that contains fields that should be\n updated with new values.",
" Fields that can be updated:",
" * name\n * description\n * type\n * url\n * is_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_image API.
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 update_image API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Create or update an Image in Image Registry. | "Create or update an Image in Image Registry." | 30 | false | openstack/python-saharaclient | update_image | 5,024 | |
LDU_FT/pysal/mapclassify/make | LDU_FT | [
"<BEGIN>\n## `quantile`",
"Calculates the quantiles for an array",
" Parameters\n ----------\n y : array\n (n,1), values to classify\n k : int\n number of quantiles",
" Returns\n -------\n q : array\n (n,1), quantile values",
" Examples\n -----... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make API.
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 make API.
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... | Configure and create a classifier that will consume data and produce
classifications, given the configuration options specified by this
function.
Note that this like a *partial application* of the relevant class
constructor. `make` creates a function that returns classifications; it
... | "Configure and create a classifier that will consume data and produce\n classifications, given the configuration options specified by this\n function.\n\n Note that this like a *partial application* of the relevant class\n constructor. `make` creates a function that returns classifications; ... | 87 | false | pysal/mapclassify | make | 5,025 | |
LDU_FT/limix/numpy-sugar/lu_solve | LDU_FT | [
"<BEGIN>\n## `dotd`",
"r\"\"\"Diagonal of :math:`\\mathrm A\\mathrm B^\\intercal`.",
" If ``A`` is :math:`n\\times p` and ``B`` is :math:`p\\times n`, it is done in\n :math:`O(pn)`.",
" Args:\n A (array_like): Left matrix.\n B (array_like): Right matrix.\n out (:class:`numpy.ndar... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lu_solve API.
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 lu_solve API.
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... | r"""Solve for LU decomposition.
Solve the linear equations :math:`\mathrm A \mathbf x = \mathbf b`,
given the LU factorization of :math:`\mathrm A`.
Args:
LU (array_like): LU decomposition.
b (array_like): Right-hand side.
Returns:
:class:`numpy.ndarray`: The solution to the s... | "r\"\"\"Solve for LU decomposition.\n\n Solve the linear equations :math:`\\mathrm A \\mathbf x = \\mathbf b`,\n given the LU factorization of :math:`\\mathrm A`.\n\n Args:\n LU (array_like): LU decomposition.\n b (array_like): Right-hand side.\n\n Returns:\n :class:`numpy.ndarray`: The... | 124 | false | limix/numpy-sugar | lu_solve | 5,026 | |
LDU_FT/neo4j/neo4j-python-driver/data | LDU_FT | [
"<BEGIN>\n## `basic_auth`",
"Generate a basic auth token for a given user and password.",
" :param user: user name\n :param password: current password\n :param realm: specifies the authentication provider\n :return: auth token for use with :meth:`GraphDatabase.driver`\n<END>",
"<BEGIN>\n## `custom... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Return the keys and values of this record as a dictionary,
optionally including only certain values by index or key. Keys
provided in the items that are not in the record will be
inserted with a value of :const:`None`; indexes provided
that are out of bounds will trigger an :exc:`IndexEr... | "Return the keys and values of this record as a dictionary,\n optionally including only certain values by index or key. Keys\n provided in the items that are not in the record will be\n inserted with a value of :const:`None`; indexes provided\n that are out of bounds will trigger an :exc:`In... | 133 | false | neo4j/neo4j-python-driver | data | 5,027 | |
LDU_FT/Unity-Technologies/ml-agents/create_cc_actor_critic | LDU_FT | [
"<BEGIN>\n## `get_action`",
"Decides actions given observations information, and takes them in environment.\n :param brain_info: A dictionary of brain names and BrainInfo from environment.\n :return: an ActionInfo containing action, memories, values and an object\n to be passed to add experie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_cc_actor_critic 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_cc_actor_critic API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Creates Continuous control actor-critic model.
:param h_size: Size of hidden linear layers.
:param num_layers: Number of hidden linear layers. | "Creates Continuous control actor-critic model.\n :param h_size: Size of hidden linear layers.\n :param num_layers: Number of hidden linear layers." | 171 | false | Unity-Technologies/ml-agents | create_cc_actor_critic | 5,028 | |
LDU_FT/dokterbob/django-multilingual-model/clean | LDU_FT | [
"<BEGIN>\n## `clean`",
"Make sure there is at least a translation has been filled in. If a\n default language has been specified, make sure that it exists amongst\n translations.\n<END>",
"<BEGIN>\n## `_get_default_language`",
"If a default language has been set, and is still available in\n ... | 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... | Make sure there is at least a translation has been filled in. If a
default language has been specified, make sure that it exists amongst
translations. | "Make sure there is at least a translation has been filled in. If a\n default language has been specified, make sure that it exists amongst\n translations." | 13 | false | dokterbob/django-multilingual-model | clean | 5,029 | |
LDU_FT/fogcitymarathoner/s3_mysql_backup/cp_file | LDU_FT | [
"<BEGIN>\n## `backup`",
"zips into db_backups_dir and uploads to bucket_name/s3_folder\n fab -f ./fabfile.py backup_dbs\n<END>",
"<BEGIN>\n## `s3_get_dir_backup`",
"get last uploaded directory backup\n :param aws_access_key_id:\n :param aws_secret_access_key:\n :param bucket_name:\n :param s3_f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cp_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cp_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | dumps databases into /backups, uploads to s3, deletes backups older than a month
fab -f ./fabfile.py backup_dbs | "dumps databases into /backups, uploads to s3, deletes backups older than a month\n fab -f ./fabfile.py backup_dbs" | 10 | false | fogcitymarathoner/s3_mysql_backup | cp_file | 5,030 | |
LDU_FT/jochym/Elastic/get_cart_deformed_cell | LDU_FT | [
"<BEGIN>\n## `regular`",
"Equation matrix generation for the regular (cubic) lattice.\n The order of constants is as follows:",
" .. math::\n C_{11}, C_{12}, C_{44}",
" :param u: vector of deformations:\n [ :math:`u_{xx}, u_{yy}, u_{zz}, u_{yz}, u_{xz}, u_{xy}` ]",
" :returns: Symme... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cart_deformed_cell 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_cart_deformed_cell API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Return the cell deformed along one of the cartesian directions
Creates new deformed structure. The deformation is based on the
base structure and is performed along single axis. The axis is
specified as follows: 0,1,2 = x,y,z ; sheers: 3,4,5 = yz, xz, xy.
The size of the deformation is in percent and d... | "Return the cell deformed along one of the cartesian directions\n\n Creates new deformed structure. The deformation is based on the\n base structure and is performed along single axis. The axis is\n specified as follows: 0,1,2 = x,y,z ; sheers: 3,4,5 = yz, xz, xy.\n The size of the deformation is in percent... | 76 | false | jochym/Elastic | get_cart_deformed_cell | 5,031 | |
LDU_FT/cdgriffith/Box/_camel_killer | LDU_FT | [
"<BEGIN>\n## `_safe_attr`",
"Convert a key into something that is accessible as an attribute\n<END>",
"<BEGIN>\n## `_camel_killer`",
"CamelKiller, qu'est-ce que c'est?",
" Taken from http://stackoverflow.com/a/1176023/3244542\n<END>",
"<BEGIN>\n## `_conversion_checks`",
"Internal use for checking if ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _camel_killer API.
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 _camel_killer API.
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... | CamelKiller, qu'est-ce que c'est?
Taken from http://stackoverflow.com/a/1176023/3244542 | "CamelKiller, qu'est-ce que c'est?\n\n Taken from http://stackoverflow.com/a/1176023/3244542" | 31 | false | cdgriffith/Box | _camel_killer | 5,032 | |
LDU_FT/cherrypy/cheroot/recv | LDU_FT | [
"<BEGIN>\n## `respond`",
"Process the current request.",
" From :pep:`333`:",
" The start_response callable must not actually transmit\n the response headers. Instead, it must store them for the\n server or gateway to transmit only after the first\n iteration... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recv API.
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 recv API.
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... | Receive message of a size from the socket. | "Receive message of a size from the socket." | 143 | false | cherrypy/cheroot | recv | 5,033 | |
LDU_FT/kennethreitz/requests-html/response_hook | LDU_FT | [
"<BEGIN>\n## `user_agent`",
"Returns an apparently legit user-agent, if not requested one of a specific\n style. Defaults to a Chrome-style User-Agent.\n<END>",
"<BEGIN>\n## `raw_html`",
"Bytes representation of the HTML content.\n (`learn more <http://www.diveintopython3.net/strings.html>`_).\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response_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 ext... | Change response enconding and replace it by a HTMLResponse. | "Change response enconding and replace it by a HTMLResponse." | 58 | false | kennethreitz/requests-html | response_hook | 5,034 | |
LDU_FT/jespino/anillo/parse_form_data | LDU_FT | [
"<BEGIN>\n## `url`",
"Simple helper for build a url, and return anillo\n url spec hash map (dictionary)",
" It can be used in this way:",
" urls = [\n url(\"/<int:year>\", index, methods=[\"get\", \"post\"]),\n url(\"/<int:year>\", index, methods=[\"get\", \"post\"])\n ]",
" Thi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_form_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_form_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Parse form data from an environ dict and return a (forms, files) tuple.
Both tuple values are dictionaries with the form-field name as a key
(unicode) and lists as values (multiple values per key are possible).
The forms-dictionary contains form-field values as unicode strings.
The files... | "Parse form data from an environ dict and return a (forms, files) tuple.\n Both tuple values are dictionaries with the form-field name as a key\n (unicode) and lists as values (multiple values per key are possible).\n The forms-dictionary contains form-field values as unicode strings.\n The ... | 54 | false | jespino/anillo | parse_form_data | 5,035 | |
LDU_FT/rlisagor/pynetlinux/iterifs | LDU_FT | [
"<BEGIN>\n## `iterbridges`",
"Iterate over all the bridges in the system.\n<END>",
"<BEGIN>\n## `iterifs`",
"Iterate over all the interfaces in this bridge.\n<END>",
"<BEGIN>\n## `addif`",
"Add the interface with the given name to this bridge. Equivalent to\n brctl addif [bridge] [interface].\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterifs API.
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 iterifs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Iterate over all the interfaces in the system. If physical is
true, then return only real physical interfaces (not 'lo', etc). | "Iterate over all the interfaces in the system. If physical is\n true, then return only real physical interfaces (not 'lo', etc)." | 23 | false | rlisagor/pynetlinux | iterifs | 5,036 | |
LDU_FT/maweigert/gputools/fft_convolve | LDU_FT | [
"<BEGIN>\n## `gaussian_filter`",
"blurs data with a gaussian kernel of given sigmas",
" Parameters\n ----------\n data: ndarray\n 2 or 3 dimensional array \n sigma: scalar or tuple\n the sigma of the gaussian \n truncate: float \n truncate the kernel after truncate*sigma \n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fft_convolve API.
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 fft_convolve API.
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... | convolves data with kernel h via FFTs
data should be either a numpy array or a OCLArray (see doc for fft)
both data and h should be same shape
if data/h are OCLArrays, then:
- type should be complex64
- shape should be equal and power of two
- h is assumed to be already fftshi... | "convolves data with kernel h via FFTs\n\n \n data should be either a numpy array or a OCLArray (see doc for fft)\n both data and h should be same shape\n\n if data/h are OCLArrays, then:\n - type should be complex64\n - shape should be equal and power of two\n - h is assumed to be alre... | 199 | false | maweigert/gputools | fft_convolve | 5,037 | |
LDU_FT/PythonOptimizers/cygenja/get_compatible_generator_action | LDU_FT | [
"<BEGIN>\n## `set_parent`",
"Attach node to its parent.",
" Args:\n node: Parent node.",
" Note:\n ``node`` can be ``None``. In that case, the node is detached from its previous parent.\n<END>",
"<BEGIN>\n## `set_child_node`",
"Add one child node to this node.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_compatible_generator_action API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_compatible_generator_action API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Return the **first** compatible :class:`GeneratorAction` for a given filename or ``None`` if none is found.
Args:
filename (str): The filename of the template to process. | "Return the **first** compatible :class:`GeneratorAction` for a given filename or ``None`` if none is found.\n\n Args:\n filename (str): The filename of the template to process." | 132 | false | PythonOptimizers/cygenja | get_compatible_generator_action | 5,038 | |
LDU_FT/csaez/wishlib/show_qt | LDU_FT | [
"<BEGIN>\n## `inside_softimage`",
"Returns a boolean indicating if the code is executed inside softimage.\n<END>",
"<BEGIN>\n## `auto_update`",
"This class method could be used as decorator on subclasses, it ensures\n update method is called after function execution.\n<END>",
"<BEGIN>\n## `update`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_qt API.
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 show_qt API.
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... | Shows and raise a pyqt window ensuring it's not duplicated
(if it's duplicated then raise the old one).
qt_class argument should be a class/subclass of QMainWindow, QDialog or any
top-level widget.
onshow_event provides a way to pass a function to execute before the window
is showed on screen, it sh... | "Shows and raise a pyqt window ensuring it's not duplicated\n (if it's duplicated then raise the old one).\n qt_class argument should be a class/subclass of QMainWindow, QDialog or any\n top-level widget.\n onshow_event provides a way to pass a function to execute before the window\n is showed on screen,... | 22 | false | csaez/wishlib | show_qt | 5,039 | |
LDU_FT/ojii/django-multilingual-ng/translation_save_translated_fields | LDU_FT | [
"<BEGIN>\n## `reorder_translation_formset_by_language_code`",
"Shuffle the forms in the formset of multilingual model in the\n order of their language_ids.\n<END>",
"<BEGIN>\n## `multilingual`",
"Returns context variables containing information about available languages.\n<END>",
"<BEGIN>\n## `multilingu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translation_save_translated_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translation_save_translated_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | Save all the translations of instance in post_save signal handler. | "Save all the translations of instance in post_save signal handler." | 58 | false | ojii/django-multilingual-ng | translation_save_translated_fields | 5,040 | |
LDU_FT/splitkeycoffee/pyhottop/set_monitor | LDU_FT | [
"<BEGIN>\n## `_generate_config`",
"Generate a configuration that can be sent to the Hottop roaster.",
" Configuration settings need to be represented inside of a byte array\n that is then written to the serial interface. Much of the configuration\n is static, but control settings are also i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_monitor API.
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 set_monitor API.
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... | Set the monitor config.
This module assumes that users will connect to the roaster and get
reading information _before_ they want to begin collecting roast
details. This method is critical to enabling the collection of roast
information and ensuring it gets saved in memory.
:pa... | "Set the monitor config.\n\n This module assumes that users will connect to the roaster and get\n reading information _before_ they want to begin collecting roast\n details. This method is critical to enabling the collection of roast\n information and ensuring it gets saved in memory.\n\n ... | 89 | false | splitkeycoffee/pyhottop | set_monitor | 5,041 | |
LDU_FT/sangoma/pysensu/get_subscriptions_channel | LDU_FT | [
"<BEGIN>\n## `get_all_client_events`",
"Returns the list of current events for a given client.\n<END>",
"<BEGIN>\n## `get_event`",
"Returns an event for a given client & check name.\n<END>",
"<BEGIN>\n## `delete_event`",
"Resolves an event for a given check on a given client. (delayed action)\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subscriptions_channel 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_subscriptions_channel API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Return all the nodes that are subscribed to the specified channel | "Return all the nodes that are subscribed to the specified channel" | 18 | false | sangoma/pysensu | get_subscriptions_channel | 5,042 | |
LDU_FT/rocioar/flake8-django/is_string_dunder_all | LDU_FT | [
"<BEGIN>\n## `capture_url_missing_namespace`",
"Capture missing namespace in url include.\n<END>",
"<BEGIN>\n## `run`",
"Captures the use of locals() in render function.\n<END>",
"<BEGIN>\n## `is_string_dunder_all`",
"Return True if element is ast.Str or ast.Bytes and equals \"__all__\"\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_string_dunder_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_string_dunder_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.
... | Return True if element is ast.Str or ast.Bytes and equals "__all__" | "Return True if element is ast.Str or ast.Bytes and equals \"__all__\"" | 12 | false | rocioar/flake8-django | is_string_dunder_all | 5,043 | |
LDU_FT/edx/bok-choy/_proxy_kwargs | LDU_FT | [
"<BEGIN>\n## `wait_for_js`",
"Method decorator that waits for JavaScript dependencies before executing `function`.\n If the function is not a method, the decorator has no effect.",
" Args:\n function (callable): Method to decorate.",
" Returns:\n Decorated method\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _proxy_kwargs API.
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 _proxy_kwargs API.
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... | Determines the kwargs needed to set up a proxy based on the
browser type.
Returns: a dictionary of arguments needed to pass when
instantiating the WebDriver instance. | "Determines the kwargs needed to set up a proxy based on the\n browser type.\n\n Returns: a dictionary of arguments needed to pass when\n instantiating the WebDriver instance." | 254 | false | edx/bok-choy | _proxy_kwargs | 5,044 | |
LDU_FT/rytilahti/python-eq3bt/set_away | LDU_FT | [
"<BEGIN>\n## `handleNotification`",
"Handle Callback from a Bluetooth (GATT) request.\n<END>",
"<BEGIN>\n## `make_request`",
"Write a GATT Command without callback - not utf-8.\n<END>",
"<BEGIN>\n## `cli`",
"Tool to query and modify the state of EQ3 BT smart thermostat.\n<END>",
"<BEGIN>\n## `presets`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_away API.
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 set_away API.
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... | Sets away mode with target temperature.
When called without parameters disables away mode. | "Sets away mode with target temperature.\n When called without parameters disables away mode." | 24 | false | rytilahti/python-eq3bt | set_away | 5,045 | |
LDU_FT/dbrattli/OSlash/create | LDU_FT | [
"<BEGIN>\n## `map`",
"r\"\"\"Map a function over the Reader.",
" Haskell:\n fmap f m = Reader $ \\r -> f (runReader m r).\n fmap f g = (\\x -> f (g x))\n<END>",
"<BEGIN>\n## `bind`",
"r\"\"\"Bind a monadic function to the Reader.",
" Haskell:\n Reader: m >>= k = Reader ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create Writer subclass using specified monoid type.
lets us create a Writer that uses a different monoid than str for
the log. | "Create Writer subclass using specified monoid type.\n\n lets us create a Writer that uses a different monoid than str for\n the log." | 76 | false | dbrattli/OSlash | create | 5,046 | |
LDU_FT/GiulioRossetti/ndlib/iteration | LDU_FT | [
"<BEGIN>\n## `set_initial_status`",
"Override behaviour of methods in class DiffusionModel.\n Overwrites initial status using random real values.\n Generates random node profiles.\n<END>",
"<BEGIN>\n## `iteration`",
"Execute a single model iteration",
" :return: Iteration_id, Incrementa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iteration API.
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 iteration API.
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... | Execute a single model iteration
:return: Iteration_id, Incremental node status (dictionary node->status) | "Execute a single model iteration\n\n :return: Iteration_id, Incremental node status (dictionary node->status)" | 56 | false | GiulioRossetti/ndlib | iteration | 5,047 | |
LDU_FT/shidenggui/easytrader/buy | LDU_FT | [
"<BEGIN>\n## `prepare`",
"登录的统一接口\n :param config_file 登录数据文件,若无则选择参数登录模式\n :param user: 各家券商的账号或者雪球的用户名\n :param password: 密码, 券商为加密后的密码,雪球为明文密码\n :param account: [雪球登录需要]雪球手机号(邮箱手机二选一)\n :param portfolio_code: [雪球登录需要]组合代码\n :param portfolio_market: [雪球登录需要]交易市场,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buy API.
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 buy API.
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... | 买入卖出股票
:param security: 股票代码
:param price: 买入价格
:param amount: 买入股数
:param volume: 买入总金额 由 volume / price 取整, 若指定 price 则此参数无效
:param entrust_prop: | "买入卖出股票\n :param security: 股票代码\n :param price: 买入价格\n :param amount: 买入股数\n :param volume: 买入总金额 由 volume / price 取整, 若指定 price 则此参数无效\n :param entrust_prop:" | 93 | false | shidenggui/easytrader | buy | 5,048 | |
LDU_FT/crossbario/zlmdb/count_range | LDU_FT | [
"<BEGIN>\n## `is_null`",
"Check if the scalar value or tuple/list value is NULL.",
" :param value: Value to check.\n :type value: a scalar or tuple or list",
" :return: Returns ``True`` if and only if the value is NULL (scalar value is None\n or _any_ tuple/list elements are None).\n :rtype... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_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 extra... | Counter number of records in the perstistent map with keys
within the given range.
:param txn: The transaction in which to run.
:type txn: :class:`zlmdb.Transaction`
:param from_key: Count records starting and including from this key.
:type from_key: object
:param to_k... | "Counter number of records in the perstistent map with keys\n within the given range.\n\n :param txn: The transaction in which to run.\n :type txn: :class:`zlmdb.Transaction`\n\n :param from_key: Count records starting and including from this key.\n :type from_key: object\n\n :... | 30 | false | crossbario/zlmdb | count_range | 5,049 | |
LDU_FT/pyca/pynacl/crypto_pwhash_str_verify | LDU_FT | [
"<BEGIN>\n## `ensure`",
"Return if a condition is true, otherwise raise a caller-configurable\n :py:class:`Exception`\n :param bool cond: the condition to be checked\n :param sequence args: the arguments to be passed to the exception's\n constructor\n The only accepted named p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crypto_pwhash_str_verify 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 crypto_pwhash_str_verify API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Verifies the ``passwd`` against a given password hash.
Returns True on success, raises InvalidkeyError on failure
:param passwd_hash: saved password hash
:type passwd_hash: bytes
:param passwd: password to be checked
:type passwd: bytes
:return: success
:rtype: boolean | "Verifies the ``passwd`` against a given password hash.\n\n Returns True on success, raises InvalidkeyError on failure\n :param passwd_hash: saved password hash\n :type passwd_hash: bytes\n :param passwd: password to be checked\n :type passwd: bytes\n :return: success\n :rtype: boolean" | 266 | false | pyca/pynacl | crypto_pwhash_str_verify | 5,050 | |
LDU_FT/juju/juju-bundlelib/handle_units | LDU_FT | [
"<BEGIN>\n## `isstring`",
"Report whether the given value is a byte or unicode string.\n<END>",
"<BEGIN>\n## `_parse_url`",
"Parse the given charm or bundle URL, provided as a string.",
" Return a tuple containing the entity reference fragments: schema, user,\n series, name and revision.\n Each fra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_units API.
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 handle_units API.
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... | Populate the change set with addUnit changes. | "Populate the change set with addUnit changes." | 84 | false | juju/juju-bundlelib | handle_units | 5,051 | |
LDU_FT/kelproject/pykube/post | LDU_FT | [
"<BEGIN>\n## `iterator`",
"Execute the API request and return an iterator over the objects. This\n method does not use the query cache.\n<END>",
"<BEGIN>\n## `get_kwargs`",
"Creates a full URL to request based on arguments.",
" :Parametes:\n - `kwargs`: All keyword arguments to build... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Executes an HTTP POST.
:Parameters:
- `args`: Non-keyword arguments
- `kwargs`: Keyword arguments | "Executes an HTTP POST.\n\n :Parameters:\n - `args`: Non-keyword arguments\n - `kwargs`: Keyword arguments" | 54 | false | kelproject/pykube | post | 5,052 | |
LDU_FT/Yelp/kafka-utils/_elect_source_replication_group | LDU_FT | [
"<BEGIN>\n## `get_assignment`",
"Parse the given json plan in dict format.\n<END>",
"<BEGIN>\n## `_send_consumer_aware_request`",
"Send a list of requests to the consumer coordinator for the group\n specified using the supplied encode/decode functions. As the payloads\n that use consumer-aware r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _elect_source_replication_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _elect_source_replication_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Decide source replication-group based as group with highest replica
count. | "Decide source replication-group based as group with highest replica\n count." | 538 | false | Yelp/kafka-utils | _elect_source_replication_group | 5,053 | |
LDU_FT/disqus/gargoyle/is_active | LDU_FT | [
"<BEGIN>\n## `is_active`",
"Returns ``True`` if any of ``instances`` match an active switch. Otherwise\n returns ``False``.",
" >>> gargoyle.is_active('my_feature', request) #doctest: +SKIP\n<END>",
"<BEGIN>\n## `register`",
"Registers a condition set with the manager.",
" >>> conditi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_active API.
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 is_active API.
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... | Given an instance, and the conditions active for this switch, returns
a boolean representing if the feature is active. | "Given an instance, and the conditions active for this switch, returns\n a boolean representing if the feature is active." | 34 | false | disqus/gargoyle | is_active | 5,054 | |
LDU_FT/biolink/biolink-model/gen_slot_variables | LDU_FT | [
"<BEGIN>\n## `cli`",
"Generate JSON Schema representation of a biolink model\n<END>",
"<BEGIN>\n## `root_representer`",
"YAML callback -- used to filter out empty values (None, {}, [] and false)",
" @param dumper: data dumper\n @param data: data to be dumped\n @return:\n<END>",
"<BEGIN>\n## `cli`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_slot_variables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_slot_variables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Generate python definition for class cls, generating primary keys first followed by the rest of the slots | "Generate python definition for class cls, generating primary keys first followed by the rest of the slots" | 119 | false | biolink/biolink-model | gen_slot_variables | 5,055 | |
LDU_FT/vicenteneto/python-cartolafc/ligas | LDU_FT | [
"<BEGIN>\n## `set_credentials`",
"Realiza a autenticação no sistema do CartolaFC utilizando o email e password informados.",
" Args:\n email (str): O email do usuário\n password (str): A senha do usuário",
" Raises:\n cartolafc.CartolaFCError: Se o conjunto (emai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ligas API.
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 ligas API.
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... | Retorna o resultado da busca ao Cartola por um determinado termo de pesquisa.
Args:
query (str): Termo para utilizar na busca.
Returns:
Uma lista de instâncias de cartolafc.Liga, uma para cada liga contento o termo utilizado na busca. | "Retorna o resultado da busca ao Cartola por um determinado termo de pesquisa.\n\n Args:\n query (str): Termo para utilizar na busca.\n\n Returns:\n Uma lista de instâncias de cartolafc.Liga, uma para cada liga contento o termo utilizado na busca." | 33 | false | vicenteneto/python-cartolafc | ligas | 5,056 | |
LDU_FT/Microsoft/knack/show_version | LDU_FT | [
"<BEGIN>\n## `ensure_new_style_deprecation`",
"Helper method to make the previous string-based deprecate_info kwarg\n work with the new style.\n<END>",
"<BEGIN>\n## `prompt_choice_list`",
"Prompt user to select from a list of possible choices.",
" :param msg:A message displayed to the user bef... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_version API.
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... | Print version information to the out file. | "Print version information to the out file." | 88 | false | Microsoft/knack | show_version | 5,057 | |
LDU_FT/Brazelton-Lab/bio_utils/b6_verifier | LDU_FT | [
"<BEGIN>\n## `binary_guesser`",
"Raise error if file not likely binary",
" Guesses if a file is binary, raises error if file is not likely binary,\n then returns to location in file when handle passed to binary_guesser.",
" Args:\n handle (file): File handle of file thought to be binary",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the b6_verifier API.
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 b6_verifier API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Raises error if invalid B6/M8 format detected
Args:
entries (list): A list of B6Entry instances
line (int): Line number of first entry
Raises:
FormatError: Error when B6/M8 format incorrect with descriptive message
Example:
>>> from bio_utils.iterators import b6_iter
... | "Raises error if invalid B6/M8 format detected\n\n Args:\n entries (list): A list of B6Entry instances\n\n line (int): Line number of first entry\n\n Raises:\n FormatError: Error when B6/M8 format incorrect with descriptive message\n\n Example:\n >>> from bio_utils.iterators import ... | 158 | false | Brazelton-Lab/bio_utils | b6_verifier | 5,058 | |
LDU_FT/quantmind/agile-toolkit/validate | LDU_FT | [
"<BEGIN>\n## `upload`",
"Upload a file to a release",
" :param filename: filename to upload\n :param content_type: optional content type\n :return: json object from github\n<END>",
"<BEGIN>\n## `validate_tag`",
"Validate ``tag_name`` with the latest tag from github",
" If ``tag... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Check if version of repository is semantic | "Check if version of repository is semantic" | 23 | false | quantmind/agile-toolkit | validate | 5,059 | |
LDU_FT/cocoakekeyu/cancan/expand_actions | LDU_FT | [
"<BEGIN>\n## `is_relevant`",
"Matches both the subject and action, not necessarily the conditions.\n<END>",
"<BEGIN>\n## `add`",
"Add ability are allowed using two arguments.",
" The first one is the action you're setting the permission for,\n the second one is the class of object you're setti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_actions API.
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 expand_actions API.
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... | Accepts an array of actions and returns an array of actions which match | "Accepts an array of actions and returns an array of actions which match" | 15 | false | cocoakekeyu/cancan | expand_actions | 5,060 | |
LDU_FT/maximkulkin/lollipop/load | LDU_FT | [
"<BEGIN>\n## `merge_errors`",
"Deeply merges two error messages. Error messages can be\n string, list of strings or dict of error messages (recursively).\n Format is the same as accepted by :exc:`ValidationError`.\n Returns new error messages.\n<END>",
"<BEGIN>\n## `add_error`",
"Add error message fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Deserialize data from primitive types. Raises
:exc:`~lollipop.errors.ValidationError` if data is invalid.
:param data: Data to deserialize.
:param context: Context data.
:returns: Loaded data
:raises: :exc:`~lollipop.errors.ValidationError` | "Deserialize data from primitive types. Raises\n :exc:`~lollipop.errors.ValidationError` if data is invalid.\n\n :param data: Data to deserialize.\n :param context: Context data.\n :returns: Loaded data\n :raises: :exc:`~lollipop.errors.ValidationError`" | 46 | false | maximkulkin/lollipop | load | 5,061 | |
LDU_FT/edoburu/django-template-analyzer/_is_variable_extends | LDU_FT | [
"<BEGIN>\n## `_is_variable_extends`",
"Check whether an ``{% extends variable %}`` is used in the template.",
" :type extend_node: ExtendsNode\n<END>",
"<BEGIN>\n## `_extend_blocks`",
"Extends the dictionary `blocks` with *new* blocks in the parent node (recursive)",
" :param extend_node: The ``{% e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_variable_extends 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_variable_extends 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 whether an ``{% extends variable %}`` is used in the template.
:type extend_node: ExtendsNode | "Check whether an ``{% extends variable %}`` is used in the template.\n\n :type extend_node: ExtendsNode" | 15 | false | edoburu/django-template-analyzer | _is_variable_extends | 5,062 | |
LDU_FT/eighthave/pyvendapin/request_status | LDU_FT | [
"<BEGIN>\n## `_checksum`",
"calculate the XOR checksum of a packet in string format\n<END>",
"<BEGIN>\n## `was_packet_accepted`",
"parse the \"command\" byte from the response packet to get a \"response code\"\n<END>",
"<BEGIN>\n## `parsedata`",
"parse the data section of a packet, it can range from 0 to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_status API.
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 request_status API.
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... | request the status of the card dispenser and return the status code | "request the status of the card dispenser and return the status code" | 12 | false | eighthave/pyvendapin | request_status | 5,063 | |
LDU_FT/spotify/snakebite/get_length | LDU_FT | [
"<BEGIN>\n## `get_delimited_message_bytes`",
"Parse a delimited protobuf message. This is done by first getting a protobuf varint from\n the stream that represents the length of the message, then reading that amount of\n from the message and then parse it.\n Since the int can be represented as max 4 byte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_length API.
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_length API.
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... | In Hadoop protobuf RPC, some parts of the stream are delimited with protobuf varint,
while others are delimited with 4 byte integers. This reads 4 bytes from the byte stream
and retruns the length of the delimited part that follows, by unpacking the 4 bytes
and returning the first element from a... | "In Hadoop protobuf RPC, some parts of the stream are delimited with protobuf varint,\n while others are delimited with 4 byte integers. This reads 4 bytes from the byte stream\n and retruns the length of the delimited part that follows, by unpacking the 4 bytes\n and returning the first element fr... | 148 | false | spotify/snakebite | get_length | 5,064 | |
LDU_FT/omza/azurestoragewrap/fromfile | LDU_FT | [
"<BEGIN>\n## `getmessage`",
"parse self into unicode string as message content\n<END>",
"<BEGIN>\n## `register_model`",
"set up an Queueservice for an StorageQueueModel in your Azure Storage Account\n Will create the Queue if not exist!",
" required Parameter is:\n - storag... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fromfile API.
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 fromfile API.
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... | load blob content from file in StorageBlobModel instance. Parameters are:
- path_to_file (required): path to a local file
- mimetype (optional): set a mimetype. azurestoragewrap will guess it if not given | "load blob content from file in StorageBlobModel instance. Parameters are:\n - path_to_file (required): path to a local file \n - mimetype (optional): set a mimetype. azurestoragewrap will guess it if not given" | 34 | false | omza/azurestoragewrap | fromfile | 5,065 | |
LDU_FT/kdeldycke/maildir-deduplicate/report | LDU_FT | [
"<BEGIN>\n## `check_differences`",
"In-depth check of mail differences.",
" Compare all mails of the duplicate set with each other, both in size\n and content. Raise an error if we're not within the limits imposed by\n the threshold setting.\n<END>",
"<BEGIN>\n## `diff`",
"Return differ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report API.
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 report API.
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 ... | Print user-friendly statistics and metrics. | "Print user-friendly statistics and metrics." | 68 | false | kdeldycke/maildir-deduplicate | report | 5,066 | |
LDU_FT/jantman/webhook2lambda2sqs/get_api_id | LDU_FT | [
"<BEGIN>\n## `webhook2lambda2sqs_handler`",
"Main entry point/handler for the lambda function. Wraps\n :py:func:`~.handle_event` to ensure that we log detailed information if it\n raises an exception.",
" :param event: Lambda event that triggered the handler\n :type event: dict\n :param context: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_api_id API.
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_api_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return the API ID.
:return: API ID
:rtype: str | "Return the API ID.\n\n :return: API ID\n :rtype: str" | 137 | false | jantman/webhook2lambda2sqs | get_api_id | 5,067 | |
LDU_FT/datadesk/python-documentcloud/upload_directory | LDU_FT | [
"<BEGIN>\n## `_make_request`",
"Configure a HTTP request, fire it off and return the response.\n<END>",
"<BEGIN>\n## `_get_search_page`",
"Retrieve one page of search results from the DocumentCloud API.\n<END>",
"<BEGIN>\n## `search`",
"Retrieve all objects that make a search query.",
" Will loop... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_directory API.
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 upload_directory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Uploads all the PDFs in the provided directory.
Example usage:
>> documentcloud.documents.upload_directory("/home/ben/pdfs/")
Returns a list of the documents created during the upload.
Based on code developed by Mitchell Kotler and refined
by Christopher Groskopf. | "Uploads all the PDFs in the provided directory.\n\n Example usage:\n\n >> documentcloud.documents.upload_directory(\"/home/ben/pdfs/\")\n\n Returns a list of the documents created during the upload.\n\n Based on code developed by Mitchell Kotler and refined\n by Christopher Grosk... | 107 | false | datadesk/python-documentcloud | upload_directory | 5,068 | |
LDU_FT/alexwlchan/specktre/generate_unit_triangles | LDU_FT | [
"<BEGIN>\n## `generate_unit_squares`",
"Generate coordinates for a tiling of unit squares.\n<END>",
"<BEGIN>\n## `generate_unit_triangles`",
"Generate coordinates for a tiling of unit triangles.\n<END>",
"<BEGIN>\n## `check_positive_integer`",
"Check a value is a positive integer.",
" Returns the val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_unit_triangles 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 generate_unit_triangles API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Generate coordinates for a tiling of unit triangles. | "Generate coordinates for a tiling of unit triangles." | 15 | false | alexwlchan/specktre | generate_unit_triangles | 5,069 | |
LDU_FT/mozillazg/python-shanbay/dismiss | LDU_FT | [
"<BEGIN>\n## `send_message`",
"发送站内消息",
" :param recipient_list: 收件人列表\n :param subject: 标题\n :param body: 内容(不能超过 1024 个字符)\n<END>",
"<BEGIN>\n## `reply_message`",
"回复某条站内消息",
" :param message_url: 该条消息的页面 URL\n :param body: 内容(不能超过 1024 个字符)\n<END>",
"<BEGIN>\n## `in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dismiss API.
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 dismiss API.
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... | 踢人. 注意别把自己给踢了.
:param member_ids: 组员 ids
:return: bool | "踢人. 注意别把自己给踢了.\n\n :param member_ids: 组员 ids\n :return: bool" | 19 | false | mozillazg/python-shanbay | dismiss | 5,070 | |
LDU_FT/kgaughan/dbkit/connect | LDU_FT | [
"<BEGIN>\n## `strip_accents`",
"Strip accents to prepare for slugification.\n<END>",
"<BEGIN>\n## `slugify`",
"Converts the given string to a URL slug.\n<END>",
"<BEGIN>\n## `_make_connect`",
"Returns a function capable of making connections with a particular\n driver given the supplied credentials.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API.
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 connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Returns a context that uses this pool as a connection source. | "Returns a context that uses this pool as a connection source." | 55 | false | kgaughan/dbkit | connect | 5,071 | |
LDU_FT/koszullab/metaTOR/largest_connected_component | LDU_FT | [
"<BEGIN>\n## `download_and_install_dependencies`",
"Setup URLS and download dependencies for Python 3.6+\n<END>",
"<BEGIN>\n## `main`",
"This module just acts as an entry point to the bulk of the pipeline.\n All argument parsing is delegated to metator.sh\n<END>",
"<BEGIN>\n## `rename_genome`",
"Rename... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the largest_connected_component API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the largest_connected_component API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Compute the adjacency matrix of the largest connected component of the
graph whose input matrix is adjacent. | "Compute the adjacency matrix of the largest connected component of the\n graph whose input matrix is adjacent." | 180 | false | koszullab/metaTOR | largest_connected_component | 5,072 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.